/* CC Driving Instruction — Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg:          #0b0b0d;
  --bg-alt:      #111115;
  --bg-card:     #17171b;
  --bg-card-h:   #1e1e23;
  --border:      #232328;
  --border-h:    #3a3a44;
  --text:        #e8e8ec;
  --text-muted:  #7a7a88;
  --accent:      #ffffff;
  --accent-dark: #cccccc;
  --accent-glow: rgba(255, 255, 255, 0.10);
  --gold:        #f5c842;
  --r:           8px;
  --rl:          14px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; }

/* ═══════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11,11,13,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo .cc { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.btn-nav {
  background: var(--accent) !important;
  color: #000 !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: var(--r) !important;
  font-weight: 700 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.825rem !important;
  letter-spacing: 0.02em !important;
  transition: background 0.2s !important;
}
.btn-nav:hover {
  background: var(--accent-dark) !important;
  color: #fff !important;
}

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: var(--r);
  line-height: 1;
  transition: border-color 0.2s;
}
.hamburger:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 0.8rem 1.9rem;
  border-radius: var(--r);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, color 0.2s;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  padding: 0.8rem 1.9rem;
  border-radius: var(--r);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover {
  background: var(--accent);
  color: #000;
}

/* ═══════════════════════════════════════
   LAYOUT HELPERS
══════════════════════════════════════ */
section { padding: 5rem 1.5rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.6rem;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }

/* ═══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem;
  background:
    radial-gradient(ellipse 60% 60% at 10% 50%, rgba(255,255,255,0.07) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.hero-text { max-width: 560px; }

.tagline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.tagline::before {
  content: '';
  display: inline-block;
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  margin-bottom: 1.5rem;
}
.hero-text h1 .accent { color: var(--accent); }

.hero-text .intro {
  color: #a8a8b8;
  font-size: 1.025rem;
  line-height: 1.8;
  margin-bottom: 2.25rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero image */
.hero-visual { position: relative; }

.hero-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--rl);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.img-placeholder {
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--rl);
  border: 1px dashed var(--border-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.hero-visual .img-placeholder { height: 420px; }

/* ═══════════════════════════════════════
   VIDEO SECTION
══════════════════════════════════════ */
.video-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.video-wrapper {
  display: flex;
  justify-content: center;
}

.video-frame {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  border-radius: var(--rl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 50px rgba(255,255,255,0.12);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ═══════════════════════════════════════
   VEHICLE PHOTOS
══════════════════════════════════════ */
.vehicle-section { background: var(--bg); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.photo-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--rl);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
}
.photo-grid img:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

.photo-grid .img-placeholder { height: 260px; }

/* ═══════════════════════════════════════
   PRIVATE PRICING
══════════════════════════════════════ */
.pricing-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 2.25rem 2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.pricing-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}

.big-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.big-price sup {
  font-size: 1.4rem;
  vertical-align: top;
  margin-top: 0.4rem;
  display: inline-block;
}

.price-note {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   REVIEWS
══════════════════════════════════════ */
.reviews-section { background: var(--bg); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s;
}
.review-card:hover { border-color: var(--border-h); }

.stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.review-text {
  color: #b0b0c0;
  font-size: 0.925rem;
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  margin-bottom: 1.25rem;
}

.reviewer {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}

.review-source {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ═══════════════════════════════════════
   LINKS / RESOURCES
══════════════════════════════════════ */
.links-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.link-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.link-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-h);
  color: var(--accent);
}

.link-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

/* ═══════════════════════════════════════
   CONTACT STRIP
══════════════════════════════════════ */
.contact-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
}

.contact-strip .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.contact-item:hover { color: var(--accent); }

.contact-icon { font-size: 1rem; }

/* ═══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.footer-logo .cc { color: var(--accent); }

.footer-contact {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.8;
}
.footer-contact a {
  color: var(--accent);
  text-decoration: none;
}
.footer-contact a:hover { text-decoration: underline; }

.footer-copy {
  color: #444450;
  font-size: 0.775rem;
  margin-top: 1.25rem;
}

/* ═══════════════════════════════════════
   BDE PAGE HERO
══════════════════════════════════════ */
.page-hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 60% at 90% 20%, rgba(255,255,255,0.06) 0%, transparent 70%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-hero .section-label { margin-bottom: 0.75rem; }

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1rem;
}
.page-hero h1 .accent { color: var(--accent); }

.page-hero p {
  color: var(--text-muted);
  font-size: 1.025rem;
  max-width: 58ch;
  margin: 0 auto;
  line-height: 1.75;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 1.5rem;
  transition: color 0.2s;
}
.partner-link:hover { color: var(--accent-dark); text-decoration: underline; }

/* ═══════════════════════════════════════
   BDE PACKAGES GRID
══════════════════════════════════════ */
.packages-section { background: var(--bg); }

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}
.package-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 36px var(--accent-glow);
  transform: translateY(-4px);
}

.package-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, #1a1a20, var(--bg-card));
}

.package-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
}

.package-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.package-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.package-tax {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.package-desc {
  color: #9090a0;
  font-size: 0.875rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.75rem;
}

.btn-enroll {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #000;
  padding: 0.8rem;
  border-radius: var(--r);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-enroll:hover {
  background: var(--accent-dark);
  color: #fff;
}

.packages-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.825rem;
  margin-top: 2.5rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   REFERRAL MODAL
══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  border-radius: var(--rl);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.modal-close:hover { color: var(--text); border-color: var(--border-h); }

.modal-eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.4rem;
}

.modal h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.modal-selected-pkg {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}
.modal-selected-pkg strong { color: var(--accent); }

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
  font-family: 'Montserrat', sans-serif;
}

.form-group input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.975rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder { color: #444450; }

.modal-submit {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--r);
  padding: 0.9rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 0.5rem;
}
.modal-submit:hover { background: var(--accent-dark); color: #fff; }
.modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.modal-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.775rem;
  margin-top: 0.9rem;
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .links-grid   { grid-template-columns: repeat(2, 1fr); }
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11,11,13,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 0;
    overflow-y: auto;
    border-right: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--text);
  }
  .nav-links li:last-child { border-bottom: none; padding-top: 1.5rem; }
  .btn-nav {
    padding: 0.7rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  .hamburger { display: flex; align-items: center; }

  /* Hero */
  .hero { padding: 4rem 1.25rem 3.5rem; min-height: auto; }
  .hero .container { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .tagline { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual img,
  .hero-visual .img-placeholder { height: 280px; }

  /* Grids */
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid img,
  .photo-grid .img-placeholder { height: 220px; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 380px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }

  section { padding: 3.5rem 1.25rem; }

  .contact-strip .container { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 2.4rem; }
  .modal { padding: 1.75rem 1.25rem; }
}
