/* ==========================================================================
   Comforting Stars | Main Stylesheet
   --------------------------------------------------------------------------
   HOW TO EDIT:
   - Colors and fonts live in the ":root" section right below.
     Change a color once there and it updates across the whole site.
   - Sections are labeled with big comment headers so you can find them.
   ========================================================================== */

/* ==========================================================================
   1. BRAND SETTINGS (EDIT: colors, fonts, sizes)
   ========================================================================== */
:root {
  /* EDIT: Brand colors ("Moonlit Navy" palette, Option 2).
     All text/background pairs below pass WCAG AA contrast.
     Lavender (--color-accent) is for stars, buttons with navy text, and decoration.
     Never use lavender for small text on white: it's too light to read. */
  --color-primary: #3b3fb8;        /* Twilight Blue: buttons, links */
  --color-primary-dark: #18204a;   /* Midnight Navy: headings, footer, dark bands */
  --color-primary-soft: #e6eaf4;   /* Silver Sky: light section backgrounds */
  --color-accent: #c2b2ee;         /* Moon Lavender: call buttons, stars, highlights */
  --color-accent-dark: #a894e3;    /* Deeper lavender: hover on lavender buttons */
  --color-accent-text: #5a4bb0;    /* Lavender dark enough to use as text */
  --color-bg: #f8f9fc;             /* Cloud White: page background */
  --color-surface: #ffffff;        /* Cards and forms */
  --color-sand: #f0edf9;           /* Pale lavender: alternate sections */
  --color-text: #262a3a;           /* Charcoal: main body text */
  --color-muted: #4a5068;          /* Secondary text */
  --color-border: #dce0ec;         /* Soft borders */
  --color-input-border: #7d849f;   /* Form field borders */
  --color-error: #a12d2d;          /* Form errors */

  /* EDIT: Fonts (loaded from Google Fonts in each page's <head>) */
  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Sizes */
  --text-base: 1.125rem;   /* 18px minimum body text */
  --text-lg: 1.25rem;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(24, 32, 74, 0.08);
  --shadow-lg: 0 14px 40px rgba(24, 32, 74, 0.14);
  --container: 1160px;
  --header-height: 76px;
}

/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.55rem); }
h4 { font-size: 1.2rem; }

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--color-primary);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.35em;
}

strong {
  font-weight: 700;
}

/* Visible keyboard focus everywhere (accessibility) */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Hide content visually but keep it for screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to content link: appears when a keyboard user presses Tab */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ==========================================================================
   3. LAYOUT HELPERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

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

.section {
  padding: 72px 0;
}

.section-sand {
  background: var(--color-sand);
}

.section-teal {
  background: var(--color-primary-soft);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-header p {
  color: var(--color-muted);
  font-size: var(--text-lg);
}

/* Small label above headings, with a star */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.7-5.4 4.8 1.6 7-6.2-3.7-6.2 3.7 1.6-7L2 9.3l7.1-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.7-5.4 4.8 1.6 7-6.2-3.7-6.2 3.7 1.6-7L2 9.3l7.1-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-muted);
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1.075rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Teal button */
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* Gold "call" button with dark text for strong contrast */
.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(59, 63, 184, 0.22);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  color: var(--color-primary-dark);
}

/* Outlined button */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* White outline, for dark backgrounds */
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--color-primary-dark);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 252, 0.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Added by main.js once the visitor scrolls */
.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(24, 32, 74, 0.1);
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 1 235px;   /* Logo shrinks on small phones so everything fits */
  min-width: 0;
}

.logo picture {
  display: block;
  width: 100%;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Small phones show only the C|S mark */
@media (max-width: 419px) {
  .logo {
    flex: 0 0 auto;
  }

  .logo picture,
  .logo img {
    width: auto;
    height: 54px;
  }
}

/* Tighter header on small phones */
@media (max-width: 420px) {
  .header-inner {
    gap: 10px;
  }

  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .header-call {
    padding: 10px 14px;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* The header call button shrinks on small phones */
.header-call {
  min-height: 46px;
  padding: 10px 18px;
  font-size: 1rem;
}

.header-call .call-label-long {
  display: none;
}

/* Hamburger button (mobile only) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel */
.primary-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 12px 20px 24px;
}

.primary-nav.is-open {
  display: block;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav li + li {
  margin-top: 0;
}

.primary-nav a {
  display: block;
  padding: 14px 8px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--color-primary);
}

.primary-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

/* Desktop navigation */
@media (min-width: 1080px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .primary-nav ul {
    display: flex;
    gap: 4px;
  }

  .primary-nav a {
    border: 0;
    padding: 10px 12px;
    font-size: 1.05rem;
    border-radius: 8px;
  }

  .primary-nav a:hover {
    background: var(--color-primary-soft);
  }

  .header-call .call-label-long {
    display: inline;
  }

  .header-call .call-label-short {
    display: none;
  }
}

@media (min-width: 480px) and (max-width: 1079px) {
  .header-call .call-label-long {
    display: inline;
  }

  .header-call .call-label-short {
    display: none;
  }
}

/* ==========================================================================
   6. HERO (home page)
   ========================================================================== */
.hero {
  padding: 48px 0 64px;
  background:
    radial-gradient(circle at 85% 15%, rgba(194, 178, 238, 0.35), transparent 45%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-primary-soft) 100%);
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 0.4em;
}

.hero .lead {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  margin-bottom: 28px;
}

.hero-image {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero {
    padding: 80px 0 96px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
  }
}

/* Inner page hero (all pages except Home) */
.page-hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(circle at 90% 10%, rgba(194, 178, 238, 0.4), transparent 40%),
    var(--color-primary-soft);
  text-align: center;
}

.page-hero .lead {
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   7. TRUST BAR
   ========================================================================== */
.trust-bar {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 22px 0;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 28px;
}

.trust-list li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

.trust-list svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .trust-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .trust-list {
    display: flex;
    justify-content: space-between;
  }
}

/* ==========================================================================
   8. CARDS (services, values, testimonials)
   ========================================================================== */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

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

/* Service cards on the Home page are fully clickable */
.card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.card-more {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 800;
  color: var(--color-primary);
}

/* ==========================================================================
   9. STEPS (How It Works)
   ========================================================================== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  counter-reset: step;
}

.steps > li {
  margin: 0;
  counter-increment: step;
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
}

.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.steps h3 {
  font-size: 1.25rem;
}

.steps p:last-child {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Detailed steps (How It Works page) */
.steps-detailed {
  grid-template-columns: 1fr !important;
}

.steps-detailed > li {
  padding: 32px;
}

@media (min-width: 760px) {
  .steps-detailed > li {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0 24px;
  }

  .steps-detailed > li::before {
    grid-row: 1 / span 10;
    width: 56px;
    height: 56px;
  }
}

/* ==========================================================================
   10. SPLIT SECTIONS (image + text side by side)
   ========================================================================== */
.split {
  display: grid;
  gap: 36px;
  align-items: center;
}

.split-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-image.portrait img {
  aspect-ratio: 4 / 5;
  max-width: 440px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .split-reverse .split-image {
    order: 2;
  }
}

/* ==========================================================================
   11. SERVICE DETAIL BLOCKS (Services page)
   ========================================================================== */
.service-block {
  padding: 56px 0;
  border-bottom: 1px solid var(--color-border);
}

.service-block:last-of-type {
  border-bottom: 0;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}

.checklist li {
  position: relative;
  padding-left: 36px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3fb8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ==========================================================================
   12. CALLOUT BOX (insurance note, notices)
   ========================================================================== */
.callout {
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout h2,
.callout h3 {
  margin-bottom: 0.3em;
}

@media (min-width: 800px) {
  .callout {
    grid-template-columns: 1fr auto;
    gap: 32px;
    padding: 36px 40px;
  }
}

.note {
  background: var(--color-sand);
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}

/* Legal disclaimer box */
.legal-note {
  background: #f3effc;
  border: 1px dashed var(--color-accent-text);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 700;
  margin-bottom: 32px;
}

/* ==========================================================================
   13. TESTIMONIALS
   ========================================================================== */
.testimonial {
  position: relative;
  padding-top: 52px;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 24px;
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-accent);
}

.testimonial blockquote {
  margin: 0 0 18px;
  font-size: 1.1rem;
  font-style: italic;
}

.testimonial figcaption {
  margin-top: auto;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.testimonial figcaption span {
  display: block;
  font-weight: 600;
  color: var(--color-muted);
  font-size: 1rem;
}

/* ==========================================================================
   14. CTA BAND (dark call to action at the bottom of pages)
   ========================================================================== */
.cta-band {
  background:
    radial-gradient(circle at 15% 20%, rgba(194, 178, 238, 0.22), transparent 40%),
    var(--color-primary-dark);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  font-size: var(--text-lg);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-group {
  justify-content: center;
  margin-top: 28px;
}

.cta-phone {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  margin: 8px 0 4px;
}

.cta-phone:hover {
  color: #fff;
}

/* ==========================================================================
   15. VALUES, CAREGIVER POINTS
   ========================================================================== */
.value-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mission {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.5;
  color: var(--color-primary-dark);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  font-style: italic;
}

.signature {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--color-primary);
}

/* ==========================================================================
   16. FAQ ACCORDION (uses native <details>, works without JavaScript)
   ========================================================================== */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 60px 20px 24px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  position: relative;
}

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

/* Plus / minus icon */
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
}

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

.faq-answer {
  padding: 0 24px 22px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   17. FORMS
   ========================================================================== */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
}

@media (min-width: 700px) {
  .form-card {
    padding: 40px;
  }
}

.form-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .full {
    grid-column: 1 / -1;
  }
}

.field label,
.field legend {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--color-text);
  padding: 0;
}

.field .hint {
  display: block;
  font-size: 1rem;
  color: var(--color-muted);
  margin: -2px 0 8px;
}

.required-mark {
  color: var(--color-error);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  color: var(--color-text);
  background: #fff;
  border: 2px solid var(--color-input-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 52px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  outline: 3px solid rgba(59, 63, 184, 0.25);
  outline-offset: 0;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.choice-group {
  display: grid;
  gap: 10px;
}

@media (min-width: 560px) {
  .choice-group.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  cursor: pointer;
}

.choice input {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.form-reassure {
  font-size: 1rem;
  color: var(--color-muted);
  margin-top: 14px;
}

/* Honeypot field for spam bots: hidden from people */
.hidden-field {
  display: none;
}

/* ==========================================================================
   18. CONTACT PAGE
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
  }
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 0 18px;
}

.contact-list svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-list strong {
  display: block;
}

.big-phone {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  font-weight: 700;
  text-decoration: none;
}

/* Map placeholder box */
.map-placeholder {
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 40%, rgba(194, 178, 238, 0.55), transparent 30%),
    radial-gradient(circle at 70% 70%, rgba(194, 178, 238, 0.45), transparent 28%),
    var(--color-primary-soft);
  border: 1px solid var(--color-border);
  padding: 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-placeholder h3 {
  margin-bottom: 8px;
}

.map-placeholder iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   19. LEGAL PAGES / LONG TEXT
   ========================================================================== */
.prose h2 {
  font-size: 1.6rem;
  margin-top: 1.8em;
}

.prose h3 {
  font-size: 1.25rem;
  margin-top: 1.4em;
}

.updated {
  color: var(--color-muted);
  font-style: italic;
}

/* ==========================================================================
   20. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: #e6e9f4;
  padding: 64px 0 28px;
  font-size: 1.05rem;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--color-accent);
}

.footer-grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 700px) {
  .footer-locations-col {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.1fr 2fr 0.8fr;
  }

  .footer-locations-col {
    grid-column: auto;
  }
}

.footer-logo {
  display: inline-block;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 170px;
  height: auto;
}

.site-footer h2 {
  color: #fff;
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.social-links li + li {
  margin-top: 0;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.98rem;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom li + li {
  margin-top: 0;
}

/* ==========================================================================
   21. 404 & THANK YOU PAGES
   ========================================================================== */
.simple-page {
  padding: 96px 0;
  text-align: center;
}

.simple-page .btn-group {
  justify-content: center;
  margin-top: 28px;
}

.big-star {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  color: var(--color-accent);
}

/* ==========================================================================
   21b. FOCUS ON DARK BACKGROUNDS
   ========================================================================== */
.site-footer :focus-visible,
.trust-bar :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--color-accent);
}

/* ==========================================================================
   21c. HEADER "CALL US" MENU (lists every location's phone number)
   Uses <details>, so it works without JavaScript.
   ========================================================================== */
.call-menu {
  position: relative;
}

.call-menu > summary {
  list-style: none;
}

.call-menu > summary::-webkit-details-marker {
  display: none;
}

.call-menu-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.2s ease;
}

.call-menu[open] .call-menu-caret {
  transform: rotate(180deg);
}

.call-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, calc(100vw - 32px));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  z-index: 120;
}

/* On phones, the menu spans the screen so it never runs off the edge */
@media (max-width: 600px) {
  .call-menu-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    top: calc(var(--header-height) + 6px);
    width: auto;
  }
}

.call-menu-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-muted);
  margin: 2px 6px 8px;
}

.call-menu-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.call-menu-panel li + li {
  margin-top: 0;
}

.call-menu-panel a {
  display: grid;
  gap: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text);
  line-height: 1.4;
}

.call-menu-panel a:hover {
  background: var(--color-primary-soft);
  color: var(--color-text);
}

.call-menu-panel strong {
  color: var(--color-primary-dark);
}

.call-menu-panel .call-area {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.call-menu-panel .call-num {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.1rem;
}

/* ==========================================================================
   21d. LOCATIONS
   One ".location-card" per location. To add a location, copy a card.
   ========================================================================== */
.location-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .location-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.location-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.location-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.location-card h3 svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.location-card p {
  margin: 0;
}

.location-card .location-area {
  color: var(--color-muted);
}

.location-card .location-phone {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  margin: 8px 0 4px;
}

.location-card .btn {
  margin-top: 14px;
  align-self: flex-start;
}

.location-note {
  text-align: center;
  margin-top: 28px;
}

/* Small "Las Vegas" line under the hero buttons */
.hero-alt-phone {
  margin: 16px 0 0;
  font-size: 1.05rem;
  color: var(--color-muted);
}

.hero-alt-phone a {
  font-weight: 800;
}

/* Phone numbers in the dark call-to-action band */
.cta-phones {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 48px;
}

.cta-phones li {
  margin: 0;
  display: grid;
  justify-items: center;
}

.cta-phones .cta-phone-label {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Insurance script box */
.script-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 28px;
  box-shadow: var(--shadow);
}

.script-box h3 {
  margin-bottom: 0.3em;
}

.script-box ol {
  margin: 0 0 1em;
}

.script-box p:last-child {
  margin-bottom: 0;
}

/* Footer locations */
.footer-locations {
  display: grid;
  gap: 24px;
}

@media (min-width: 560px) {
  .footer-locations {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.footer-location h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.footer-location p {
  margin: 0 0 6px;
  font-size: 1rem;
}

/* ==========================================================================
   21e. COMING SOON LOCATION, OFFICE HOURS NOTE, TESTIMONIAL COLUMNS
   ========================================================================== */
/* A location that isn't open yet (no phone or address) */
.location-soon {
  background: var(--color-sand);
  border-style: dashed;
  box-shadow: none;
}

.soon-badge {
  align-self: flex-start;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

/* "Coming soon" line in the header Call Us menu (not a link) */
.call-menu-soon {
  display: grid;
  padding: 10px 12px;
  line-height: 1.4;
}

.call-menu-soon strong {
  color: var(--color-muted);
}

.hours-note {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Testimonials flow in columns so reviews of any length fit neatly */
.testimonial-grid {
  columns: 1;
  column-gap: 24px;
}

@media (min-width: 720px) {
  .testimonial-grid {
    columns: 2;
  }
}

@media (min-width: 1080px) {
  .testimonial-grid {
    columns: 3;
  }
}

.testimonial-grid .testimonial {
  break-inside: avoid;
  margin: 0 0 24px;
  display: block;
}

.testimonial blockquote p {
  margin: 0;
}

/* ==========================================================================
   22. ACCESSIBILITY: respect "reduce motion" settings
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   23. PRINT
   ========================================================================== */
@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
    font-size: 12pt;
  }
}
