/* --- Root & Reset --- */
:root {
  --primary: #2c3e50;
  --accent: #e67e22;
  --red-accent: #e74c3c;
  --light-bg: #f8f9fa;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  color: #333;
  line-height: 1.6;
}

/* --- Header & Navigation --- */
header {
  background: #fff;
  padding: 10px 5%;
  border-bottom: 3px solid var(--red-accent);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.book-online {
  color: var(--red-accent);
  border: 2px solid var(--red-accent);
  padding: 8px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: 0.3s;
}

.book-online:hover {
  background: var(--red-accent);
  color: white;
}

/* --- Dropdown --- */
.dropdown {
  position: relative;
}
.dropbtn {
  background: var(--primary);
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: white;
  min-width: 250px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.dropdown-content a {
  color: var(--primary);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #eee;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* --- Hero Showcase --- */
.hero-showcase {
  display: flex;
  align-items: center;
  padding: 60px 10%;
  background: linear-gradient(to right, #fff 50%, var(--light-bg) 50%);
  gap: 40px;
}

.car-frame {
  flex: 1;
  text-align: center;
}
.car-frame img {
  max-width: 100%;
  height: auto;
}

.hero-content {
  flex: 1;
}
.hero-content h1 {
  font-size: 2.8rem;
  color: var(--primary);
  margin: 0;
}
.hero-content h1 span {
  color: var(--red-accent);
}
.hero-content .call-text {
  font-weight: bold;
  color: #666;
  margin-bottom: 25px;
}

.main-cta {
  background: var(--accent);
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  font-size: 1.1rem;
}

/* --- Sections & Stats --- */
.about-section,
.areas-section {
  padding: 60px 10%;
  text-align: center;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.stat-box {
  background: var(--primary);
  color: white;
  padding: 25px;
  border-radius: 10px;
  width: 180px;
}

/* --- Areas & Map --- */
.areas-section {
  background: var(--light-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.area-list {
  column-count: 2;
  text-align: left;
  gap: 40px;
  margin: 30px 0;
  list-style-type: "✔ ";
}

.map-placeholder {
  width: 100%;
  max-width: 800px;
  height: 350px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

/* Areas & Map Layout */
.areas-container {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.areas-content {
  margin-bottom: 10px;
}

.areas-text {
  flex: 1;
  text-align: left;
}
.map-frame {
  flex: 1.2;
}

.map-link-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

/* Reviews Grid */
.reviews-section {
  padding: 60px 10%;
  background: white;
  text-align: center;
}

.reviews-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.review-card {
  flex: 1;
  background: var(--light-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  font-style: italic;
}

.review-card strong {
  display: block;
  margin-top: 15px;
  font-style: normal;
  color: var(--accent);
}

/* Pass Rate Graphic */
.pass-rate-circle {
  width: 120px;
  height: 120px;
  border: 5px solid var(--accent);
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-style: normal;
}

.pass-rate-circle .number {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}
.pass-rate-circle .label {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.links-section {
  padding: 60px 10%;
  background: var(--light-bg);
  text-align: center;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.link-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.link-card:hover {
  transform: translateY(-5px);
}

.link-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.link-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}
.link-card p {
  font-size: 0.9rem;
  color: #666;
}

.video-resource {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  margin: 20px 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* Mobile Map Fix */
@media (max-width: 768px) {
  .areas-container {
    flex-direction: column;
  }
  .reviews-grid {
    flex-direction: column;
  }
}

/* --- Mobile Styles --- */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: flex;
  }

  .hero-showcase {
    flex-direction: column;
    text-align: center;
    padding: 40px 5%;
    background: #fff;
  }
  .hero-content h1 {
    font-size: 2rem;
  }

  .mobile-contact-bar {
    position: sticky;
    top: 90px;
    z-index: 999;
    background: var(--primary);
    padding: 10px;
    gap: 10px;
  }

  .m-btn {
    flex: 1;
    text-align: center;
    background: var(--accent);
    color: white;
    padding: 12px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
  }

  .m-btn.wa {
    background: #25d366;
  }

  .stats {
    flex-direction: column;
    align-items: center;
  }
}

footer {
  text-align: center;
  padding: 20px;
  background: var(--primary);
  color: white;

}

footer a {
  color: inherit;
}


/* ---------- Dark mode (auto) ---------- */
:root {
  /* Let the browser style built-in UI (inputs/scrollbars) appropriately */
  color-scheme: light dark;

  /* Add “semantic” tokens (light defaults) */
  --bg: #ffffff;
  --text: #333333;
  --muted-text: #666666;

  --surface: #ffffff;   /* cards, header, dropdown panel */
  --surface-2: var(--light-bg); /* section alt bg */
  --border: #e6e6e6;

  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body {
  background: var(--bg);
  color: var(--text);
}

.hero-content .call-text,
.link-card p {
  color: var(--muted-text);
}

header,
.dropdown-content,
.link-card,
.video-resource {
  background: var(--surface);
}

.areas-section,
.links-section,
.review-card {
  background: var(--surface-2);
}

header {
  box-shadow: var(--shadow);
}

.link-card,
.video-resource,
.review-card {
  box-shadow: var(--shadow-soft);
}

/* --------- Dark overrides --------- */
@media (prefers-color-scheme: dark) {
  :root {
    /* Keep your brand accents; just swap neutrals */
    --bg: #0f1216;
    --text: #e7eaf0;
    --muted-text: #b6bcc8;

    --surface: #151a21;
    --surface-2: #11161c;
    --border: #2a3240;

    --shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.35);
  }

  /* Make sure common blocks inherit the dark surfaces */
  body { background: var(--bg); color: var(--text); }

  header { background: var(--surface); border-bottom-color: var(--red-accent); }

  /* Links/buttons stay readable */
  a { color: #8ab4ff; }
  .book-online { color: var(--red-accent); border-color: var(--red-accent); }
  .book-online:hover { color: #fff; }

  /* Dropdown */
  .dropdown-content {
    background: var(--surface);
    border: 1px solid var(--border);
  }
  .dropdown-content a {
    color: var(--text);
    border-bottom-color: var(--border);
  }
  .dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  /* Sections/cards */
  .reviews-section { background: var(--bg); }
  .review-card,
  .areas-section,
  .links-section,
  .link-card,
  .video-resource {
    background: var(--surface);
    border: 1px solid var(--border);
  }

  .hero-showcase {
    background: linear-gradient(to right, var(--surface) 50%, var(--surface-2) 50%);
  }

  /* The pass rate circle number was var(--primary); make it readable */
  .pass-rate-circle .number { color: var(--text); }

  /* Map placeholder: avoid bright slab */
  .map-placeholder { background: #1f2630; color: var(--muted-text); }

  /* Mobile contact bar is already var(--primary); ensure text contrasts */
  .mobile-contact-bar { color: #fff; }
}