/* ==========================================================================
   Kwame Driving School — shared styles
   Brand colors live in :root. Change them here and the whole site updates.
   ========================================================================== */

:root {
  --black: #0d0d0d;
  --black-2: #262626;
  --black-deep: #050505;
  --blue: #5ec8f2;
  --blue-dark: #0872a8;
  --ink: #111111;
  --muted: #5f6368;
  --line: #e1e8ee;
  --bg: #ffffff;
  --bg-soft: #eef7fc;
  --green: #1f9d55;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 30px 70px rgba(8, 8, 10, 0.28);
  --max: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--black);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--black-deep); color: #cfd3d7; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section--dark .section-head p { color: #a7adb3; }
.section-head--left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s;
}
.btn::after {
  /* sheen sweep on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.btn:hover { transform: translateY(-3px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn--primary { background: var(--blue); color: var(--black); box-shadow: 0 10px 24px rgba(94, 200, 242, 0.4); }
.btn--primary:hover { background: #8ad8f7; box-shadow: 0 16px 34px rgba(94, 200, 242, 0.5); }
.btn--glass { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.35); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.22); }
.btn--black { background: var(--black); color: #fff; }
.btn--black:hover { background: var(--black-2); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--black); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--black); }
.btn--block { width: 100%; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Road progress bar ---------- */
.road-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 200;
  background: repeating-linear-gradient(90deg, rgba(94, 200, 242, 0.25) 0 18px, transparent 18px 30px);
  pointer-events: none;
}
.road-progress .bar { height: 100%; width: 0; background: var(--blue); }
.road-progress .car {
  position: absolute;
  top: -3px;
  left: 0;
  font-size: 15px;
  line-height: 1;
  transform: translateX(-50%);
  color: var(--blue-dark);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s, box-shadow 0.3s, height 0.3s var(--ease), transform 0.35s var(--ease);
}
.site-header.nav-hidden { transform: translateY(-100%); box-shadow: none; }
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --header-h: 64px;
}
/* backdrop-filter would trap the fixed full-screen menu inside the header */
.site-header.menu-open { backdrop-filter: none; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  transition: color 0.3s;
}
.scrolled .logo { color: var(--black); }
.logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.05); }
.logo small { display: block; font-size: 0.66rem; font-weight: 600; opacity: 0.7; letter-spacing: 0.12em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; color: #fff; position: relative; transition: color 0.3s; }
.scrolled .nav-links a:not(.btn) { color: var(--ink); }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:not(.btn):hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links .btn { padding: 11px 22px; color: var(--black); }

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}
.scrolled .nav-toggle { background: var(--bg-soft); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: transform 0.3s var(--ease), opacity 0.2s; }
.scrolled .nav-toggle span { background: var(--black); }

@media (max-width: 1060px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: rgba(8, 8, 10, 0.97);
    backdrop-filter: blur(10px);
    clip-path: circle(0 at calc(100% - 40px) 38px);
    transition: clip-path 0.6s var(--ease);
  }
  .nav-links.open { clip-path: circle(150% at calc(100% - 40px) 38px); }
  .nav-links li { opacity: 0; transform: translateY(16px); transition: opacity 0.4s, transform 0.4s var(--ease); }
  .nav-links.open li { opacity: 1; transform: none; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.05s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.1s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.15s; }
  .nav-links.open li:nth-child(5) { transition-delay: 0.2s; }
  .nav-links.open li:nth-child(6) { transition-delay: 0.25s; }
  .nav-links a:not(.btn), .scrolled .nav-links a:not(.btn) { color: #fff; font-size: 1.6rem; font-family: "Poppins", sans-serif; display: block; padding: 8px; }
  .nav-links .btn { margin-top: 18px; font-size: 1.05rem; }
  .nav-toggle[aria-expanded="true"] span { background: #fff; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero slideshow ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--black-deep);
}
.hero-slides, .hero-slides .slide { position: absolute; inset: 0; }
.hero-slides .slide { opacity: 0; transition: opacity 1.4s ease; }
.hero-slides .slide.active { opacity: 1; }
.hero-slides img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero-slides .slide.active img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(1%, 1%); } to { transform: scale(1) translate(0, 0); } }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.6) 50%, rgba(8, 8, 10, 0.25) 100%),
    linear-gradient(0deg, rgba(8, 8, 10, 0.7), transparent 40%);
}
.hero-content { position: relative; z-index: 2; padding-top: var(--header-h); max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .hl { color: var(--blue); display: inline-block; }
.hero .lead { font-size: 1.2rem; color: #dde0e3; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-caption {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  padding: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.hero-dots button::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.hero-dots button.active::after { animation: fill 6s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  font-size: 0.95rem;
  color: #cfd3d7;
}
.hero-trust .faces { display: flex; }
.hero-trust .faces span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--black-deep);
  margin-left: -10px;
  background: var(--blue);
  color: var(--black);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.hero-trust .faces span:first-child { margin-left: 0; }
.hero-trust .faces span:nth-child(2) { background: #fff; }
.hero-trust .faces span:nth-child(3) { background: #bfe7f8; }
.hero-trust strong { color: #fff; }

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  transform: translateX(-50%);
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
  transform: translateX(-50%);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }
@media (max-width: 700px) { .scroll-cue { display: none; } .hero-caption { left: 20px; right: auto; } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  padding: calc(var(--header-h) + 60px) 0 64px;
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(8, 8, 10, 0.95) 0%, rgba(8, 8, 10, 0.45) 60%, rgba(8, 8, 10, 0.35) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #dde0e3; font-size: 1.15rem; max-width: 560px; margin: 0; }
.crumbs { font-size: 0.85rem; margin-bottom: 14px; color: #a7adb3; }
.crumbs a { color: var(--blue); text-decoration: none; }

/* ---------- Marquee strip ---------- */
.marquee {
  background: var(--blue);
  color: var(--black);
  overflow: hidden;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  padding: 16px 0;
}
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 28s linear infinite; padding-left: 48px; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "●"; font-size: 0.6rem; opacity: 0.5; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Two schools (expanding panels) ---------- */
.duo { display: flex; gap: 20px; height: 420px; }
.duo-panel {
  position: relative;
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: var(--shadow);
  transition: flex 0.7s var(--ease);
}
.duo-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.duo-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 8, 10, 0.95) 10%, rgba(8, 8, 10, 0.25) 70%); }
.duo-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px; }
.duo-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--blue); font-size: 1.8rem; margin-bottom: 16px; transition: transform 0.5s var(--ease); }
.duo-panel h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.duo-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.duo-chips li { background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; }
.duo-panel .btn { opacity: 0; transform: translateY(12px); transition: opacity 0.4s, transform 0.4s var(--ease); }
.duo:hover .duo-panel { flex: 0.75; }
.duo .duo-panel:hover, .duo .duo-panel:focus-visible { flex: 1.5; }
.duo-panel:hover img { transform: scale(1.06); }
/* wide photo: fill the panel, centred on the subject */
.duo-panel img.fit { object-position: center 45%; }
.duo-panel:hover .duo-icon { transform: rotate(-10deg) scale(1.08); }
.duo-panel:hover .btn, .duo-panel:focus-visible .btn { opacity: 1; transform: none; }
@media (hover: none) { .duo-panel .btn { opacity: 1; transform: none; } }
@media (max-width: 760px) { .duo { flex-direction: column; height: auto; } .duo-panel { height: 380px; flex: none; } .duo:hover .duo-panel, .duo .duo-panel:hover { flex: none; } }

/* ---------- Photo feature cards ---------- */
.photo-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1000px) { .photo-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .photo-cards { grid-template-columns: 1fr; } }
.photo-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.photo-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.photo-card .ph-img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.photo-card .ph-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.photo-card:hover .ph-img img { transform: scale(1.08); }
.photo-card .badge {
  position: absolute;
  left: 18px;
  bottom: -22px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 1;
}
.photo-card .ph-img { overflow: visible; }
.photo-card .ph-img .clip { position: absolute; inset: 0; overflow: hidden; }
.photo-card .body { padding: 34px 22px 24px; }
.photo-card h3 { margin-bottom: 4px; font-size: 1.1rem; }
.photo-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Journey (interactive steps) ---------- */
.journey { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr; } }
.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.journey-steps button {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #cfd3d7;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}
.journey-steps button:hover { background: rgba(255, 255, 255, 0.07); }
.journey-steps .n {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: "Poppins", sans-serif;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.3s, color 0.3s;
}
.journey-steps strong { color: #fff; font-size: 1.1rem; font-family: "Poppins", sans-serif; }
.journey-steps small { font-size: 0.92rem; }
.journey-steps button[aria-selected="true"] { background: rgba(94, 200, 242, 0.1); border-color: rgba(94, 200, 242, 0.5); }
.journey-steps button[aria-selected="true"] .n { background: var(--blue); color: var(--black); }
.journey-steps button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}
.journey-steps button[aria-selected="true"]::after { animation: fill 5s linear forwards; }
.journey.paused .journey-steps button::after { animation: none; }

.journey-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.journey-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s ease, transform 1.2s var(--ease);
}
.journey-stage img.active { opacity: 1; transform: scale(1); }

/* ---------- Stats band with parallax photo ---------- */
.stats-band {
  position: relative;
  padding: 110px 0;
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.stats-band > img { position: absolute; top: -30%; left: 0; width: 100%; height: 160%; object-fit: cover; will-change: transform; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: rgba(8, 8, 10, 0.82); z-index: 1; }
.stats-band .container { position: relative; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }
.stats strong { display: block; font-family: "Poppins", sans-serif; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--blue); line-height: 1.1; }
.stats span { color: #cfd3d7; font-weight: 500; }

/* ---------- Gallery + lightbox ---------- */
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery > div {
  margin: 0 0 16px;
  border-radius: 16px;
  overflow: hidden;
  break-inside: avoid;
  background: var(--line);
}
.gallery img { width: 100%; height: auto; }
.gallery .tall img { aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- Testimonial carousel ---------- */
.carousel { position: relative; max-width: 860px; margin: 0 auto; }
.carousel-viewport { overflow: hidden; border-radius: 24px; touch-action: pan-y; }
.carousel-track { display: flex; transition: transform 0.6s var(--ease); }
.carousel-track > * { flex: 0 0 100%; }
.review {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: #fff;
  min-height: 300px;
}
.review img { width: 100%; height: 100%; object-fit: cover; }
.review .text { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.review .stars { color: var(--blue-dark); letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 12px; }
.review blockquote { margin: 0 0 20px; font-size: 1.25rem; font-family: "Poppins", sans-serif; font-weight: 600; color: var(--black); line-height: 1.4; }
.review .who strong { display: block; color: var(--black); }
.review .who small { color: var(--muted); }
@media (max-width: 640px) { .review { grid-template-columns: 1fr; } .review img { height: 180px; } .review .text { padding: 28px; } }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; }
.carousel-controls .arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--black);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.carousel-controls .arrow-btn:hover { background: var(--black); color: #fff; transform: scale(1.06); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 5px; border: 0; padding: 0; background: #cfd8de; cursor: pointer; transition: width 0.3s var(--ease), background 0.3s; }
.carousel-dots button.active { width: 28px; background: var(--blue-dark); }
/* With many reviews the dots would overflow; main.js shows "3 / 30" instead */
.carousel-count { min-width: 64px; text-align: center; font-weight: 700; color: var(--black); font-variant-numeric: tabular-nums; }

/* ---------- Review form ---------- */
.review-cta { max-width: 860px; margin: 32px auto 0; text-align: center; }
.review-cta > summary { list-style: none; }
.review-cta > summary::-webkit-details-marker { display: none; }
.review-cta[open] > summary { display: none; }
.review-form { text-align: left; background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.review-form h3 { margin: 0; }
.review-form .btn { justify-self: start; }
.review-note { margin: 0; font-size: 0.9rem; }
@media (max-width: 640px) { .review-form { padding: 24px 20px; } }
/* Inputs run 5 → 1 and are shown reversed, so "~" can light up the chosen star and every star before it */
.star-input { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input legend { width: 100%; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.2rem; line-height: 1; color: #cfd8de; cursor: pointer; transition: color 0.15s, transform 0.15s; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--blue-dark); }
.star-input label:hover { transform: scale(1.15); }
.star-input input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ---------- Photo CTA ---------- */
.cta-photo {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 80px 56px;
  color: #fff;
  isolation: isolate;
}
.cta-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 6s ease; }
.cta-photo:hover > img { transform: scale(1.06); }
.cta-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 8, 10, 0.95), rgba(8, 8, 10, 0.4)); }
.cta-photo h2 { color: #fff; max-width: 520px; }
.cta-photo p { color: #dde0e3; max-width: 460px; margin-bottom: 28px; }
.cta-photo .actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-photo { padding: 56px 26px; } }

/* ---------- Lesson explorer (tabs) ---------- */
.explorer-tabs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.explorer-tabs button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 20px 6px 6px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--black);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.explorer-tabs button img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.explorer-tabs button:hover { transform: translateY(-2px); border-color: var(--blue); }
.explorer-tabs button[aria-selected="true"] { background: var(--black); border-color: var(--black); color: #fff; }

.explorer-panel { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.explorer-panel[hidden] { display: none; }
.explorer-panel.enter .explorer-media { animation: slideIn 0.7s var(--ease); }
.explorer-panel.enter .explorer-text { animation: fadeUp 0.7s var(--ease) 0.1s both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-30px) scale(0.98); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }
@media (max-width: 900px) { .explorer-panel { grid-template-columns: 1fr; gap: 28px; } }
.explorer-media { position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 460px; }
.explorer-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.explorer-media img:first-child { grid-row: span 2; }
@media (max-width: 560px) { .explorer-media { height: 320px; } }
.explorer-media .chip {
  position: absolute;
  left: 18px;
  top: 18px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--black);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.explorer-text .meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 22px; }
.explorer-text .meta span { background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--black); }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.skill-chips li { background: rgba(94, 200, 242, 0.16); color: var(--black); font-weight: 600; font-size: 0.9rem; padding: 8px 14px; border-radius: 10px; }

/* ---------- Flip cards ---------- */
.flip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .flip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .flip-grid { grid-template-columns: 1fr; } }
.flip { display: block; width: 100%; perspective: 1200px; aspect-ratio: 4 / 5; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; }
.flip-face, .flip-back > span { display: block; }
.flip-back { display: flex; }
.flip-inner { display: block; position: relative; width: 100%; height: 100%; transition: transform 0.8s var(--ease); transform-style: preserve-3d; }
.flip:hover .flip-inner, .flip.flipped .flip-inner { transform: rotateY(180deg); }
@media (hover: none) { .flip:hover .flip-inner { transform: none; } .flip.flipped .flip-inner { transform: rotateY(180deg); } }
.flip-face { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-front img { width: 100%; height: 100%; object-fit: cover; }
.flip-front img.fit { position: relative; object-fit: contain; }
.flip-front img.fit-bg { position: absolute; inset: 0; filter: blur(18px) brightness(0.8); transform: scale(1.15); }
.flip-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 8, 10, 0.9), transparent 55%); }
.flip .t { display: block; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.flip-front .t { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; z-index: 1; }
.flip-front .hint { position: absolute; top: 14px; right: 14px; z-index: 1; background: rgba(255, 255, 255, 0.9); color: var(--black); font-size: 0.75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.flip-back {
  transform: rotateY(180deg);
  background: var(--black);
  color: #cfd3d7;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flip-back .icon { font-size: 2rem; margin-bottom: 12px; }
.flip-back .t { color: var(--blue); margin-bottom: 8px; }

/* ---------- Branches ---------- */
.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .branch-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.branch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 26px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.branch-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.branch-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(94, 200, 242, 0.18); color: var(--blue-dark); margin-bottom: 18px; }
.branch-icon .ic { width: 24px; height: 24px; }
.branch-tag { position: absolute; top: 28px; right: 26px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--black); color: #fff; }
.branch-card h3 { margin: 0 0 8px; font-size: 1.3rem; }
.branch-card p { margin: 0 0 18px; color: var(--muted); flex: 1; }
.branch-card .branch-addr { flex: 0; margin: 0; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.branch-card.soon { background: var(--bg-soft); border-style: dashed; box-shadow: none; }
.branch-card.soon .branch-tag { background: var(--blue); color: var(--black); }
.branch-card.soon .branch-icon { background: rgba(0, 0, 0, 0.06); color: var(--muted); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.price-grid--single { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
.price-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .price-grid--two { grid-template-columns: 1fr; max-width: 480px; } }
.fees { list-style: none; padding: 0; margin: 20px 0 26px; flex: 1; }
.fees li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(0, 0, 0, 0.12); }
.fees li span:last-child { font-weight: 600; white-space: nowrap; }
.fees li.total { border-bottom: 0; font-weight: 800; color: var(--black); }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  transform-style: preserve-3d;
  transition: box-shadow 0.4s var(--ease), transform 0.15s linear;
  will-change: transform;
}
.price-card:hover { box-shadow: var(--shadow-lg); }
.price-card .top { position: relative; height: 170px; overflow: hidden; }
.price-card .top img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.price-card:hover .top img { transform: scale(1.08); }
.price-card .top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 8, 10, 0.85), transparent 70%); }
.price-card .top h3 { position: absolute; left: 24px; bottom: 14px; color: #fff; z-index: 1; margin: 0; font-size: 1.35rem; }
.price-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.price { font-family: "Poppins", sans-serif; font-size: 2.8rem; font-weight: 800; color: var(--black); line-height: 1; margin: 4px 0 6px; }
.price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card .sub { color: var(--muted); font-size: 0.92rem; margin: 0; }
.checklist { list-style: none; padding: 0; margin: 20px 0 26px; flex: 1; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(31, 157, 85, 0.12);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s;
}
.seg input:checked + span { background: var(--black); border-color: var(--black); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
/* ---------- Booking wizard ---------- */
.booking { display: grid; grid-template-columns: 0.8fr 1.2fr; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } }
.booking-side { position: relative; color: #fff; padding: 44px 36px; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 320px; }
.booking-side > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.booking-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(8, 8, 10, 0.9), rgba(8, 8, 10, 0.65)); }
.booking-side h2 { color: #fff; font-size: 1.9rem; }
.booking-side p { color: #cfd3d7; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li a, .contact-list li > div {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s var(--ease);
}
.contact-list li a:hover { background: rgba(94, 200, 242, 0.25); transform: translateX(4px); }
.contact-list .icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: var(--black); display: grid; place-items: center; font-size: 1.1rem; }
.contact-list strong { display: block; color: #fff; font-size: 0.95rem; }
.contact-list span { color: #cfd3d7; font-size: 0.9rem; }

.booking-main { padding: 44px; }
@media (max-width: 560px) { .booking-main { padding: 28px 20px; } .booking-side { padding: 32px 22px; } }
.wizard-progress { display: flex; gap: 8px; margin-bottom: 28px; list-style: none; padding: 0; }
.wizard-progress li { flex: 1; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.wizard-progress li::before { content: ""; display: block; height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 8px; transition: background 0.4s; }
.wizard-progress li.done::before, .wizard-progress li.current::before { background: var(--blue); }
.wizard-progress li.current { color: var(--black); }
.step-panel { animation: fadeUp 0.5s var(--ease); }
.step-panel h3 { font-size: 1.5rem; margin-bottom: 18px; }

.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
.choice { position: relative; cursor: pointer; }
.choice .card-in {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid transparent;
  background: var(--bg-soft);
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.choice img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s var(--ease); }
.choice .label { display: block; padding: 10px 12px; font-weight: 700; font-size: 0.9rem; color: var(--black); }
.choice:hover .card-in { transform: translateY(-3px); box-shadow: var(--shadow); }
.choice:hover img { transform: scale(1.05); }
@keyframes pop { from { transform: scale(0); } }

.time-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-group { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--black); margin: 22px 0 10px; }
/* Booking step 1: pick a whole school (Driving or Computer); lesson cards are display-only */
.school-choice { display: block; position: relative; cursor: pointer; margin-bottom: 14px; }
.school-choice input { position: absolute; opacity: 0; pointer-events: none; }
.school-box { display: block; padding: 14px; border: 3px solid var(--line); border-radius: 18px; transition: border-color 0.2s, box-shadow 0.25s; }
.school-choice:hover .school-box { border-color: var(--blue); }
.school-choice input:checked + .school-box { border-color: var(--blue-dark); box-shadow: 0 10px 26px rgba(10, 124, 184, 0.25); }
.school-choice input:focus-visible + .school-box { outline: 3px solid var(--blue); outline-offset: 2px; }
.school-box .choice-group { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.school-box .choice-group::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: #fff; transition: background 0.2s, border-color 0.2s; }
.school-choice input:checked + .school-box .choice-group::before { background: var(--blue); border-color: var(--blue-dark); box-shadow: inset 0 0 0 4px #fff; }
.school-box .choice-group small { font-family: "Inter", sans-serif; font-weight: 500; font-size: 0.85rem; color: var(--muted); }
.school-box .choice { cursor: inherit; }
.school-box .choice:hover .card-in { transform: none; box-shadow: none; }
.school-box .choice:hover img { transform: none; }

/* Driving / Computer switch (pricing) */
.school-switch { display: flex; justify-content: center; margin-bottom: 40px; }
.school-switch [role="tablist"] { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.school-switch button {
  border: 0;
  padding: 12px 26px;
  border-radius: 999px;
  background: transparent;
  color: var(--black);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s;
}
.school-switch button[aria-selected="true"] { background: var(--black); color: #fff; }
[role="tabpanel"].price-grid.enter { animation: fadeUp 0.6s var(--ease); }

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form label.field { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--black); }
.form input:not([type="radio"]):not([type="range"]),
.form select,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue-dark); box-shadow: 0 0 0 4px rgba(94, 200, 242, 0.22); }
.form input:user-invalid { border-color: #e5484d; }
.form textarea { min-height: 110px; resize: vertical; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.form-error { color: #b42318; font-weight: 600; font-size: 0.9rem; min-height: 1.2em; margin: 12px 0 0; }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-weight: 600; margin-top: 16px; }
.form-status.ok { display: block; background: rgba(31, 157, 85, 0.1); color: var(--green); }
.form-status.err { display: block; background: #fdecec; color: #b42318; }

.success { text-align: center; padding: 40px 10px; }
.success .check { width: 84px; height: 84px; border-radius: 50%; background: rgba(31, 157, 85, 0.12); color: var(--green); font-size: 2.4rem; display: grid; place-items: center; margin: 0 auto 18px; animation: pop 0.5s var(--ease); }

.map-embed { border-radius: 22px; overflow: hidden; height: 360px; background: var(--bg-soft); border: 2px dashed #b9d9ea; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }
.map-embed--live { padding: 0; border: 0; box-shadow: var(--shadow); }
.map-embed--live iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--black-deep); color: #9ca1a7; padding: 80px 0 28px; font-size: 0.95rem; overflow: hidden; }
.footer-photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: -80px 0 64px; }
.footer-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.4s var(--ease); }
.footer-photos img:hover { transform: scale(1.04); position: relative; z-index: 1; }
@media (max-width: 700px) { .footer-photos { grid-template-columns: repeat(3, 1fr); } }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 36px 56px; margin-bottom: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #1a1a1a; color: #fff; transition: background 0.2s, color 0.2s, transform 0.2s var(--ease); }
.footer-social a:hover, .footer-social a:focus-visible { background: var(--blue); color: var(--black); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
/* Keep the bottom bar clear of the fixed back-to-top button (right edge) and, on
   phones, the sticky "Book or Enroll" button (bottom edge). */
@media (max-width: 1330px) { .footer-bottom { padding-right: 64px; } }
@media (max-width: 700px) { .site-footer { padding-bottom: 96px; } }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: #cfd3d7; transition: color 0.2s; }
.site-footer a:hover { color: var(--blue); }
.site-footer .contact-item { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.site-footer .fi { flex: none; width: 18px; height: 18px; color: var(--blue); }
.site-footer .logo { color: #fff; margin-bottom: 14px; line-height: 1.2; }
.footer-bottom { border-top: 1px solid #222222; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }

/* ---------- Floating UI ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--black);
  color: var(--blue);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); color: var(--black); }
/* WhatsApp chat button: always visible, sits above the back-to-top button */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 91;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55); }
.wa-float:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.mobile-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 80px;
  bottom: 18px;
  z-index: 90;
  transform: translateY(120%);
  transition: transform 0.4s var(--ease);
}
.mobile-cta.show { transform: none; }
@media (max-width: 700px) { .mobile-cta { display: flex; } }

/* ---------- Phones: card rows become swipeable strips ---------- */
@media (max-width: 560px) {
  .photo-cards, .flip-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin: 0 -20px;
    padding: 4px 20px 18px;
    scrollbar-width: none;
  }
  .photo-cards::-webkit-scrollbar, .flip-grid::-webkit-scrollbar { display: none; }
  .photo-cards > *, .flip-grid > * { flex: 0 0 78%; scroll-snap-align: center; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.zoom { transform: scale(0.92); }
.reveal.in { opacity: 1; transform: none; }
/* once revealed, tilt cards need a snappy transform transition */
[data-tilt].reveal.in { transition: box-shadow 0.4s var(--ease), transform 0.15s linear; transition-delay: 0s; }

/* ---------- Long-form text (privacy notice) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.prose p, .prose li { color: #3c4043; line-height: 1.7; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue-dark); }

/* ---------- Utilities ---------- */
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* Placeholder content Kwame should replace — highlighted only while
   <body class="show-placeholders"> is set (handy while editing). */
.show-placeholders .ph { background: #fff3c4; color: var(--ink) !important; outline: 1px dashed var(--blue-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Line icons (inline SVG, replaces emoji) ---------- */
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.2em; }
.road-progress .car .ic { width: 18px; height: 18px; vertical-align: top; }
.duo-icon .ic, .photo-card .badge .ic, .contact-list .icon .ic { width: 0.95em; height: 0.95em; vertical-align: 0; }
.flip-back .icon { color: var(--blue); }
.flip-back .icon .ic { width: 1em; height: 1em; }