/* ============================================
   Homes On Grand
   Diana Undergust, Lake Homes Realty
   Crafted by ThatDeveloperGuy.com
   ============================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette: deep lake, warm paper, sunset gold */
  --ink: #14202a;
  --ink-soft: #2a3742;
  --water: #0f2e3d;
  --water-deep: #082030;
  --water-mid: #1b4459;
  --paper: #f7f1e3;
  --paper-warm: #f1e9d4;
  --mist: #e8e4da;
  --sand: #d9cdb0;
  --gold: #c89b3f;
  --gold-soft: #d9b768;
  --dock: #8b6f47;
  --rule: rgba(20, 32, 42, 0.12);
  --rule-strong: rgba(20, 32, 42, 0.22);

  /* Type */
  --font-display: "Cormorant Garamond", "Hoefler Text", Garamond, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --step-hero: clamp(3rem, 7vw + 1rem, 7.5rem);
  --step-h1: clamp(2.25rem, 4vw + 1rem, 4.5rem);
  --step-h2: clamp(1.75rem, 2.5vw + 1rem, 3rem);
  --step-h3: clamp(1.375rem, 1.2vw + 1rem, 2rem);
  --step-body: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  --step-small: 0.875rem;

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1320px;
  --max-prose: 68ch;
  /* Header height, measured at runtime by main.js and reflected here.
     Used by .mobile-nav top padding and html scroll-padding-top so anchor
     jumps and the menu drawer never sit under the sticky header. */
  --header-h: 73px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Self-hosted fonts (replaces render-blocking Google Fonts CSS) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/cormorant-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/cormorant-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/cormorant-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/cormorant-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* ---------- Touch / interaction defaults ----------
   iOS Safari and Android Chromium both default to a 300ms tap delay on
   non-`touch-action: manipulation` elements and apply a gray tap highlight.
   These two declarations remove both, network-wide for interactive
   elements. */
a, button, [role="button"], summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--gold); color: var(--water); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px;
  background: var(--water); color: var(--paper);
  padding: 0.75rem 1.25rem; z-index: 100;
  font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 8vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 5vw, 5rem); }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; align-items: center; }
  .split--asym { grid-template-columns: 5fr 7fr; }
  .split--asym-rev { grid-template-columns: 7fr 5fr; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; color: var(--water); }
h1 { font-size: var(--step-h1); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); }
h4 { font-size: 1.25rem; font-weight: 600; }
.display { font-size: var(--step-hero); line-height: 0.95; letter-spacing: -0.02em; }
.display em, h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
p { max-width: var(--max-prose); }
.lede { font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem); color: var(--ink-soft); line-height: 1.5; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--water-mid);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--gold);
}
.eyebrow--center::before { display: none; }
.eyebrow--center {
  display: block; text-align: center; margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem;
  padding: 1rem 1.75rem;
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  text-align: center;
}
.btn--primary { background: var(--water); color: var(--paper); }
.btn--primary:hover { background: var(--water-deep); transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--water); }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--water); color: var(--water); }
.btn--ghost:hover { background: var(--water); color: var(--paper); }
.btn--ghost-light { background: transparent; border-color: rgba(247, 241, 227, 0.4); color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); color: var(--water); border-color: var(--paper); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 227, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(8, 32, 48, 0.06);
}
/* Body lock when the mobile menu drawer is open.  Prevents background
   page scroll on iOS and Android Chromium without resorting to JS
   `body.style.overflow = "hidden"` (which leaks scroll position). */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-display); font-size: 1.5rem;
  letter-spacing: -0.01em; color: var(--water);
  line-height: 1;
}
.brand-mark {
  width: 38px; height: 38px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-text .top { font-style: italic; font-weight: 400; }
.brand-text .sub { font-size: 0.65rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.22em; color: var(--water-mid); text-transform: uppercase; margin-top: 2px; }

.nav-links { display: none; }
.nav-links a {
  position: relative; padding: 0.5rem 0;
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--water); }
.nav-links a:hover::after, .nav-links a.is-current::after { right: 0; }
.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 6px;
  padding: 0.65rem; border: 1px solid var(--rule-strong);
  background: transparent; cursor: pointer; border-radius: 2px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--water);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu drawer.
   IMPORTANT: this element MUST be a direct child of <body> (sibling of
   <header>), NOT a descendant of the header. The header has
   `backdrop-filter` which would establish a new containing block for any
   position:fixed descendants, breaking the overlay completely.
   See https://drafts.fxtf.org/filter-effects-2/#backdrop-filter-operation
   ("A computed value of backdrop-filter other than 'none' results in the
   creation of a containing block for [...] descendants").
*/
.mobile-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: var(--paper);
  /* Top padding leaves the header visible behind a paper backdrop. */
  padding: calc(var(--header-h) + 1.5rem)
           var(--gutter)
           calc(1.5rem + env(safe-area-inset-bottom));
  /* Hide off the top of the viewport. translateY of -100% is safe here
     because the element fills the viewport (inset:0). */
  transform: translateY(-100%);
  /* Reveal animations only on devices that can handle smooth ones. */
  transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
  visibility: hidden;
  z-index: 49;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.35s var(--ease), visibility 0s linear 0s;
}
.mobile-nav a {
  display: block; padding: 1rem 0;
  font-family: var(--font-display); font-size: 1.75rem;
  color: var(--water); border-bottom: 1px solid var(--rule);
  /* Minimum 44px touch target per Apple HIG; padding-block 1rem (16px)
     plus 1.75rem (28px) line-height of the link text gives ~60px which
     comfortably exceeds the minimum. */
}
.mobile-nav a.is-current { color: var(--gold); }
.mobile-cta {
  margin-top: 2rem; padding: 1.5rem 0;
  border-top: 1px solid var(--rule-strong);
}
.mobile-cta .phone { font-family: var(--font-display); font-size: 1.5rem; color: var(--water); }
.mobile-cta .license { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.25rem; }

@media (min-width: 940px) {
  .nav-links { display: flex; gap: 2rem; }
  .nav-cta { display: inline-flex; align-items: center; gap: 1rem; }
  .nav-cta .phone {
    font-family: var(--font-display); font-style: italic; font-size: 1.25rem;
    color: var(--water);
  }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 8vw, 8rem) clamp(5rem, 9vw, 10rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 30%, rgba(200, 155, 63, 0.16), transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(27, 68, 89, 0.12), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 80px;
  background: linear-gradient(180deg, transparent, var(--paper));
  z-index: -1;
}
.hero-grid {
  display: grid; gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
}
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
}
.hero h1 {
  font-size: var(--step-hero);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.hero h1 .accent {
  font-style: italic; color: var(--gold); font-weight: 400;
  display: inline-block;
}
.hero h1 .accent::after {
  content: ""; display: block;
  width: 60%; height: 1px; background: var(--gold);
  margin-top: 0.5rem; opacity: 0.5;
}
.hero-lede { font-size: clamp(1.125rem, 0.4vw + 1rem, 1.375rem); color: var(--ink-soft); line-height: 1.5; max-width: 52ch; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-meta {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}
.hero-meta .stat .num {
  font-family: var(--font-display); font-size: 2.25rem;
  color: var(--water); line-height: 1; display: block;
}
.hero-meta .stat .label {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--water-mid); margin-top: 0.5rem; display: block;
}

/* Hero card on right */
.hero-card {
  position: relative;
  background: var(--water);
  color: var(--paper);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 2px;
  isolation: isolate;
  overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(200, 155, 63, 0.22), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(217, 205, 176, 0.08), transparent 50%);
  z-index: -1;
}
.hero-card .label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); }
.hero-card h3 { color: var(--paper); margin-top: 0.6rem; margin-bottom: 1rem; font-style: italic; font-weight: 400; }
.hero-card p { color: rgba(247, 241, 227, 0.78); font-size: 0.98rem; }
.hero-card .badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.hero-card .badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: rgba(247, 241, 227, 0.08);
  border: 1px solid rgba(247, 241, 227, 0.18);
  font-size: 0.75rem; letter-spacing: 0.04em;
}

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(2.5rem, 4vw, 4rem); max-width: 70ch; }
.section-head h2 { margin-top: 0.75rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
  display: grid; gap: 2rem; align-items: end;
}
@media (min-width: 760px) {
  .section-head--split { grid-template-columns: 1.4fr 1fr; }
}

/* ---------- Pillars / services ---------- */
.pillars {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.pillar {
  position: relative;
  padding: clamp(1.75rem, 2.5vw, 2.5rem);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); border-color: var(--gold); }
.pillar .num {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.5rem; color: var(--gold);
}
.pillar h3 { margin: 1rem 0 0.75rem; font-weight: 500; }
.pillar p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Archetypes (4 buyer types) ---------- */
.archetypes {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.archetype {
  padding: 2rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  position: relative;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.archetype:hover { background: var(--water); color: var(--paper); border-color: var(--water); }
.archetype:hover h4, .archetype:hover .num { color: var(--gold); }
.archetype:hover p { color: rgba(247, 241, 227, 0.8); }
.archetype .num { font-family: var(--font-display); font-style: italic; color: var(--water); font-size: 2rem; display: block; transition: color 0.3s var(--ease); }
.archetype h4 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--water); margin: 0.75rem 0; transition: color 0.3s var(--ease); }
.archetype p { color: var(--ink-soft); font-size: 0.95rem; transition: color 0.3s var(--ease); }

/* ---------- Communities grid ---------- */
.communities {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.community {
  position: relative;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, var(--water-mid) 0%, var(--water) 100%);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease);
}
.community:hover { transform: translateY(-4px); }
.community::before {
  content: ""; position: absolute; inset: 0; opacity: 0.18;
  background:
    radial-gradient(circle at 80% 20%, var(--gold), transparent 50%),
    radial-gradient(circle at 20% 80%, var(--gold-soft), transparent 50%);
  z-index: -1;
}
.community .place {
  font-family: var(--font-display); font-size: 1.65rem; font-style: italic;
  margin-bottom: 0.25rem;
}
.community .meta {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-soft);
}
.community p { margin-top: 1rem; font-size: 0.92rem; color: rgba(247, 241, 227, 0.78); }

/* ---------- Big quote ---------- */
.big-quote {
  background: var(--water);
  color: var(--paper);
  padding-block: clamp(5rem, 8vw, 8rem);
  position: relative; overflow: hidden;
}
.big-quote::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.45;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(200, 155, 63, 0.25), transparent 50%),
    radial-gradient(ellipse at 85% 75%, rgba(27, 68, 89, 0.5), transparent 50%);
}
.big-quote .wrap { position: relative; z-index: 1; }
.big-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw + 1rem, 3.5rem);
  font-style: italic; font-weight: 400;
  line-height: 1.15;
  max-width: 24ch;
}
.big-quote blockquote::before {
  content: "“"; display: block;
  font-size: 6rem; line-height: 0.6;
  color: var(--gold); margin-bottom: 1rem;
}
.big-quote cite {
  display: block; margin-top: 2.5rem;
  font-family: var(--font-body); font-size: 0.85rem;
  font-style: normal; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- Process / step list ---------- */
.steps { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.step {
  display: grid; gap: 1rem;
  grid-template-columns: auto 1fr;
  padding: 2rem var(--gutter);
  background: var(--paper);
  align-items: start;
}
@media (min-width: 760px) {
  .step { grid-template-columns: 100px 1fr 2fr; gap: 2rem; padding-inline: 0; }
}
.step .num { font-family: var(--font-display); font-style: italic; font-size: 2.5rem; color: var(--gold); line-height: 0.9; }
.step h3 { font-weight: 500; }
.step p { color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; }
.faq-item {
  border-top: 1px solid var(--rule);
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 0;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--water);
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-body); font-size: 1.5rem; color: var(--gold);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--gold); }
.faq-item .answer { padding: 0 0 1.75rem; color: var(--ink-soft); max-width: 75ch; }

/* ---------- CTA panel ---------- */
.cta {
  background: var(--paper-warm);
  padding-block: clamp(4rem, 7vw, 7rem);
  text-align: center;
  border-top: 1px solid var(--rule);
}
.cta h2 { max-width: 18ch; margin: 0 auto 1.25rem; }
.cta p { margin: 0 auto 2rem; color: var(--ink-soft); }
.cta-actions { display: inline-flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Form ---------- */
.form {
  display: grid; gap: 1.25rem;
  max-width: 620px;
}
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--water-mid); font-weight: 600;
}
.field input, .field select, .field textarea {
  padding: 0.95rem 1rem;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  background: var(--paper-warm);
  outline: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.row-2 { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.form .submit { justify-self: start; margin-top: 0.5rem; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--water-deep);
  color: rgba(247, 241, 227, 0.78);
  padding-block: 4rem 1.5rem;
}
.footer-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-brand .brand { color: var(--paper); }
.footer-brand .brand-text .sub { color: var(--gold-soft); }
.footer-brand p { margin-top: 1rem; font-size: 0.92rem; max-width: 38ch; }
.footer-col h3, .footer-col h4 {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.65rem; }
.footer-col a { color: rgba(247, 241, 227, 0.78); transition: color 0.2s var(--ease); font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: grid; gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 241, 227, 0.12);
  font-size: 0.8rem; color: rgba(247, 241, 227, 0.55);
}
@media (min-width: 760px) {
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
}
.footer-bottom a { color: var(--gold-soft); }
.footer-bottom a:hover { color: var(--gold); }
.crafted { font-style: italic; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding-block: clamp(4rem, 7vw, 7rem) clamp(3rem, 5vw, 5rem);
  background:
    radial-gradient(ellipse at 80% 30%, rgba(200, 155, 63, 0.12), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  border-bottom: 1px solid var(--rule);
}
.page-hero .crumbs {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--water-mid); margin-bottom: 1.25rem;
}
.page-hero .crumbs a { color: var(--water-mid); }
.page-hero .crumbs a:hover { color: var(--gold); }
.page-hero h1 { max-width: 18ch; margin-bottom: 1.25rem; }
.page-hero .lede { max-width: 56ch; }

/* ---------- Prose blocks ---------- */
.prose { max-width: var(--max-prose); }
.prose h2 { margin-top: 3rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1.25rem; color: var(--ink-soft); }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--water); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* ---------- Floating mobile CTA ---------- */
.floating-cta {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 40;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--water);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(8, 32, 48, 0.3);
  transition: transform 0.3s var(--ease);
}
.floating-cta:hover { transform: scale(1.05); }
@media (min-width: 940px) { .floating-cta { display: none; } }

/* ---------- Reveal on scroll ----------
   Only applies when html.js is set (added by main.js).  Without JS the
   .reveal content remains visible, no opacity:0 trap. */
html.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
html.js .reveal[data-delay="1"] { transition-delay: 0.1s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.2s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }

/* ---------- Archetype h3 fallback (when used with h3 instead of h4) ---------- */
.archetype h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--water);
  margin: 0.75rem 0;
  transition: color 0.3s var(--ease);
  font-style: italic;
}
.archetype:hover h3 { color: var(--gold); }

/* ---------- Hours grid (contact page) ---------- */
.hours-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.hours-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  gap: 1rem;
}
.hours-day {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--water);
}
.hours-time {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ---------- License block (contact page) ---------- */
.license-block {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--rule);
}
@media (min-width: 700px) {
  .license-block { grid-template-columns: 1fr 1.4fr; gap: 3rem; padding: 2.5rem 3rem; }
}

/* ---------- Email link styling (obfuscated mailto rebuilt at runtime) ---------- */
.email-link { cursor: pointer; }
.email-link .email-at::after { content: ""; }
a.email-link { color: inherit; }
.footer-col a.email-link { color: rgba(247, 241, 227, 0.78); transition: color 0.2s var(--ease); }
.footer-col a.email-link:hover { color: var(--gold); }

/* ---------- Form status (live region for ajax submission feedback) ---------- */
.form-status { margin-top: 1rem; font-size: 0.95rem; min-height: 1.5em; }
.form-status.is-success { color: var(--water); }
.form-status.is-error { color: #b3392a; }

/* ---------- Privacy + plain content pages ---------- */
.page-prose { padding-block: clamp(3rem, 6vw, 6rem); }
.page-prose h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; }
.page-prose p { margin-bottom: 1.25rem; color: var(--ink-soft); }
.page-prose ul { margin: 0 0 1.25rem 1.5rem; color: var(--ink-soft); }
.page-prose li { margin-bottom: 0.5rem; }

/* ---------- Hero card title (was <h3>, now <h2> for heading order) ---------- */
.hero-card-title {
  /* Visual size unchanged from the previous h3, we are only fixing the
     accessibility-level outline. */
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--step-h3);
  line-height: 1.1;
  margin-top: 0.6rem;
  margin-bottom: 1rem;
}

/* ---------- Community sub-nav (was hardcoded top:73px) ---------- */
.community-nav { top: var(--header-h) !important; }

/* ---------- Floating mobile CTA: leave room for the iOS home indicator ---------- */
.floating-cta { bottom: calc(1.25rem + env(safe-area-inset-bottom)); }

/* ---------- Print styles ---------- */
@media print {
  .site-header, .site-footer, .floating-cta, .nav-toggle,
  .mobile-nav, .hero-actions, .cta-actions { display: none !important; }
  body { background: white; color: black; overflow: visible; }
  a { color: black; text-decoration: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
