/* =========================================================
   GRACIOUS DRIVING SCHOOL — Design tokens & base styles
   Palette: Sunbelt Yellow / Signal Red / Asphalt Black
   Type: Anton (display) / Work Sans (body) / Caveat (script)
         / Space Mono (data / labels)
   Signature element: "The Road Line" — animated dashed
   lane-marking used as a divider, underline & progress bar.
   ========================================================= */

:root{
  --yellow: #F7C600;
  --yellow-deep: #E0AE00;
  --red: #D21F1F;
  --red-deep: #A5140F;
  --ink: #1A1712;
  --charcoal: #262220;
  --cream: #FFFCF4;
  --paper: #FFF8E6;
  --tan: #C9A574;
  --grey: #6B655C;
  --line: rgba(26,23,18,0.12);
  --shadow: 0 20px 50px rgba(26,23,18,0.14);
  --shadow-soft: 0 8px 24px rgba(26,23,18,0.10);

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;
  --font-script: 'Caveat', cursive;
  --font-mono: 'Space Mono', monospace;

  --nav-h: 76px;
  --container: 1180px;
  --radius: 18px;
}

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

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{ margin:0; font-family:var(--font-display); font-weight:400; letter-spacing:.01em; line-height:1.05; }
p{ margin:0; }
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow{
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--red);
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:26px; height:2px;
  background:var(--red);
  display:inline-block;
}

.script{ font-family:var(--font-script); color:var(--red); font-size:1.4rem; }

/* ---------- Road line signature divider ---------- */
.road-line{
  position:relative;
  height:6px;
  margin:0 auto;
  width:100%;
  background-image:repeating-linear-gradient(to right, var(--ink) 0 26px, transparent 26px 46px);
  opacity:.16;
  border-radius:3px;
}
.road-line.animated{
  background-size:200% 100%;
  animation:roadmove 2.2s linear infinite;
}
@keyframes roadmove{ from{ background-position:0 0;} to{ background-position:-72px 0;} }

.road-divider{
  display:flex; align-items:center; gap:16px;
  margin: 18px 0 36px;
}
.road-divider .road-line{ flex:1; }
.road-divider .dot{ width:8px; height:8px; border-radius:50%; background:var(--red); flex-shrink:0; }

/* ---------- Site header (always visible strip) ---------- */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  height:var(--nav-h);
  z-index:940;
  background:var(--ink);
  box-shadow:0 2px 20px rgba(0,0,0,.25);
  display:flex;
  align-items:center;
}
.site-header-inner{
  display:flex;
  align-items:center;
  gap:16px;
  width:100%;
}
.site-logo{
  display:flex;
  align-items:center;
  gap:12px;
}
.site-logo img{ width:42px; height:42px; border-radius:50%; flex-shrink:0; }
.site-logo span{
  font-family:var(--font-display);
  color:var(--yellow);
  font-size:.92rem;
  line-height:1.15;
}

/* ---------- Top-left Nav toggle (docked inside site header) ---------- */
.nav-toggle{
  position:relative;
  z-index:1000;
  width:48px; height:48px;
  border-radius:50%;
  background:var(--yellow);
  border:3px solid var(--ink);
  box-shadow:var(--shadow-soft);
  display:flex; align-items:center; justify-content:center;
  gap:0;
  flex-shrink:0;
  transition:transform .25s ease, background .25s ease;
}
.nav-toggle:hover{ transform:scale(1.06); }
.nav-toggle .bar{
  position:absolute;
  width:22px; height:3px; background:var(--ink); border-radius:2px;
  transition:transform .3s ease, opacity .3s ease, top .3s ease;
}
.nav-toggle .bar:nth-child(1){ top:16px; }
.nav-toggle .bar:nth-child(2){ top:23px; }
.nav-toggle .bar:nth-child(3){ top:30px; }
.nav-toggle.open .bar:nth-child(1){ top:23px; transform:rotate(45deg); }
.nav-toggle.open .bar:nth-child(2){ opacity:0; }
.nav-toggle.open .bar:nth-child(3){ top:23px; transform:rotate(-45deg); }

/* Drawer */
.nav-scrim{
  position:fixed; inset:0;
  background:rgba(20,17,12,.45);
  backdrop-filter:blur(2px);
  opacity:0; pointer-events:none;
  transition:opacity .35s ease;
  z-index:900;
}
.nav-scrim.show{ opacity:1; pointer-events:auto; }

.nav-drawer{
  position:fixed;
  top:0; left:0; bottom:0;
  width:min(310px, 82vw);
  background:var(--ink);
  z-index:950;
  transform:translateX(-104%);
  transition:transform .4s cubic-bezier(.65,0,.35,1);
  padding:110px 30px calc(56px + env(safe-area-inset-bottom, 0px));
  display:flex; flex-direction:column;
  overflow-y:auto;
  box-shadow:0 0 60px rgba(0,0,0,.35);
}
.nav-drawer.open{ transform:translateX(0); }

.nav-drawer .brand{
  display:flex; align-items:center; gap:12px;
  margin-bottom:36px;
}
.nav-drawer .brand img{ width:48px; height:48px; border-radius:50%; }
.nav-drawer .brand span{
  font-family:var(--font-display);
  color:var(--yellow);
  font-size:1.05rem;
  line-height:1.15;
}

.nav-links{ display:flex; flex-direction:column; gap:4px; flex:1; }
.nav-links a{
  color:var(--cream);
  font-family:var(--font-display);
  font-size:1.15rem;
  padding:12px 6px;
  border-bottom:1px solid rgba(255,255,255,.08);
  position:relative;
  transition:color .25s ease, padding-left .25s ease;
}
.nav-links a span.num{
  font-family:var(--font-mono); font-size:.7rem; color:var(--tan); margin-right:10px;
}
.nav-links a:hover, .nav-links a.active{ color:var(--yellow); padding-left:14px; }
.nav-links a.active::after{
  content:"";
  position:absolute; left:0; bottom:-1px; height:2px; width:100%;
  background:var(--red);
}

.nav-drawer .drawer-footer{
  margin-top:16px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.1);
}
.nav-drawer .drawer-footer .call{
  font-family:var(--font-mono);
  color:var(--yellow);
  font-size:.95rem;
  display:block;
  margin-bottom:14px;
}
.social-row{ display:flex; gap:12px; }
.social-row a{
  width:38px; height:38px; border-radius:50%;
  background:rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
  transition:background .25s ease, transform .25s ease;
}
.social-row a:hover{ background:var(--red); transform:translateY(-2px); }
.social-row svg{ width:18px; height:18px; fill:var(--cream); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--font-display);
  font-size:.95rem;
  letter-spacing:.02em;
  padding:15px 30px;
  border-radius:999px;
  border:2px solid transparent;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--red); color:var(--cream); box-shadow:0 10px 24px rgba(210,31,31,.35); }
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 16px 30px rgba(210,31,31,.4); }
.btn-outline{ background:transparent; border-color:currentColor; color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:var(--yellow); }
.btn-light{ background:var(--yellow); color:var(--ink); }
.btn-light:hover{ transform:translateY(-3px); box-shadow:0 14px 26px rgba(247,198,0,.4); }
.btn-sm{ padding:10px 20px; font-size:.8rem; }
.btn-row{ display:flex; gap:16px; flex-wrap:wrap; }

/* ---------- Header bar (page title strip, non-home pages) ---------- */
.page-header{
  position:relative;
  margin-top:var(--nav-h);
  padding:100px 0 70px;
  background:var(--ink);
  color:var(--cream);
  overflow:hidden;
}
.page-header::before{
  content:"";
  position:absolute; inset:0;
  background-image:repeating-linear-gradient(-45deg, rgba(247,198,0,.05) 0 2px, transparent 2px 26px);
}
.page-header .eyebrow{ color:var(--yellow); }
.page-header .eyebrow::before{ background:var(--yellow); }
.page-header h1{ font-size:clamp(2.4rem, 6vw, 4.2rem); color:var(--cream); }
.page-header p.lead{ font-family:var(--font-body); max-width:560px; color:rgba(255,252,244,.75); margin-top:16px; font-size:1.05rem; }

/* ---------- Hero (home) ---------- */
.hero{
  position:relative;
  margin-top:var(--nav-h);
  min-height:calc(100vh - var(--nav-h));
  display:flex; align-items:flex-end;
  overflow:hidden;
  color:var(--cream);
  isolation:isolate;
}
.hero-slides{ position:absolute; inset:0; z-index:-2; }
.hero-slide{
  position:absolute; inset:0;
  background-size:contain; background-position:center; background-repeat:no-repeat;
  background-color:var(--ink);
  opacity:0;
  transform:scale(1.06);
  animation-fill-mode:forwards;
}
.hero-slide.active{
  animation:kenburns 9s ease-in-out forwards, fadeslide 9s ease-in-out forwards;
}
@keyframes kenburns{
  0%{ transform:scale(1.0) translate(0,0); }
  100%{ transform:scale(1.08) translate(-1%, -1%); }
}
@keyframes fadeslide{
  0%{ opacity:0; }
  10%{ opacity:1; }
  85%{ opacity:1; }
  100%{ opacity:0; }
}
.hero::after{
  content:"";
  position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg, rgba(20,17,12,.35) 0%, rgba(20,17,12,.55) 55%, rgba(20,17,12,.92) 100%);
}
.hero-content{
  position:relative;
  padding:0 24px 90px;
  max-width:var(--container);
  margin:0 auto;
  width:100%;
}
.hero-content .eyebrow{ color:var(--yellow); }
.hero-content .eyebrow::before{ background:var(--yellow); }
.hero-content h1{
  font-size:clamp(2.6rem, 7.4vw, 5.6rem);
  color:var(--cream);
  max-width:900px;
}
.hero-content h1 em{
  font-style:normal;
  color:var(--yellow);
  -webkit-text-stroke:0;
}
.hero-content p.lead{
  font-size:1.15rem;
  max-width:520px;
  margin:20px 0 34px;
  color:rgba(255,252,244,.85);
}
.hero-badge{
  position:absolute;
  top:110px; right:24px;
  display:flex; align-items:center; gap:10px;
  background:rgba(255,252,244,.1);
  border:1px solid rgba(255,252,244,.25);
  backdrop-filter:blur(6px);
  padding:10px 18px 10px 10px;
  border-radius:999px;
}
.hero-badge img{ width:38px; height:38px; border-radius:50%; }
.hero-badge .txt{ font-family:var(--font-mono); font-size:.72rem; line-height:1.3; }
.hero-badge .txt b{ display:block; font-family:var(--font-display); font-size:.85rem; color:var(--yellow); }
.scroll-cue{
  position:absolute; bottom:26px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:.65rem; letter-spacing:.2em; color:rgba(255,252,244,.7);
}
.scroll-cue .stick{ width:2px; height:34px; background:rgba(255,252,244,.4); position:relative; overflow:hidden; }
.scroll-cue .stick::after{
  content:""; position:absolute; left:0; top:-100%; width:100%; height:100%; background:var(--yellow);
  animation:scrolldrop 1.8s ease-in-out infinite;
}
@keyframes scrolldrop{ 0%{ top:-100%;} 60%{ top:100%;} 100%{ top:100%;} }

@media (max-width:640px){
  .hero-badge{ display:none; }
}

/* ---------- Sections ---------- */
section{ padding:100px 0; position:relative; }
.section-alt{ background:var(--paper); }
.section-dark{ background:var(--ink); color:var(--cream); }
.section-dark .eyebrow{ color:var(--yellow); }
.section-dark .eyebrow::before{ background:var(--yellow); }
.section-dark .road-line{ background-image:repeating-linear-gradient(to right, var(--cream) 0 26px, transparent 26px 46px); }

.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h2{ font-size:clamp(2rem, 4.4vw, 3.2rem); }
.section-head p{ margin-top:16px; font-size:1.05rem; color:var(--grey); line-height:1.6; }
.section-dark .section-head p{ color:rgba(255,252,244,.72); }

.grid{ display:grid; gap:28px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:920px){
  .grid-3, .grid-4{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
}

/* Cards */
.card{
  background:var(--cream);
  border-radius:var(--radius);
  padding:32px 28px;
  box-shadow:var(--shadow-soft);
  border:1px solid var(--line);
  transition:transform .35s ease, box-shadow .35s ease;
}
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.card .icon-tag{
  width:52px; height:52px; border-radius:14px;
  background:var(--yellow);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
  font-family:var(--font-display);
  font-size:1.3rem;
}
.card h3{ font-size:1.3rem; margin-bottom:10px; }
.card p{ color:var(--grey); line-height:1.6; font-size:.96rem; }

.card-photo{
  border-radius:var(--radius);
  overflow:hidden;
  position:relative;
  box-shadow:var(--shadow-soft);
  aspect-ratio:4/5;
}
.card-photo img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.card-photo:hover img{ transform:scale(1.08); }
.card-photo .caption{
  position:absolute; left:0; right:0; bottom:0;
  padding:22px 20px;
  background:linear-gradient(0deg, rgba(20,17,12,.88), transparent);
  color:var(--cream);
}
.card-photo .caption .script{ color:var(--yellow); font-size:1.3rem; }

/* Stats strip */
.stats{
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
  padding:40px 0;
}
.stat b{ font-family:var(--font-display); font-size:clamp(2rem,4vw,3rem); color:var(--yellow); display:block; }
.stat span{ font-family:var(--font-mono); font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,252,244,.65); }
@media (max-width:768px){ .stats{ grid-template-columns:repeat(2,1fr); } }

/* Reveal on scroll */
.reveal{ opacity:0; transform:translateY(36px); transition:opacity .8s ease, transform .8s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }
.reveal-delay-1.in{ transition-delay:.1s; }
.reveal-delay-2.in{ transition-delay:.2s; }
.reveal-delay-3.in{ transition-delay:.3s; }
.reveal-delay-4.in{ transition-delay:.4s; }

/* ---------- Footer ---------- */
footer{
  background:var(--ink);
  color:var(--cream);
  padding:70px 0 26px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:40px;
  padding-bottom:50px;
  border-bottom:1px solid rgba(255,252,244,.12);
}
@media (max-width:820px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-brand img{ width:52px; height:52px; border-radius:50%; }
.footer-brand span{ font-family:var(--font-display); font-size:1.2rem; color:var(--yellow); }
footer h4{ font-family:var(--font-mono); font-size:.72rem; letter-spacing:.15em; text-transform:uppercase; color:var(--yellow); margin-bottom:18px; }
footer ul li{ margin-bottom:10px; }
footer ul li a{ color:rgba(255,252,244,.75); font-size:.92rem; transition:color .2s ease, padding-left .2s ease; }
footer ul li a:hover{ color:var(--yellow); padding-left:4px; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding-top:26px;
  font-family:var(--font-mono); font-size:.75rem; color:rgba(255,252,244,.55);
}

/* ---------- WhatsApp floating button ---------- */
.wa-float{
  position:fixed; right:20px; bottom:20px; z-index:980;
  width:64px; height:64px; border-radius:50%;
  background:#25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 12px 28px rgba(37,211,102,.5);
  animation:wapulse 2.4s ease-in-out infinite;
}
.wa-float svg{ width:32px; height:32px; fill:#fff; }
@keyframes wapulse{
  0%,100%{ box-shadow:0 12px 28px rgba(37,211,102,.5); }
  50%{ box-shadow:0 12px 28px rgba(37,211,102,.85), 0 0 0 10px rgba(37,211,102,.12); }
}
.wa-float:hover{ transform:scale(1.08); }

/* ---------- Forms ---------- */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:640px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:8px; }
.field label{ font-family:var(--font-mono); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--grey); }
.field.full{ grid-column:1/-1; }
input, select, textarea{
  font-family:var(--font-body);
  font-size:1rem;
  padding:14px 16px;
  border-radius:10px;
  border:2px solid var(--line);
  background:var(--cream);
  color:var(--ink);
  transition:border-color .2s ease;
}
input:focus, select:focus, textarea:focus{ outline:none; border-color:var(--red); }
textarea{ resize:vertical; min-height:110px; }

/* ---------- Misc utilities ---------- */
.tag-row{ display:flex; flex-wrap:wrap; gap:10px; }
.tag{
  font-family:var(--font-mono); font-size:.75rem;
  padding:8px 16px; border-radius:999px;
  border:1px solid var(--line);
  color:var(--grey);
}
.center{ text-align:center; }
.mx-auto{ margin-left:auto; margin-right:auto; }
.mt-lg{ margin-top:60px; }
.map-frame{
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid var(--line);
}
.map-frame iframe{ width:100%; height:100%; border:0; display:block; }

.video-frame{
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid var(--line);
  background:var(--ink);
}
.video-frame video{ width:100%; display:block; max-height:520px; object-fit:cover; }

.badge-strip{ display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
.badge-strip img{ height:56px; width:auto; filter:grayscale(0); }
.badge-strip .divider{ width:1px; height:40px; background:var(--line); }

/* text no-cut safety */
h1,h2,h3,h4,p,span,a,li{ overflow-wrap:break-word; word-break:break-word; }
.container, section, .hero-content, footer{ overflow:visible; }

@media (max-width:480px){
  .btn{ padding:13px 22px; font-size:.85rem; }
  section{ padding:70px 0; }
}

/* ---------- Lightbox ---------- */
.lightbox{
  position:fixed; inset:0; z-index:1100;
  background:rgba(15,13,10,.92);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none;
  transition:opacity .3s ease;
  padding:40px;
}
.lightbox.show{ opacity:1; pointer-events:auto; }
.lightbox img{ max-width:100%; max-height:100%; border-radius:12px; box-shadow:0 30px 80px rgba(0,0,0,.5); }

.gallery-item{ cursor:pointer; }

