/* Medical Rides — consumer landing site.
   Design system: NEMA Network brand tokens (see nema-network css/shared.css).
   Senior-friendly: large type, high contrast, big tap targets. */

:root {
  --teal: #0E6E73;
  --teal-dark: #0A5559;
  --teal-light: #4A9EA3;
  --teal-glow: #7DD4D8;
  --navy: #13293D;
  --navy-deep: #13293D;
  --hero-bg: #0D1F2D;
  --amber: #E2A13C;
  --ink: #13293D;
  --muted: #5B6E74;
  --line: #DBE6E5;
  --bg: #F5F8F8;
  --mist: #E4F1F0;
  --card: #FFFFFF;
  --tint: #E4F1F0;
  --green: var(--teal);
  --green-dark: var(--teal-dark);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(14, 110, 115, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--teal); }
.btn:focus-visible, a:focus-visible, .faq summary:focus-visible {
  outline: 3px solid rgba(14, 110, 115, 0.5); outline-offset: 2px; border-radius: 8px;
}
.btn:focus-visible { border-radius: 100px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; color: var(--navy); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; transition: padding 0.22s ease; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { height: 20px; width: auto; flex: none; }
.brand-divider { width: 1.5px; height: 30px; background: var(--navy); opacity: 0.3; flex: none; }
.brand-name { font-weight: 800; font-size: 1.2rem; color: var(--navy); letter-spacing: -0.01em; }
.brand-sub { display: block; font-size: 0.62rem; font-weight: 600; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.header-call { text-align: right; }
.header-call .hours { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }

/* ---------- Buttons (NEMA pill style) ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 100px; font-weight: 600;
  font-size: 1.02rem; text-decoration: none; text-align: center; border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.btn:active { transform: scale(0.985); }
.btn-call, .btn-primary { background: var(--teal); color: #fff; }
.btn-call:hover, .btn-primary:hover {
  background: var(--teal-dark); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 110, 115, 0.35);
}
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--mist); border-color: var(--teal); transform: translateY(-1px); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn .btn-note { display: block; font-size: 0.72rem; font-weight: 500; opacity: 0.85; white-space: normal; }

/* ---------- Dark hero (NEMA hero language: #0D1F2D, orbs, grid) ---------- */
.hero.hero-dark {
  position: relative;
  background: var(--hero-bg);
  color: #E4F1F0;
  padding: 120px 0 96px;
  overflow: hidden;
}
.hero-dark .hero-grid { align-items: center; }
.hero-dark::before {
  content: ''; position: absolute; inset: -20%; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(13, 31, 45, 0.95) 0%, rgba(13, 31, 45, 0.88) 48%, rgba(13, 31, 45, 0.74) 100%),
    radial-gradient(circle 640px at 12% 8%, rgba(14, 110, 115, 0.45), transparent 65%),
    radial-gradient(circle 520px at 92% 92%, rgba(74, 158, 163, 0.25), transparent 65%),
    var(--hero-photo, url('/img/hero.webp'));
  background-size: auto, auto, auto, cover;
  background-position: center;
  animation: heroDrift 22s ease-in-out infinite alternate;
}
@media (max-width: 860px) {
  .hero-dark::before {
    background:
      linear-gradient(rgba(13, 31, 45, 0.93), rgba(13, 31, 45, 0.9)),
      radial-gradient(circle 480px at 15% 10%, rgba(14, 110, 115, 0.4), transparent 65%),
      var(--hero-photo, url('/img/hero.webp'));
    background-size: auto, auto, cover;
    background-position: center;
  }
}
.hero-dark::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}
@keyframes heroDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, 3%) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-dark::before { animation: none; }
}
.hero-dark .wrap { position: relative; z-index: 2; }
.hero-dark h1 { color: #fff; }
.hero-dark h1 .h1-accent {
  display: block; margin-top: 8px; font-size: 0.6em; letter-spacing: -0.01em;
  background: linear-gradient(135deg, #7DD4D8 0%, #4A9EA3 45%, #2E8A8F 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-dark .lede { color: rgba(228, 241, 240, 0.78); margin: 20px 0 32px; }
.hero-dark .btn-ghost { color: rgba(255, 255, 255, 0.9); border-color: rgba(255, 255, 255, 0.28); background: transparent; }
.hero-dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55); color: #fff; }

/* Pulsing status badge (NEMA "Live now" recipe) */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14, 110, 115, 0.2); border: 1px solid rgba(78, 179, 185, 0.35);
  border-radius: 100px; padding: 6px 14px; font-size: 13px; font-weight: 500;
  color: var(--teal-glow); margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px; height: 6px; flex: none; background: var(--teal-glow); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-urgent {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(226, 161, 60, 0.16); border: 1px solid rgba(226, 161, 60, 0.42);
  color: #F0C078; border-radius: 10px; padding: 9px 15px; margin-bottom: 22px;
  font-size: 0.94rem; font-weight: 600;
}
.hero-urgent .dot { width: 7px; height: 7px; flex: none; background: var(--amber); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }

.hero-checks { list-style: none; margin-top: 6px; }
.hero-checks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 1rem; font-weight: 500; color: rgba(228, 241, 240, 0.9); }
.hero-checks svg { width: 20px; height: 20px; flex: none; color: var(--teal-glow); margin-top: 2px; }
.hero-dark .call-static .call-num { color: #fff; }
.hero-dark .call-static .call-note { color: rgba(228, 241, 240, 0.55); }
.hero-dark .quote-card { border: none; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }

/* ---------- Light hero (thank-you page) ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.hero .lede { font-size: 1.15rem; color: var(--muted); margin: 18px 0 26px; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 32px; }

/* ---------- Desktop static call (tel: links are dead clicks on desktop) ---------- */
.call-static { display: inline-block; text-align: inherit; cursor: copy; }
.call-static.copied .call-note { color: var(--teal); font-weight: 600; }
.call-static .call-num { font-weight: 800; font-size: 1.35rem; color: var(--teal); letter-spacing: -0.01em; white-space: nowrap; }
.call-static .btn-note, .call-static .call-note { display: block; font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.header-call .call-static .call-num { font-size: 1.2rem; }

/* ---------- SMS CTA (injected by site.js when a text-enabled number is configured) ---------- */
@media (min-width: 861px) { .sms-cta { display: none !important; } }

/* ---------- Quote form card ---------- */
.quote-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-card);
}
.quote-card h3 { margin-bottom: 12px; font-size: 1.3rem; letter-spacing: -0.01em; }
.form-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.form-benefits { list-style: none; margin: 0 0 16px; }
.form-benefits li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.9rem; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.form-benefits svg { width: 17px; height: 17px; flex: none; color: var(--teal); margin-top: 2px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 110, 115, 0.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-assure { text-align: center; font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-top: 10px; }
.form-privacy { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.form-error { color: #B4232A; font-size: 0.9rem; margin-top: 10px; display: none; }

/* ---------- Stats band ---------- */
.stats-band { background: #fff; border-bottom: 1px solid var(--line); padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; color: var(--teal); letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 30px; font-size: 1.05rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.card p { font-size: 0.95rem; color: var(--muted); }
.card .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--mist); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }
.card a.card-link { font-weight: 600; font-size: 0.92rem; text-decoration: none; display: inline-block; margin-top: 10px; }

.steps { counter-reset: step; }
.step { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step-num {
  counter-increment: step; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Network banner ---------- */
.network { background: var(--navy); color: #E4F1F0; }
.network h2 { color: #fff; }
.network .section-sub { color: rgba(228, 241, 240, 0.65); }
.network .card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
.network .card h3 { color: #fff; }
.network .card p { color: rgba(228, 241, 240, 0.65); }
.network .card .icon { background: rgba(255, 255, 255, 0.09); }

/* ---------- NEMA Standard section (safety/credentialing authority) ---------- */
.standard .standard-head { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.standard-seal { width: 96px; height: 96px; display: block; margin: 0 auto 20px; }
.seal {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(14, 110, 115, 0.22); border: 1px solid rgba(78, 179, 185, 0.4);
  border-radius: 100px; padding: 7px 16px 7px 12px; margin-bottom: 18px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; color: var(--teal-glow);
}
.seal img { height: 16px; width: auto; }
.standard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 900px; margin: 0 auto 30px; }
.pillar { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); }
.pillar .p-icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: rgba(125, 212, 216, 0.14); display: flex; align-items: center; justify-content: center; }
.pillar .p-icon svg { width: 24px; height: 24px; stroke: var(--teal-glow); }
.pillar h3 { color: #fff; margin-bottom: 5px; font-size: 1.02rem; }
.pillar p { color: rgba(228, 241, 240, 0.72); font-size: 0.92rem; line-height: 1.55; }
.standard-cta { text-align: center; }
.standard .btn-glow { background: transparent; color: var(--teal-glow); border: 1.5px solid rgba(125, 212, 216, 0.5); }
.standard .btn-glow:hover { background: rgba(125, 212, 216, 0.1); border-color: var(--teal-glow); color: #fff; transform: translateY(-1px); }

/* Compact credential strip inside the form card */
.form-credential {
  display: flex; align-items: center; gap: 14px; margin: 16px 0 0;
  padding: 12px 16px; background: var(--mist); border-radius: var(--radius);
  font-size: 0.82rem; color: var(--muted); line-height: 1.45;
}
.form-credential .cred-seal { width: 62px; height: 62px; flex: none; }
.form-credential strong { color: var(--navy); font-weight: 700; }
.form-credential a { color: var(--teal); font-weight: 600; text-decoration: none; white-space: nowrap; }

@media (max-width: 860px) {
  .standard-grid { grid-template-columns: 1fr; }
}

/* ---------- Service area ---------- */
.city-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.city-list span { background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 7px 15px; font-size: 0.92rem; color: var(--navy); }

/* ---------- FAQ ---------- */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 20px; color: var(--navy); font-size: 1.02rem; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 14px; font-size: 1.5rem; color: var(--teal); font-weight: 400; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--mist); border-top: 1px solid var(--line); text-align: center; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin-bottom: 22px; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .call-static .call-num { color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(228, 241, 240, 0.65); padding: 44px 0 28px; font-size: 0.92rem; }
.site-footer a { color: rgba(228, 241, 240, 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px; font-size: 0.82rem; }

/* ---------- Mobile sticky call bar ---------- */
.sticky-call { display: none; }

@media (max-width: 860px) {
  .hero { padding: 34px 0 28px; }
  .hero.hero-dark { padding: 44px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .header-call .btn { padding: 11px 16px; font-size: 0.9rem; white-space: nowrap; }
  .header-call .hours { display: none; }
  .brand-sub { display: none; }
  .brand-name { white-space: nowrap; font-size: 1.1rem; }
}

@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .brand-name, .brand-divider { display: none; }
  .brand-mark { height: 19px; transition: height 0.22s ease; }
  body { padding-bottom: 74px; }
  .sticky-call {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line); padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)); gap: 10px;
    box-shadow: 0 -6px 20px rgba(19, 41, 61, 0.1);
    transform: translateY(130%); transition: transform 0.28s ease;
  }
  .sticky-call .btn { flex: 1; padding: 13px 10px; font-size: 1rem; }
  .sticky-call .btn-primary { background: #fff; color: var(--teal); border-color: var(--teal); }

  /* Scroll behavior: at the top show the header call; once scrolling, the
     sticky bar takes over, the header call hides, and the header minimizes —
     so only one call prompt is ever on screen at a time. */
  body.scrolled .sticky-call { transform: translateY(0); }
  body.scrolled .header-call { display: none; }
  body.scrolled .site-header .wrap { padding-top: 9px; padding-bottom: 9px; }
  body.scrolled .brand-mark { height: 16px; }
}

/* Pricing — flat rate cards */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.price-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--teal); }
.price-chip { position: absolute; top: -13px; right: 18px; background: var(--teal); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; }
.price-card h3 { margin-bottom: 8px; }
.price-desc { font-size: 0.92rem; color: var(--muted); margin-bottom: 16px; }
.price-tiers { border-top: 1px solid var(--line); margin-top: auto; padding-top: 14px; margin-bottom: 18px; }
.tier-head { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tier { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; color: var(--muted); }
.tier:last-child { border-bottom: none; }
.tier strong { font-size: 1.3rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.tier strong.tier-call { font-size: 0.88rem; font-weight: 700; color: var(--teal); }
.price-card .btn { width: 100%; text-align: center; }
.price-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.price-note-item { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.price-note-item strong { color: var(--navy); }
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-notes { grid-template-columns: 1fr; }
}

/* Pricing discoverability + county pills */
.header-link { margin-left: auto; margin-right: 4px; font-weight: 600; font-size: 0.98rem; color: var(--navy); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.header-link:hover { color: var(--teal); background: var(--mist); }
@media (max-width: 700px) { .header-link { display: none; } }
.hero-pricing-link { display: inline-flex; align-items: center; gap: 7px; margin: 18px 0 10px; font-weight: 600; font-size: 0.98rem; color: var(--teal-glow); text-decoration: none; border-bottom: 1.5px solid rgba(125, 212, 216, 0.45); padding-bottom: 2px; }
.hero-pricing-link:hover { color: #fff; border-bottom-color: #fff; }
.hero-pricing-link svg { flex: none; }
.city-list span.county { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.header-nav { display: flex; gap: 2px; margin-left: auto; margin-right: 6px; }
.header-nav .header-link { margin: 0; }
@media (max-width: 780px) { .header-nav { display: none; } }
