/* ============================================================
   HOLISPACE — customizacje (ładowane PO main.css)
   Nagłówek: białe tło, czarne menu/telefon, rozmiary +10%,
   menu podrzędne pod „Instytut".
   ============================================================ */

/* białe tło nagłówka + subtelna linia */
.nav {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, .08)
}

/* logo +10% (było 150×84) */
.brand-logo {
  width: 165px;
  height: 92px
}

/* menu główne: +10% i czarne */
.nav-links {
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink)
}

.nav-links a {
  color: var(--ink);
  white-space: nowrap
}

.nav-links a:hover {
  color: var(--gold)
}

/* przycisk „Umów się": jedna linia + pogrubienie */
.nav-cta {
  white-space: nowrap;
  font-weight: 600
}

/* telefon: czcionka identyczna jak menu (.84rem / 600 / .14em) + ikona słuchawki */
.nav-tel {
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink)
}

.nav-tel:hover {
  color: var(--gold)
}

.nav-tel-ico {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
  margin-right: .45rem
}

/* hamburger widoczny na białym tle */
.nav-burger span {
  background: var(--ink)
}

/* ===== Menu podrzędne pod „Instytut" ===== */
.nav-item {
  position: relative;
  display: flex;
  align-items: center
}

.nav-item>.nav-parent {
  cursor: pointer
}

/* mostek hover, by nie gubić kursora między pozycją a rozwijanym menu */
.nav-item:hover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: .6rem
}

.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
  padding: .5rem 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}

.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

.nav-sub a {
  padding: .6rem 1.3rem;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--ink);
  white-space: nowrap;
  text-align: left;
}

.nav-sub a:hover {
  color: var(--gold);
  background: rgba(0, 0, 0, .035)
}

/* mobile: pozycje podrzędne wcięte */
.mobile-menu .mm-sub {
  padding-left: 1.4rem;
  font-size: .95em;
  opacity: .85
}

/* ===== Strona główna — sekcja „W czym pomagamy" ===== */
/* etykieta „Usługi" w kafelkach — stylizowana jak nazwa kafelka (font display) */
.goal-lbl-svc {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: .5rem
}

/* hero-lead: szerszy, by tekst zmieścił się w dwóch liniach (łamanie po „najważniejszych") */
.hero-lead {
  max-width: none
}

/* znak w kółku kafelka: „+" (zamknięty) / „−" (otwarty) — zamiast obracanego „×" */
.goal-chev {
  font-size: 0
}

.goal-chev::before {
  content: "+";
  font-size: 1.2rem;
  line-height: 1
}

.goal-card[open] .goal-chev {
  transform: none
}

.goal-card[open] .goal-chev::before {
  content: "−"
}

/* ===== Strony prawne / dokumenty (RODO, regulaminy, polityka) — szablon page-legal.php ===== */
.legal-page {
  background: var(--cream);
  padding: clamp(3rem, 6vw, 5.5rem) 6%
}

.legal-wrap {
  max-width: 760px;
  margin: 0 auto
}

.legal-head {
  margin-bottom: 2.5rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(10, 29, 20, .12)
}

.legal-head .eyebrow {
  margin-bottom: .7rem
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: rgba(10, 29, 20, .55);
  margin: .9rem 0 0
}

.legal-content {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.8
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin: 2.4rem 0 .8rem
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  margin: 1.8rem 0 .55rem
}

.legal-content h2:first-child,
.legal-content h3:first-child {
  margin-top: 0
}

.legal-content p {
  margin: 0 0 1.1rem
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1.2rem 1.4rem
}

.legal-content li {
  margin-bottom: .5rem
}

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px
}

.legal-content a:hover {
  color: var(--ink)
}

.legal-content strong {
  font-weight: 600
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4rem;
  font-size: .95rem
}

.legal-content th,
.legal-content td {
  border: 1px solid rgba(10, 29, 20, .14);
  padding: .6rem .8rem;
  text-align: left;
  vertical-align: top
}

/* ============================================================
   Formularze Contact Form 7 — jeden wspólny styl (jasne tło)
   Nadpisuje globalny "ciemny" input tylko w obrębie .wpcf7-form,
   więc newsletter na ciemnej sekcji strony głównej zostaje bez zmian.
   ============================================================ */
.hs-form {
  max-width: 680px;
}

.wpcf7-form {
  display: grid;
  gap: 1rem;
}

.wpcf7-form p {
  margin: 0;
}

.wpcf7-form label {
  display: block;
  font-family: var(--font-body);
}

.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  padding: .85rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a1d14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}

.wpcf7-form textarea {
  min-height: 150px;
  resize: vertical;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: #9aa39e;
  opacity: 1;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .16);
}

/* Zgoda RODO */
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.wpcf7-form .wpcf7-acceptance label {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink);
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  width: auto;
  margin-top: .2rem;
  accent-color: var(--gold);
  flex: 0 0 auto;
}

.wpcf7-form .wpcf7-list-item-label {
  font-family: var(--font-body);
}

/* Przycisk wyślij = złoty pill (jak .btn-gold) */
.wpcf7-form .wpcf7-submit {
  justify-self: start;
  width: auto;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .9rem 2rem;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-900);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.wpcf7-form .wpcf7-submit:hover {
  background: #b4901f;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(201, 162, 39, .28);
}

/* Komunikaty walidacji / wysłania */
.wpcf7-form .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: .8rem 1rem;
  border-radius: 10px;
  font-size: .9rem;
  font-family: var(--font-body);
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
  border: 1px solid #d98b8b;
  background: #fbeeee;
  color: #8a3b3b;
}

.wpcf7-form.sent .wpcf7-response-output {
  border: 1px solid #8bbf9f;
  background: #eef7f1;
  color: #2f6b4d;
}

.wpcf7-form .wpcf7-not-valid-tip {
  color: #b4504f;
  font-size: .82rem;
  margin-top: .3rem;
  display: block;
}

.wpcf7-form .wpcf7-not-valid {
  border-color: #d98b8b;
}

.wpcf7-spinner {
  margin: 0 .6rem;
}

/* Mobile: koszyk ukryty; pasek 3-kolumnowy: logo | hamburger (środek) | „Umów się" */
@media(max-width:980px) {
  .nav-cart {
    display: none !important
  }

  .nav-links {
    display: none !important
  }

  .nav-tel {
    display: none !important
  }

  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .6rem
  }

  .nav-inner .brand {
    order: 1;
    justify-self: start
  }

  .nav-inner .nav-burger {
    order: 2;
    justify-self: center
  }

  .nav-inner .nav-cta {
    order: 3;
    justify-self: end
  }
}

@media(max-width:560px) {
  .nav-inner {
    padding-left: 4%;
    padding-right: 4%
  }

  .nav-cta {
    padding: .62rem 1rem;
    font-size: .82rem
  }
}

/* Menu mobilne — czytelna hierarchia: pozycje główne vs podrzędne */
@media(max-width:980px) {
  .mobile-menu a:not(.btn) {
    font-size: 1.5rem;
    padding: .62rem 0;
  }

  /* pozycje główne — mocne, z odstępem grupującym u góry */
  .mobile-menu a:not(.btn):not(.mm-sub) {
    color: var(--cream);
    margin-top: .55rem;
  }

  /* pozycje podrzędne — mniejsze, wcięte, stonowane, z markerem */
  .mobile-menu a.mm-sub {
    font-size: 1.02rem;
    padding: .42rem 0 .42rem 1.5rem;
    color: rgba(244, 240, 231, .72);
    border-bottom-color: rgba(255, 255, 255, .05);
  }

  .mobile-menu a.mm-sub::before {
    content: "\203A";
    margin-right: .5rem;
    color: var(--gold);
  }
}

/* Desktop: zagęszczenie paska, by zmieścił się dłuższy przycisk „Zarezerwuj termin" */
@media(min-width:981px) {
  .nav-inner {
    padding-left: 3%;
    padding-right: 3%;
    gap: 1rem
  }

  .nav-links {
    gap: 1.3rem;
    font-size: .8rem;
    letter-spacing: .08em
  }

  .nav-tel {
    font-size: .8rem;
    margin-right: .55rem;
    letter-spacing: .03em
  }

  .nav-cta {
    padding: .58rem 1.05rem;
    font-size: .76rem;
    white-space: nowrap
  }
}

/* Węższe ekrany desktopowe (laptopy ~981-1300px): dociśnięcie odstępów i ukrycie telefonu,
   żeby menu zmieściło się w jednej linii bez zawijania pozycji */
@media(min-width:981px) and (max-width:1300px) {
  .nav-inner {
    gap: .7rem
  }

  .nav-links {
    gap: .85rem;
    font-size: .72rem
  }

  .nav-tel {
    display: none
  }
}

/* Mobile: dłuższy przycisk w pasku — mniejsza czcionka, by się mieścił */
@media(max-width:560px) {
  .nav-cta {
    font-size: .7rem;
    padding: .55rem .8rem
  }
}