/* ============================================================
   HYPERLOCAL DESIGN SYSTEM — St. Louis Hills variant: Sage Green / Charcoal-Brown
   Split hero: text left, 3-image crossfade framed right
   ============================================================ */

:root {
  --ink: #262620;
  --ink-soft: #38382F;
  --teal: #5C7D64;
  --teal-deep: #3D5A45;
  --teal-pale: #E9F0E8;
  --navy-teal: #2A362B;
  --paper: #FAF8F3;
  --white: #FFFFFF;
  --sand: #E4DFCF;
  --sand-line: #EEE9DC;
  --slate: #676357;
  --slate-light: #9A9587;
  --danger-bg: #FBEAE7;
  --danger-border: #E3A79B;
  --danger-text: #8A3A2A;
  --success-bg: #E9F5EE;
  --success-border: #9FCFB4;
  --success-text: #1F5C3D;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-frame: 0 24px 60px -20px rgba(38, 38, 32, 0.35);
  --shadow-card: 0 2px 14px rgba(38, 38, 32, 0.06);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 700; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 2.5rem; }
.section { padding: 5.5rem 2.5rem; }
.section-tint { background: var(--teal-pale); }
@media (max-width: 860px) { .section { padding: 3.5rem 1.3rem; } .container { padding: 0 1.3rem; } }

/* ---------- Nav, standard right-aligned links ---------- */
nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-line);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav-logo .logo-text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.nav-links { list-style: none; display: flex; gap: 2.1rem; margin: 0; padding: 0; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; font-weight: 500;
  padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-deep); border-bottom-color: var(--teal); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 860px) {
  nav { padding: 1rem 1.3rem; }
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; background: var(--paper); flex-direction: column;
    align-items: flex-start; gap: 0; padding: 0.5rem 1.5rem 1.2rem; border-bottom: 1px solid var(--sand-line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; padding: 0.65rem 0; border-bottom: 1px solid var(--sand-line); }
  .nav-links li:last-child { border-bottom: none; }
  .hamburger { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 0.85rem 1.9rem;
  border-radius: 8px; font-family: var(--font-body); font-weight: 600; font-size: 0.93rem;
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal-deep); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--sand-line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn-white { background: var(--white); color: var(--teal-deep); }
.btn-white:hover { background: var(--teal-pale); }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--teal-deep); font-weight: 700;
  font-size: 0.9rem; text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 3px;
  transition: border-color .2s;
}
.btn-link:hover { border-bottom-color: var(--teal-deep); }

/* ---------- Eyebrow, section headers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal-deep); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--teal); border-radius: 2px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-title { font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 0.8rem; }
.section-lead { font-size: 1rem; color: var(--slate); line-height: 1.6; }

/* ---------- Split hero: text left, crossfade framed right (St. Louis Hills structural variant) ---------- */
.hero-split { padding: 4rem 2.5rem 3.5rem; }
.hero-split-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.2rem; align-items: center; }
.hero-crossfade-frame { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-frame); background: var(--navy-teal); }
.hero-crossfade-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: heroSlideFade 18s infinite; }
.hero-crossfade-slide:nth-child(1) { animation-delay: 0s; }
.hero-crossfade-slide:nth-child(2) { animation-delay: 6s; }
.hero-crossfade-slide:nth-child(3) { animation-delay: 12s; }
@keyframes heroSlideFade {
  0% { opacity: 0; }
  16.67% { opacity: 1; }
  33.33% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-crossfade-slide { animation: none; } .hero-crossfade-slide:first-child { opacity: 1; } }
.hero-sub { font-size: 1.05rem; color: var(--slate); line-height: 1.68; max-width: 34rem; margin-bottom: 1.7rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-split-text h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 1.2rem; }
.hero-split-text h1 em { font-style: italic; color: var(--teal-deep); }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-value { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.hero-stat-label { font-size: 0.76rem; color: var(--slate); margin-top: 0.2rem; }
@media (max-width: 860px) {
  .hero-split-grid { grid-template-columns: 1fr; }
  .hero-crossfade-frame { order: -1; aspect-ratio: 16 / 10; }
  .hero-split { padding: 2.5rem 1.3rem; }
}

/* ---------- Essentials grid ---------- */
.essentials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; max-width: 1100px; margin: 0 auto; }
.essentials-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.essentials-list li { display: flex; align-items: flex-start; gap: 0.8rem; font-size: 0.95rem; color: var(--ink-soft); }
.essentials-check { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.essentials-check svg { width: 12px; height: 12px; stroke: var(--white); stroke-width: 3; }
@media (max-width: 860px) { .essentials-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Fact ticker ---------- */
.fact-ticker { display: grid; grid-template-columns: 1fr 1fr; max-width: 1160px; margin: 0 auto; background: var(--navy-teal); border-radius: var(--radius-lg); overflow: hidden; }
.fact-ticker-item { padding: 2.2rem 2.4rem; border-left: 1px solid rgba(255,255,255,0.1); }
.fact-ticker-item:first-child { border-left: none; }
.fact-ticker-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); font-weight: 700; margin-bottom: 0.6rem; display: block; }
.fact-ticker-item p { color: rgba(250,248,243,0.85); font-size: 0.92rem; line-height: 1.6; margin: 0; }
@media (max-width: 860px) { .fact-ticker { grid-template-columns: 1fr; } .fact-ticker-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); } .fact-ticker-item:first-child { border-top: none; } }

/* ---------- Icon-topped step cards ---------- */
.steps-icon-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 1040px; margin: 0 auto; }
.step-icon-card { background: var(--white); border: 1px solid var(--sand-line); border-radius: var(--radius-lg); padding: 1.8rem 1.6rem; text-align: center; }
.step-icon-badge {
  width: 52px; height: 52px; border-radius: 50%; background: var(--teal-pale); display: flex;
  align-items: center; justify-content: center; margin: 0 auto 1.1rem;
}
.step-icon-badge svg { width: 24px; height: 24px; stroke: var(--teal-deep); }
.step-icon-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step-icon-card p { font-size: 0.87rem; color: var(--slate); line-height: 1.58; margin: 0; }
@media (max-width: 860px) { .steps-icon-row { grid-template-columns: 1fr; } }

/* ---------- Three-card testimonial row with quote marks ---------- */
.testimonial-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 1160px; margin: 0 auto; }
.testimonial-trio-card { background: var(--white); border: 1px solid var(--sand-line); border-radius: var(--radius-lg); padding: 1.7rem; position: relative; }
.testimonial-trio-card::before {
  content: "\201C"; font-family: var(--font-display); font-size: 3rem; color: var(--teal-pale);
  position: absolute; top: 0.6rem; left: 1.2rem; line-height: 1; z-index: 0;
}
.testimonial-trio-card .stars { color: var(--teal); font-size: 0.85rem; margin-bottom: 0.7rem; display: block; position: relative; z-index: 1; }
.testimonial-trio-card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.58; margin: 0 0 0.8rem; position: relative; z-index: 1; }
.testimonial-trio-card .name { font-size: 0.76rem; font-weight: 700; color: var(--slate); position: relative; z-index: 1; }
@media (max-width: 860px) { .testimonial-trio { grid-template-columns: 1fr; } }

/* ---------- FAQ numbered list ---------- */
.faq-numbered { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.faq-num-item { display: flex; gap: 1.2rem; }
.faq-num-index { flex-shrink: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--teal); width: 2.4rem; }
.faq-num-item h3 { font-size: 0.98rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.faq-num-item p { font-size: 0.87rem; color: var(--slate); line-height: 1.62; margin: 0; }

/* ---------- Symptom FAQ, 2-col bordered cards ---------- */
.faq-symptom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 900px; margin: 0 auto; }
.faq-symptom-item { background: var(--white); border: 1px solid var(--sand-line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.faq-symptom-item h3 { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.faq-symptom-item p { font-size: 0.87rem; color: var(--slate); line-height: 1.62; margin: 0; }
@media (max-width: 600px) { .faq-symptom-grid { grid-template-columns: 1fr; } }

/* ---------- Hyper-local guide cards ---------- */
.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 1160px; margin: 0 auto; }
.guide-card { background: var(--white); border: 1px solid var(--sand-line); border-radius: var(--radius-lg); padding: 1.7rem; }
.guide-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.guide-card p { font-size: 0.88rem; color: var(--slate); line-height: 1.62; margin: 0; }
@media (max-width: 860px) { .guide-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .guide-list { grid-template-columns: 1fr; } }

/* ---------- SEO grid + resources card ---------- */
.seo-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; max-width: 1160px; margin: 0 auto; align-items: start; }
.seo-grid h3 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; }
.seo-grid h3:first-child { margin-top: 0; }
.seo-grid p { font-size: 0.92rem; color: var(--slate); line-height: 1.72; }
.seo-grid a { color: var(--teal-deep); }
.res-card { background: var(--white); border: 1px solid var(--sand-line); border-radius: var(--radius-lg); padding: 1.7rem; box-shadow: var(--shadow-card); }
.res-card h4 { font-size: 0.95rem; margin-bottom: 1.2rem; }
.res-link { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 0; border-bottom: 1px solid var(--sand-line); text-decoration: none; }
.res-link:last-of-type { border-bottom: none; }
.res-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; background: var(--teal-pale); display: flex; align-items: center; justify-content: center; }
.res-icon svg { width: 16px; height: 16px; stroke: var(--teal-deep); }
.res-link-title { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.res-link-sub { display: block; font-size: 0.76rem; color: var(--slate-light); }
.res-disclaimer { font-size: 0.76rem; color: var(--slate-light); line-height: 1.6; margin-top: 1rem; }
.res-disclaimer a { color: var(--teal-deep); }
@media (max-width: 860px) { .seo-grid { grid-template-columns: 1fr; } }

/* ---------- Closing band ---------- */
.closing-band { background: var(--navy-teal); padding: 5rem 2rem; text-align: center; }
.closing-band-content { max-width: 560px; margin: 0 auto; }
.closing-band-content h2 { color: var(--white); font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 0.8rem; }
.closing-band-content p { color: rgba(250,248,243,0.85); font-size: 0.98rem; margin-bottom: 1.7rem; line-height: 1.6; }

/* ---------- Footer ---------- */
footer { background: var(--navy-teal); color: rgba(250,248,243,0.85); padding: 3.5rem 2.5rem 1.8rem; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-brand p { font-size: 0.86rem; color: rgba(250,248,243,0.62); line-height: 1.7; margin-top: 0.9rem; max-width: 24rem; }
footer h4 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(250,248,243,0.55); margin-bottom: 0.9rem; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
footer a { color: rgba(250,248,243,0.82); text-decoration: none; font-size: 0.88rem; }
footer a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1160px; margin: 2.6rem auto 0; padding-top: 1.6rem; border-top: 1px solid rgba(250,248,243,0.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.78rem; color: rgba(250,248,243,0.55);
}
.footer-bottom a { color: rgba(250,248,243,0.72); }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } .section { padding: 3.5rem 1.3rem; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 3.2rem 2.5rem 3rem; text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero .eyebrow::before { display: none; }
.page-hero h1 { font-size: clamp(2rem, 3.2vw, 2.7rem); font-weight: 500; }
.page-hero p { color: var(--slate); margin-top: 0.7rem; font-size: 1rem; }

/* ---------- About page value rows ---------- */
.value-rows { display: flex; flex-direction: column; gap: 1.4rem; }
.value-row { display: flex; gap: 1.2rem; align-items: flex-start; }
.value-row-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--teal-pale); display: flex; align-items: center; justify-content: center; }
.value-row-icon svg { width: 19px; height: 19px; stroke: var(--teal-deep); }
.value-row h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.value-row p { font-size: 0.9rem; color: var(--slate); line-height: 1.6; margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.hero-tag, .hero-split-text h1, .hero-sub, .hero-actions { animation: fadeRise .6s ease-out backwards; }
@keyframes fadeRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-tag { animation-delay: .05s; } .hero-split-text h1 { animation-delay: .15s; }
.hero-sub { animation-delay: .3s; } .hero-actions { animation-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible { opacity: 1; transform: none; transition: none; }
  .hero-tag, .hero-split-text h1, .hero-sub, .hero-actions { animation: none; }
}

.section, .page-hero, .terms-wrap, .booking-wrap, .about-wrap,
.value-rows, .essentials-grid { position: relative; z-index: 0; }
