/* =========================================================
   The Driver Academy — shared stylesheet
   Palette: black / white core, single red accent (L-plate red)
   ========================================================= */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f5f5f4;
  --grey-100: #ececea;
  --grey-300: #cfcfcc;
  --grey-500: #8a8a86;
  --grey-700: #4a4a47;
  --red: #d0102a;      /* L-plate red — the one accent colour */
  --red-dark: #a30c21;
  --radius: 2px;
  --max-width: 1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Archivo', var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--grey-700); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section {
  padding: 88px 0;
}

.section--tight { padding: 56px 0; }

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--dark p { color: var(--grey-300); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section--off {
  background: var(--off-white);
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid var(--black);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn--dark {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.btn--dark:hover { background: #1f1f1f; }

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

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

.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--grey-100);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.logo span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.logo {
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--red);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.nav-cta .btn {
  padding: 13px 20px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
}

/* ---------- Hero split (home) ---------- */

.hero {
  padding: 64px 0 0;
}

.hero-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-panel {
  padding: 72px 40px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.split-panel--light {
  background: var(--off-white);
  color: var(--black);
}

.split-panel--dark {
  background: var(--black);
  color: var(--white);
}

.split-panel--dark p { color: var(--grey-300); }

.split-panel .tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.split-panel h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.card--dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.card--dark p { color: var(--grey-300); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.card--dark .card-icon {
  background: var(--red);
}

/* ---------- Pricing ---------- */

.price-card {
  border: 2px solid var(--black);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  border-color: var(--red);
  position: relative;
}

.price-card--featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
}

.price-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  margin: 12px 0 4px;
}

.price-value span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-500);
  margin-left: 5px;
}

.price-note {
  font-size: 0.8rem;
  color: var(--grey-500);
  margin-top: -10px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  text-align: left;
  flex-grow: 1;
}

.price-list li {
  padding: 9px 0;
  border-top: 1px solid var(--grey-100);
  font-size: 0.92rem;
  display: flex;
  gap: 10px;
}

.price-list li::before {
  content: "✓";
  color: var(--red);
  font-weight: 800;
}

.badge-flag {
  display: inline-block;
  background: var(--grey-100);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  margin: 4px 6px 4px 0;
}

/* ---------- Steps / timeline ---------- */

.steps {
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--grey-100);
}

.step:first-child { border-top: none; }

.step-num {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--grey-300);
}

.step-num::before {
  content: counter(step, decimal-leading-zero);
}

/* ---------- Testimonials ---------- */

.testimonial {
  background: var(--off-white);
  border-left: 4px solid var(--red);
  padding: 26px 28px;
  border-radius: var(--radius);
}

.testimonial p {
  font-style: italic;
  color: var(--black);
  margin-bottom: 12px;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--grey-700);
}

/* ---------- Forms ---------- */

.form {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-note {
  font-size: 0.78rem;
  color: var(--grey-500);
  margin-top: 14px;
}

/* ---------- Banner / CTA strip ---------- */

.cta-strip {
  background: var(--black);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.cta-strip h2 { color: var(--white); }
.cta-strip p { color: var(--grey-300); max-width: 560px; margin-left: auto; margin-right: auto; }

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- Areas list ---------- */

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-pill {
  border: 1px solid var(--grey-300);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: var(--grey-300);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }

.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 14px;
  display: block;
}
.footer-logo span { color: var(--red); }

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--grey-500);
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--grey-500);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--grey-700); font-weight: 600; }
.breadcrumb a:hover { color: var(--red); }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.tag-row { margin-bottom: 18px; }

.placeholder-note {
  background: #fff7ed;
  border: 1px dashed #d97706;
  color: #92400e;
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Nav switches to the mobile hamburger earlier than the content grid
   breakpoints, so there's no dead zone where nav links + CTA buttons
   are forced to wrap or overflow (roughly 760–980px). */
@media (max-width: 1200px) {
  .nav-links, .nav-cta .btn--outline { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--grey-100);
  }
}

@media (max-width: 480px) {
  /* Header CTA competes with the wordmark logo for space on small
     phones — drop it here and rely on the hamburger + in-page CTAs. */
  .nav-cta { display: none; }
  .logo { font-size: 1.05rem; }
}

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
