/* Zonke Bonke Driving School — single stylesheet
   Palette: ochre, cobalt, charcoal, cream, fire-accent
   Type: Fraunces (display), Inter (body)
   Mobile-first, one md breakpoint at 768px.
*/

:root {
  --ochre: #E8A540;
  --ochre-deep: #B3811F;
  --cobalt: #1F3A8A;
  --cobalt-deep: #142560;
  --charcoal: #1A1A1A;
  --cream: #FBF6EC;
  --cream-deep: #F1E9D6;
  --fire: #C8351F;
  --fire-deep: #9A2614;
  --wa-green: #25D366;
  --wa-green-deep: #128C7E;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1140px;
  --pad-x: clamp(20px, 5vw, 56px);
  --radius: 6px;
  --radius-lg: 14px;

  --shadow-sm: 0 2px 6px rgba(26,26,26,0.08);
  --shadow-md: 0 12px 36px rgba(26,26,26,0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

/* --- Top bar --- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad-x);
  background: var(--cream);
  border-bottom: 1px solid var(--cream-deep);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--charcoal); }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--cobalt); display: inline-flex; }
.brand-words { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-line-1 { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.brand-line-2 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre-deep); margin-top: 2px; }
.topbar-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa-green); color: white;
  padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
}
.topbar-cta:hover { background: var(--wa-green-deep); text-decoration: none; }

/* --- Hero --- */
.hero { padding: clamp(40px, 7vw, 80px) 0 clamp(40px, 6vw, 64px); background: var(--cream); }
.hero-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
.eyebrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ochre-deep); font-weight: 600; margin-bottom: 16px;
}
.hero-headline {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  font-weight: 900;
  font-variation-settings: "opsz" 144;
  margin-bottom: 22px;
  color: var(--charcoal);
}
.hero-headline .line { display: block; }
.hero-headline .accent {
  color: var(--cobalt);
  background: linear-gradient(180deg, transparent 62%, var(--ochre) 62%, var(--ochre) 92%, transparent 92%);
  display: inline-block; padding: 0 4px;
}
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 540px; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-trust { font-size: 14px; color: var(--ochre-deep); font-weight: 500; }

.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--cream-deep);
  box-shadow: var(--shadow-md);
}
.hero-photo-corner {
  position: absolute; right: -8px; bottom: -8px;
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 64px; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--wa-green); color: white; }
.btn-primary:hover { background: var(--wa-green-deep); box-shadow: 0 6px 18px rgba(37,211,102,0.35); }
.btn-secondary { background: var(--cream); color: var(--charcoal); border-color: var(--charcoal); }
.btn-secondary:hover { background: var(--charcoal); color: var(--cream); }
.btn-xl { padding: 18px 30px; font-size: 18px; }

/* --- Chevron divider --- */
.chevron-row { line-height: 0; }

/* --- Promise --- */
.promise { background: var(--charcoal); color: var(--cream); padding: clamp(48px, 8vw, 88px) 0; }
.promise .section-title { color: var(--cream); }
.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 36px;
  max-width: 740px;
}
.section-lede { font-size: 1.05rem; max-width: 640px; margin-bottom: 36px; color: inherit; }

.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: 1fr; }
.cards.four { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .cards.three { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .cards.four { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 1080px) {
  .cards.four { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: rgba(251,246,236,0.06);
  border: 1px solid rgba(251,246,236,0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-icon { color: var(--ochre); margin-bottom: 14px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--cream); }
.card p { color: rgba(251,246,236,0.85); margin: 0; }

/* --- Lessons --- */
.lessons { background: var(--cream); padding: clamp(48px, 8vw, 88px) 0; }
.lesson-card {
  background: white; border-radius: var(--radius-lg); padding: 26px;
  border: 1px solid var(--cream-deep);
  box-shadow: var(--shadow-sm);
}
.lesson-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ochre-deep); font-weight: 700; margin-bottom: 12px;
  padding: 4px 8px; background: var(--ochre); color: var(--charcoal); border-radius: 4px;
}
.lesson-card h3 { font-size: 1.35rem; margin-bottom: 8px; color: var(--cobalt); }
.lesson-card p { color: #444; margin: 0; }

/* --- How --- */
.how { background: var(--cream-deep); padding: clamp(48px, 8vw, 88px) 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 56px; }
.step-num {
  position: absolute; top: 0; left: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cobalt); color: var(--cream);
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: #333; margin: 0; }

/* --- Trust --- */
.trust { background: var(--cobalt); color: var(--cream); padding: clamp(48px, 8vw, 88px) 0; }
.trust .section-title { color: var(--cream); }
.trust-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.quote { margin: 0; padding: 28px; border-left: 4px solid var(--ochre); background: rgba(251,246,236,0.06); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.quote p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; font-weight: 500; margin-bottom: 14px; color: var(--cream); }
.quote cite { font-style: normal; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre); font-weight: 600; }

/* --- Visit --- */
.visit { background: var(--cream); padding: clamp(48px, 8vw, 88px) 0; }
.visit-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .visit-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.info-list { display: grid; gap: 18px; margin: 0 0 28px; padding: 0; }
.info-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.info-row dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre-deep); font-weight: 700; padding-top: 3px; }
.info-row dd { margin: 0; font-size: 1.05rem; }
.visit-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--cream-deep); aspect-ratio: 4 / 3; }
.map-placeholder { width: 100%; height: 100%; }

/* --- Final CTA --- */
.cta-final {
  background: var(--ochre);
  padding: clamp(56px, 9vw, 96px) 0;
  text-align: center;
  position: relative;
}
.cta-final::before, .cta-final::after {
  content: ''; position: absolute; left: 0; right: 0; height: 18px;
  background-image: linear-gradient(135deg, var(--cream) 25%, transparent 25%), linear-gradient(225deg, var(--cream) 25%, transparent 25%);
  background-size: 28px 28px; background-position: 0 0;
}
.cta-final::before { top: 0; transform: scaleY(-1); }
.cta-final::after { bottom: 0; }
.cta-final-headline {
  font-size: clamp(2rem, 4.8vw, 3.2rem); font-weight: 900;
  font-variation-settings: "opsz" 144;
  color: var(--charcoal);
  margin-bottom: 14px;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.cta-final-sub { font-size: 1.15rem; margin-bottom: 28px; color: var(--charcoal); }
.cta-final-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-final .btn-secondary { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.cta-final .btn-secondary:hover { background: var(--cream); color: var(--charcoal); }

/* --- Footer --- */
.site-footer { background: var(--charcoal); color: var(--cream); padding: 40px 0 32px; }
.footer-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin-bottom: 4px; color: var(--ochre); }
.footer-line { font-size: 14px; line-height: 1.6; margin: 0; color: rgba(251,246,236,0.78); }
.footer-line a { color: var(--cream); border-bottom: 1px dashed rgba(251,246,236,0.4); }
.footer-line a:hover { border-bottom-color: var(--ochre); text-decoration: none; }

/* --- Floating WhatsApp --- */
.float-wa {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa-green); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,0.45), 0 2px 6px rgba(0,0,0,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.float-wa:hover { transform: scale(1.06); background: var(--wa-green-deep); text-decoration: none; }
@media (max-width: 480px) {
  .float-wa { width: 56px; height: 56px; bottom: 16px; right: 16px; }
}

/* --- Print niceties (in case anyone prints the site) --- */
@media print {
  .float-wa, .topbar-cta, .btn-primary, .btn-secondary { display: none; }
  body { background: white; color: black; }
}
