/* ════════════════════════════════════════════════════════════════
   SM ZIELONE WZGÓRZA — system projektowy (blend A „Osiedle" + B „Klarownie")
   Paleta: ŚWIEŻY LIŚĆ — soczysta szmaragdowa zieleń · białe tło · pomarańczowy akcent
   Typografia: Spectral (display serif) + Hanken Grotesk (UI/body) + JetBrains Mono (meta)
   Ten plik = źródło ustawień globalnych dla Flatsome (kolory + typografia).
   ════════════════════════════════════════════════════════════════ */

:root {
  /* — tła — */
  --bg:        #FFFFFF;   /* główne, czysta biel */
  --bg-alt:    #EFF6ED;   /* przekładki sekcji — delikatny liść */
  --paper:     #F5FAF3;   /* karty / pola */
  --deep:      #0C2E1A;   /* sekcje ciemne, stopka — głęboki las */

  /* — tekst — */
  --ink:       #0F1A12;
  --ink-soft:  #3E4A41;
  --ink-faint: #7C8A80;

  /* — zieleń (soczysta, szmaragdowa) — */
  --green:      #147A3C;
  --green-mid:  #22A357;
  --green-pale: #9FE0B5;
  --green-tint: rgba(20, 122, 60, 0.08);

  /* — akcent (ciepły pomarańcz, jesienne liście — używać oszczędnie) — */
  --clay:      #D98324;
  --clay-tint: rgba(217, 131, 36, 0.13);

  /* — linie — */
  --line:      rgba(15, 26, 18, 0.13);
  --line-soft: rgba(15, 26, 18, 0.06);

  /* — statusy nieruchomości — */
  --st-free:   #147A3C;   /* wolny */
  --st-resv:   #C99A3F;   /* rezerwacja nieopłacona */
  --st-sold:   #B25140;   /* sprzedany / zarezerwowany opłacony */

  --radius:    8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --maxw: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  font-feature-settings: "ss01";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; }
em, i { font-style: normal; }

/* — utility — */
.serif  { font-family: "Spectral", "Times New Roman", serif; font-weight: 400; letter-spacing: -0.01em; }
.italic { font-style: italic; }
.mono   { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.06em; }
.zw-container { width: min(var(--maxw), 100% - 96px); margin: 0 auto; }
.green-text { color: var(--green); }

/* eyebrow — mono z kropką (sygnatura redakcyjna z wariantu B) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; background: var(--green-mid);
  border-radius: 50%; display: inline-block;
}

/* ───────────── Przyciski ───────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; transition: all .15s ease; cursor: pointer;
}
.btn-primary { background: var(--green); color: var(--paper); }
.btn-primary:hover { background: #0F5C2D; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: #9d6b43; }
.btn-arrow { transition: transform .15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }

/* status pills */
.pill {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 10px; border-radius: 5px; display: inline-flex; align-items: center; gap: 7px;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.pill-free { background: var(--green-tint); color: var(--green); }
.pill-free::before { background: var(--st-free); }
.pill-resv { background: rgba(201,154,63,.16); color: #8a6312; }
.pill-resv::before { background: var(--st-resv); }
.pill-sold { background: rgba(178,81,64,.13); color: #8f3a2c; }
.pill-sold::before { background: var(--st-sold); }

/* ───────────── Utility strip (komunikat nagły) ───────────── */
.strip {
  background: var(--deep); color: rgba(251,247,236,.72);
  font-size: 12.5px; padding: 9px 0;
}
.strip .zw-container { display: flex; align-items: center; gap: 18px; min-height: 22px; }
.strip a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.strip .urgent {
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--deep); background: var(--clay);
  padding: 3px 8px; border-radius: 4px; font-weight: 500;
}
.strip .right { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }

/* ───────────── Header ───────────── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 32px; height: 78px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 60px; width: auto; display: block; }
.menu { display: flex; gap: 2px; align-items: center; }
.menu a {
  padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-soft); transition: all .15s ease;
}
.menu a:hover { color: var(--ink); background: rgba(30,38,32,.05); }
.menu a.active { color: var(--green); background: var(--green-tint); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft); transition: all .15s ease;
}
.icon-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ───────────── Sekcja ───────────── */
section.block { padding: 112px 0; }
section.block.tight { padding: 84px 0; }
section.block.alt { background: var(--bg-alt); }
section.block.paper { background: var(--paper); }
section.block.deep { background: var(--deep); color: var(--paper); }
section.block.deep .eyebrow { color: var(--green-pale); }
section.block.deep .eyebrow::before { background: var(--green-pale); }

/* nagłówek sekcji — asymetryczny, z indeksem (sygnatura B) */
.section-head {
  display: grid; grid-template-columns: 190px 1fr 1fr; gap: 40px;
  align-items: start; margin-bottom: 60px;
}
.section-head .label { padding-top: 6px; }
.section-head .idx { font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: var(--ink-faint); margin-top: 10px; letter-spacing: 0.06em; }
.section-head h2 {
  font-family: "Spectral", serif; font-weight: 400;
  font-size: clamp(38px, 4.4vw, 60px); line-height: 1.04;
  letter-spacing: -0.02em; margin: 0;
}
.section-head h2 em { color: var(--green); }
.section-head .desc { font-size: 16.5px; color: var(--ink-soft); margin: 0; padding-top: 10px; max-width: 40ch; }
section.block.deep .section-head .idx { color: rgba(188,201,188,.6); }
section.block.deep .section-head h2 em { color: var(--green-pale); }

/* ───────────── Karty / komponenty współdzielone ───────────── */
.placeholder {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(30,38,32,0.045) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #D7E8D2 0%, #BFDCC4 100%);
  color: var(--ink-soft); display: flex; align-items: flex-end; padding: 22px;
  font-family: "JetBrains Mono", monospace; font-size: 10.5px;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4;
}
.placeholder.dark {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #1A4A2C 0%, #0C2E1A 100%);
  color: rgba(251,247,236,.65);
}

/* ───────────── Formularze ───────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line);
  background: var(--bg); border-radius: var(--radius); font: inherit; color: var(--ink);
  transition: all .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 3px var(--green-tint);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--ink-soft); max-width: 30ch; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-soft); }
.checkbox-row input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--green); flex-shrink: 0; }

/* ───────────── Footer ───────────── */
footer.site { background: var(--deep); color: rgba(251,247,236,.75); padding: 80px 0 34px; }
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 54px; border-bottom: 1px solid rgba(251,247,236,.1);
}
.foot-logo { display: inline-flex; padding: 13px 18px; background: var(--paper); border-radius: 10px; margin-bottom: 22px; }
.foot-logo img { height: 64px; width: auto; display: block; }
.foot-addr { font-size: 13.5px; color: rgba(251,247,236,.55); max-width: 34ch; margin: 0; line-height: 1.65; }
.foot-col h4 {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--green-pale); font-weight: 500; margin: 0 0 18px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.foot-col a { font-size: 14.5px; color: rgba(251,247,236,.75); transition: color .15s ease; }
.foot-col a:hover { color: var(--paper); }
.foot-bottom {
  padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: rgba(251,247,236,.5);
}
.foot-bottom a:hover { color: var(--paper); }
.foot-bottom .links { display: flex; gap: 22px; }

/* ───────────── Dostępność ───────────── */
:focus-visible { outline: 2px solid var(--green-mid); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
body.a11y-large { font-size: 18px; }
body.a11y-large .hero h1 { font-size: clamp(60px, 6.6vw, 92px); }
body.a11y-contrast {
  --bg: #FFFDF5; --paper: #FFFDF5; --bg-alt: #F2EEDF;
  --ink: #000; --ink-soft: #14210E; --green: #064F23; --line: #000;
}

/* widget dostępności — pływający (zaznaczenie, docelowo wtyczka) */
.a11y-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: var(--green); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(30,38,32,.28); transition: all .15s ease;
}
.a11y-fab:hover { background: #0F5C2D; transform: translateY(-2px); }
.a11y-fab small {
  position: absolute; bottom: -6px; right: -6px; background: var(--clay); color: #fff;
  font-family: "JetBrains Mono", monospace; font-size: 7px; letter-spacing: 0.04em;
  padding: 2px 4px; border-radius: 4px; text-transform: uppercase;
}

/* breadcrumb */
.crumb {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.crumb a:hover { color: var(--green); }
.crumb .sep { opacity: 0.5; }

/* page hero (podstrony) */
.page-hero { padding: 56px 0 12px; }
.page-hero h1 {
  font-family: "Spectral", serif; font-weight: 400;
  font-size: clamp(44px, 5vw, 76px); line-height: 1.02; letter-spacing: -0.025em;
  margin: 20px 0 0; color: var(--ink);
}
.page-hero h1 em { color: var(--green); }
.page-hero .lede { font-size: 18.5px; color: var(--ink-soft); max-width: 56ch; margin: 22px 0 0; }

/* ───────────── Menu — WordPress owija pozycje w <li>, których nie ma w makiecie ───────────── */
.menu li { display: contents; }

/* ───────────── Nawigacja mobilna (hamburger + panel off-canvas) ───────────── */
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .nav-actions .menu-toggle { display: inline-flex; }

  .nav > .menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);
    background: var(--bg); padding: 96px 20px 28px; overflow-y: auto;
    box-shadow: -16px 0 40px rgba(15,26,18,.18);
    transform: translateX(100%); transition: transform .28s ease;
    z-index: 70;
  }
  .nav > .menu.is-open { transform: translateX(0); }
  .nav > .menu a { width: 100%; padding: 14px 16px; font-size: 16px; border-radius: var(--radius); }

  .menu-backdrop {
    position: fixed; inset: 0; background: rgba(15,26,18,.45);
    z-index: 60; opacity: 0; pointer-events: none; transition: opacity .28s ease;
  }
  .menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

  header.site .brand { margin-right: 12px; }
  header.site .nav-actions .btn-primary span,
  header.site .nav-actions .btn-primary { padding: 10px 14px; }
}

body.menu-locked { overflow: hidden; }
