/* ===========================================================
   Justin's Driving School — design tokens
   Palette: asphalt charcoal + road-sign amber + chalk white
   Type: Oswald (condensed, road-sign character) / Public Sans (body)
   Motif: dashed route line — the road to your test centre
   =========================================================== */

:root {
  --ink: #132036;          /* deep navy */
  --ink-soft: #1c2c47;
  --amber: #1F9E6D;        /* emerald accent (was "amber" var name, kept for compatibility) */
  --amber-dark: #17805a;
  --amber-tint: #e5f5ef;   /* soft tint background for icon badges */
  --route-red: #c2544a;    /* used sparingly for rare emphasis */
  --chalk: #f5f7fa;        /* cool off-white section bg */
  --paper: #ffffff;
  --slate: #64748b;        /* muted body text on light */
  --slate-soft: #99a3b3;
  --line: #e6e9ef;         /* hairline borders on light */
  --line-dark: #2a3a56;    /* hairline borders on dark */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 10px rgba(19, 32, 54, 0.06);
  --shadow-md: 0 10px 28px rgba(19, 32, 54, 0.10);

  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.005em; }

p { margin: 0 0 1em; color: var(--slate); }

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

/* Focus states */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #cfd3d8;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--amber); }
.topbar-left { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* ---------- Header / nav ---------- */
header.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.logo svg { flex-shrink: 0; }
nav.main-nav {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--amber);
}
.nav-cta { display: flex; align-items: center; }
.mobile-cta { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.005em;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--amber); color: #ffffff; }
.btn-primary:hover { background: var(--amber-dark); }
.btn-dark { background: var(--ink); color: var(--chalk); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--chalk); }
.btn-outline-light { background: transparent; color: var(--chalk); border-color: rgba(246,244,239,0.5); }
.btn-outline-light:hover { background: var(--chalk); color: var(--ink); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Route divider (signature motif) ---------- */
.route-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 28px;
}
.route-divider::before,
.route-divider::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 3px dashed var(--amber);
}
.route-divider .route-pin { flex-shrink: 0; }
.route-divider.center { justify-content: center; }
.route-divider.left { justify-content: flex-start; }
.route-divider.left::after { flex-grow: 1; }
.route-divider.left::before { display: none; }

/* ---------- Hero (typographic, no photo) ---------- */
.hero {
  background: radial-gradient(ellipse at top right, var(--ink-soft) 0%, var(--ink) 55%);
  color: var(--chalk);
  padding: 92px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--amber);
  background: rgba(31, 158, 109, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 20px;
}
.hero h1 { color: var(--paper); max-width: 900px; }
.hero .subtext {
  color: #c7cbd1;
  font-size: 1.15rem;
  max-width: 620px;
  margin-bottom: 30px;
}
.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 28px 0 34px;
  font-size: 0.92rem;
  color: #d7dade;
}
.hero-badges span { display: flex; align-items: center; gap: 10px; }
.hero-badges svg { flex-shrink: 0; color: var(--amber); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: radial-gradient(ellipse at top right, var(--ink-soft) 0%, var(--ink) 55%);
  color: var(--chalk);
  padding: 64px 0 52px;
  text-align: center;
  position: relative;
}
.page-hero h1 { color: var(--paper); }
.page-hero p { color: #c7cbd1; max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Section spacing ---------- */
.section { padding: 78px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--chalk); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-header p { font-size: 1.05rem; }

/* ---------- Cards: flat, square corners, amber top edge ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 52px; height: 52px;
  padding: 13px;
  box-sizing: border-box;
  color: var(--amber-dark);
  background: var(--amber-tint);
  border-radius: 50%;
  margin-bottom: 18px;
}

/* Numbered step marker — used only for the sequential first-lesson process */
.step-marker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--ink);
  border: none;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
}

/* ---------- Trust line (plain text, no pill badges) ---------- */
.trust-line {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--slate);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 30px 0;
}
.trust-line span { display: flex; align-items: center; gap: 8px; }
.trust-line svg { color: var(--amber-dark); flex-shrink: 0; }

/* ---------- About / photo panel ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img {
  width: 100%;
  border: 1px solid var(--line);
}
.split-reverse .split-media { order: 2; }
.checklist { list-style: none; margin: 0 0 24px; padding: 0; }
.checklist li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.checklist li:last-child { border-bottom: none; }
.checklist svg { flex-shrink: 0; color: var(--amber-dark); margin-top: 3px; }

/* ---------- Quote / testimonial callout ---------- */
.quote-block {
  border-left: 4px solid var(--amber);
  padding: 6px 0 6px 24px;
  margin: 26px 0;
}
.quote-block p { font-style: italic; font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 8px; }
.quote-block cite { font-style: normal; font-weight: 600; font-family: var(--font-display); letter-spacing: 0.02em; }

/* ---------- Review cards ---------- */
.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
}
.stars { color: var(--amber-dark); letter-spacing: 2px; margin-bottom: 14px; font-size: 1.05rem; }
.review-card p { color: var(--ink-soft); }
.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
  font-size: 0.88rem;
}
.review-meta strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.95rem; }
.review-tag {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber-dark);
  border: 1px solid var(--amber-dark);
  padding: 3px 8px;
  white-space: nowrap;
}

/* ---------- Pricing cards ---------- */
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 28px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border: 2px solid var(--amber); box-shadow: var(--shadow-md); }
.price-card .tag-top {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-dark);
  display: inline-block;
  margin-bottom: 14px;
}
.badge-float {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card .price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--ink);
  margin: 6px 0 4px;
}
.price-card .price span { font-size: 1rem; color: var(--slate); font-family: var(--font-body); }
.price-note { color: var(--amber-dark); font-size: 0.85rem; margin-bottom: 16px; }
.price-card ul { list-style: none; margin: 0 0 26px; padding: 0; flex-grow: 1; }
.price-card li {
  display: flex; gap: 10px; padding: 7px 0; font-size: 0.94rem; color: var(--ink-soft);
}
.price-card li svg { flex-shrink: 0; color: var(--amber-dark); margin-top: 2px; }
.price-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
.price-list-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.price-list-row:last-child { border-bottom: none; }
.price-list-row strong { font-family: var(--font-display); letter-spacing: 0.01em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--chalk);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: #c7cbd1; max-width: 560px; margin: 0 auto 30px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Key-info band ---------- */
.info-band {
  background: var(--ink-soft);
  color: var(--chalk);
  padding: 46px 0;
}
.info-band h3 { color: var(--paper); display: flex; align-items: center; gap: 10px; }
.info-band p { color: #c7cbd1; max-width: 560px; }
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.area-list li {
  font-size: 0.92rem;
  color: var(--chalk);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
}

/* ---------- Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .plus {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-family: var(--font-body);
}
.accordion details[open] summary .plus { background: var(--amber); border-color: var(--amber); }
.accordion .answer { color: var(--slate); margin-top: 14px; padding-right: 40px; }

/* ---------- Contact page ---------- */
.contact-block {
  display: flex;
  gap: 16px;
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.contact-block svg { flex-shrink: 0; color: var(--amber-dark); margin-top: 2px; }
.contact-block .label { font-size: 0.82rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-block .value { font-family: var(--font-display); font-size: 1.1rem; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px;
}
.form-card h3 { margin-bottom: 20px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 0.82rem; color: var(--slate-soft); text-align: center; margin-top: 14px; }
.form-success {
  display: none;
  background: var(--ink);
  color: var(--chalk);
  padding: 18px 20px;
  margin-bottom: 20px;
  font-family: var(--font-display);
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: #c7cbd1;
}
.footer-top {
  border-bottom: 1px solid var(--line-dark);
  padding: 30px 0;
}
.footer-cols {
  padding: 56px 0 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-cols h4 {
  color: var(--paper);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-cols a { text-decoration: none; color: #c7cbd1; }
.footer-cols a:hover { color: var(--amber); }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); text-transform: uppercase; color: var(--paper); font-size: 1.15rem; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--slate-soft);
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 60;
  text-decoration: none;
}
.whatsapp-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split-reverse .split-media { order: 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  .nav-row.open nav.main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
    z-index: 55;
  }
  .mobile-cta { display: block !important; text-align: center; margin-top: 4px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .topbar .container { flex-direction: column; align-items: flex-start; }
  .nav-cta { display: none; }
  .nav-row { position: relative; }
}
