/* WillaChat theme stylesheet — ported from the willa-astro site (src/styles + component styles). Built from the pieces in this directory; edit the sources, not this file's structure. */

/* Self-hosted webfonts — replaces the render-blocking Google Fonts
   stylesheet (which cost an extra origin: DNS + TLS + CSS round-trip before
   any text could paint).

   Both families are VARIABLE fonts: one file per family covers every weight
   the site uses, so this is 2 requests / ~68KB total rather than the six
   static faces the old <link> implied. Google serves exactly these two files
   for all of 400/600/700/800/900 — the weight ranges below reflect that.

   Nunito and Nunito Sans are licensed under the SIL Open Font License 1.1
   (https://openfontlicense.org), which permits self-hosting and
   redistribution. Files are the latin subset from Google Fonts. */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/nunito-var-latin.woff2') format('woff2-variations');
  /* Latin subset — same coverage as the Google `latin` slice we replaced. */
  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;
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/nunito-sans-var-latin.woff2') format('woff2-variations');
  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;
}

/* Design tokens — ported verbatim from the WordPress theme
   (wp-content/themes/willa/style.css). These ARE the brand; do not
   invent new base colors. Gold is an accent/border color only, never
   body text. Semantic aliases and the spacing/motion scales are new
   additions per .planning/ux-spec.md §1. */
:root {
  /* Palette (verbatim) */
  --bg: #FFFDF6;
  --bg-tint: #FFF8E9;
  --bg-tint-2: #FFF3DA;
  --ink: #211C50;
  --ink-2: #39326D;
  --gold: #F5DA42;
  --gold-light: #FFD97F;
  --gold-lighter: #FFE7B0;
  --gold-dark: #C79A2E;
  /* Text-safe gold: 4.96:1 on --cream (#FFFDF6) — use for gold TEXT on
     light backgrounds; --gold-dark is 2.55:1 and fails WCAG AA there. */
  --gold-text: #8A6A1F;
  --muted: #5B5480;
  --line: #E9E1CF;
  --line-strong: #DCCFA8;
  --white: #FFFFFF;
  --bubble-tint: #EEECF7;
  --indigo-wash: #F4F3F9;
  --indigo-soft: #A9A2D8;

  --footer-bg: #FFF8E9;
  --footer-ink: #211C50;
  --footer-muted: #5B5480;

  /* Semantic aliases — components reference intent, not raw hue. */
  --surface-raised: var(--white);
  --surface-sunken: var(--bg-tint);
  --border-default: var(--line);

  --wrap: 1200px;
  --gap: 24px;

  /* Radii */
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --radius-lg: 28px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(33, 28, 80, 0.06);
  --shadow-md: 0 12px 32px rgba(33, 28, 80, 0.10);
  --shadow-lg: 0 20px 48px rgba(33, 28, 80, 0.14);
  --shadow-xl: 0 32px 64px rgba(33, 28, 80, 0.20);

  --font-heading: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale */
  --text-h1: clamp(2.5rem, 5vw, 4rem);
  --text-h2: clamp(1.7rem, 3.6vw, 2.5rem);
  --text-h3: 1.25rem;
  --text-lede: 1.15rem;
  --text-body: 17px;
  --text-eyebrow: 0.78rem;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 28px;
  --space-7: 32px;
  --space-8: 44px;
  --space-9: 56px;
  --space-10: 64px;
  --space-11: 72px;
  --space-12: 96px;
  --space-13: 112px;

  /* Motion */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-carousel: 350ms;
  --duration-typing-loop: 1000ms;
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);

  /* Sitewide focus ring, non-negotiable — every component inherits this. */
  --focus-ring: 3px solid var(--ink-2);
  --focus-ring-offset: 3px;
}


*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-2); text-decoration: none; }
a:hover { color: var(--ink); }

/* Visible, high-contrast focus states everywhere — 3px offset, non-negotiable. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: var(--text-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-13) 0; }
.section--tight { padding: var(--space-9) 0; }
.section--alt { background: var(--surface-sunken); }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-eyebrow);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 14px;
}
.eyebrow.center-block { display: block; text-align: center; }

.rule {
  width: 64px; height: 4px;
  background: var(--gold);
  border: 0; border-radius: var(--radius-pill);
  margin: 0 0 var(--space-6);
}
.rule--center { margin-left: auto; margin-right: auto; }

.lede { font-size: var(--text-lede); color: var(--muted); max-width: 760px; }
.lede--center { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 2px solid var(--ink);
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease,
    border-color var(--duration-fast) ease, transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  cursor: pointer;
}
.btn--solid { background: var(--gold); border-color: var(--gold); color: var(--ink); box-shadow: 0 4px 12px rgba(245, 218, 66, 0.35); }
.btn--solid:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Scroll reveal ----------
   Progressive-enhancement contract: [data-reveal] elements are fully
   visible by default. The IntersectionObserver script in Layout.astro adds
   .reveal-ready to <html> once it has run, and only THEN do [data-reveal]
   elements get hidden pending the .is-revealed class. If JS never runs,
   nothing is ever hidden. */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
html.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 1000;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
}
.skip-link:focus {
  left: var(--space-5);
  top: var(--space-3);
}

/* ---------- Reduced motion floor (non-negotiable, site-wide) ----------
   Necessary but not sufficient: any JS-driven timer sequence (chat demo,
   count-ups) must ALSO check prefers-reduced-motion in its own logic,
   because this CSS rule only collapses transition/animation *durations* —
   it cannot stop a script from still scheduling a dozen setTimeout calls. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .section { padding: 60px 0; }
}

/* Shared "illustrated mockup" visual language — ported from
   wp-content/themes/willa/style.css (.framed/.plate/.shot card shell,
   chat bubbles, checklist, callout, email/sms cards, real-screenshot
   treatment, device cards). Imported once, globally, via global.css so
   every static section component (WhyCards, Overview, AlertMockups,
   DevicesSection, ScreenshotShowcase, PreviewSection) can reuse these
   classes without re-declaring them. ChatDemoIsland ships its own copy of
   the .framed/.chat-line rules in chat-demo.css (pre-existing, verified in
   Milestone 1b) — the small duplication is intentional so that already-
   shipped component is left untouched. */

/* Card shell: faux app titlebar (three dots) on a rounded, shadowed card. */
.framed,
.plate,
.shot {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  padding: 34px 22px 22px;
}
.framed::before,
.plate::before,
.shot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
}
.framed::after,
.plate::after,
.shot::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    16px 0 0 var(--gold-light),
    32px 0 0 var(--gold-dark);
}

/* Chat bubbles inside .framed — opposing sides like a real chat. */
.chat-line {
  max-width: 82%;
  margin: 0 0 14px;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
}
.chat-line:last-child {
  margin-bottom: 0;
}
.chat-line--kid {
  margin-left: auto;
  background: var(--gold-lighter);
  border-bottom-right-radius: 6px;
}
.chat-line--willa {
  margin-right: auto;
  background: var(--white);
  border: 1px solid var(--gold-light);
  box-shadow: 0 2px 8px rgba(245, 218, 66, 0.18);
  border-bottom-left-radius: 6px;
}

/* Weekly-summary plate. Numeral spans inside .plate__line carry
   data-count-target so Layout.astro's shared count-up script can animate
   them on scroll-into-view; the number rendered here is the real,
   always-correct final value — see Layout.astro's inline script comment
   for the progressive-enhancement contract. */
.plate__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 18px;
}
.plate__line {
  margin: 0;
  padding: 9px 0;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}
.plate__line:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.count-up {
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Checklist + pull-quote callout, used by ChecklistCallout.astro. */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checklist li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 6px;
  transform: rotate(12deg);
}
.checklist li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 0.62em;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.callout {
  border-left: 4px solid var(--gold);
  background: var(--bg-tint);
  padding: 26px 30px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 40px;
}
.callout h3 {
  color: var(--ink);
}
.callout p {
  color: var(--muted);
  margin: 0;
}

/* Email / SMS alert mockups, used by AlertMockups.astro (#alerts). Both
   sit on the .shot card shell above via an extra class on the wrapper. */
.sms-card__header {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.sms-bubble {
  max-width: 85%;
  margin: 0 0 10px;
  padding: 10px 16px;
  border-radius: 16px;
  border-bottom-left-radius: 6px;
  background: var(--bubble-tint);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}
.sms-bubble:last-child {
  margin-bottom: 0;
}
.email-card__subject {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.email-card__meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.email-card__body {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 10px;
}
.email-card__body:last-child {
  margin-bottom: 0;
}
.email-card__button {
  display: inline-block;
  align-self: flex-start;
  margin: 4px 0 14px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}
/* Small muted caption inside the mockup card. */
.shot__caption {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Real app screenshots — used by CarouselIsland (#portal), DevicesSection
   (#everywhere), and PreviewSection (#preview). Plain bordered/shadowed
   image, no titlebar shell. Shared caption text sits in a sibling
   .shot__caption paragraph, not inside the image. */
.app-shot {
  margin: 0;
}
.app-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
}

/* Two-up gallery row (#preview, #alerts email/SMS row). */
.gallery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.gallery-row .app-shot {
  margin-bottom: 12px;
}
.gallery-row .shot__caption {
  text-align: center;
  border-top: 0;
  padding-top: 0;
}
@media (max-width: 700px) {
  .gallery-row {
    grid-template-columns: 1fr;
  }
}

/* Device cards (#everywhere) — phone / browser / desktop, fixed-height
   media area so portrait and landscape screenshots share a visual midline. */
.device-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.device-card:hover {
  box-shadow: var(--shadow-md);
}
.device-card__title {
  text-align: center;
  margin-bottom: 16px;
}
.device-card .device-shot {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px;
}
.device-card .device-shot img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 380px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.device-card .shot__caption {
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.devices-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 44px 0 0;
  align-items: stretch;
}
@media (max-width: 900px) {
  .devices-row {
    grid-template-columns: 1fr;
  }
}

/* Split two-column layout (#overview: copy+chat mockup, plate+checklist). */
.split-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-cols.split--top {
  align-items: start;
}
.split-cols + .split-cols {
  margin-top: 72px;
}
@media (max-width: 1000px) {
  .split-cols {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split-cols + .split-cols {
    margin-top: 36px;
  }
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 246, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 88px;
}
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 44px; width: auto; border-radius: 10px; }
.site-logo__wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.nav a {
  color: var(--ink-2);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  display: inline-block;
  white-space: nowrap;
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
}
.nav a:hover { color: var(--ink); background: var(--gold-lighter); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { white-space: nowrap; }
.nav__actions { display: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--white); border: 1px solid var(--line);
  color: var(--ink); border-radius: var(--radius-sm);
  padding: 9px 13px; font-size: 1.1rem; cursor: pointer;
}

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
    max-height: 75vh; overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { padding: 12px 14px; width: 100%; border-radius: var(--radius-sm); }
  .header-actions { display: none; }
  .nav__actions {
    display: flex; gap: 12px; padding: 16px 0 0; border-bottom: none;
  }
  .nav__actions a.btn { width: auto; padding: 11px 18px; }
  .site-header__inner { position: relative; min-height: 72px; }
}

/* ---------- Site footer ---------- */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--gold-light);
  padding: var(--space-10) 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.site-footer .footer-logo { height: 52px; width: auto; border-radius: 12px; margin-bottom: 18px; }
.site-footer h4 {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer p, .site-footer li { color: var(--footer-muted); font-size: 0.95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--footer-muted); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.86rem; color: var(--footer-muted);
}
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--bg-tint-2) 0%, var(--bg) 65%);
  overflow: hidden;
}
.hero__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}
.hero__blob--gold {
  width: 620px; height: 620px;
  top: -220px; right: -180px;
  background: radial-gradient(circle at 30% 30%, var(--gold-light) 0%, var(--gold-lighter) 55%, transparent 75%);
  opacity: 0.8;
}
.hero__blob--ink {
  width: 460px; height: 460px;
  bottom: -240px; left: -140px;
  background: radial-gradient(circle at 60% 40%, var(--ink-2) 0%, var(--ink) 55%, transparent 75%);
  opacity: 0.08;
}
.hero > .hero__inner { position: relative; z-index: 1; }
.hero__inner { padding: 100px 24px 96px; }
.hero__cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__copy > * { max-width: 640px; }
.hero__heading { margin: 0; }
.hero__title { display: block; margin-bottom: 0; }
.hero__accent {
  display: block;
  color: var(--ink-2);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero__tagline { font-size: 1.3rem; color: rgba(33, 28, 80, 0.8); margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__shot { margin: 0; }
.hero__shot img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.hero__shot-caption {
  margin: 14px 4px 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .hero__cols { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 820px) {
  .hero__inner { padding: 78px 24px 72px; }
}

/* ---------- Feature cards (#why) ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
}
.card {
  background: var(--surface-raised);
  border: 1px solid rgba(245, 218, 66, 0.35);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow:
    0 12px 32px rgba(33, 28, 80, 0.05),
    0 4px 12px rgba(33, 28, 80, 0.03);
  transition:
    transform var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease,
    opacity var(--duration-base) var(--ease-out),
    translate var(--duration-base) var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card h3 { color: var(--ink); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- Safety pipeline (#protect) ---------- */
.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
  max-width: 1080px;
  margin: var(--space-8) auto 0;
  text-align: left;
}
.pipeline-step {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    background-color var(--duration-base) var(--ease-out);
}
.pipeline-step__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold-text);
  margin-bottom: 8px;
}
.pipeline-step__title { font-size: 1.05rem; margin: 0 0 8px; }
.pipeline-step__body {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}
.pipeline-step.is-active {
  border-color: var(--gold-dark);
  background: var(--bg-tint);
  box-shadow: var(--shadow-md);
}
.pipeline-step.is-active .pipeline-step__label { color: var(--ink); }
.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--line-strong);
  font-size: 1.3rem;
}
@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipeline-arrow { transform: rotate(90deg); margin: -4px 0; }
}

/* ---------- FAQ (#faq) ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.faq__q {
  cursor: pointer;
  list-style: none;
  padding: 16px 44px 16px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  position: relative;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold-text);
  transition: transform var(--duration-fast) ease;
}
.faq__item[open] .faq__q::after { content: '–'; }
.faq__q:hover { background: var(--gold-lighter); border-radius: var(--radius-sm); }
.faq__q:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.faq__a {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ---------- Contact page ---------- */
.contact-privacy-note {
  max-width: 680px;
  margin: 20px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.contact-privacy-note a { color: var(--gold-text); font-weight: 700; }

/* ---------- 404 ---------- */
.actions {
  display: flex;
  gap: var(--space-4, 1rem);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-6, 1.5rem);
}

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 720px; }
.prose h2 {
  margin-top: var(--space-9, 2.5rem);
  margin-bottom: var(--space-3, 0.75rem);
}
.prose p, .prose ul { margin-bottom: var(--space-4, 1rem); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: var(--space-2, 0.5rem); }
.draft-note { font-style: italic; }
.updated { color: var(--muted, #666); font-size: 0.9rem; }

/* WordPress admin bar pushes the sticky header down when logged in. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Chat demo island — ported visual treatments from wp-content/themes/willa/
   style.css (the "#demo" section, plus .chat-line/.notify/.framed shared
   with other mockup cards). Imported directly by ChatDemoIsland.tsx so the
   CSS ships with the component (and is present for the SSR/no-JS render
   too, since Astro extracts styles imported by framework components into
   the static build). */

.chat-demo { max-width: 1060px; margin: 44px auto 0; }

.chat-demo__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-7);
}
.chat-demo__tab {
  padding: 11px 22px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink-2);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}
.chat-demo__tab:hover { border-color: var(--gold-dark); color: var(--ink); }
.chat-demo__tab[aria-selected='true'] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(245, 218, 66, 0.35);
}

.demo-scenario__note {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.97rem;
}

.demo-stage {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Framed card shell, shared with the illustrated mockups elsewhere on the
   page (a faux app titlebar with three dots on a rounded, shadowed card). */
.framed {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  padding: 34px 22px 22px;
  min-height: 320px;
}
.framed::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 34px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
}
.framed::after {
  content: '';
  position: absolute; top: 13px; left: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 16px 0 0 var(--gold-light), 32px 0 0 var(--gold-dark);
}

.demo-chat__who {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.chat-line {
  max-width: 82%;
  margin: 0 0 14px;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  animation: chat-beat-in var(--duration-slow) var(--ease-out) both;
}
.chat-line:last-child { margin-bottom: 0; }
.chat-line--kid {
  margin-left: auto;
  background: var(--gold-lighter);
  border-bottom-right-radius: 6px;
}
.chat-line--willa {
  margin-right: auto;
  background: var(--white);
  border: 1px solid var(--gold-light);
  box-shadow: 0 2px 8px rgba(245, 218, 66, 0.18);
  border-bottom-left-radius: 6px;
}
.chat-line--redirect { border-left: 4px solid var(--gold-dark); }
.chat-line--care { background: var(--indigo-wash); border-color: var(--indigo-soft); }

@keyframes chat-beat-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Typing indicator: three bouncing dots, positioned exactly where the real
   bubble will appear, then unmounted and replaced (not overlaid). */
.demo-typing {
  display: inline-flex;
  gap: 5px;
  margin: 0 auto 14px 0;
  padding: 14px 18px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  background: var(--white);
  border: 1px solid var(--gold-light);
}
.demo-typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--indigo-soft);
  animation: demo-bounce var(--duration-typing-loop) infinite ease-in-out;
}
.demo-typing i:nth-child(2) { animation-delay: 0.15s; }
.demo-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes demo-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Parent phone frame. */
.demo-phone {
  position: relative;
  background: var(--indigo-wash);
  border: 3px solid var(--ink);
  border-radius: 30px;
  padding: 44px 16px 22px;
  box-shadow: var(--shadow-md);
  min-height: 320px;
}
.demo-phone::before {
  content: '';
  position: absolute;
  top: 16px; left: 50%;
  width: 56px; height: 6px;
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
  background: var(--ink);
  opacity: 0.25;
}
.demo-phone__label {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  margin: 0 0 14px;
}

.notify {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  animation: notify-in var(--duration-slow) var(--ease-out) both;
}
.notify:last-child { margin-bottom: 0; }
.notify__title {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.notify__body { color: var(--muted); font-size: 0.88rem; line-height: 1.55; margin: 0; }
.notify__chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--indigo-wash);
  color: var(--ink-2);
}
.notify__chip--warning { background: var(--gold-lighter); color: var(--ink); }
.notify__chip--crisis { background: var(--ink); color: var(--gold-light); }
.notify__button {
  display: inline-block;
  margin: 10px 0 0;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: var(--shadow-sm);
}
.notify--quiet { background: var(--bg-tint); border-style: dashed; box-shadow: none; }
.notify--sms { border-color: var(--ink); border-width: 2px; }
.notify--escalate { background: transparent; border-style: dashed; box-shadow: none; }
.notify--escalate .notify__title { color: var(--ink-2); font-size: 0.82rem; }

/* Notification entrance: slides in from the right, evoking "a notification
   just landed" — distinct from the chat track's fade+rise. */
@keyframes notify-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}

.demo__controls { display: flex; justify-content: center; margin-top: var(--space-7); }
.demo__replay {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
}
.demo__replay:hover { background: var(--ink); color: var(--white); }

.demo__footnote {
  margin: var(--space-9) auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 781px) {
  .demo-stage { grid-template-columns: 1fr; }
  .demo-phone, .framed { min-height: 0; }
}

/* Under reduced motion, every beat still uses the CSS `animation` property
   above, but the site-wide reduced-motion floor rule (global.css) collapses
   its duration to 0.01ms — combined with the JS-level branch in
   ChatDemoIsland.tsx that renders all beats at once instead of scheduling
   timers, this means reduced-motion users see the finished state instantly. */

/* Escalation ladder — ported from wp-content/themes/willa/style.css
   (.escalation-step rules, lines 513-599), plus a new `.is-lit` modifier
   for the scroll-linked highlight added by AnimatedEscalationLadder.tsx.
   Severity builds through indigo/gold depth and weight, never a red/alarm
   color, matching the rest of the site's calm visual language. */

.escalation {
  display: grid;
  gap: 20px;
  max-width: 980px;
  margin: 44px auto 0;
}
.escalation-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  position: relative;
}
.escalation-step__badge {
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 3px solid var(--line-strong);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  position: relative;
  z-index: 1;
  transition:
    background-color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}
/* Connector rail between badges. */
.escalation-step::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 56px;
  bottom: -20px;
  width: 4px;
  border-radius: 4px;
  background: var(--gold-light);
  transition: background-color var(--duration-slow) var(--ease-out);
}
.escalation-step:last-child::before {
  display: none;
}

.escalation-step__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-left-color var(--duration-base) var(--ease-out);
}
.escalation-step__title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--ink);
}
.escalation-step__chip {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--indigo-wash);
  color: var(--ink-2);
}
.escalation-step__body {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.escalation-step--info .escalation-step__badge {
  border-color: var(--indigo-soft);
}
.escalation-step--info .escalation-step__card {
  border-left-color: var(--indigo-soft);
}

.escalation-step--warning .escalation-step__badge {
  border-color: var(--gold);
  background: var(--gold-lighter);
}
.escalation-step--warning .escalation-step__card {
  border-left-color: var(--gold);
}
.escalation-step--warning .escalation-step__chip {
  background: var(--gold-lighter);
  color: var(--ink);
}

.escalation-step--critical .escalation-step__badge {
  border-color: var(--gold-dark);
  background: var(--gold-light);
}
.escalation-step--critical .escalation-step__card {
  border-left-color: var(--gold-dark);
  background: var(--bg-tint);
}
.escalation-step--critical .escalation-step__chip {
  background: var(--gold-light);
  color: var(--ink);
}

.escalation-step--crisis .escalation-step__badge {
  border-color: var(--ink);
  background: var(--white);
  color: var(--ink);
}
.escalation-step--crisis .escalation-step__card {
  border-left-color: var(--ink);
  background: var(--indigo-wash);
}
.escalation-step--crisis .escalation-step__chip {
  background: var(--gold-light);
  color: var(--ink);
}

/* Scroll-linked highlight (ux-spec.md §5 rank 3): the rail segment "fills"
   solid and the badge pops as each tier crosses into view. Purely additive
   — every tier is already fully visible and readable before this class is
   ever added. */
.escalation-step.is-lit::before {
  background: var(--gold-dark);
}
.escalation-step.is-lit .escalation-step__badge {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}
.escalation-step--info.is-lit .escalation-step__badge {
  background: var(--indigo-soft);
  border-color: var(--indigo-soft);
  color: var(--white);
}
.escalation-step--warning.is-lit .escalation-step__badge {
  background: var(--gold);
  border-color: var(--gold-dark);
}
.escalation-step--critical.is-lit .escalation-step__badge {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
}
.escalation-step--crisis.is-lit .escalation-step__badge {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold-light);
}
.escalation-step--crisis.is-lit::before {
  background: var(--ink);
}

@media (max-width: 560px) {
  .escalation-step {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }
  .escalation-step__badge {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-width: 2px;
  }
  .escalation-step::before {
    left: 18px;
    top: 40px;
  }
}

/* Portal tour carousel — ported visual treatment from wp-content/themes/
   willa/style.css (.slideshow__* rules) plus a new progress-bar element
   for the auto-advance upgrade (ux-spec.md §2 row 7). Static (non-JS)
   fallback: .carousel__track--static stacks every slide in normal block
   flow with a margin gap, matching the WordPress no-JS behavior. */

.carousel {
  position: relative;
  max-width: 880px;
  margin: 44px auto 0;
}

/* The static (pre-hydration) track still inherits `display: flex` from
   .carousel__track, so its six 100%-wide slides form a 600%-wide row. The
   viewport's overflow:hidden hides that visually and blocks scrolling, but
   the row still counts toward document.scrollWidth (~3.9x the viewport),
   which trips up automated a11y/QA tooling and would surface a real
   scrollbar on platforms with classic (non-overlay) scrollbars. Contain it
   here rather than switching to block flow: stacking all six slides
   pre-hydration would make the section tall and then collapse on hydration,
   trading a latent measurement issue for a visible layout shift. */
.carousel__track--static {
  overflow: hidden;
}

.carousel__track--static .carousel__slide + .carousel__slide {
  margin-top: 24px;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  touch-action: pan-y;
}
.carousel__track {
  display: flex;
  align-items: flex-start;
  transition: transform var(--duration-carousel) ease;
}
.carousel__track .carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 6px; /* keeps the card's box-shadow from being clipped by the viewport */
  margin: 0;
}
.carousel__slide--offscreen {
  visibility: hidden;
}
.carousel__slide figcaption {
  margin: 16px auto 0;
  max-width: 640px;
  text-align: center;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    background-color var(--duration-fast) ease,
    color var(--duration-fast) ease;
}
.carousel__arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.carousel__arrow--prev {
  left: 0;
  transform: translate(-50%, -50%);
}
.carousel__arrow--next {
  right: 0;
  transform: translate(50%, -50%);
}

.carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.carousel__dot {
  width: 22px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
  cursor: pointer;
  transition:
    background-color var(--duration-fast) ease,
    width var(--duration-fast) ease;
}
.carousel__dot:hover {
  background: var(--gold-dark);
}
.carousel__dot[aria-current='true'] {
  width: 30px;
  background: var(--ink);
}

/* Auto-advance progress bar: fills over SLIDE_DURATION_MS, driven by
   requestAnimationFrame in CarouselIsland.tsx (not a CSS animation, so
   hover/focus pause can freeze it at its exact current position). Never
   rendered at all under prefers-reduced-motion. */
.carousel__progress {
  width: 160px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
}
.carousel__progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold-dark);
  border-radius: var(--radius-pill);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .carousel__arrow--prev {
    left: 8px;
    transform: translateY(-50%);
  }
  .carousel__arrow--next {
    right: 8px;
    transform: translateY(-50%);
  }
}

/* Contact form — ported verbatim from the WP theme's style.css
   ("Contact form (#contact)" block). Gold is never body text. */
.contact-form-wrap { max-width: 680px; margin: 40px auto 0; }
.contact-notice {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 20px;
}
.contact-notice--ok { background: var(--gold-lighter); color: var(--ink); border: 1px solid var(--gold); }
.contact-notice--err { background: var(--indigo-wash); color: var(--ink-2); border: 1px solid var(--indigo-soft); }

.contact-form__trap {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form__field { margin: 0 0 18px; }
.contact-form__field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}
.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .15s ease;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
}
.contact-form__field textarea { resize: vertical; min-height: 140px; }
.contact-form__submit { margin: 4px 0 0; text-align: center; }
.contact-form__submit .btn {
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(245, 218, 66, 0.35);
}
.contact-form__submit .btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.contact-form__submit .btn:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
}

/* Cookie banner — ported from wp-content/themes/willa/style.css
   (.cookie rules, lines 849-864). */

.cookie {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 26px;
  max-width: 920px;
  margin: 0 auto;
}
.cookie__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 0;
}
.cookie__text {
  flex: 1 1 420px;
}
.cookie__text strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
  font-family: var(--font-heading);
}
.cookie__text p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Lightbox overlay — ported from wp-content/themes/willa/style.css
   (.lightbox rules, lines 1268-1314). */

.js-zoomable {
  cursor: zoom-in;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 24px 32px;
  background: rgba(33, 28, 80, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox__img {
  max-width: min(1400px, 100%);
  max-height: 82vh;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
}
.lightbox__caption {
  max-width: 720px;
  margin: 0;
  text-align: center;
  color: var(--gold-lighter);
  font-size: 0.95rem;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold-light);
  border-radius: 50%;
  background: transparent;
  color: var(--gold-light);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) ease,
    color var(--duration-fast) ease;
}
.lightbox__close:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

