/* ==========================================================================
   Recovery Now — Design tokens
   ========================================================================== */
:root {
  --navy-900: #0b1b33;
  --navy-800: #122a4d;
  --navy-700: #1a3766;
  --orange-500: #ff6a1a;
  --orange-600: #e85d0f;
  --orange-100: #fff1e8;
  --amber-400: #ffb020;
  --red-600: #e4302b;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-200: #e4e7ec;
  --gray-500: #7c8798;
  --gray-600: #5b6472;
  --gray-900: #1a2233;

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-md: 0 12px 30px -12px rgba(11, 27, 51, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(11, 27, 51, 0.35);
  --container: 1180px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overscroll-behavior-x: none; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy-900); }
p { margin: 0 0 1em; color: var(--gray-600); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0;
}

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--orange-600);
  background: var(--orange-100); padding: 8px 16px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--amber-400); background: rgba(255,176,32,0.12); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { font-size: 17px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }

.btn--call {
  background: var(--orange-500); color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(255,106,26,.6);
}
.btn--call:hover { background: var(--orange-600); box-shadow: 0 14px 28px -8px rgba(255,106,26,.7); }

.btn--outline {
  background: transparent; color: var(--navy-900); border-color: var(--navy-900);
}
.btn--outline:hover { background: var(--navy-900); color: var(--white); }

.btn--outline-light {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.5);
}
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn--navy { background: var(--navy-900); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); }

.btn--block { width: 100%; }
.btn--lg { padding: 20px 36px; font-size: 18px; }

@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .btn--lg { padding: 16px 18px; font-size: 16px; }
}

.btn--pulse { position: relative; }
.btn--pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid var(--orange-500); animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing {
  0% { opacity: .7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) { .btn--pulse::after { animation: none; } }

/* ==========================================================================
   Header
   ========================================================================== */
.top-strip {
  background: var(--navy-900); color: #cfd8e8; font-size: 13px;
  padding: 8px 0;
}
.top-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.top-strip strong { color: var(--amber-400); }
.top-strip a { display: inline-flex; align-items: center; gap: 6px; }
.top-strip a:hover { color: var(--white); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .container { max-width: 1360px; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 0; }
.brand img { height: 42px; width: auto; max-width: 140px; object-fit: contain; flex-shrink: 0; }
.brand-word { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--navy-900); letter-spacing: -.01em; white-space: nowrap; }
.brand-word span { color: var(--orange-500); }
.brand-tag { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: .1em; color: var(--gray-500); text-transform: uppercase; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 26px; flex-shrink: 0; }
.main-nav a { font-weight: 600; font-size: 15px; color: var(--navy-900); white-space: nowrap; }
.main-nav a:hover { color: var(--orange-500); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; background: none; border: none; padding: 6px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 24px; height: 2.5px; background: var(--navy-900); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 1240px) {
  .main-nav {
    position: fixed; top: 70px; right: 0; bottom: 0; left: 0;
    /* Explicit height instead of relying on inset's top+bottom auto-fill —
       that shorthand doesn't reliably stretch height on a flex container in
       some mobile browsers, which was collapsing the panel to content-height
       (just the first link) instead of filling the screen. */
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 28px 24px; gap: 22px; overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .25s ease, visibility 0s linear 0s;
  }
  .main-nav a { font-size: 18px; }
  .nav-toggle { display: block; flex-shrink: 0; }
  .header-actions { flex-shrink: 0; }
  .header-actions .btn--call span.btn-text { display: none; }
  .header-actions .btn--call { padding: 14px; border-radius: 50%; }

  /* Let the brand block shrink and truncate instead of forcing the header to
     overflow — this keeps the call button and menu toggle on-screen at every
     mobile width, not just the specific breakpoints tested below. */
  .brand { flex-shrink: 1; min-width: 0; }
  .brand > span { min-width: 0; overflow: hidden; }
  .brand-word, .brand-tag { display: block; overflow: hidden; text-overflow: ellipsis; }

  /* "Recovery Now" and the "24/7 Vehicle Recovery" tagline are dropped from
     the header entirely on mobile — the logo graphic is enough on its own,
     and this keeps the call button and menu toggle comfortably on-screen. */
  .brand-word { display: none; }
  .brand-tag { display: none; }
}

@media (max-width: 400px) {
  .site-header .container { gap: 8px; padding-left: 16px; padding-right: 16px; }
  .brand { gap: 8px; }
  .brand img { height: 34px; max-width: 100px; }
  .header-actions { gap: 8px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white); padding: 88px 0 0;
}
.hero::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 14px;
  background: repeating-linear-gradient(-45deg, var(--amber-400) 0 22px, var(--navy-900) 22px 44px);
  opacity: .9;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-bottom: 60px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); color: var(--white); }
.hero h1 em { font-style: normal; color: var(--amber-400); }
.hero p.lead { color: #cbd5e8; font-size: 18px; max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero-visual { position: relative; }
.hero-visual img { animation: heroFloat 4s ease-in-out infinite; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual img { animation: none; }
}
.hero-visual .badge-float {
  position: absolute; top: -24px; right: -16px; background: var(--white); color: var(--navy-900);
  border-radius: var(--radius-md); padding: 14px 18px; box-shadow: var(--shadow-lg);
  font-family: var(--font-head); font-weight: 700; font-size: 14px; display: flex; gap: 10px; align-items: center;
}
.hero-visual .badge-float small { display: block; font-weight: 500; color: var(--gray-500); font-size: 11px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stats div { padding: 22px 8px; text-align: center; border-left: 1px solid rgba(255,255,255,.14); }
.hero-stats div:first-child { border-left: none; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 24px; color: var(--amber-400); }
.hero-stats span { font-size: 13px; color: #b9c4d8; }

@media (max-width: 940px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin: 34px auto 0; }
  .hero-visual .badge-float { top: -30px; right: 10px; padding: 10px 14px; font-size: 13px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(3) { border-left: none; }
  .hero-ctas { justify-content: center; }
  .emergency-banner .container { flex-direction: column; text-align: center; justify-content: center; }
}

/* ==========================================================================
   Emergency banner (hazard stripe)
   ========================================================================== */
.emergency-banner {
  background: var(--orange-500);
  background-image: repeating-linear-gradient(-45deg, rgba(0,0,0,.08) 0 18px, transparent 18px 36px);
  padding: 26px 0;
}
.emergency-banner .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.emergency-banner p { color: var(--white); margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(17px, 2.2vw, 22px); }
.emergency-banner .btn--navy:hover { background: #051224; }

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--gray-50); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1020px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white); border-radius: var(--radius-md); padding: 28px 24px;
  box-shadow: var(--shadow-md); border: 1px solid var(--gray-100);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--orange-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; color: var(--orange-500); }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; margin-bottom: 14px; }
.service-card .card-link { font-weight: 700; font-size: 14px; color: var(--navy-900); display: inline-flex; align-items: center; gap: 6px; }
.service-card .card-link:hover { color: var(--orange-500); }

/* ==========================================================================
   Why us
   ========================================================================== */
.why-us .container { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.why-visual {
  background: var(--navy-900); border-radius: var(--radius-lg); padding: 40px;
  position: relative; overflow: hidden; min-height: 380px; display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.why-visual::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px;
  background: var(--orange-500); border-radius: 50%; opacity: .18;
}
.why-visual .stat { position: relative; color: var(--white); }
.why-visual .stat strong { font-family: var(--font-head); font-size: 40px; color: var(--amber-400); display: block; }
.why-visual .stat span { color: #b9c4d8; font-size: 14px; }

.reason-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 720px) { .why-us .container { grid-template-columns: 1fr; } .reason-list { grid-template-columns: 1fr; } }
.reason-item { display: flex; gap: 16px; }
.reason-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--orange-100);
  display: flex; align-items: center; justify-content: center;
}
.reason-icon svg { width: 22px; height: 22px; color: var(--orange-600); }
.reason-item h4 { font-size: 16.5px; margin-bottom: 4px; }
.reason-item p { font-size: 14.5px; margin: 0; }

/* ==========================================================================
   How it works
   ========================================================================== */
.how-it-works { background: var(--gray-50); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--white); border-radius: var(--radius-md); padding: 32px 26px; box-shadow: var(--shadow-md); position: relative; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy-900); color: var(--amber-400);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; margin: 0; }

/* ==========================================================================
   Coverage
   ========================================================================== */
.coverage .container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 780px) { .coverage .container { grid-template-columns: 1fr; } }
.coverage-map {
  background: var(--navy-900); border-radius: var(--radius-lg); padding: 36px; color: var(--white);
  position: relative; overflow: hidden;
}
.coverage-map svg { width: 100%; height: auto; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { background: var(--gray-100); color: var(--navy-900); font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { background: var(--navy-900); color: var(--white); }
.testimonials .section-head h2 { color: var(--white); }
.testimonials .section-head p { color: #b9c4d8; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 940px) { .review-grid { grid-template-columns: 1fr; } }
.review-card { background: var(--navy-800); border-radius: var(--radius-md); padding: 26px; }
.review-stars { color: var(--amber-400); font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.review-card p.quote { color: #dce4f2; font-size: 15px; margin-bottom: 18px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--orange-500); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700;
}
.review-author strong { display: block; font-size: 14.5px; }
.review-author span { font-size: 12.5px; color: #9fb0cb; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 600;
  font-size: 16px; color: var(--navy-900); display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0; font-size: 20px; font-weight: 700; color: var(--orange-500); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--gray-500); font-size: 15px; line-height: 1.65; }

/* ==========================================================================
   Contact / Request form
   ========================================================================== */
.contact { }
.contact .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; }
@media (max-width: 940px) { .contact .container { grid-template-columns: 1fr; } }

.form-card { background: var(--gray-50); border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--gray-100); max-width: 100%; box-sizing: border-box; }
.form-card h2 { font-size: 26px; }
@media (max-width: 480px) { .form-card { padding: 24px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--navy-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200);
  font: inherit; background: var(--white); color: var(--gray-900);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange-500); }
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 13px; color: var(--gray-500); margin-top: 10px; }
.form-success { display: none; background: #e9f9ee; border: 1px solid #b9e8c6; color: #1c6b34; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 20px; }
.form-success.is-visible { display: block; }

.contact-side { display: flex; flex-direction: column; gap: 20px; }
.side-card { border-radius: var(--radius-md); padding: 26px; }
.side-card--dark { background: var(--navy-900); color: var(--white); }
.side-card--dark p { color: #b9c4d8; }
.side-card--dark .btn--call { margin-top: 14px; }
.side-card--outline { border: 1.5px solid var(--gray-200); }
.hours-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.hours-list li { display: flex; justify-content: space-between; font-size: 14px; color: var(--gray-600); border-bottom: 1px dashed var(--gray-200); padding-bottom: 8px; }
.hours-list li strong { color: var(--navy-900); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-900); color: #b9c4d8; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 36px; width: auto; max-width: 120px; object-fit: contain; }
.footer-brand span { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 18px; }
.site-footer h5 { color: var(--white); font-family: var(--font-head); font-size: 14px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul li { margin-bottom: 11px; font-size: 14.5px; }
.site-footer a:hover { color: var(--white); }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: background .15s ease;
}
.footer-socials a:hover { background: var(--orange-500); }
.footer-socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 13px; flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: var(--white); }

/* ==========================================================================
   Sticky mobile call bar
   ========================================================================== */
.mobile-call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: none; gap: 10px; padding: 12px 16px; background: var(--white);
  box-shadow: 0 -10px 30px -12px rgba(11,27,51,.35); border-top: 1px solid var(--gray-200);
  width: 100%; max-width: 100vw; box-sizing: border-box;
}
@media (max-width: 720px) { .mobile-call-bar { display: flex; } body { padding-bottom: 78px; } }
.mobile-call-bar .btn { flex: 1; min-width: 0; padding: 14px; font-size: 15px; white-space: nowrap; }

/* ==========================================================================
   Utility animations
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
