/* ==========================================================================
   SB HEALTH & WELLNESS LTD — Main stylesheet
   Mobile-first. Palette: Deep Teal, Soft Sage, Muted Champagne, Warm White.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font Licence — see /fonts) ---------- */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  --teal-900: #0F3638;
  --teal: #174E50;
  --teal-700: #23625F;
  --sage: #A8BDA9;
  --sage-600: #6F8C74;
  --champagne: #D9BE91;
  --champagne-700: #8A6A33; /* text-safe champagne on light backgrounds */
  --warm-white: #F8F8F4;
  --mint: #E7EFEB;
  --charcoal: #263433;
  --muted: #4E5F5D;
  --line: #D5DFDA;
  --white: #FFFFFF;
  --error: #A3352B;

  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 32px;
  --radius-organic: 46% 54% 42% 58% / 52% 40% 60% 48%;
  --shadow-soft: 0 18px 40px -24px rgba(23, 78, 80, 0.35);
  --shadow-card: 0 1px 2px rgba(23, 78, 80, 0.06), 0 12px 32px -20px rgba(23, 78, 80, 0.28);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--warm-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-700); }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
address { font-style: normal; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--teal);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.35rem, 6.2vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.15rem; }
em.accent { font-style: italic; color: var(--teal-700); }

:focus-visible {
  outline: 3px solid var(--champagne-700);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--teal); color: var(--white); padding: 0.75rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--mint { background: var(--mint); }
.section--teal { background: var(--teal); color: #E9F0EC; }
.section--teal h2, .section--teal h3 { color: var(--warm-white); }
.section--teal a { color: var(--champagne); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--champagne-700); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--teal .eyebrow { color: var(--champagne); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.section--teal .lead { color: #CFDDD6; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.8rem 1.5rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 0.98rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--teal); color: var(--warm-white); box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--teal-900); color: var(--white); transform: translateY(-1px); }
.btn--ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--ghost:hover { background: var(--teal); color: var(--warm-white); }
.btn--light { background: var(--warm-white); color: var(--teal); }
.btn--light:hover { background: var(--champagne); color: var(--teal-900); }
.btn--outline-light { border-color: rgba(248,248,244,.6); color: var(--warm-white); }
.btn--outline-light:hover { background: rgba(248,248,244,.12); color: var(--white); border-color: var(--warm-white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(23,78,80,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-phone { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--teal); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .3s ease, background-color .3s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--warm-white);
  padding: 1.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  opacity: 0; transform: translateY(-10px); visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.primary-nav.is-open { opacity: 1; transform: none; visibility: visible; }
.header-actions > .btn { display: none; }
@media (min-width: 520px) { .header-actions > .btn { display: inline-flex; } }
.primary-nav ul { list-style: none; display: grid; gap: 0.25rem; }
.primary-nav ul a {
  display: block; padding: 0.95rem 0.25rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-serif); font-size: 1.45rem; color: var(--teal); text-decoration: none;
}
.primary-nav ul a[aria-current="page"] { color: var(--champagne-700); }
.nav-contact { margin-top: 2rem; display: grid; gap: 0.75rem; }
.nav-contact .btn { width: 100%; }
body.nav-open { overflow: hidden; }

@media (min-width: 1040px) {
  .site-header {
    background: rgba(248, 248, 244, 0.92);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
  }
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; opacity: 1; transform: none; visibility: visible; background: transparent; padding: 0; overflow: visible;
  }
  .primary-nav ul { display: flex; gap: 0.15rem; }
  .primary-nav ul a {
    border: 0; padding: 0.5rem 0.8rem; font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500;
    color: var(--charcoal); border-radius: 999px; position: relative; white-space: nowrap;
  }
  .primary-nav ul a::after {
    content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.3rem; height: 1.5px;
    background: var(--champagne); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
  }
  .primary-nav ul a:hover::after, .primary-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
  .primary-nav ul a[aria-current="page"] { color: var(--teal); }
  .nav-contact { display: none; }
  .header-phone {
    display: inline-flex; align-items: center; gap: 0.45rem; color: var(--teal); font-weight: 600; font-size: 0.95rem;
    text-decoration: none; padding: 0.5rem 0.6rem; white-space: nowrap;
  }
  .header-phone svg { width: 18px; height: 18px; }
  .brand img { height: 50px; }
}
@media (min-width: 1040px) and (max-width: 1279px) {
  .header-phone span { display: none; }
  .primary-nav ul a { padding-inline: 0.6rem; font-size: 0.92rem; }
  .primary-nav ul a::after { left: 0.6rem; right: 0.6rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(4rem, 9vw, 7rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -220px; top: -160px;
  background: radial-gradient(circle at 40% 40%, var(--mint) 0%, rgba(231,239,235,0) 70%);
  border-radius: var(--radius-organic); z-index: -1;
}
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero h1 em { font-style: italic; color: var(--teal-700); font-weight: 400; }
.hero .lead { margin-bottom: 2rem; }
.hero-note { margin-top: 1.75rem; font-size: 0.92rem; color: var(--muted); display: flex; gap: 0.6rem; align-items: flex-start; max-width: 54ch; }
.hero-note svg { width: 18px; height: 18px; flex: none; margin-top: 0.25rem; color: var(--sage-600); }
.hero-media { position: relative; max-width: 520px; margin-inline: auto; width: 100%; }
.hero-media .frame {
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4 / 5; background: var(--mint);
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .blob {
  position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; left: -14%; bottom: -10%;
  background: var(--sage); opacity: .45; border-radius: var(--radius-organic);
}
.hero-media .ring {
  position: absolute; width: 120px; height: 120px; right: -18px; top: 18%;
  border: 1.5px solid var(--champagne); border-radius: 50%; z-index: -1;
}
.hero-badge {
  position: absolute; left: -6px; bottom: 9%;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 0.85rem 1.1rem; display: flex; align-items: center; gap: 0.75rem; max-width: 290px;
}
.hero-badge img { width: 40px; height: 40px; }
.hero-badge strong { display: block; font-family: var(--font-serif); color: var(--teal); font-weight: 500; line-height: 1.2; }
.hero-badge span { white-space: nowrap; font-size: 0.8rem; color: var(--muted); line-height: 1.35; display: block; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; }
  .hero-media { margin-inline: 0 0; justify-self: end; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; background: var(--mint); }
.page-hero::after {
  content: ""; position: absolute; right: -120px; bottom: -180px; width: 420px; height: 420px;
  border-radius: var(--radius-organic); background: var(--sage); opacity: .35;
}
.page-hero::before {
  content: ""; position: absolute; right: 12%; top: 18%; width: 90px; height: 90px;
  border: 1.5px solid var(--champagne); border-radius: 50%;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); max-width: 18ch; }
.breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--sage-600); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current="page"] { color: var(--teal); font-weight: 500; }

/* ---------- Split layouts ---------- */
.split { display: grid; gap: clamp(2.25rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
  .split--wide-text { grid-template-columns: 1.15fr 0.85fr; }
}
.media-organic { position: relative; }
.media-organic .frame { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 140px; overflow: hidden; box-shadow: var(--shadow-soft); background: var(--mint); }
.media-organic .frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.media-organic::before {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 60%; height: 60%;
  border: 1.5px solid var(--champagne); border-radius: var(--radius-lg) var(--radius-lg) 140px var(--radius-lg); z-index: -1;
}
.media-caption { font-size: 0.78rem; color: var(--muted); margin-top: 0.75rem; }

/* ---------- Cards / features ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 979px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--sage); }
.card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: 0.98rem; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 16px 16px 16px 4px;
  display: grid; place-items: center; background: var(--mint); color: var(--teal); margin-bottom: 1.15rem;
}
.icon-badge svg { width: 26px; height: 26px; }
.section--mint .card { background: var(--warm-white); }
.section--mint .icon-badge { background: var(--white); }

.feature-list { list-style: none; display: grid; gap: 1rem; margin-top: 1.5rem; }
.feature-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.feature-list svg { width: 22px; height: 22px; flex: none; color: var(--sage-600); margin-top: 0.2rem; }
.feature-list strong { color: var(--teal); font-weight: 600; }

/* ---------- Info / company details panel ---------- */
.info-panel {
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow-card);
}
.detail-list { list-style: none; display: grid; gap: 0; }
.detail-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.detail-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-list li:first-child { padding-top: 0; }
.detail-list .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--teal); }
.detail-list .ico svg { width: 20px; height: 20px; }
.detail-list .label { display: block; font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne-700); font-weight: 600; margin-bottom: 0.15rem; }
.detail-list .value { color: var(--charcoal); font-weight: 500; word-break: break-word; }
.detail-list a.value { color: var(--teal); text-decoration: none; }
.detail-list a.value:hover { text-decoration: underline; }

/* ---------- Banner image band ---------- */
.image-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; display: grid; align-items: end; }
.image-band picture, .image-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,54,56,.86) 0%, rgba(15,54,56,.55) 55%, rgba(15,54,56,.15) 100%); }
.image-band .band-content { position: relative; z-index: 1; padding: clamp(2rem, 5vw, 3.5rem); max-width: 620px; color: #E9F0EC; }
.image-band h2 { color: var(--warm-white); }
.image-band .eyebrow { color: var(--champagne); }

/* ---------- Placeholder: services to be confirmed ---------- */
.services-placeholder {
  border: 1.5px dashed var(--sage-600); border-radius: var(--radius-lg); background: var(--white);
  padding: clamp(1.75rem, 5vw, 3rem); text-align: center; max-width: 780px; margin-inline: auto;
}
.services-placeholder .icon-badge { margin-inline: auto; }
.services-placeholder p { font-size: 1.1rem; color: var(--charcoal); max-width: 52ch; margin-inline: auto; }

/* ---------- Notice / callouts ---------- */
.notice {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: #FBF6EC; border: 1px solid #EAD9B8; border-left: 4px solid var(--champagne);
  border-radius: var(--radius-sm); padding: 1rem 1.15rem; font-size: 0.95rem; color: var(--charcoal);
}
.notice svg { width: 22px; height: 22px; flex: none; color: var(--champagne-700); margin-top: 0.1rem; }
.notice p { margin: 0; }
.notice strong { color: var(--teal-900); }
.notice--emergency { background: var(--mint); border-color: var(--line); border-left-color: var(--teal); }
.notice--emergency svg { color: var(--teal); }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 1.75rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block;
  font-family: var(--font-serif); font-size: 2.1rem; color: var(--champagne-700); line-height: 1; margin-bottom: 0.9rem;
}
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--teal); color: #DCE7E1; padding: clamp(2.25rem, 6vw, 4.25rem);
  display: grid; gap: 2rem; align-items: center;
}
.cta::before {
  content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px;
  border-radius: var(--radius-organic); background: var(--teal-700); opacity: .8;
}
.cta::after {
  content: ""; position: absolute; width: 160px; height: 160px; right: 18%; bottom: -70px;
  border: 1.5px solid var(--champagne); border-radius: 50%; opacity: .6;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: var(--warm-white); margin-bottom: 0.4em; }
.cta p { color: #CFDDD6; margin: 0; max-width: 56ch; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.4fr auto; } }

/* ---------- Prose (privacy etc.) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 2.5rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose .confirm {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: .04em;
  background: #FBF6EC; color: var(--champagne-700); border: 1px solid #EAD9B8; border-radius: 999px; padding: 0.1rem 0.6rem;
}
.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }
.toc h2 { font-size: 1.1rem; margin: 0 0 0.75rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: .02em; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 1; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 2rem; } }
.toc li { margin-bottom: 0.35rem; break-inside: avoid; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow-card); }
.form-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.form-grid { display: grid; gap: 1.15rem; align-items: start; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.93rem; color: var(--teal-900); }
.field .opt { font-weight: 400; color: var(--muted); }
.field .req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--charcoal);
  background: var(--warm-white); border: 1.5px solid #C5D3CD; border-radius: 12px;
  padding: 0.8rem 0.95rem; min-height: 50px; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23174E50' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 18px; padding-right: 2.6rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sage-600); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px rgba(23,78,80,.14); }
.field .hint { font-size: 0.84rem; color: var(--muted); }
.field .error-msg { font-size: 0.86rem; color: var(--error); font-weight: 500; min-height: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); background: #FDF5F4; }
.checkbox { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.93rem; }
.checkbox input { width: 20px; height: 20px; margin-top: 0.2rem; accent-color: var(--teal); flex: none; }
.form-status { margin-top: 1rem; border-radius: 12px; padding: 0.9rem 1rem; font-size: 0.95rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--error { background: #FDF5F4; border: 1px solid #EBC3BE; color: var(--error); }
.form-status--info { background: var(--mint); border: 1px solid var(--line); color: var(--teal-900); }
.form-status a { font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.form-actions .small { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: #C5D5CE; padding-top: clamp(3.5rem, 8vw, 5.5rem); font-size: 0.95rem; }
.site-footer a { color: #E4ECE8; text-decoration: none; }
.site-footer a:hover { color: var(--champagne); text-decoration: underline; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.footer-brand img { height: 52px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 38ch; }
.site-footer h2 { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--champagne); margin-bottom: 1.1rem; }
.footer-links { list-style: none; display: grid; gap: 0.55rem; }
.footer-contact { list-style: none; display: grid; gap: 0.8rem; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 0.3rem; color: var(--sage); }
.footer-bottom { margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(197,213,206,.18); display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; font-size: 0.86rem; }
.footer-bottom p { margin: 0; }
.footer-disclaimer { font-size: 0.82rem; color: #9FB4AC; margin-top: 1.25rem; max-width: 60ch; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--teal); color: var(--warm-white); box-shadow: var(--shadow-soft);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--teal-900); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.text-center { text-align: center; }
.stack > * + * { margin-top: 1.25rem; }
.divider-leaf { display: flex; align-items: center; gap: 1rem; color: var(--sage-600); margin: 0 auto 2.5rem; max-width: 240px; }
.divider-leaf::before, .divider-leaf::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider-leaf svg { width: 22px; height: 22px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .back-to-top, .nav-toggle, .cta, form { display: none !important; }
  body { background: #fff; }
}
