/* ==========================================================================
   Desert65 — Design System
   Warm, calm, senior-first. Sage / cream / muted blue, with a soft
   "desert horizon" motif as the signature element throughout.
   ========================================================================== */

:root {
  /* --- Color tokens --- */
  --cream:        #FBF7EE;
  --cream-deep:   #F1E8D6;
  --sage-50:      #EEF2E7;
  --sage-100:     #DEE7D3;
  --sage-300:     #ADC29D;
  --sage-500:     #7C9473;
  --sage-600:     #647C5C;
  --sage-700:     #4F6549;
  --sage-900:     #33422E;
  --blue-100:     #DDE6EB;
  --blue-300:     #AFC3CF;
  --blue-500:     #7891A1;
  --blue-700:     #4C6577;
  --gold:         #C79A4B;
  --gold-deep:    #A87E38;
  --ink:          #33362D;
  /* Brand colors sampled from the Desert65 logo artwork */
  --brand-orange:       #C43E00;
  --brand-orange-light: #FFA36B;
  --brand-blue:         #0A6E9E;
  --brand-blue-light:   #5FC0EE;
  --ink-soft:     #5C5D50;
  --white:        #FFFFFF;

  /* --- Type --- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Radii & shadow --- */
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 36px;
  --radius-pill: 999px;
  --shadow-soft: 0 20px 44px -20px rgba(51, 66, 46, 0.28);
  --shadow-card: 0 6px 20px rgba(51, 66, 46, 0.10);

  /* --- Layout --- */
  --max-width: 1180px;
  --header-h: 84px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 74px; /* room for mobile sticky call bar */
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--sage-900);
  line-height: 1.14;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 3vw + 1.6rem, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 2vw + 1.3rem, 2.7rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.35rem, 1vw + 1.1rem, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-700);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
  border-radius: 2px;
}

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

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 700px) { .wrap { padding: 0 40px; } }

section { padding: 68px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }

.section-alt { background: var(--sage-50); }
.section-deep { background: var(--sage-900); color: var(--cream); }
.section-deep h2, .section-deep h3 { color: var(--cream); }
.section-deep p { color: var(--sage-100); }

.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 28px; }
@media (min-width: 700px)  { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sage-700); color: var(--white); box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--sage-900); }
.btn-gold { background: var(--gold); color: var(--sage-900); box-shadow: var(--shadow-card); }
.btn-gold:hover { background: var(--gold-deep); color: var(--white); }
.btn-outline { background: var(--sage-100); border-color: var(--sage-500); color: var(--sage-700); }
.btn-outline:hover { background: var(--sage-700); border-color: var(--sage-700); color: var(--white); }
.btn-outline-light { background: var(--cream); border-color: var(--cream); color: var(--sage-900); }
.btn-outline-light:hover { background: var(--white); border-color: var(--white); color: var(--sage-900); }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(51, 66, 46, 0.08);
}
.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand svg, .brand-mark { width: 42px; height: 42px; flex-shrink: 0; object-fit: contain; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brand-orange);
  letter-spacing: -0.01em;
}
.brand-word span { color: var(--brand-blue); }

.main-nav { display: none; }
@media (min-width: 980px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
  }
  .main-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--sage-900);
    position: relative;
    padding: 6px 2px;
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    transition: right 0.2s ease;
  }
  .main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-call {
  display: none;
}
@media (min-width: 980px) {
  .header-call { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--sage-300);
  background: var(--white);
  flex-shrink: 0;
}
.nav-toggle svg { width: 24px; height: 24px; color: var(--sage-900); }
@media (min-width: 980px) { .nav-toggle { display: none; } }

/* Mobile full-screen nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; height: 52px; margin-bottom: 30px; }
.mobile-nav-close { width: 52px; height: 52px; border-radius: var(--radius-sm); border: 2px solid var(--sage-300); background: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav-close svg { width: 22px; height: 22px; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a {
  display: block;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--sage-900);
  padding: 14px 4px;
  border-bottom: 1px solid var(--sage-100);
}
.mobile-nav-foot { margin-top: auto; padding-top: 24px; }

body.nav-open { overflow: hidden; }

/* Sticky mobile call bar */
.call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 150;
  background: var(--sage-900);
  display: flex;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
}
@media (min-width: 900px) { .call-bar { display: none; } }
.call-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 74px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
}
.call-bar a svg { width: 22px; height: 22px; }
.call-bar .call-bar-primary { background: var(--gold); color: var(--sage-900); flex: 1.3; }

/* --------------------------------------------------------------------------
   Horizon / signature motif
   -------------------------------------------------------------------------- */
.horizon-divider {
  width: 100%;
  height: 64px;
  display: block;
}
.horizon-divider path { fill: var(--cream); }
.section-alt + section .horizon-divider path,
.section-alt .horizon-divider path { fill: var(--sage-50); }

.sun-mark { position: relative; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: 56px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  gap: 44px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; padding-bottom: 40px; }
}
.hero-copy p.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3.1;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: 18px; left: 18px;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  max-width: 250px;
}
.hero-badge .badge-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sage-500);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-badge .badge-icon svg { width: 20px; height: 20px; color: var(--white); }
.hero-badge strong { display: block; font-size: 0.95rem; color: var(--sage-900); }
.hero-badge span { font-size: 0.85rem; color: var(--ink-soft); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--sage-100);
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--sage-900);
}
.hero-stats div span { font-size: 0.95rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  height: 100%;
}
.card .icon-badge { margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

.icon-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--sage-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-badge svg { width: 28px; height: 28px; color: var(--sage-700); }
.icon-badge.gold { background: #FBF1DD; }
.icon-badge.gold svg { color: var(--gold-deep); }
.icon-badge.blue { background: var(--blue-100); }
.icon-badge.blue svg { color: var(--blue-700); }

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-card ul { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.service-card li {
  display: flex;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.service-card li svg { width: 18px; height: 18px; color: var(--sage-600); flex-shrink: 0; margin-top: 3px; }

/* Steps */
.step {
  display: flex;
  gap: 20px;
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--sage-900);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step h3 { margin-bottom: 6px; }

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.testimonial-stars { display: flex; gap: 4px; }
.testimonial-stars svg { width: 18px; height: 18px; color: var(--gold); }
.testimonial-quote { font-family: var(--font-display); font-size: 1.15rem; color: var(--sage-900); line-height: 1.5; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-person strong { display: block; font-size: 0.98rem; color: var(--sage-900); }
.testimonial-person span { font-size: 0.85rem; color: var(--ink-soft); }

/* Badges / pills (states served) */
.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--sage-100);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sage-900);
}

/* CTA band */
.cta-band {
  background: var(--sage-900);
  border-radius: var(--radius-lg);
  padding: 52px 36px;
  text-align: center;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: var(--sage-100); max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }

.cta-band.has-photo {
  background-size: cover;
  background-position: center;
}
.cta-band.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(51,66,46,.92), rgba(51,66,46,.74));
}
.cta-band.has-photo > * { position: relative; z-index: 1; }

/* Full-bleed "sense of place" photo band */
.photo-strip {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.photo-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(51,66,46,.42), rgba(51,66,46,.78));
}
.photo-strip .wrap { position: relative; z-index: 1; width: 100%; }
.photo-strip-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.photo-strip-inner .eyebrow { color: var(--brand-orange-light); }
.photo-strip-inner h2 { color: var(--cream); }
.photo-strip-inner p { color: var(--sage-100); }

/* FAQ accordion */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 26px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sage-900);
  min-height: 56px;
}
.faq-q .plus {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sage-50);
  flex-shrink: 0;
  position: relative;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--sage-700);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-q .plus::before { width: 14px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 14px; transition: transform 0.2s ease; }
.faq-item.is-open .plus::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a-inner { padding: 0 26px 26px; color: var(--ink-soft); max-width: 68ch; }
.faq-item.is-open .faq-a { max-height: 600px; }

/* Forms */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 700;
  color: var(--sage-900);
  margin-bottom: 8px;
  font-size: 1rem;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--sage-100);
  background: var(--white);
  color: var(--ink);
  font-size: 1.05rem;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--sage-500);
  outline: none;
}
.form-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 14px; }

/* Contact tiles */
.contact-tile {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  color: var(--ink);
}
.contact-tile h4 { margin-bottom: 4px; color: var(--sage-900); }
.contact-tile p { margin: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--sage-900);
  color: var(--sage-100);
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  gap: 40px;
  margin-bottom: 44px;
}
@media (min-width: 800px) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand .brand-word { color: var(--brand-orange-light); }
.footer-brand .brand-word span { color: var(--brand-blue-light); }
.footer-brand p { color: var(--sage-100); margin-top: 14px; max-width: 40ch; }
.site-footer h4 { color: var(--cream); font-family: var(--font-body); font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--sage-100); }
.site-footer a:hover { color: var(--cream); }
.footer-legal {
  border-top: 1px solid rgba(251,247,238,0.14);
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(251,247,238,0.65);
  line-height: 1.7;
}
.footer-legal p { color: inherit; font-size: inherit; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.85rem;
  color: rgba(251,247,238,0.55);
}

/* --------------------------------------------------------------------------
   Page header (inner pages)
   -------------------------------------------------------------------------- */
.page-header {
  padding: 52px 0 0;
}
.page-header .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .page-header .wrap { grid-template-columns: 1fr 0.9fr; padding-bottom: 30px; } }
.page-header-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/3; }
.page-header-media img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Checkup quiz
   -------------------------------------------------------------------------- */
.quiz-section { padding: 40px 0 90px; }
.quiz-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 34px 26px 40px;
  position: relative;
  scroll-margin-top: 104px;
}
@media (min-width: 700px) { .quiz-card { padding: 44px 52px 52px; } }

.quiz-progress-track {
  height: 8px;
  background: var(--sage-50);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 14px;
}
.quiz-progress-bar {
  height: 100%;
  background: var(--brand-orange);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
  width: 0%;
}
.quiz-step-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sage-600);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--sage-700);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 8px 0;
  margin-bottom: 6px;
  min-height: 44px;
}
.quiz-back[hidden] { display: none; }

.quiz-title { margin-bottom: 8px; }
.quiz-subtitle { margin-bottom: 26px; font-size: 1.02rem; }

.quiz-options { display: flex; flex-direction: column; gap: 14px; }
.quiz-options.is-yesno { flex-direction: row; gap: 14px; }
.quiz-options.is-yesno .quiz-option-btn { flex: 1; text-align: center; justify-content: center; }

.quiz-option-btn {
  width: 100%;
  text-align: left;
  background: var(--cream);
  border: 2px solid var(--sage-100);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--sage-900);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.quiz-option-btn:hover { border-color: var(--sage-500); transform: translateY(-1px); }
.quiz-option-btn.is-selected { border-color: var(--brand-orange); background: #FFF4EC; }
.quiz-option-btn .opt-check {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--sage-300);
  flex-shrink: 0;
  position: relative;
}
.quiz-option-btn.is-selected .opt-check { border-color: var(--brand-orange); background: var(--brand-orange); }
.quiz-option-btn.is-selected .opt-check::after {
  content: "";
  position: absolute; left: 50%; top: 46%;
  width: 5px; height: 10px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: translate(-50%, -50%) rotate(45deg);
}

.quiz-input-row input[type="text"] {
  width: 100%;
  min-height: 60px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--sage-100);
  background: var(--cream);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 18px;
}
.quiz-input-row input:focus { border-color: var(--sage-500); outline: none; }

.quiz-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.quiz-date-row select {
  width: 100%;
  min-height: 60px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--sage-100);
  background: var(--cream);
  font-size: 1.1rem;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234F6549" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
}
.quiz-date-row select:focus { border-color: var(--sage-500); outline: none; }

.quiz-skip {
  background: none; border: none; color: var(--sage-600); font-weight: 700;
  font-size: 0.95rem; padding: 10px 0; min-height: 44px;
}

.quiz-intro-icon {
  width: 64px; height: 64px; border-radius: 20px;
  background: var(--sage-50); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.quiz-intro-icon svg { width: 32px; height: 32px; color: var(--sage-700); }

.quiz-result-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-pill);
  background: #FFF4EC; color: var(--brand-orange); font-weight: 800;
  font-size: clamp(1.3rem, 1.6vw + 1rem, 1.7rem);
  line-height: 1.25;
  margin-bottom: 18px;
}
.quiz-result-badge.is-calm { background: var(--sage-50); color: var(--sage-700); }
.quiz-result-bullets { display: flex; flex-direction: column; gap: 14px; margin: 22px 0 28px; }
.quiz-result-bullets li { display: flex; gap: 12px; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; }
.quiz-result-bullets li svg { width: 22px; height: 22px; color: var(--sage-600); flex-shrink: 0; margin-top: 3px; }
.quiz-restart { text-align: center; margin-top: 22px; }
.quiz-restart button { background: none; border: none; color: var(--sage-600); font-weight: 700; text-decoration: underline; min-height: 44px; }

.quiz-capture {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--sage-100);
}
.quiz-capture h3 { margin-bottom: 6px; }
.quiz-capture > p.quiz-subtitle { margin-bottom: 18px; }
.quiz-capture-success {
  text-align: center;
  padding: 8px 0 4px;
}
.quiz-capture-success svg {
  width: 40px; height: 40px; color: var(--sage-600); margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Survey: search/autocomplete + repeatable item lists
   -------------------------------------------------------------------------- */
.survey-field-row { margin-bottom: 18px; }
.survey-field-row label {
  display: block; font-weight: 700; color: var(--sage-900); margin-bottom: 8px; font-size: 1rem;
}
.survey-field-row input, .survey-field-row select {
  width: 100%; min-height: 58px; padding: 13px 16px;
  border-radius: var(--radius-sm); border: 2px solid var(--sage-100);
  background: var(--cream); font-size: 1.05rem; color: var(--ink);
}
.survey-field-row input:focus, .survey-field-row select:focus { border-color: var(--sage-500); outline: none; }
.survey-grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.survey-grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) {
  .survey-grid-2 { grid-template-columns: 1fr 1fr; }
  .survey-grid-3 { grid-template-columns: 1.4fr 1fr 0.9fr; }
}

.survey-search-wrap { position: relative; margin-bottom: 14px; }
.survey-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--white); border: 2px solid var(--sage-100); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card); max-height: 280px; overflow-y: auto; z-index: 20;
}
.survey-search-result-item {
  width: 100%; text-align: left; padding: 14px 16px; border: none; background: none;
  border-bottom: 1px solid var(--sage-50); min-height: 56px;
}
.survey-search-result-item:last-child { border-bottom: none; }
.survey-search-result-item:hover { background: var(--sage-50); }
.survey-search-result-item strong { display: block; color: var(--sage-900); font-size: 1rem; }
.survey-search-result-item span { display: block; font-size: 0.88rem; color: var(--ink-soft); margin-top: 2px; }
.survey-search-status { padding: 14px 16px; color: var(--ink-soft); font-size: 0.95rem; }

.survey-added-list { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 20px; }
.survey-added-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  background: var(--sage-50); border-radius: var(--radius-sm); padding: 14px 16px;
}
.survey-added-item .info strong { display: block; color: var(--sage-900); }
.survey-added-item .info span { display: block; font-size: 0.9rem; color: var(--ink-soft); margin-top: 2px; }
.survey-added-item .info .meta-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.survey-added-item .info .meta-row input {
  min-height: 46px; padding: 8px 12px; border-radius: 10px; border: 2px solid var(--sage-100);
  background: var(--white); font-size: 0.95rem; width: 140px;
}
.survey-remove-btn {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--sage-100); color: var(--sage-700);
  display: flex; align-items: center; justify-content: center; min-height: unset;
}

.survey-dont-have {
  display: inline-block; margin: 4px 0 20px; color: var(--sage-700); font-weight: 700;
  text-decoration: underline; background: none; border: none; font-size: 1rem; min-height: 44px;
}
.survey-dont-have.is-active { color: var(--brand-orange); }

.survey-add-more-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--sage-50);
  border: 2px solid var(--sage-100); color: var(--sage-900); border-radius: var(--radius-pill);
  padding: 10px 20px; font-weight: 700; min-height: 48px; margin-bottom: 16px;
}

.survey-checkbox-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 20px; }
.survey-checkbox-row input { width: 22px; height: 22px; flex-shrink: 0; }
.survey-checkbox-row label { font-weight: 600; color: var(--sage-900); }

.soa-category { border-bottom: 1px solid var(--sage-100); padding: 20px 0; }
.soa-category:first-child { padding-top: 0; }
.soa-category:last-child { border-bottom: none; padding-bottom: 0; }
.soa-category h3 { font-size: 1.1rem; margin-bottom: 6px; }
.soa-category p { font-size: 0.92rem; margin-bottom: 12px; }
.soa-category input[type="text"] {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 2px solid var(--sage-100); background: var(--cream); font-size: 1.05rem;
  text-transform: uppercase;
}
.soa-category input[type="text"]:focus { border-color: var(--sage-500); outline: none; }

.soa-poa-fields { margin-top: 16px; padding: 16px; background: var(--sage-50); border-radius: var(--radius-sm); }

.soa-sig-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.soa-sig-option {
  border: 2px solid var(--sage-100); border-radius: var(--radius-md); padding: 16px;
  text-align: center; font-size: 2.1rem; background: var(--white); min-height: 76px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.soa-sig-option.is-selected { border-color: var(--brand-orange); background: #FFF4EC; }
.soa-sig-font-a { font-family: 'Dancing Script', cursive; }
.soa-sig-font-b { font-family: 'Sacramento', cursive; }
.soa-sig-font-c { font-family: 'Caveat', cursive; font-size: 2.4rem; }

.soa-legal-text { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.6; margin: 18px 0; }

/* Utility */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }
.two-col-text { columns: 1; }
@media (min-width: 800px) { .two-col-text.split { columns: 2; column-gap: 40px; } }

/* --------------------------------------------------------------------------
   Mobile: center headings for a friendlier, easier-to-scan phone layout
   -------------------------------------------------------------------------- */
@media (max-width: 699px) {
  .hero-copy { text-align: center; }
  .hero-stats { justify-content: center; text-align: center; }

  .btn-row { justify-content: center; }
  .promo-text { text-align: center; }
  .promo-text .eyebrow { justify-content: center; }

  .page-header .wrap > div:first-child { text-align: center; }
  .page-header .wrap > div:first-child .eyebrow { justify-content: center; }

  .section-head { text-align: center; }
  .section-head .eyebrow { justify-content: center; }

  .quiz-card .quiz-title,
  .quiz-card .quiz-subtitle,
  .quiz-capture h2.quiz-title {
    text-align: center;
  }
  .quiz-result-badge {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}
