/* ==========================================================================
   גולדה 44 - style.css
   עולם ויזואלי: "קשת חמה". בהיר, מעוגל, טיפוגרפיה כבדה. ראה DESIGN.md.
   ========================================================================== */

@font-face {
  font-family: 'Rubik';
  font-style: normal; font-weight: 300 900; font-display: swap;
  src: url('../assets/fonts/rubik-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal; font-weight: 300 900; font-display: swap;
  src: url('../assets/fonts/rubik-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream:   #F6EFE7;
  --cream-2: #FBF7F2;
  --sand:    #E9DCCB;   /* פס סקשן חלופי */
  --peach:   #F2D2B7;
  --peach-d: #E8BE9C;
  --navy:    #0E1C29;
  --navy-2:  #204059;
  --muted:   #4D5B67;
  --on-navy-muted: rgba(246, 239, 231, 0.74);

  --font: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --container: 1240px;
  --gutter: clamp(18px, 4.5vw, 56px);
  --arch: 999px 999px 28px 28px;
  --r-card: 28px;
  --r-pill: 999px;
  --r-field: 18px;
  --section: clamp(56px, 9vw, 152px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 18px 50px -24px rgba(14, 28, 41, 0.34);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  scrollbar-color: var(--navy-2) var(--cream);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media (max-width: 1023px) { html { scroll-behavior: auto; } }
#lead-form { scroll-margin-top: 92px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.7; font-weight: 400;
  color: var(--navy); background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* משטחי דפדפן - חלק מהעיצוב, לא ברירת מחדל */
::selection { background: var(--peach); color: var(--navy); }
input, textarea { caret-color: var(--navy); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--navy-2); border-radius: 999px; border: 3px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.02; text-wrap: balance; }
h1, h2 { letter-spacing: -0.03em; }
h3 { letter-spacing: -0.02em; }
.list-card h3, .near-card h3, .unit h3 { letter-spacing: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
button { font: inherit; color: inherit; }
button, a, [role="button"] { touch-action: manipulation; }
button, .btn, .tab, .choice, .chip { user-select: none; -webkit-user-select: none; }

.tab:active, .g-btn:active, .nav-links a:active, .choice span:active,
.footer a:active, .lb-nav:active, .lb-close:active, .consent-link a:active {
  opacity: 0.7; transform: scale(0.98); transition: none;
}
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.on-navy :focus-visible, .lightbox :focus-visible, .nav-shell :focus-visible { outline-color: var(--peach); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.skip-link {
  position: absolute; inset-inline-start: 18px; top: -100px; z-index: 200;
  padding: 12px 22px; background: var(--navy); color: var(--cream); border-radius: var(--r-pill);
}
.skip-link:focus { top: 14px; }

/* ---------- Type ---------- */
h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
.lede { font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.fine { font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }

.section-head { max-width: 46rem; margin-inline: auto; text-align: center; margin-bottom: clamp(44px, 6vw, 76px); }
.section-head h2 { margin-bottom: 18px; }
.section-head p { color: var(--muted); max-width: 54ch; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 32px;
  border: 2px solid var(--navy); border-radius: var(--r-pill);
  font-weight: 600; font-size: 1.0625rem; line-height: 1.2; text-decoration: none;
  white-space: nowrap; cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 120ms ease-out, border-color 200ms var(--ease);
}
.btn:active { transform: scale(0.975); }
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-peach { background: var(--peach); border-color: var(--peach); color: var(--navy); }
.btn-sm { min-height: 46px; padding: 10px 22px; font-size: 0.9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
  .btn-outline:hover { background: var(--navy); color: var(--cream); }
  .btn-peach:hover { background: var(--peach-d); border-color: var(--peach-d); }
}
.on-navy .btn-outline { color: var(--cream); border-color: rgba(246,239,231,0.5); }
@media (hover: hover) and (pointer: fine) {
  .on-navy .btn-outline:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }
}

/* ---------- Nav: פיל צף ---------- */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 100; padding: 16px var(--gutter); pointer-events: none; }
.nav-shell {
  pointer-events: auto;
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--navy); color: var(--cream);
  border-radius: var(--r-pill);
  padding: 8px 10px 8px 24px;
  box-shadow: var(--shadow);
}
.wordmark { font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; padding-block: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  display: block; padding: 10px 16px; border-radius: var(--r-pill);
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--on-navy-muted);
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { background: rgba(246,239,231,0.1); color: var(--cream); }
}
.nav-toggle { display: none; }

@media (max-width: 1023px) {
  .nav { padding: 12px var(--gutter); }
  .nav-shell { padding: 8px 8px 8px 20px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 46px; padding: 8px 20px; cursor: pointer;
    background: var(--peach); color: var(--navy); border: 0; border-radius: var(--r-pill);
    font-size: 0.9375rem; font-weight: 600;
  }
  .nav-toggle-icon { position: relative; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
  .nav-toggle-icon::before, .nav-toggle-icon::after {
    content: ''; position: absolute; inset-inline: 0; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform 220ms var(--ease);
  }
  .nav-toggle-icon::before { top: -6px; }
  .nav-toggle-icon::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

  .nav-menu {
    display: none;
    position: fixed; inset-inline: var(--gutter); top: 84px;
    max-height: calc(100dvh - 104px); overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; background: var(--navy); border-radius: 32px; box-shadow: var(--shadow);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu.is-open::before { content: ''; position: fixed; inset: 0; background: rgba(14, 28, 41, 0.5); z-index: -1; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 15px 18px; font-size: 1.125rem; border-radius: 20px; }
  .nav-cta { margin-top: 10px; }
}
@media (min-width: 1024px) { .nav-menu { display: flex; align-items: center; gap: 12px; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(112px, 14vw, 156px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: clamp(30px, 4vw, 52px); max-width: 22ch; }
.hero .lede { margin-bottom: 20px; max-width: 20ch; }
.hero-text { color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-price {
  display: inline-flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-top: 30px; padding: 14px 26px; background: var(--peach); border-radius: var(--r-pill);
}
.hero-price strong { font-size: 1.625rem; font-weight: 400; letter-spacing: -0.02em; }
.hero-price span { font-size: 0.9375rem; color: var(--navy-2); }

/* הקשת - המהלך החתימתי */
.arch { position: relative; border-radius: var(--arch); overflow: hidden; background: var(--navy-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid .media-tag { display: none; }
.media-tag {
  position: absolute; bottom: 16px; inset-inline-end: 16px;
  padding: 6px 16px; border-radius: var(--r-pill);
  background: rgba(14, 28, 41, 0.78); color: var(--cream);
  font-size: 0.75rem; font-weight: 500;
}
.hero-media { aspect-ratio: 4 / 5; max-height: 74vh; }
@media (max-width: 899px) {
  .hero { padding-top: clamp(86px, 20vw, 118px); padding-bottom: 28px; }
  .hero-grid { display: flex; flex-direction: column; gap: 18px; }
  .hero-media { order: -1; aspect-ratio: 16 / 10; max-height: 32svh; }
  .hero h1 { font-size: clamp(2.1rem, 8.4vw, 2.75rem); margin-bottom: 14px; }
  .hero .lede { font-size: 1.125rem; margin-bottom: 0; max-width: none; }
  /* אותם נתונים בדיוק מופיעים בשורת הנתונים מיד מתחת, אז במובייל זו כפילות שדוחפת את ה-CTA מתחת לקיפול */
  .hero-text { display: none; }
  .hero-actions { margin-top: 18px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-price { margin-top: 14px; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .hero-copy { order: 1; }
  .hero-media { order: 2; aspect-ratio: 5 / 6; max-height: none; }
}

/* רגע התנועה היחיד.
   ברירת המחדל היא גלוי. JS מוסיף is-armed כדי להתחיל את האנימציה, ואז is-open.
   כך תקלה ב-JS, טאב ברקע או rAF מושהה לא משאירים טקסט בלתי נראה. */
@media (prefers-reduced-motion: no-preference) {
  .hero-media.is-armed img { transform: scale(1.06); transition: transform 1100ms var(--ease); }
  .hero-media.is-armed.is-open img { transform: scale(1); }
  .hero h1.is-armed, .hero-copy.is-armed > * { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
  .hero h1.is-armed.is-open { opacity: 1; transform: none; }
  .hero-copy.is-armed.is-open > * { opacity: 1; transform: none; }
  .hero-copy.is-armed.is-open > *:nth-child(1) { transition-delay: 60ms; }
  .hero-copy.is-armed.is-open > *:nth-child(2) { transition-delay: 130ms; }
  .hero-copy.is-armed.is-open > *:nth-child(3) { transition-delay: 200ms; }
  .hero-copy.is-armed.is-open > *:nth-child(4) { transition-delay: 270ms; }
  .hero-copy.is-armed.is-open > *:nth-child(5) { transition-delay: 340ms; }
}

/* ---------- Stats ---------- */
.stats { padding-block: clamp(34px, 4.5vw, 64px); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.stats-grid > div { background: var(--cream-2); border-radius: var(--r-card); padding: 26px 22px; }
.stats-grid > div:last-child { color: var(--cream); }
.stats-grid dt { font-size: 0.875rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.stats-grid > div:last-child dt { color: var(--on-navy-muted); }
.stats-grid dd { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
@media (min-width: 860px) {
  .stats-grid { grid-template-columns: repeat(5, 1fr); }
  .stats-grid > div:last-child { grid-column: auto; }
}

/* ---------- House ---------- */
.house-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
.house-copy h2 { margin-bottom: 22px; }
.house-copy p + p { margin-top: 16px; }
.house-copy > p { color: var(--muted); max-width: 52ch; }
.house-lists { display: grid; gap: 12px; margin-top: 38px; }
.list-card { background: var(--cream-2); border-radius: var(--r-card); padding: 24px 26px; }
.list-card.is-peach { background: var(--cream-2); }
.list-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.list-card li { font-weight: 400; }
.list-card li { padding-block: 5px; font-weight: 500; }
.house-media { aspect-ratio: 1 / 1; border-radius: var(--r-card); }
@media (min-width: 640px) { .house-lists { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .house-grid { grid-template-columns: 1.05fr 1fr; } }

/* ---------- Floors ---------- */
.tablist {
  display: flex; gap: 6px; padding: 8px;
  background: var(--cream-2); border-radius: var(--r-pill);
  margin-inline: auto; margin-bottom: 40px; width: fit-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
}
.tablist::-webkit-scrollbar { display: none; }
@media (max-width: 430px) {
  .tablist { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
             mask-image: linear-gradient(to left, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); }
}
.tab {
  flex: 0 0 auto; padding: 13px 26px; min-height: 50px;
  background: none; border: 0; border-radius: var(--r-pill);
  font-size: 1rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.tab[aria-selected="true"] { background: var(--navy); color: var(--cream); }
@media (hover: hover) and (pointer: fine) { .tab:not([aria-selected="true"]):hover { color: var(--navy); } }
@media (max-width: 430px) { .tab { padding: 13px 18px; font-size: 0.9375rem; } }
[data-tabs] { display: grid; }
.tabpanel { grid-area: 1 / 1; max-width: 62ch; margin-inline: auto; text-align: center; }
.tabpanel h3 { margin-bottom: 16px; }
.tabpanel p { color: var(--muted); }
.tabpanel[hidden] { visibility: hidden; display: block; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.chip { padding: 9px 20px; border-radius: var(--r-pill); background: var(--cream-2); font-size: 0.9375rem; font-weight: 500; }


/* ---------- קצב הסקשנים: פסי צבע מתחלפים ---------- */
.band-sand { background: var(--sand); }
/* חוק אחד: כרטיס על קרם הוא חול, כרטיס על חול הוא קרם בהיר. */
.list-card, .near-card, .chip, .tablist, .stats-grid > div, .option { background: var(--sand); }
.band-sand .list-card, .band-sand .near-card, .band-sand .chip,
.band-sand .tablist, .band-sand .stats-grid > div, .band-sand .option { background: var(--cream-2); }
.option-main, .band-sand .option-main { background: var(--navy); }
.stats-grid > div:last-child, .band-sand .stats-grid > div:last-child { background: var(--navy); }
.list-card, .near-card, .option, .stats-grid > div { box-shadow: 0 12px 28px -24px rgba(14, 28, 41, 0.28); }

/* ---------- זוג תמונות בסקשן הבריכה ---------- */
.pool-media-pair { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: end; }
.pool-media { aspect-ratio: 3 / 4; }
.pool-media { border-radius: var(--r-card); }
.pool-detail { aspect-ratio: 1 / 1; border-radius: var(--r-card); overflow: hidden; position: relative; background: var(--navy-2); }
.pool-detail img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 599px) {
  .pool-media-pair { grid-template-columns: 1fr; gap: 12px; }
  .pool-media { aspect-ratio: 4 / 5; }
  .pool-detail { aspect-ratio: 16 / 9; }
}

/* ---------- Pool ---------- */
.pool-grid { display: grid; gap: clamp(32px, 4vw, 64px); align-items: center; }
.pool-copy h2 { margin-bottom: 20px; }
.pool-copy > p { color: var(--muted); max-width: 46ch; }
@media (min-width: 1000px) { .pool-grid { grid-template-columns: 1fr 1.1fr; } }

/* ---------- Basement ---------- */
.basement { background: var(--navy); color: var(--cream); }
.basement-inner { padding: 0; }
.basement .section-head p { color: var(--on-navy-muted); }
.units { display: grid; gap: 16px; }
.unit { background: var(--navy-2); border-radius: var(--r-card); padding: clamp(28px, 3.5vw, 44px); }
.unit-rental { background: var(--peach); color: var(--navy); }
.unit h3 { margin-bottom: 14px; }
.unit > p { color: var(--on-navy-muted); }
.unit-rental > p { color: var(--navy-2); }
.unit .chips { justify-content: flex-start; margin-top: 24px; }
.unit .chip { background: rgba(246,239,231,0.12); color: var(--cream); }
.unit-rental .chip { background: rgba(14,28,41,0.09); color: var(--navy); }
.unit-rent { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(14,28,41,0.16); }
.unit-rent span { display: block; font-size: 0.8125rem; color: var(--navy-2); }
.unit-rent strong { font-size: 2.25rem; font-weight: 300; letter-spacing: -0.03em; }
.unit-rental .fine { color: var(--navy-2); margin-top: 10px; }
@media (min-width: 900px) { .units { grid-template-columns: 1fr 1fr; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.gallery-grid > figure { min-width: 0; }
@media (max-width: 759px) {
  .gallery-grid {
    display: flex; gap: 12px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-grid > figure { flex: 0 0 82%; scroll-snap-align: start; }
}
.g-btn {
  display: block; width: 100%; padding: 0; border: 0; background: var(--navy-2); cursor: pointer;
  border-radius: var(--r-card); overflow: hidden;
}
.g-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.g-a, .g-d, .g-f { aspect-ratio: 3 / 2; }
.g-b, .g-c, .g-e { aspect-ratio: 1 / 1; }
.g-b .g-btn { border-radius: var(--arch); }
@media (hover: hover) and (pointer: fine) { .g-btn:hover img { transform: scale(1.04); } }
@media (min-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(12, 1fr); gap: 18px; }
  .g-a, .g-d, .g-f { grid-column: span 7; }
  .g-b, .g-c, .g-e { grid-column: span 5; }
}

/* ---------- Location ---------- */
.location-grid { display: grid; gap: clamp(32px, 4vw, 64px); }
.location-copy h2 { margin-bottom: 20px; }
.location-copy p + p { margin-top: 14px; }
.location-copy > p { color: var(--muted); max-width: 48ch; }
.location-copy .btn { margin-top: 30px; }
.near { display: grid; gap: 12px; }
.near-card { background: var(--cream-2); border-radius: var(--r-card); padding: 26px 28px; }
.near-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.near-card li { padding-block: 5px; color: var(--muted); }
@media (min-width: 620px) { .near { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .location-grid { grid-template-columns: 1fr 1.15fr; } }

/* ---------- Price ---------- */
.options { display: grid; gap: 16px; }
.option { border-radius: 36px; padding: clamp(32px, 4vw, 52px); background: var(--cream-2); }
.option-main { background: var(--navy); color: var(--cream); }
.option-tag { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.option-main .option-tag { color: var(--on-navy-muted); }
.option h3 { margin-bottom: 14px; }
.option-price { font-size: clamp(3rem, 6.5vw, 5rem); font-weight: 300; line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 18px; }
.option-price-add { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.option > p:last-of-type { color: var(--muted); max-width: 42ch; }
.option-main > p:last-of-type { color: var(--on-navy-muted); }
.price .fine { text-align: center; margin-top: 26px; }
@media (min-width: 900px) { .options { grid-template-columns: 1.15fr 1fr; } }

/* ---------- Contact ---------- */
.contact-inner { background: var(--peach); border-radius: 44px; padding: clamp(40px, 6vw, 88px) clamp(26px, 4vw, 72px); }
.contact-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-copy h2 { margin-bottom: 18px; }
.contact-copy > p { color: var(--navy-2); max-width: 40ch; }
.contact-person { margin-top: 34px; display: grid; gap: 10px; justify-items: start; }
.contact-name { font-weight: 700; font-size: 1.0625rem; }
.contact-phone {
  font-size: 2.5rem; font-weight: 300; letter-spacing: -0.03em; text-decoration: none;
  direction: ltr; unicode-bidi: isolate; padding-block: 4px;
}
.contact-person .btn { margin-top: 10px; }
@media (max-width: 719px) {
  .contact-inner { padding-inline: 0; background: transparent; border-radius: 0; }
  .lead-form { padding: 22px 18px; }
}
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }

/* ---------- Form ---------- */
.lead-form { display: grid; gap: 20px; background: var(--cream); border-radius: 32px; padding: clamp(26px, 3.5vw, 40px); }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 0.9375rem; font-weight: 600; padding: 0; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; min-height: 56px; padding: 14px 20px;
  font: inherit; font-size: 16px; font-weight: 500; color: var(--navy);
  background: var(--cream-2); border: 2px solid #8E8274; border-radius: var(--r-field);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.field input::placeholder { color: var(--muted); }
.field input:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14,28,41,0.12); }
.field.is-invalid input { border-color: #A03028; }
.error { font-size: 0.875rem; font-weight: 500; color: #A03028; }
.error:empty { display: none; }

.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 8px;
  border: 2px solid #8E8274; border-radius: var(--r-field); background: var(--cream-2);
  font-weight: 600; cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.choice input:checked + span { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.choice input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 3px; }
.field.is-invalid .choice span { border-color: #A03028; }

.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.9375rem; line-height: 1.55; }
.consent input { flex: 0 0 auto; width: 26px; height: 26px; margin: 0; accent-color: var(--navy); }
.consent-link { margin-top: -8px; }
.consent-link a { display: inline-block; padding: 11px 4px; font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.field-consent.is-invalid .consent span { color: #A03028; }

.btn-loading { display: none; }
.lead-form.is-loading .btn-label { display: none; }
.lead-form.is-loading .btn-loading { display: inline; }
.form-fail { display: grid; gap: 14px; justify-items: start; padding: 22px 24px; border-radius: var(--r-card); background: var(--peach); color: var(--navy); }
.form-fail[hidden] { display: none; }

/* ---------- Footer ---------- */
.footer { padding: clamp(56px, 7vw, 88px) 0 calc(44px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; gap: 28px; }
.footer-wordmark { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; color: var(--navy); }
.footer p, .footer a { color: var(--muted); }
.footer a { display: inline-block; padding-block: 11px; text-decoration: none; font-weight: 500; }
.footer nav { display: flex; gap: 22px; }
.footer-legal { font-size: 0.8125rem; padding-top: 26px; border-top: 1px solid rgba(14,28,41,0.12); }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--navy); text-decoration: underline; } }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ---------- Sticky bar ---------- */
.sticky-bar { display: none; }
@media (max-width: 1023px) {
  .sticky-bar {
    position: fixed; inset-inline: 12px; bottom: 12px; z-index: 90;
    display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px;
    padding: 8px; background: var(--navy); border-radius: var(--r-pill);
    box-shadow: var(--shadow); margin-bottom: env(safe-area-inset-bottom, 0px);
    transition: transform 320ms var(--ease), opacity 320ms var(--ease);
  }
  .sticky-bar.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }
  .sticky-bar .btn { min-height: 48px; padding-inline: 14px; font-size: 0.9375rem; border-width: 0; }
  .sticky-bar .btn-outline { color: var(--cream); background: rgba(246,239,231,0.12); }
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: var(--navy); color: var(--cream); display: none;
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: rgba(14, 28, 41, 0.96); }
.lb-close {
  justify-self: start; margin: 16px var(--gutter);
  min-height: 46px; padding: 10px 22px; cursor: pointer; font-weight: 600;
  background: rgba(246,239,231,0.12); color: var(--cream); border: 0; border-radius: var(--r-pill);
}
.lb-stage { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding-inline: 10px; min-height: 0; touch-action: pan-y pinch-zoom; }
.lb-figure { display: grid; grid-template-rows: 1fr auto; gap: 14px; height: 100%; min-height: 0; justify-items: center; align-content: center; }
.lb-figure img { max-height: calc(100dvh - 210px); width: auto; max-width: 100%; height: auto; object-fit: contain; border-radius: 20px; }
.lb-figure figcaption { font-size: 0.9375rem; color: var(--on-navy-muted); text-align: center; padding-inline: 14px; max-width: 54ch; }
.lb-nav {
  width: 52px; height: 52px; font-size: 1.75rem; line-height: 1; cursor: pointer;
  background: rgba(246,239,231,0.12); color: var(--cream); border: 0; border-radius: 50%;
  transition: background-color 180ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .lb-nav:hover, .lb-close:hover { background: rgba(246,239,231,0.24); } }
.lb-counter { text-align: center; padding: 12px 0 calc(18px + env(safe-area-inset-bottom, 0px)); font-size: 0.875rem; color: var(--on-navy-muted); }
@media (max-width: 620px) {
  .lb-figure img { max-height: calc(100dvh - 150px); width: 100%; object-fit: contain; }
  .lb-stage { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
  .lb-prev { inset-inline-start: 10px; }
  .lb-next { inset-inline-end: 10px; }
}

/* ---------- Sub pages ---------- */
.page { padding-top: clamp(124px, 14vw, 180px); padding-bottom: var(--section); min-height: 70svh; }
.page-inner { max-width: 62ch; }
.page h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 24px; }
.page h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin: 42px 0 12px; }
.page p { color: var(--muted); }
.page p + p { margin-top: 14px; }
.page .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.page ul.bullets { margin-top: 12px; display: grid; gap: 10px; }
.page ul.bullets li { padding: 14px 22px; background: var(--cream-2); border-radius: var(--r-field); color: var(--muted); }
.page .todo { margin-top: 30px; padding: 18px 24px; border-radius: var(--r-card); background: var(--peach); font-size: 0.875rem; color: var(--navy-2); }
