/* ============================================================
   Evoura Home Care — styles.css
   Mobile-first. Edit the design tokens below to re-theme.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette — from the Evoura brand board: calm teal, one warm glow */
  --teal:        #1c5b57;   /* Deep Teal: primary — headers, buttons, wordmark */
  --teal-deep:   #134542;   /* darker teal — hover, footer, gradients */
  --teal-tint:   #e8efee;   /* soft teal wash */
  --amber:       #e0a458;   /* Warm Amber: THE accent — use sparingly (one CTA, highlights) */
  --clay:        #d98a6e;   /* Clay Rose: secondary warm (errors, soft fills) */
  --sage:        #a9c9b4;   /* Sage Mist: support — dividers, quiet backgrounds */
  --sage-ink:    #6e9384;   /* muted sage for eyebrows and labels */
  --sage-tint:   #e6efe9;   /* soft sage wash */
  --cream:       #f6f1e8;   /* Cream: page canvas */
  --sand:        #efe8db;   /* Cream 2: alt section background */
  --ink:         #213230;   /* Ink: body text, never pure black */
  --ink-soft:    #41524f;   /* secondary text */
  --line:        #e0d8c8;   /* borders */
  --white:       #ffffff;

  /* Type — Fraunces for headlines/wordmark, Nunito Sans for everything else */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Shape & shadow */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 8px rgba(46, 58, 54, 0.06), 0 12px 32px rgba(46, 58, 54, 0.08);
  --shadow-lift: 0 4px 12px rgba(46, 58, 54, 0.1), 0 18px 44px rgba(46, 58, 54, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 6.5vw, 3.1rem); letter-spacing: -0.01em; color: var(--teal-deep); }
h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); color: var(--teal); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow { max-width: 760px; }

section { padding: 56px 0; }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--sage-ink);
  margin-bottom: 10px;
}

.section-cta { text-align: center; margin-top: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(28, 91, 87, 0.3);
}

.btn-primary:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

/* Amber is the brand's single warm accent: reserved for THE conversion button */
.btn-amber {
  background: var(--amber);
  color: var(--teal-deep);
  box-shadow: 0 6px 18px rgba(224, 164, 88, 0.4);
}

.btn-amber:hover { background: #d29647; transform: translateY(-1px); }
.btn-amber:active { transform: translateY(0); }

.btn-lg { font-size: 1.05rem; padding: 16px 34px; }
.btn-sm { font-size: 0.88rem; padding: 10px 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Horizontal lockup (brand board: default for the website header) */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark { width: 38px; height: 38px; }

.logo-lockup { display: flex; flex-direction: column; line-height: 1; }

.logo-word {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
}

.logo-tag {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage-ink);
  margin-top: 3px;
  white-space: nowrap;
}

/* Slightly smaller lockup on narrow phones so it never crowds the CTA */
@media (max-width: 380px) {
  .logo-word { font-size: 1.15rem; }
  .logo-mark { width: 32px; height: 32px; }
}

.logo-text em { font-style: normal; color: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(900px 480px at 50% -15%, rgba(224, 164, 88, 0.16) 0%, transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(169, 201, 180, 0.3) 0%, transparent 55%),
    var(--cream);
  text-align: center;
}

.hero-inner { max-width: 780px; }

/* Hook badge: gradient border gives it a modern, forward-looking feel */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(90deg, var(--teal), var(--amber)) border-box;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--teal);
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(28, 91, 87, 0.12);
}

.hero-eyebrow svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--amber); }

.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 28px;
}

.hero-sub strong { color: var(--ink); }

.hero-cta-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 26px 0 0;
}

.hero-chips li {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(28, 91, 87, 0.08);
  border-radius: 999px;
  padding: 6px 14px;
}

.hero-chips li::before { content: "✓ "; }

/* ---------- Cards (trust + services) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(169, 201, 180, 0.28);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.card-icon svg { width: 24px; height: 24px; }

/* ---------- Trust section ---------- */
.trust { background: var(--white); }
.trust .card { background: var(--cream); box-shadow: none; }

/* Transparency band with phone mockup */
/* Brand-board hero treatment: teal gradient with the warm amber glow */
.transparency-band {
  margin-top: 40px;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(224, 164, 88, 0.22), transparent 60%),
    linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-radius: var(--radius);
  padding: 34px 26px;
  color: var(--cream);
  display: grid;
  gap: 28px;
}

.band-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  font-weight: 800;
  color: #9fc7b7;
  margin-bottom: 10px;
}

.transparency-band h3 {
  color: var(--cream);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.transparency-band p { margin: 0; color: #cfe1d8; }
.transparency-band strong { color: var(--cream); }

.phone-mock {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 10px;
  max-width: 300px;
  margin: 0 auto;
  width: 100%;
}

.phone-screen {
  background: var(--white);
  border-radius: 15px;
  padding: 16px 15px;
  color: var(--ink);
  font-size: 0.85rem;
  display: grid;
  gap: 9px;
}

.phone-row { display: flex; align-items: center; gap: 8px; }

.phone-row-header {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--teal);
}

.phone-row-note {
  background: var(--sand);
  border-radius: 8px;
  padding: 8px 10px;
  font-style: italic;
  color: var(--ink-soft);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green { background: var(--amber); }

/* ---------- How it works ---------- */
.how { background: var(--sand); text-align: center; }

.steps {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  counter-reset: step;
  text-align: center;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  margin-top: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 20px;
  font-weight: 700;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

/* +/− indicator */
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--teal);
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-deep);
  color: #9fc7b7;
  text-align: center;
  padding: 44px 0 110px; /* extra bottom padding so sticky CTA never covers text */
  font-size: 0.9rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 6px;
}

.footer-logo em { font-style: normal; color: #9fc7b7; }

.footer-fine { font-size: 0.8rem; color: rgba(246, 241, 232, 0.5); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; text-align: center; }

/* ============================================================
   QUALIFYING FLOW (modal)
   ============================================================ */
/* The [hidden] attribute must win over the flex display below */
.funnel-overlay[hidden] { display: none; }

.funnel-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(46, 58, 54, 0.5);
  display: flex;
  align-items: flex-end;          /* bottom sheet on mobile */
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.funnel-overlay.open { opacity: 1; }

.funnel-panel {
  background: var(--cream);
  width: 100%;
  max-height: 92dvh;
  min-height: 70dvh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(30px);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.funnel-overlay.open .funnel-panel { transform: translateY(0); }

/* Top bar */
.funnel-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.funnel-back, .funnel-close {
  background: none;
  border: 0;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 6px 8px;
  border-radius: 8px;
}

.funnel-back:hover, .funnel-close:hover { background: var(--sand); }
.funnel-back[disabled] { opacity: 0; pointer-events: none; }

.funnel-progress {
  flex: 1;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

/* Amber progress: the visitor's own "glow" growing as they go */
.funnel-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--amber);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.funnel-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  min-width: 34px;
  text-align: center;
}

/* Body / screens */
.funnel-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 22px 36px;
  position: relative;
}

.funnel-screen { max-width: 480px; margin: 0 auto; }

/* Enter/exit transitions (classes toggled by script.js) */
.funnel-screen {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.funnel-screen.active { opacity: 1; transform: translateX(0); }
.funnel-screen.exit-left { opacity: 0; transform: translateX(-24px); }
.funnel-screen.enter-from-left { transform: translateX(-24px); }

.funnel-question {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--teal-deep);
}

.funnel-hint {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 22px;
}

/* Answer option buttons */
.funnel-options { display: grid; gap: 11px; }

.funnel-option {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.funnel-option:hover { border-color: var(--teal); background: var(--teal-tint); }
.funnel-option:active { transform: scale(0.99); }
.funnel-option.selected { border-color: var(--teal); background: var(--teal-tint); }

.funnel-option small {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.84rem;
  margin-top: 2px;
}

/* Text inputs (ZIP + contact steps) */
.funnel-field { margin-bottom: 16px; }

.funnel-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.funnel-field input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-family: inherit;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}

.funnel-field input:focus { border-color: var(--teal); }
.funnel-field input.invalid { border-color: var(--clay); }

.funnel-error {
  color: #b5613f;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 4px 0 0;
  min-height: 1.2em;
}

.funnel-notice {
  background: var(--sage-tint);
  border: 1px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 12px 0 0;
}

.funnel-continue {
  width: 100%;
  margin-top: 20px;
  font-size: 1.05rem;
  padding: 15px 20px;
}

.funnel-privacy {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 14px;
}

/* Thank-you screen */
.funnel-thanks { text-align: center; padding-top: 12px; }

.thanks-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.thanks-check svg { width: 32px; height: 32px; }

/* What-to-expect checklist on the thank-you screen */
.consult-list {
  list-style: none;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0 0 18px;
  display: grid;
  gap: 7px;
  font-size: 0.95rem;
}

.consult-list-title {
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 2px;
}

.booking-embed {
  margin-top: 22px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Prevent background scroll while the funnel is open */
body.funnel-open { overflow: hidden; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .funnel-screen, .funnel-panel, .funnel-overlay,
  .sticky-cta, .funnel-progress-fill, .btn { transition: none; }
}

/* ============================================================
   TABLET AND UP (≥ 700px)
   ============================================================ */
@media (min-width: 700px) {
  section { padding: 80px 0; }

  .hero { padding: 90px 0 80px; }

  .card-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  .steps { grid-template-columns: repeat(3, 1fr); }

  .transparency-band {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 44px 40px;
  }

  /* Sticky CTA is a mobile pattern; hide on larger screens */
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 44px; }

  /* Funnel becomes a centered dialog instead of a bottom sheet */
  .funnel-overlay { align-items: center; padding: 24px; }

  .funnel-panel {
    max-width: 560px;
    min-height: 0;
    height: 640px;
    max-height: calc(100dvh - 48px);
    border-radius: 20px;
  }

  .funnel-body { padding: 40px 40px 44px; }
}

/* ============================================================
   DESKTOP (≥ 1000px)
   ============================================================ */
@media (min-width: 1000px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .guarantee-grid { grid-template-columns: repeat(4, 1fr); }
}
