/* =========================================================================
   EXPRESS CAR RECOVERY UK — UNIFIED MODERN DARK-NAVY DESIGN SYSTEM
   Preserves 100% of existing HTML, JS, carousels, cookie banner & legal links
   ========================================================================= */

:root {
  --ecr-bg-deep: #030917;
  --ecr-bg-navy: #051028;
  --ecr-bg-card: rgba(8, 22, 52, 0.88);
  --ecr-border: rgba(56, 189, 248, 0.28);
  --ecr-amber: #FACC15;
  --ecr-blue: #38BDF8;
  --ecr-brand: #2563EB;
  --ecr-text: #F8FAFC;
  --ecr-muted: #CBD5E1;
}

html, body {
  background-color: var(--ecr-bg-navy) !important;
  color: var(--ecr-text) !important;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif !important;
  scroll-behavior: smooth;
}

/* Frosted Glass Top Header */
header {
  background: rgba(3, 9, 23, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--ecr-border) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}
header a, header .site-nav a, nav.site-nav a {
  color: #E2E8F0 !important;
  font-weight: 700 !important;
  transition: color 0.2s ease !important;
}
header a:hover, nav.site-nav a:hover {
  color: var(--ecr-amber) !important;
}
header button, .nav-toggle, .menu-toggle {
  color: #FFFFFF !important;
  border-color: var(--ecr-border) !important;
}

/* Dramatic Modern Hero */
.hero {
  background: radial-gradient(circle at 50% 15%, #0F2B66 0%, #051028 60%, #030917 100%) !important;
  color: #FFFFFF !important;
  border-bottom: 1px solid var(--ecr-border) !important;
  padding: 68px 20px 56px !important;
}
.hero h1 {
  color: #FFFFFF !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.55) !important;
}
.hero p {
  color: var(--ecr-muted) !important;
  max-width: 740px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero .btn, .hero a.cta, .hero a[href*="play.google.com"] {
  background: linear-gradient(135deg, #2563EB, #0EA5E9) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.38) !important;
  font-weight: 800 !important;
}

/* Unified Dark Sections */
.split-section,
.trust-section,
.section,
.carousel-section,
.faq-section,
.download {
  background: transparent !important;
  color: var(--ecr-text) !important;
}
.split-section {
  background: linear-gradient(180deg, #051028 0%, #071738 100%) !important;
  border-top: 1px solid rgba(56, 189, 248, 0.16) !important;
}
.trust-section,
.carousel-section,
.faq-section {
  border-top: 1px solid rgba(56, 189, 248, 0.14) !important;
}
.download {
  background: radial-gradient(circle at 50% 50%, #0D2558 0%, #051028 70%) !important;
  border-top: 1px solid var(--ecr-border) !important;
  border-bottom: 1px solid var(--ecr-border) !important;
}

/* Headings & Typography */
main h2, section h2, .section h2, .split-section h2, .trust-section h2, .carousel-section h2, .faq-section h2, .download h2 {
  color: #FFFFFF !important;
  font-weight: 900 !important;
  letter-spacing: -0.015em !important;
}
main h3, section h3, .section h3, .split-section h3, .trust-section h3 {
  color: var(--ecr-blue) !important;
  font-weight: 800 !important;
}
section p, section li, .section p, .section li, .split-section p, .trust-section p, .faq-section p {
  color: var(--ecr-muted) !important;
}

/* Glass Cards across Split, Trust, About, Testimonials & FAQ */
.split-card,
.trust-card,
.card,
.feature-card,
.testimonial-card,
.faq-item,
details,
.carousel-section article,
.split-section > div > div,
.trust-section .trust-grid > div {
  background: var(--ecr-bg-card) !important;
  border: 1px solid var(--ecr-border) !important;
  border-radius: 18px !important;
  color: var(--ecr-text) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32) !important;
}
.faq-item summary, details summary, .faq-question {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}
.faq-item[open] summary, details[open] summary {
  color: var(--ecr-amber) !important;
}

/* Sleek Pill Links for UK Coverage Areas, Services & Copart/BCA Auctions */
.areas-links {
  background: rgba(3, 9, 23, 0.65) !important;
  border: 1px solid var(--ecr-border) !important;
  border-radius: 18px !important;
  padding: 20px 22px !important;
  margin: 20px auto !important;
  max-width: 1100px !important;
}
.areas-links a {
  display: inline-block !important;
  background: rgba(15, 35, 82, 0.78) !important;
  border: 1px solid rgba(56, 189, 248, 0.32) !important;
  color: #E2E8F0 !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  margin: 4px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.18s ease !important;
}
.areas-links a:hover {
  background: rgba(37, 99, 235, 0.9) !important;
  border-color: var(--ecr-amber) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Carousel Images Framed Cleanly */
.carousel-section img {
  border-radius: 16px !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
}

/* Modern Dark Footer — 100% Legal Links Preserved & Crisp */
.site-footer {
  background: var(--ecr-bg-deep) !important;
  border-top: 1.5px solid var(--ecr-border) !important;
  color: var(--ecr-muted) !important;
  padding: 48px 20px 96px !important;
}
.site-footer h3, .site-footer h4, .site-footer strong {
  color: var(--ecr-amber) !important;
}
.site-footer a {
  color: #CBD5E1 !important;
  text-decoration: none !important;
}
.site-footer a:hover {
  color: var(--ecr-blue) !important;
  text-decoration: underline !important;
}

/* Mobile Polish */
@media (max-width: 768px) {
  .hero {
    padding: 44px 16px 38px !important;
  }
  .areas-links {
    padding: 16px 14px !important;
  }
}

/* === SUB-PAGES UNIFIED POLISH (area, auction, driver, service, about) === */
main, .container, .wrap, .page-wrap, .content-wrap { color: #F8FAFC !important; }
.crumb, .breadcrumb, .breadcrumbs, .eyebrow, .kicker, .badge, .pill { color: #FACC15 !important; }
main h1, .page-hero h1, .hero-box h1, article h1 { color: #FFFFFF !important; font-weight: 900 !important; }
main a, article a, .card a, .box a, .panel a { color: #38BDF8 !important; }
main a.btn, main a.cta, main a[href*="play.google.com"], .cta-btn, .download-btn {
  background: linear-gradient(135deg, #2563EB, #0EA5E9) !important;
  color: #FFFFFF !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
}
.box, .panel, .info-box, .yard-card, .service-card, .step-card, .grid > div, .cards > div, .faq > div, table {
  background: rgba(8, 22, 52, 0.88) !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  border-radius: 16px !important;
  color: #F8FAFC !important;
}
th { background: rgba(37, 99, 235, 0.28) !important; color: #FACC15 !important; }
td { color: #E2E8F0 !important; border-color: rgba(148, 163, 184, 0.2) !important; }
/* === PREMIUM POLISH: SUPPORT & VERIFIED DRIVERS (.trust-section / .trust-item) === */
.trust-section {
  background: linear-gradient(180deg, #051028 0%, #08183B 50%, #051028 100%) !important;
  padding: 68px 20px !important;
}
.trust-section__inner {
  max-width: 1100px !important;
  margin: 0 auto !important;
}
.trust-section__lead {
  color: #CBD5E1 !important;
  max-width: 680px !important;
  margin: 0 auto 36px !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}
.trust-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)) !important;
  gap: 22px !important;
}
.trust-item {
  background: linear-gradient(160deg, rgba(12, 28, 66, 0.94) 0%, rgba(5, 16, 40, 0.96) 100%) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.34) !important;
  border-radius: 20px !important;
  padding: 30px 26px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42) !important;
  transition: transform 0.2s ease, border-color 0.2s ease !important;
  text-align: left !important;
}
.trust-item:hover {
  transform: translateY(-4px) !important;
  border-color: #FACC15 !important;
}
.trust-item__icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 14px !important;
  background: rgba(250, 204, 21, 0.14) !important;
  border: 1.5px solid rgba(250, 204, 21, 0.5) !important;
  color: #FACC15 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 18px !important;
}
.trust-item__icon svg {
  width: 28px !important;
  height: 28px !important;
  color: #FACC15 !important;
}
.trust-item h3 {
  color: #FFFFFF !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  margin: 0 0 10px 0 !important;
}
.trust-item p {
  color: #CBD5E1 !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}
/* === FIX: HEADER BRAND TEXT + CAROUSEL VIEWPORT + BUTTONS CONTRAST (v=20261127d) === */
header .logo, header .logo span, header .brand, header .site-title, header strong, header span {
  color: #FFFFFF !important;
}
.carousel-viewport,
.carousel-track,
.carousel-slide {
  background: linear-gradient(160deg, rgba(12, 28, 66, 0.96) 0%, rgba(5, 16, 40, 0.98) 100%) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 22px !important;
  color: #F8FAFC !important;
}
.carousel-slide {
  border: none !important;
  background: transparent !important;
}
.carousel-slide h3, .carousel-viewport h3 {
  color: #38BDF8 !important;
  font-weight: 800 !important;
}
.carousel-slide p, .carousel-viewport p {
  color: #E2E8F0 !important;
}
.carousel-btn {
  background: rgba(15, 35, 82, 0.92) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.5) !important;
  color: #FFFFFF !important;
}
.carousel-btn:hover {
  background: #2563EB !important;
  border-color: #FACC15 !important;
}
.carousel-section--testimonials,
.areas-section {
  background: transparent !important;
}
.testimonial-card {
  background: rgba(8, 22, 52, 0.92) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.32) !important;
  color: #F8FAFC !important;
}
.testimonial-card p, .testimonial-card blockquote {
  color: #E2E8F0 !important;
}
.split-card .btn-outline {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid #FACC15 !important;
  color: #FACC15 !important;
}
.split-card .btn-outline:hover {
  background: #FACC15 !important;
  color: #051028 !important;
}
.store-badge {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 14px !important;
}
/* === LEGAL PAGES POLISH (termsclient, termsdriver, driverpolicy, privacypolicy, privacyapp, delete-account) === */
.legal-wrap, .legal-card, .legal-content, .policy-box, .terms-box, .doc-card, .doc-wrap, .container-legal {
  background: rgba(8, 22, 52, 0.92) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 20px !important;
  color: #E2E8F0 !important;
  padding: 32px 28px !important;
}
.legal-wrap h1, .legal-card h1, .legal-content h1, .legal-wrap h2, .legal-card h2, .legal-content h2 {
  color: #FFFFFF !important;
}
.legal-wrap h3, .legal-card h3, .legal-content h3 {
  color: #38BDF8 !important;
}
.legal-wrap p, .legal-card p, .legal-content p, .legal-wrap li, .legal-card li, .legal-content li {
  color: #CBD5E1 !important;
}
.ecr-unified-header a:hover {
  color: #FACC15 !important;
}
/* === FIX: DARK-NAVY .wrap & .note ON ALL LEGAL & DELETE-ACCOUNT PAGES === */
.wrap {
  background: linear-gradient(160deg, rgba(10, 24, 58, 0.94) 0%, rgba(5, 16, 40, 0.98) 100%) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 20px !important;
  margin-top: 28px !important;
  margin-bottom: 48px !important;
  color: #E2E8F0 !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45) !important;
  min-height: auto !important;
}
.wrap h1, .wrap h2 {
  color: #FFFFFF !important;
}
.wrap h3 {
  color: #38BDF8 !important;
}
.wrap p, .wrap li, .wrap .lead, .wrap .meta, .wrap .updated {
  color: #CBD5E1 !important;
}
.wrap strong {
  color: #FFFFFF !important;
}
.wrap a, .wrap .nav-top a {
  color: #38BDF8 !important;
}
.wrap .note, .note {
  background: rgba(250, 204, 21, 0.08) !important;
  border: 1.5px solid rgba(250, 204, 21, 0.45) !important;
  color: #F8FAFC !important;
  border-radius: 14px !important;
}
/* === PHASE 2 RICH CONTENT POLISH === */
.ecr-phase2-card {
  max-width: 920px;
  margin: 0 auto;
  background: rgba(8, 22, 52, 0.90) !important;
  border: 1px solid rgba(56, 189, 248, 0.30) !important;
  border-radius: 18px !important;
  padding: 28px 30px !important;
  color: #E2E8F0 !important;
  line-height: 1.7;
}
.ecr-phase2-card section { margin-bottom: 26px; padding: 0 !important; }
.ecr-phase2-card section:last-child { margin-bottom: 0; }
.ecr-phase2-card h2 { color: #FFFFFF !important; font-size: 1.35rem; margin: 0 0 12px; font-weight: 800; }
.ecr-phase2-card h3 { color: #FACC15 !important; font-size: 1.08rem; margin: 16px 0 8px; font-weight: 700; }
.ecr-phase2-card p, .ecr-phase2-card li { color: #CBD5E1 !important; }
.ecr-phase2-card strong { color: #FFFFFF !important; }
.ecr-phase2-card code { background: rgba(56, 189, 248, 0.16); color: #7DD3FC; padding: 2px 6px; border-radius: 6px; font-size: 0.92em; }
.ecr-phase2-card ul, .ecr-phase2-card ol { padding-left: 1.3rem; margin: 10px 0 14px; }
.ecr-phase2-card li { margin-bottom: 8px; }
.ecr-phase2-card details { background: rgba(5, 16, 40, 0.72); border: 1px solid rgba(56, 189, 248, 0.24); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.ecr-phase2-card summary { color: #FFFFFF !important; font-weight: 700; cursor: pointer; }
.ecr-phase2-card table { width: 100%; border-collapse: collapse; margin: 14px 0; overflow: hidden; }
.ecr-phase2-card th, .ecr-phase2-card td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(148, 163, 184, 0.2); }
.ecr-phase2-card .ecr-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
/* === MOBILE RESPONSIVE & COOKIE BANNER OVERHAUL (iPhone SE 375px / 390px / 430px / Android) === */
html, body {
  max-width: 100% !important;
  overflow-x: clip !important;
}

/* Dark-Navy Cookie Banner (matches site theme + sits above sticky CTA) */
.ecr-cookie, #ecr-cookie {
  background: rgba(8, 22, 52, 0.98) !important;
  color: #F8FAFC !important;
  border: 1.5px solid rgba(56, 189, 248, 0.48) !important;
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.65) !important;
  z-index: 10050 !important;
  border-radius: 16px !important;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}
.ecr-cookie p, #ecr-cookie p {
  color: #E2E8F0 !important;
  font-size: 0.9rem !important;
  line-height: 1.48 !important;
  margin: 0 !important;
}
.ecr-cookie a, #ecr-cookie a {
  color: #38BDF8 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}
.ecr-cookie-no, #ecr-cookie-no {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(148, 163, 184, 0.45) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-weight: 700 !important;
  min-height: 44px !important;
}
.ecr-cookie-yes, #ecr-cookie-yes {
  background: linear-gradient(135deg, #2563EB, #0EA5E9) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-weight: 800 !important;
  min-height: 44px !important;
}
.ecr-cookie-fixed, #ecr-cookie-fixed {
  z-index: 850 !important;
  background: rgba(10, 27, 62, 0.92) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: #CBD5E1 !important;
}

/* Responsive Tables across all sub-pages */
.ecr-phase2-card table, main table, article table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Small & Medium Mobile (iPhone 14/15/16 390px, Pro Max 430px, Android 360px, iPhone SE 375px) */
@media (max-width: 640px) {
  .hero, section.hero {
    padding: 26px 16px 30px !important;
  }
  .hero h1, section.hero h1, main h1 {
    font-size: clamp(1.65rem, 6.8vw, 2.2rem) !important;
    line-height: 1.16 !important;
    margin-bottom: 12px !important;
    word-wrap: break-word !important;
  }
  .hero p, section.hero p {
    font-size: 0.98rem !important;
    line-height: 1.5 !important;
    margin-bottom: 18px !important;
  }
  .hero-actions, .hero-cta, .ecr-cta-row, .mw-cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .hero-actions a, .hero-cta a, .ecr-cta-row a, .mw-cta a,
  .hero .btn-primary, .hero .btn-secondary {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-height: 46px !important;
    padding: 12px 16px !important;
    font-size: 0.96rem !important;
  }
  .section, section.section {
    padding: 26px 15px !important;
  }
  .ecr-phase2-card, .wrap, .mw-hero, .mw-card {
    padding: 18px 15px !important;
    border-radius: 14px !important;
  }
  .ecr-cookie, #ecr-cookie {
    left: 10px !important;
    right: 10px !important;
    padding: 14px !important;
    gap: 12px !important;
  }
  .ecr-cookie-fixed, #ecr-cookie-fixed {
    bottom: 72px !important;
    font-size: 11.5px !important;
    padding: 6px 10px !important;
  }
  .site-header, header.site-header, .ecr-header {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .brand-name, .site-title, header a {
    font-size: 0.98rem !important;
  }
  .trust-grid, .trust-strip, .cards, .grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .related, .mw-links {
    gap: 8px !important;
  }
  .related a, .mw-links a {
    font-size: 0.86rem !important;
    padding: 8px 11px !important;
  }
}

/* Extra-Small iPhone SE / Mini / 320px-380px */
@media (max-width: 390px) {
  .hero, section.hero {
    padding: 20px 12px 24px !important;
  }
  .hero h1, section.hero h1 {
    font-size: 1.58rem !important;
    line-height: 1.15 !important;
  }
  .hero p, section.hero p {
    font-size: 0.92rem !important;
  }
  .ecr-cookie p, #ecr-cookie p {
    font-size: 0.84rem !important;
  }
}