/* Go Green Driving School — mobile-first stylesheet.
   Design tokens up top; components below. Kept small and render-friendly. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand greens sampled from the client's logo (deep forest green). */
  --green: #1E5631;        /* primary brand — headings, links, accents */
  --green-600: #2E7D46;    /* mid accent */
  --green-cta: #226E3A;    /* primary buttons */
  --green-dark: #143D22;   /* deepest — trust strip, footer, hovers */
  --leaf: #3CA05A;         /* bright leaf accent, used sparingly */
  --ink: #1A1F1C;
  --muted: #5B665E;
  --bg: #F6F8F5;
  --tint: #EAF1E8;
  --card: #FFFFFF;
  --border: #DDE6DA;
  --whatsapp: #25D366;
  --shadow: 0 4px 18px rgba(20, 61, 34, 0.08);
  --shadow-lg: 0 12px 38px rgba(20, 61, 34, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Poppins', var(--font);
}

/* ---------- Inline line icons ---------- */
.ico { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.16em; flex: none; }
.ico--fill { fill: currentColor; stroke: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  padding-bottom: 64px; /* room for mobile action bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 6vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); color: var(--green-dark); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .92em; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--green); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 22px; border-radius: 999px; text-decoration: none;
  min-height: 48px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  line-height: 1; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }
.btn--primary { background: var(--green-cta); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--green-600); }
.btn--outline { background: #fff; color: var(--green-dark); border-color: var(--green); }
.btn--outline:hover { background: var(--tint); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: var(--shadow); }
.btn--whatsapp:hover { background: #1ebe5a; }
.btn--sm { padding: 10px 16px; min-height: 40px; font-size: .92rem; }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-group--hero, .cta-group--page { margin: 1.4rem 0; }
.cta-group--band { justify-content: center; }
.cta-group--footer { flex-direction: column; }
.cta-group .btn { flex: 1 1 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* Solid, clean light background so the transparent logo always reads
     consistently — the bar looks identical whether at the top or scrolled. */
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 88px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; min-width: 0; }
/* max-width + object-fit guard the narrowest phones: the logo scales down rather
   than pushing the menu button off the edge, and never distorts. */
.logo img { height: 68px; width: auto; max-width: 100%; object-fit: contain; display: block; }
@media (min-width: 900px) { .header-inner { min-height: 96px; } .logo img { height: 78px; } }

/* Footer uses the SAME full-colour logo as the header, on a light chip so the
   dark-green artwork stays legible against the dark footer. */
.logo--footer { background: #fff; padding: 10px 16px; border-radius: 12px; }
.site-footer .logo img { height: 58px; }
@media (min-width: 900px) { .site-footer .logo img { height: 64px; } }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 10px; cursor: pointer; border-radius: 8px;
}
.nav-toggle-bar { width: 26px; height: 3px; background: var(--green-dark); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-menu {
  list-style: none; margin: 0; padding: 0;
  position: absolute; top: 88px; left: 0; right: 0; background: #fff;
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column;
}
.nav-menu.open { display: flex; }
.nav-menu li { border-top: 1px solid var(--border); }
.nav-menu a { display: block; padding: 15px 20px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-menu a:hover { background: var(--tint); }
.nav-cta { padding: 14px 20px; border-top: 1px solid var(--border); }
.nav-cta .btn { width: 100%; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--tint); font-size: .85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 0; }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: 6px; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs [aria-current] { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--tint), #fff 70%); padding: 34px 0 20px; }
.hero-inner { display: grid; gap: 26px; }
.eyebrow { font-family: var(--font-head); font-weight: 600; color: var(--green-dark); margin: 0 0 .5rem; }
.lede { font-size: 1.12rem; color: var(--ink); }
.hero-sub { color: var(--muted); font-weight: 600; font-family: var(--font-head); font-size: .9rem; }
/* Rotating hero slideshow — student pass photos crossfade one to the next. */
.hero-slideshow {
  position: relative; aspect-ratio: 4 / 5; max-height: 460px; margin-inline: auto;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: heroSlide 7.5s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; opacity: 1; }
.hero-slide:nth-child(2) { animation-delay: 1.5s; }
.hero-slide:nth-child(3) { animation-delay: 3s; }
.hero-slide:nth-child(4) { animation-delay: 4.5s; }
.hero-slide:nth-child(5) { animation-delay: 6s; }
@keyframes heroSlide {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  16%  { opacity: 1; }
  20%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide:nth-child(1) { opacity: 1; }
}
.stars { color: #F5A623; letter-spacing: 1px; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--green-dark); color: #fff; }
.trust-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 22px; padding: 16px 20px; text-align: center;
}
.trust-item { font-weight: 600; font-family: var(--font-head); font-size: .95rem; }
.trust-item span { font-weight: 400; opacity: .85; }
.trust-item .soon-pill {
  display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px;
  background: #FFD54F; color: var(--green-dark); font-size: .78rem; font-weight: 700; opacity: 1;
}
.trust-item .stars { color: #FFD54F; }
.trust-strip .btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.trust-strip .btn--outline:hover { background: rgba(255,255,255,.12); }

/* ---------- Sections ---------- */
.section { padding: 46px 0; }
.section--tint { background: var(--tint); }
.section-lede { color: var(--muted); font-size: 1.05rem; max-width: 620px; margin-bottom: 1.8rem; }
.page-head { padding: 40px 0 8px; background: linear-gradient(160deg, var(--tint), var(--bg)); }
.page-head--center { text-align: center; padding-bottom: 40px; }
.big-tick { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--tint); color: var(--green); margin-bottom: 8px; }
.big-tick .ico { width: 38px; height: 38px; stroke-width: 2.2; }

/* ---------- Cards & grids ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 18px; }
@media (min-width: 560px) { .grid--courses, .grid--prices, .grid--reviews, .grid--areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) {
  .grid--courses, .grid--reviews, .grid--areas { grid-template-columns: repeat(3, 1fr); }
  .grid--prices { grid-template-columns: repeat(4, 1fr); }
}

.course-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; background: var(--tint); color: var(--green);
  margin-bottom: 14px; font-size: 1.5rem;
}
.course-icon .ico { width: 26px; height: 26px; stroke-width: 1.8; }
.course-icon--lg { width: 68px; height: 68px; border-radius: 18px; margin-bottom: 6px; }
.course-icon--lg .ico { width: 34px; height: 34px; }
.course-link { margin-top: auto; color: var(--green); font-weight: 700; font-family: var(--font-head); padding-top: 8px; }

.price-card { text-align: center; display: flex; flex-direction: column; }
.price-card--featured { border-color: var(--green-cta); box-shadow: 0 0 0 2px var(--green-cta), var(--shadow); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; font-family: var(--font-head); }
.badge--pop { background: var(--green-cta); color: #fff; }
.price { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--green-dark); margin: .3rem 0; }
.price span { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }
.price-blurb { color: var(--muted); font-size: .92rem; flex: 1; }
.price-card .btn { margin-top: 8px; }

.review-card { display: flex; flex-direction: column; gap: 8px; }
.review-body { font-size: 1rem; }
.review-meta { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Why list ---------- */
.why-list, .check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
.why-list li { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.why-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--green); }
.why-icon .ico { width: 17px; height: 17px; stroke-width: 2.4; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green-cta); font-weight: 700; }

/* ---------- Passes ---------- */
.grid--passes { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .grid--passes { grid-template-columns: repeat(3, 1fr); } }
.pass-card { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.pass-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.pass-card figcaption { position: absolute; left: 10px; bottom: 10px; }
.pass-badge { background: var(--green-cta); color: #fff; font-weight: 700; font-family: var(--font-head); font-size: .8rem; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow); }

/* ---------- Areas ---------- */
.area-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area-links a { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; text-decoration: none; font-weight: 600; color: var(--green-dark); }
.area-links a:hover { background: var(--tint); }
.area-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.area-card h2 { font-size: 1.25rem; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.note-box { background: var(--tint); border-left: 4px solid var(--green); border-radius: var(--radius-sm); padding: 16px 20px; margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-weight: 600; font-family: var(--font-head); cursor: pointer; list-style: none; position: relative; padding-right: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 18px; top: 14px; font-size: 1.4rem; color: var(--green); }
.faq-item[open] summary::after { content: '–'; }
.faq-answer { padding: 0 20px 16px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; padding: 44px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 540px; margin: 0 auto 1.4rem; }
.cta-band .btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 30px; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1.3fr 1fr; } }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-family: var(--font-head); font-size: .92rem; }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.hidden-field { display: none; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.form-status { margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: .9rem;
  background: #FDECEA; color: #8A1C10; border: 1px solid #F4C7C1; }
.contact-form .btn { width: 100%; }
/* Inline "Message sent!" confirmation — fills the form's space on success. */
.form-success { text-align: center; padding: 34px 24px; border-radius: var(--radius);
  background: #EAF5EC; border: 1px solid #BFE0C7; box-shadow: var(--shadow); }
.form-success h3 { color: var(--green-dark); margin: 6px 0 8px; font-size: 1.35rem; outline: none; }
.form-success p { color: var(--ink); margin: 0; }
.form-success-tick { display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: #fff; }
.form-success-tick .ico { width: 30px; height: 30px; stroke-width: 2.5; }
.nap { font-style: normal; line-height: 1.8; }
.nap--lg { font-size: 1.05rem; }
.contact-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 600; text-decoration: none; color: var(--green-dark); }
.contact-line .ico { width: 20px; height: 20px; color: var(--green); }
/* Non-link variant — used where we point at the form instead of publishing an
   email address. */
.contact-line--static { font-weight: 500; color: var(--muted); }
.map-embed { margin-top: 20px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.map-embed img { width: 100%; }
.map-cta { position: absolute; bottom: 10px; right: 10px; background: #fff; color: var(--green-dark); padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd8d2; margin-top: 30px; }
.footer-grid { display: grid; gap: 28px; padding: 44px 20px 30px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #cfd8d2; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-areas { columns: 2; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand .logo-text span { color: #9fb0a6; }
.footer-rating { color: #fff; font-weight: 600; }
.footer-note { font-size: .9rem; }
.footer-note strong { color: #FFD54F; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: #fff;
  border-top: 1px solid var(--border); display: flex; box-shadow: 0 -4px 18px rgba(0,0,0,.08);
}
.action-bar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px; text-decoration: none; color: var(--green-dark); font-size: 1.2rem;
}
.action-label { font-size: .7rem; font-weight: 600; font-family: var(--font-head); }
.action-bar a:not(:last-child) { border-right: 1px solid var(--border); }
.action-bar .ico { width: 22px; height: 22px; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 16px; z-index: 95;
  /* Sit above the mobile action bar (64px) + safe-area inset. */
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(20, 61, 34, 0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20, 61, 34, 0.34); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@media (min-width: 900px) {
  .wa-float { bottom: 24px; right: 24px; width: 62px; height: 62px; }
  .wa-float svg { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float:hover { transform: none; } }

/* ---------- Reviews page ---------- */
.reviews-head { text-align: center; }
.reviews-rating { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--green-dark); margin: .2rem 0; }
.reviews-rating .stars { font-size: 1.6rem; }
.grid--reviews-all { display: grid; gap: 18px; }
@media (min-width: 620px) { .grid--reviews-all { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--reviews-all { grid-template-columns: repeat(3, 1fr); } }
.review-card .quote-mark { color: var(--leaf); font-family: Georgia, serif; font-size: 2.2rem; line-height: 0; height: .5em; display: block; }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 4px;
    background: none; border: 0; box-shadow: none;
  }
  .nav-menu li { border: 0; }
  .nav-menu a { padding: 8px 10px; border-radius: 8px; }
  .nav-cta { padding: 0 0 0 8px; border: 0; }
  .nav-cta .btn { width: auto; }
  .hero-inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding: 20px 20px 40px; }
  .cta-group .btn { flex: 0 0 auto; }
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
