/* ==========================================================================
   Bandit Rescue — Theme variables (edit these to re-color the whole site)
   ========================================================================== */
:root {
  --bg: #0d0f13;
  --bg-alt: #14171d;
  --card: #1a1e26;
  --border: #2a2f3a;
  --text: #eceef2;
  --text-muted: #9aa1b0;
  --accent: #d4ff00;
  --accent-dark: #a3cc00;
  --accent-contrast: #17140a;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
p { margin: 0 0 1em; color: var(--text-muted); }

a { color: var(--accent); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 19, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: auto;
}
.logo-mark { color: var(--accent); display: flex; }
.logo-text em { color: var(--accent); font-style: normal; }

.primary-nav {
  display: flex;
  gap: 28px;
}
.primary-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.primary-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.header-cta { white-space: nowrap; }

/* Hero */
.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(ellipse at top right, rgba(212, 255, 0, 0.10), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.4em;
}
.hero-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  max-width: 55ch;
  margin-bottom: 14px;
}
.hero-sub { font-size: 1.15rem; max-width: 60ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 26px 0 10px; }
.hero-note { font-size: 0.85rem; color: var(--text-muted); }

/* Section generic */
section { padding: 70px 0; }
.section-sub { max-width: 60ch; margin-top: -8px; }

/* Trust bar */
.trust-bar {
  padding: 30px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  color: var(--accent);
}
.trust-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
}
.trust-item span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Services */
.services { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  color: var(--accent);
}
.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.service-card p { margin: 0; font-size: 0.95rem; }

/* Service area */
.area-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: start;
}
.price-highlight {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 18px;
}
.price-highlight span {
  color: var(--accent);
  font-size: 2.6rem;
  font-weight: 800;
  margin-right: 10px;
}
.area-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.area-list h3 { font-size: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
}
.chip-flat {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.area-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.area-more {
  margin-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.area-more summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  list-style: none;
}
.area-more summary::-webkit-details-marker { display: none; }
.area-more summary::after {
  content: " \25BE";
  display: inline-block;
  transition: transform 0.15s ease;
}
.area-more[open] summary::after {
  transform: rotate(180deg);
}
.area-more summary:hover { color: var(--accent-dark); }
.area-more p {
  margin: 12px 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Coverage map */
.area-map-wrap {
  grid-column: 1 / -1;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-top: 10px;
}
.area-map-wrap h3 {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}
#coverageMap {
  width: 100%;
  height: 480px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}

/* Leaflet chrome, re-themed to match the site instead of default light UI */
.leaflet-container {
  background: var(--bg);
  font-family: inherit;
}
.leaflet-control-zoom a {
  background: var(--card) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--border) !important;
  color: var(--accent) !important;
}
.leaflet-control-attribution {
  background: rgba(13, 15, 19, 0.75) !important;
  color: var(--text-muted) !important;
}
.leaflet-control-attribution a { color: var(--text-muted); }

.map-tooltip {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: none;
}
.map-tooltip::before { display: none; }
.map-tooltip-flat {
  color: var(--accent);
  font-weight: 600;
  border-color: var(--accent);
}
.map-tooltip-hub {
  color: var(--text);
  font-weight: 700;
  border-color: var(--accent);
}
.map-tooltip-quote {
  color: var(--text-muted);
  font-size: 11px;
}
.county-label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-shadow: 0 0 4px var(--bg), 0 0 4px var(--bg), 0 0 4px var(--bg);
  pointer-events: none;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.legend-dot-flat { background: var(--accent); }
.legend-dot-quote { background: var(--text-muted); }
.legend-ring {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  display: inline-block;
  flex-shrink: 0;
}
.map-note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

/* Payment */
.payment { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.payment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}
.payment-note {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

/* Insurance & motor club */
.insurance { border-bottom: 1px solid var(--border); }
.insurance p { max-width: 70ch; }
.insurance p + p { margin-top: 14px; }

/* Safety / while you wait */
.safety-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}
.safety-game-link {
  margin-top: 20px;
  font-weight: 600;
}
.safety-game-link a { text-decoration: none; }
.safety-game-link a:hover { text-decoration: underline; }
.safety-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: safety-step;
}
.safety-list li {
  counter-increment: safety-step;
  position: relative;
  padding: 14px 0 14px 44px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.safety-list li:last-child { border-bottom: none; }
.safety-list li::before {
  content: counter(safety-step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gallery */
.gallery { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.gallery-viewer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.gallery-main {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}
.gallery-main img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  margin: 0;
  padding: 14px 18px;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}
.gallery-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
}
.gallery-arrow:hover { border-color: var(--accent); color: var(--accent); }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.gallery-thumbs img {
  width: 84px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.gallery-thumbs img:hover { opacity: 1; }
.gallery-thumbs img.active {
  opacity: 1;
  border-color: var(--accent);
}

/* Testimonials */
.testimonial-viewer {
  max-width: 720px;
  margin: 36px auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.testimonial-viewer blockquote {
  margin: 0 0 18px;
  font-size: 1.25rem;
  color: var(--text);
  font-style: italic;
}
.testimonial-author {
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.testimonial-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}
.testimonial-dots button.active { background: var(--accent); }

/* Game */
.game { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.game-wrap {
  position: relative;
  max-width: 760px;
  margin: 30px auto 0;
}
#gameCanvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 260;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  touch-action: none;
}
.game-hud {
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
}
.game-hud strong { color: var(--accent); }
.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(13, 15, 19, 0.72);
  border-radius: var(--radius);
  padding: 20px;
}
.game-overlay.hidden { display: none; }
.game-overlay-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.game-overlay-sub { margin: 0 0 16px; max-width: 46ch; }
.game-overlay-cta {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}
.game-controls {
  max-width: 760px;
  margin: 14px auto 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.game-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}
.game-btn:hover { border-color: var(--accent); color: var(--accent); }
.game-btn:active { background: var(--border); }
.game-note {
  max-width: 720px;
  margin: 18px auto 0;
  text-align: center;
  font-weight: 600;
  color: var(--accent);
  min-height: 1.4em;
}

/* Contact */
.contact { text-align: center; }
.contact .hero-actions { justify-content: center; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}
.footer-inner p { margin: 0; }
.dba-note { color: var(--text-muted); font-size: 0.8em; }
.footer-inner a { color: var(--text-muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 860px) {
  .area-inner { grid-template-columns: 1fr; }
  .safety-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
  }
  .header-cta { display: none; }
  .gallery-viewer { flex-wrap: wrap; }
  .gallery-arrow { order: 2; }
  .gallery-main { order: 1; width: 100%; }
}
