/* =============================================================================
   KAHN CLINICS — site.css
   A calm, trustworthy women's-health design system.
   Palette: deep petrol/teal (authority) · soft rose (warmth) · sage (calm) ·
   clinical white. Type: Fraunces (display serif) + Inter (body). WCAG-AA.
   ============================================================================= */

:root {
  /* — brand — */
  --petrol:      #0f4c5c;   /* primary: deep teal-petrol */
  --petrol-700:  #0b3a47;
  --petrol-900:  #07262f;
  --teal:        #1d7a8c;   /* mid teal for accents/links */
  --teal-300:    #7fbfca;
  --rose:        #e8a0a8;   /* soft blush accent */
  --rose-600:    #c76b76;   /* rose for CTAs / emphasis */
  --rose-50:     #fbeef0;
  --sage:        #e7efe9;   /* calm surface tint */
  --sage-200:    #cfe0d4;
  --gold:        #c9a961;   /* subtle trust/award detail */

  /* — neutrals — */
  --ink:         #1c2b2f;   /* body text */
  --ink-soft:    #4a5a5e;   /* secondary text */
  --muted:       #6b7a7e;
  --line:        #dce5e3;   /* hairlines */
  --line-soft:   #eaf1ee;
  --surface:     #ffffff;
  --surface-2:   #f6faf8;   /* page background */
  --cream:       #fcf9f4;

  /* — semantics — */
  --ok:          #2f8f5b;
  --warn:        #b8860b;
  --err:         #c0392b;

  /* — system — */
  --radius:      14px;
  --radius-lg:   22px;
  --radius-sm:   9px;
  --shadow-sm:   0 1px 2px rgba(7,38,47,.06), 0 1px 3px rgba(7,38,47,.04);
  --shadow:      0 4px 14px rgba(7,38,47,.08), 0 2px 6px rgba(7,38,47,.05);
  --shadow-lg:   0 18px 50px rgba(7,38,47,.16);
  --wrap:        1140px;
  --ease:        cubic-bezier(.22,.61,.36,1);

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ───────────────────────────────────────────────────────────────── reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--petrol); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--petrol-900); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
strong { font-weight: 600; color: var(--petrol-900); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--petrol); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
section { padding-block: clamp(3rem, 7vw, 5.5rem); }

/* ─────────────────────────────────────────────────────────────── buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .92rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s;
  text-align: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .6rem 1.05rem; font-size: .92rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }

.btn-cta      { background: var(--rose-600); color: #fff; box-shadow: 0 6px 18px rgba(199,107,118,.35); }
.btn-cta:hover{ background: #b65a66; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(199,107,118,.42); }
.btn-primary  { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-700); color: #fff; transform: translateY(-2px); }
.btn-ghost    { background: transparent; color: var(--petrol); border-color: var(--sage-200); }
.btn-ghost:hover { background: var(--sage); color: var(--petrol); }
.btn-navy     { background: var(--petrol); color: #fff; }
.btn-whatsapp { background: #25d366; color: #063; }
.btn-whatsapp:hover { background: #1ebe5b; color: #042; }
.btn-white    { background: #fff; color: var(--petrol); }
.btn-white:hover { background: var(--cream); color: var(--petrol-900); }

/* ──────────────────────────────────────────────────────────────── top bar */
.top-bar { background: var(--petrol-900); color: #cfe6ea; font-size: .86rem; }
.top-bar .wrap { display: flex; gap: 1.4rem; align-items: center; justify-content: flex-end; padding-block: .5rem; }
.top-bar a { color: #cfe6ea; display: inline-flex; align-items: center; gap: .4rem; }
.top-bar a:hover { color: #fff; }
.top-bar .tb-spacer { margin-right: auto; font-style: italic; color: var(--teal-300); }

/* ──────────────────────────────────────────────────────────────── header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner { max-width: var(--wrap); margin-inline: auto; padding: .6rem clamp(1.1rem,4vw,2rem); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand img, .brand svg { height: 50px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--font-display); font-size: 1.32rem; color: var(--petrol-900); letter-spacing: -.02em; }
.brand-text span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.main-nav > a, .nav-item > a { padding: .55rem .85rem; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .98rem; }
.main-nav > a:hover, .nav-item > a:hover { background: var(--sage); color: var(--petrol); }
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
.nav-item > a::after { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: .6; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 260px; padding: .5rem; opacity: 0; visibility: hidden; transition: all .22s var(--ease); z-index: 50;
}
.nav-item:hover .dropdown, .nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 9px; color: var(--ink); font-size: .95rem; }
.dropdown a:hover { background: var(--sage); color: var(--petrol); }
.dropdown-icon { font-size: 1.1rem; width: 1.5rem; text-align: center; }

.header-actions { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.header-phone { font-weight: 700; color: var(--petrol-900); font-size: 1.02rem; }
.header-phone:hover { color: var(--rose-600); }

.nav-toggle { display: none; background: none; border: 0; color: var(--petrol-900); cursor: pointer; padding: .4rem; }
.nav-toggle .icon-close { display: none; }

/* ───────────────────────────────────────────────────── mobile drawer */
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(7,38,47,.45); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 110; }
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav {
  position: fixed; top: 0; right: 0; height: 100%; width: min(360px, 86vw);
  background: #fff; z-index: 120; transform: translateX(100%); transition: transform .32s var(--ease);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.mobile-nav-close { background: var(--sage); border: 0; width: 38px; height: 38px; border-radius: 10px; color: var(--petrol); cursor: pointer; display: grid; place-items: center; }
.mobile-nav-body { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; }
.mobile-nav-body a { display: block; padding: .8rem .6rem; border-radius: 9px; color: var(--ink); font-weight: 500; font-size: 1.05rem; }
.mobile-nav-body a:hover { background: var(--sage); }
.mobile-nav-section { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.1rem .6rem .3rem; }
.mobile-nav-footer { padding: 1.1rem 1.2rem; border-top: 1px solid var(--line); }

/* ──────────────────────────────────────────────────────────────── hero */
.hero { position: relative; background:
  radial-gradient(1200px 500px at 85% -10%, rgba(232,160,168,.18), transparent 60%),
  linear-gradient(160deg, var(--cream) 0%, var(--sage) 100%);
  overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--sage-200); color: var(--petrol); font-size: .82rem; font-weight: 600; padding: .4rem .9rem; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47,143,91,.18); }
.hero h1 { margin-bottom: .6rem; }
.hero h1 em { font-style: italic; color: var(--rose-600); }
.hero-sub { font-size: 1.16rem; color: var(--ink-soft); max-width: 38ch; margin-bottom: 1.6rem; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .9rem; color: var(--ink-soft); }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust svg { color: var(--ok); flex-shrink: 0; }

.hero-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.7rem; border: 1px solid var(--line-soft); }
.hero-card h2 { font-size: 1.3rem; margin-bottom: .3rem; }
.hero-card .muted { color: var(--muted); font-size: .92rem; margin-bottom: 1.1rem; }

/* generic section heading */
.section-head { text-align: center; max-width: 56ch; margin: 0 auto clamp(2rem,4vw,3rem); }
.section-head .eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: .7rem; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section-head.left { text-align: left; margin-inline: 0; }

/* ───────────────────────────────────────────────────────── service cards */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 1.3rem; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .2s var(--ease), box-shadow .25s, border-color .2s; position: relative; overflow: hidden; }
.svc-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--teal), var(--rose)); opacity: 0; transition: opacity .25s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sage-200); }
.svc-card:hover::before { opacity: 1; }
.svc-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--sage); color: var(--petrol); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1rem; }
.svc-card h3 { font-size: 1.22rem; margin-bottom: .4rem; }
.svc-card p { font-size: .96rem; color: var(--ink-soft); margin-bottom: 1rem; }
.svc-card .svc-link { font-weight: 600; color: var(--teal); display: inline-flex; align-items: center; gap: .35rem; font-size: .95rem; }
.svc-card .svc-link::after { content: '→'; transition: transform .2s; }
.svc-card:hover .svc-link::after { transform: translateX(4px); }
.svc-card.is-sensitive .svc-icon { background: var(--rose-50); color: var(--rose-600); }

/* ────────────────────────────────────────────────────────────── trust band */
.trust-band { background: var(--petrol); color: #eaf6f8; }
.trust-band .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.6rem; }
.trust-cell { text-align: center; }
.trust-cell strong { display: block; font-family: var(--font-display); font-size: 2.4rem; color: #fff; }
.trust-cell span { font-size: .94rem; color: var(--teal-300); }

/* ──────────────────────────────────────────────────────────── steps / how */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1.5rem; counter-reset: step; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.step-card .step-num { counter-increment: step; width: 40px; height: 40px; border-radius: 50%; background: var(--rose-50); color: var(--rose-600); font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; display: grid; place-items: center; margin-bottom: .9rem; }
.step-card .step-num::before { content: counter(step); }
.step-card h3 { font-size: 1.12rem; }
.step-card p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ──────────────────────────────────────────────────────────── check lists */
.check-list { list-style: none; padding: 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink-soft); }
.check-list li::before { content: ''; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--sage) 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='%230f4c5c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ─────────────────────────────────────────────────────────────── split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--sage); aspect-ratio: 4/3; display: grid; place-items: center; color: var(--petrol); }

/* ─────────────────────────────────────────────────── prose (article body) */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose > :first-child { margin-top: 0; }
.prose blockquote { margin: 1.5rem 0; padding: .8rem 1.3rem; border-left: 4px solid var(--rose); background: var(--rose-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--petrol-900); font-style: italic; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }

/* content-engine section blocks on location pages */
.content-section { margin-bottom: 2rem; }
.content-section h2 { font-size: 1.5rem; }

/* ─────────────────────────────────────────────────────────── testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 1.3rem; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.testimonial .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .6rem; }
.testimonial p { font-size: 1rem; color: var(--ink); margin-bottom: .9rem; }
.testimonial .who { font-size: .9rem; color: var(--muted); font-weight: 600; }
.testimonial .who span { font-weight: 400; }
/* carousel (built by JS) */
.testimonial-carousel-wrap { position: relative; }
.testimonial-carousel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; scrollbar-width: none; }
.testimonial-carousel::-webkit-scrollbar { display: none; }
.testimonial-carousel .testimonial { scroll-snap-align: start; flex: 0 0 clamp(260px, 31%, 360px); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.2rem; }
.carousel-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--petrol); font-size: 1.1rem; cursor: pointer; transition: all .2s; }
.carousel-btn:hover { background: var(--petrol); color: #fff; }
.carousel-dots { display: flex; gap: .4rem; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--sage-200); cursor: pointer; padding: 0; }
.carousel-dot.active { background: var(--rose-600); width: 22px; border-radius: 4px; }

/* ─────────────────────────────────────────────────────────────── team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1.4rem; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.team-photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; background: var(--sage); display: grid; place-items: center; color: var(--petrol); font-family: var(--font-display); font-size: 1.8rem; }
.team-card h3 { font-size: 1.15rem; margin-bottom: .15rem; }
.team-card .role { color: var(--teal); font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }
.team-card .creds { font-size: .86rem; color: var(--muted); }
.team-card .reg { display: inline-block; margin-top: .6rem; font-size: .76rem; background: var(--sage); color: var(--petrol); padding: .25rem .6rem; border-radius: 999px; }

/* ───────────────────────────────────────────────────────────────── FAQ */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { padding: 1.1rem 1.4rem; font-weight: 600; color: var(--petrol-900); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.04rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--rose-600); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────────────── coverage / areas */
.area-cloud { display: flex; flex-wrap: wrap; gap: .6rem; }
.area-chip { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.05rem; font-size: .94rem; color: var(--petrol); font-weight: 500; transition: all .18s; }
.area-chip:hover { background: var(--petrol); color: #fff; border-color: var(--petrol); transform: translateY(-1px); }
.province-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; }
.province-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; transition: all .2s; }
.province-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.province-card h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.province-card .count { color: var(--muted); font-size: .9rem; }

/* ───────────────────────────────────────────────────────── CTA band */
.cta-band { background: linear-gradient(135deg, var(--petrol) 0%, var(--petrol-900) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem,5vw,3.5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(232,160,168,.3), transparent 70%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe6ea; max-width: 50ch; margin-inline: auto; font-size: 1.1rem; }
.cta-band .btn { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────────────────── breadcrumbs */
.crumbs { font-size: .86rem; color: var(--muted); padding-block: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: var(--teal); }
.crumbs span.sep { opacity: .5; }

/* page header (interior pages) */
.page-hero { background: linear-gradient(160deg, var(--cream), var(--sage)); border-bottom: 1px solid var(--line-soft); }
.page-hero .wrap { padding-block: clamp(2rem,5vw,3.5rem); }
.page-hero h1 { margin-bottom: .4rem; }
.page-hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.badge-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; background: #fff; border: 1px solid var(--sage-200); color: var(--petrol); padding: .35rem .8rem; border-radius: 999px; }

/* internal-link lattice */
.link-lattice { background: var(--sage); border-radius: var(--radius); padding: 1.6rem; }
.link-lattice h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.link-lattice .area-cloud .area-chip { background: #fff; }

/* layout helpers */
.layout-2col { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(2rem,4vw,3rem); align-items: start; }
.sticky-side { position: sticky; top: 90px; display: grid; gap: 1.2rem; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.aside-card h3 { font-size: 1.1rem; }

/* ──────────────────────────────────────────────────────────────── forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--petrol-900); margin-bottom: .4rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(29,122,140,.15); background: #fff; }
.field input[aria-invalid], .field select[aria-invalid], .field textarea[aria-invalid] { border-color: var(--err); }
.field-error { color: var(--err); font-size: .85rem; margin: .35rem 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: .65rem; align-items: flex-start; background: var(--sage); border-radius: var(--radius-sm); padding: .9rem 1rem; font-size: .9rem; color: var(--ink-soft); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--petrol); }
.consent a { font-weight: 600; }

.privacy-note { font-size: .85rem; color: var(--muted); display: flex; gap: .5rem; align-items: flex-start; margin-top: 1rem; }
.privacy-note svg { color: var(--ok); flex-shrink: 0; margin-top: 2px; }

/* radio / choice group */
.choice-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice-row label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; font-size: .94rem; color: var(--ink-soft); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 999px; padding: .55rem 1rem; cursor: pointer; transition: all .15s; margin: 0; }
.choice-row label:hover { border-color: var(--teal-300); }
.choice-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--petrol); }
.choice-row input:checked + span,
.choice-row label:has(input:checked) { color: var(--petrol-900); }
.choice-row label:has(input:checked) { border-color: var(--petrol); background: var(--sage); }

/* multi-step fieldset */
.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step .step-label { font-family: var(--font-display); font-size: 1.12rem; color: var(--petrol-900); margin-bottom: 1rem; padding: 0; }

/* multi-step */
.form-progress { display: flex; gap: .4rem; margin-bottom: 1.4rem; }
.form-progress .seg { flex: 1; height: 5px; border-radius: 999px; background: var(--line); transition: background .3s; }
.form-progress .seg.active { background: var(--rose-600); }
.form-progress .seg.done { background: var(--teal); }
.step-nav { display: flex; gap: .8rem; justify-content: space-between; margin-top: 1.2rem; }

.form-success { text-align: center; padding: 1.5rem; }
.form-success .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--sage); color: var(--ok); display: grid; place-items: center; margin: 0 auto 1rem; }
.form-success .ref { display: inline-block; font-family: var(--font-display); font-size: 1.3rem; color: var(--petrol-900); background: var(--rose-50); padding: .4rem 1rem; border-radius: 999px; margin: .4rem 0; }

/* alert / flash */
.alert { padding: .9rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-size: .94rem; }
.alert-ok  { background: #e8f6ee; color: #1d6b41; border: 1px solid #b8e0c8; }
.alert-err { background: #fdecea; color: #a02c20; border: 1px solid #f5c6c0; }
.alert-info{ background: var(--sage); color: var(--petrol-900); border: 1px solid var(--sage-200); }

/* contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.contact-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--sage); color: var(--petrol); display: grid; place-items: center; margin-bottom: .8rem; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.contact-card a, .contact-card p { font-size: .96rem; color: var(--ink-soft); margin: 0; }
.contact-card a:hover { color: var(--petrol); }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.6rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .2s var(--ease); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16/9; background: var(--sage); object-fit: cover; }
.post-card .post-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.post-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.post-card p { font-size: .94rem; color: var(--ink-soft); flex: 1; }
.post-card .meta { font-size: .82rem; color: var(--muted); margin-top: .8rem; }
.tag { display: inline-block; font-size: .76rem; background: var(--rose-50); color: var(--rose-600); padding: .2rem .65rem; border-radius: 999px; margin: 0 .3rem .3rem 0; }

/* ──────────────────────────────────────────────────────────────── footer */
.site-footer { background: var(--petrol-900); color: #b9d4d9; margin-top: 4rem; }
.footer-accent { height: 4px; background: linear-gradient(90deg, var(--teal), var(--rose), var(--gold)); }
.footer-grid { max-width: var(--wrap); margin-inline: auto; padding: clamp(2.5rem,5vw,3.5rem) clamp(1.1rem,4vw,2rem) 2rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-brand .brand-text b { color: #fff; }
.footer-note { font-size: .9rem; line-height: 1.6; margin: 1rem 0; max-width: 34ch; }
.footer-contact { list-style: none; padding: 0; display: grid; gap: .5rem; font-size: .9rem; }
.footer-contact a { color: #cfe6ea; }
.footer-contact a:hover { color: #fff; }
.footer-col-head { font-family: var(--font-display); color: #fff; font-size: 1.05rem; margin-bottom: .9rem; }
.footer-links { list-style: none; padding: 0; display: grid; gap: .5rem; font-size: .9rem; }
.footer-links a { color: #b9d4d9; }
.footer-links a:hover { color: #fff; padding-left: 3px; }
.footer-count { font-size: .72rem; background: var(--petrol-700); padding: 1px 7px; border-radius: 999px; margin-left: .3rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.08); }
.footer-legal .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 1.3rem; font-size: .84rem; color: #8fb3ba; }
.footer-legal a { color: #b9d4d9; }
.footer-legal-links { display: flex; gap: .6rem; align-items: center; }

/* compliance strip */
.compliance-strip { background: var(--petrol-700); }
.compliance-strip .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; align-items: center; padding-block: 1rem; font-size: .84rem; color: #cfe6ea; }
.compliance-strip .ci { display: inline-flex; align-items: center; gap: .5rem; }

/* ───────────────────────────────────────────────────────── mobile bar */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: #fff; border-top: 1px solid var(--line); padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom)); gap: .5rem; box-shadow: 0 -4px 16px rgba(7,38,47,.1); }
.mobile-bar .btn { flex: 1; padding: .8rem .5rem; font-size: .92rem; }

/* ───────────────────────────────────────────────── reveal animations */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.stack { display: grid; gap: 1rem; }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; background: var(--sage); color: var(--petrol); }
.divider-soft { border-top: 1px solid var(--line-soft); }

/* ──────────────────────────────────────────────────────────── responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .split, .layout-2col { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 64px; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar .wrap { justify-content: center; }
  .top-bar a:not(:first-child) { display: none; }
  .hero-cta-row .btn { flex: 1; }
}
