/*
Theme Name: ABCDE Driving School
Theme URI: https://abcdedrivingschool.com
Author: Brands That Last
Author URI: https://brandsthatlast.com
Description: Custom theme for ABCDE Driving School. Colours sampled from the vehicle
wrap; Overpass (US highway signage lineage) for display, Public Sans for body.
Version: 1.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: abcde
*/


/* ABCDE Driving School — Brands That Last
   Palette taken from the vehicle wrap brand board.
   Type: Overpass (drawn from US highway signage) for display,
         Public Sans (US government / DMV vernacular) for body,
         Overpass Mono for numbers, prices and hours. */

:root{
  /* Sampled from the wrap brand board, not from its printed labels —
     the labels and the swatches on that sheet disagree. These are the swatches. */
  --blue:#003AC5;        /* Blazze Blue, as rendered */
  --blue-deep:#002B92;
  --yellow:#FEBB02;      /* Safety Yellow — amber, not lemon */
  --ink:#0B0B0C;         /* Jet Black */
  --steel:#7797BA;       /* Steel Blue — the car body */
  --steel-pale:#E3EAF3;
  --steel-line:#C6D3E2;
  --navy:#1C2733;        /* dark ground, pulled toward the steel family */
  --paper:#F2F5F9;
  --white:#FCFCFC;
  --line:#D7E0EA;

  --shell:min(1180px, 100% - 3rem);
  --r:4px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:"Public Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:clamp(1rem,0.96rem + 0.2vw,1.075rem);
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:var(--blue-deep)}

h1,h2,h3,.display{
  font-family:"Overpass",system-ui,sans-serif;
  font-weight:900;
  letter-spacing:-0.025em;
  line-height:1.03;
  margin:0 0 .6em;
  text-wrap:balance;
}
h1{font-size:clamp(2.6rem,1.6rem + 4.4vw,4.6rem);text-transform:uppercase}
h2{font-size:clamp(1.9rem,1.3rem + 2.4vw,3rem)}
h3{font-size:clamp(1.15rem,1.05rem + 0.5vw,1.4rem);letter-spacing:-0.015em}
p{margin:0 0 1.1rem;max-width:64ch}
.lede{font-size:clamp(1.1rem,1rem + 0.55vw,1.35rem);line-height:1.55;color:#33363C}

.shell{width:var(--shell);margin-inline:auto}
.band{padding-block:clamp(3.5rem,2rem + 6vw,6rem)}
.band--dark{background:var(--navy);color:var(--white)}
.band--dark p{color:#C9CDD4}
.band--dark a{color:var(--yellow)}
.band--paper{background:var(--steel-pale)}
.band--blue{background:var(--blue);color:var(--white)}
.band--blue p{color:#DCE5FF}
.band--steel{background:var(--steel);color:var(--ink)}
.band--steel .card{border-color:rgba(11,11,12,.18);background:rgba(255,255,255,.94)}
.band--steel .marker{color:var(--ink)}
.band--steel .marker::after{background:repeating-linear-gradient(90deg,var(--ink) 0 22px,transparent 22px 40px)}

/* ---- eyebrow / mile marker: the section label sits on a lane line ---- */
.marker{
  display:flex;align-items:center;gap:.9rem;
  font-family:"Overpass Mono",ui-monospace,monospace;
  font-size:.72rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;
  color:var(--blue);margin-bottom:1.6rem;
}
.marker::after{
  content:"";flex:1;height:3px;
  background:repeating-linear-gradient(90deg,var(--yellow) 0 22px,transparent 22px 40px);
}
.band--dark .marker{color:var(--yellow)}
.band--blue .marker{color:var(--white)}
.band--blue .marker::after{background:repeating-linear-gradient(90deg,rgba(255,255,255,.85) 0 22px,transparent 22px 40px)}

/* ------------------------------------------------------------ header ---- */
.topbar{
  background:var(--ink);color:var(--white);
  font-family:"Overpass Mono",monospace;font-size:.78rem;letter-spacing:.06em;
}
.topbar .shell{display:flex;flex-wrap:wrap;gap:.4rem 1.4rem;justify-content:space-between;padding-block:.55rem}
.topbar a{color:var(--yellow);text-decoration:none}
.topbar a:hover{text-decoration:underline}

header.site{position:sticky;top:0;z-index:40;background:var(--white);border-bottom:1px solid var(--line)}
header.site .shell{display:flex;align-items:center;gap:1.5rem;padding-block:.85rem}
.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:var(--ink);margin-right:auto}
.brand .mark{
  width:44px;height:44px;flex:none;border-radius:var(--r);
  background:var(--blue);color:var(--white);
  font-family:"Overpass",sans-serif;font-weight:900;font-size:.72rem;letter-spacing:.02em;
  display:grid;place-items:center;
  box-shadow:inset 0 -6px 0 var(--yellow);
}
.brand .wordmark b{font-family:"Overpass",sans-serif;font-weight:900;font-size:1.18rem;letter-spacing:-.02em;display:block;line-height:1}
.brand .wordmark i{font-style:normal;font-family:"Overpass Mono",monospace;font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:#5A6068;display:block;margin-top:.15rem}

nav.main{display:flex;gap:1.5rem;align-items:center}
nav.main a{
  color:var(--ink);text-decoration:none;font-weight:600;font-size:.94rem;
  padding-block:.35rem;border-bottom:3px solid transparent;
}
nav.main a:hover,nav.main a:focus-visible{border-bottom-color:var(--yellow)}

.btn{
  display:inline-block;font-family:"Overpass",sans-serif;font-weight:800;
  letter-spacing:.01em;text-decoration:none;border:0;cursor:pointer;
  padding:.85rem 1.5rem;border-radius:var(--r);font-size:1rem;
  background:var(--blue);color:var(--white);
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.22);
  transition:transform .12s ease, background .12s ease;
}
.btn:hover{background:var(--blue-deep);transform:translateY(-1px)}
.btn--yellow{background:var(--yellow);color:var(--ink)}
.btn--yellow:hover{background:#E3A600}
.btn--ghost{background:transparent;color:inherit;box-shadow:inset 0 0 0 2px currentColor}
.btn--ghost:hover{background:rgba(255,255,255,.1)}
.btn--sm{padding:.6rem 1.05rem;font-size:.9rem}

/* --------------------------------------------------------------- hero --- */
.hero{background:linear-gradient(160deg,#22303E 0%,var(--navy) 55%,#141C25 100%);color:var(--white);position:relative;overflow:hidden;
  padding-block:clamp(3.5rem,2rem + 7vw,7rem)}
.hero .shell{position:relative;z-index:2}
.hero h1{color:var(--white)}
.hero h1 em{font-style:normal;color:var(--yellow)}
.hero .lede{color:#C9CDD4;max-width:52ch}
.hero-grid{display:grid;gap:clamp(2rem,4vw,3.5rem);grid-template-columns:1fr}
@media(min-width:960px){.hero-grid{grid-template-columns:1.15fr .85fr;align-items:start}}
.hero-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.8rem}

/* the lane line: the one piece of motion on the page */
.lane{position:absolute;left:0;right:0;bottom:0;height:64px;background:#11181F;z-index:1;border-top:3px solid var(--steel)}
.lane::before{
  content:"";position:absolute;top:50%;left:0;width:200%;height:6px;transform:translateY(-50%);
  background:repeating-linear-gradient(90deg,var(--yellow) 0 90px,transparent 90px 180px);
  animation:drive 3s linear infinite;
}
@keyframes drive{to{transform:translate(-180px,-50%)}}
@media(prefers-reduced-motion:reduce){.lane::before{animation:none}}

.quickcard{
  background:#FFFFFF;color:var(--ink);border-radius:var(--r);
  padding:1.6rem 1.5rem;border-top:8px solid var(--yellow);
  box-shadow:0 24px 50px -24px rgba(0,0,0,.7);
}
.quickcard h2{font-size:1.35rem;margin-bottom:.35rem}
.quickcard p{font-size:.95rem;color:#4A4F57;margin-bottom:1.1rem}
.quickcard .btn{width:100%;text-align:center}
.quickcard .or{font-family:"Overpass Mono",monospace;font-size:.7rem;letter-spacing:.2em;
  text-transform:uppercase;color:#7A818A;text-align:center;margin:.9rem 0 .6rem}
.callnum{
  display:block;text-align:center;font-family:"Overpass",sans-serif;font-weight:900;
  font-size:1.6rem;color:var(--ink);text-decoration:none;letter-spacing:-.02em;
}
.callnum:hover{color:var(--blue)}
.quickcard small{display:block;text-align:center;color:#7A818A;margin-top:.4rem;font-size:.8rem}

/* -------------------------------------------------------------- cards --- */
.grid{display:grid;gap:1.25rem}
.grid-2{grid-template-columns:1fr}
.grid-3{grid-template-columns:1fr}
.grid-4{grid-template-columns:1fr}
@media(min-width:700px){.grid-2{grid-template-columns:1fr 1fr}.grid-4{grid-template-columns:1fr 1fr}}
@media(min-width:900px){.grid-3{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1050px){.grid-4{grid-template-columns:repeat(4,1fr)}}

.card{background:#FFFFFF;border:1px solid var(--steel-line);border-radius:var(--r);padding:1.5rem 1.4rem}
.card h3{margin-bottom:.5rem}
.card p{font-size:.96rem;color:#4A4F57;margin-bottom:0}
.card--flag{border-color:var(--blue);box-shadow:0 0 0 3px rgba(0,87,255,.09)}

.flagline{
  display:inline-block;font-family:"Overpass Mono",monospace;font-size:.66rem;font-weight:700;
  letter-spacing:.18em;text-transform:uppercase;background:var(--blue);color:var(--white);
  padding:.3rem .6rem;border-radius:2px;margin-bottom:.9rem;
}

/* package cards */
.pkg{display:flex;flex-direction:column;height:100%}
.pkg .hrs{font-family:"Overpass",sans-serif;font-weight:900;font-size:1.55rem;letter-spacing:-.02em;margin-bottom:.15rem}
.pkg .who{font-size:.92rem;color:#5A6068;margin-bottom:1rem}
.pkg .price{font-family:"Overpass Mono",monospace;font-size:1.5rem;font-weight:700;color:var(--blue);margin-bottom:1rem}
.pkg .price.tbc{font-size:.9rem;font-weight:400;color:#5A6068;letter-spacing:.02em}
.pkg ul{list-style:none;margin:0 0 1.4rem;padding:0;display:grid;gap:.6rem}
.pkg li{position:relative;padding-left:1.6rem;font-size:.95rem;line-height:1.45}
.pkg li::before{
  content:"";position:absolute;left:0;top:.5em;width:10px;height:10px;
  background:var(--yellow);transform:rotate(45deg);
}
.pkg .btn{margin-top:auto;text-align:center}

/* areas */
.area-card{
  display:block;text-decoration:none;color:inherit;background:#FFFFFF;
  border:1px solid var(--steel-line);border-radius:var(--r);padding:1.4rem;
  border-left:6px solid var(--blue);transition:transform .12s ease,border-color .12s ease;
}
.area-card:hover{transform:translateY(-2px);border-left-color:var(--yellow)}
.area-card h3{margin-bottom:.3rem}
.area-card p{font-size:.93rem;color:#5A6068;margin:0}
.area-card .county{font-family:"Overpass Mono",monospace;font-size:.68rem;letter-spacing:.16em;
  text-transform:uppercase;color:#8A9099;display:block;margin-bottom:.5rem}

/* route list on city pages */
.routes{list-style:none;padding:0;margin:0;display:grid;gap:0}
.routes li{display:grid;gap:.2rem .8rem;padding:1.1rem 0;border-top:1px dashed var(--steel)}
@media(min-width:760px){.routes li{grid-template-columns:200px 1fr;align-items:baseline}}
.routes li:last-child{border-bottom:1px dashed var(--steel)}
.routes b{font-family:"Overpass Mono",monospace;font-size:.72rem;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:var(--blue)}
.routes span{color:#3B3F45}

/* split feature */
.split{display:grid;gap:clamp(1.8rem,4vw,3.5rem);grid-template-columns:1fr}
@media(min-width:900px){.split{grid-template-columns:1fr 1fr;align-items:center}}

.stat{border-left:4px solid var(--steel);padding-left:1.1rem;margin-bottom:1.6rem}
.stat b{display:block;font-family:"Overpass",sans-serif;font-weight:900;font-size:2.1rem;line-height:1;letter-spacing:-.03em}
.stat span{font-size:.94rem;color:#5A6068}
.band--dark .stat span{color:#B4B9C0}

/* -------------------------------------------------------------- form ---- */
form.book{display:grid;gap:1.05rem;max-width:640px}
.field{display:grid;gap:.35rem}
.field label{font-weight:700;font-size:.92rem}
.field input,.field select,.field textarea{
  font:inherit;font-size:1rem;padding:.8rem .9rem;border:2px solid var(--steel-line);
  border-radius:var(--r);background:var(--white);color:var(--ink);width:100%;
}
.field input:focus,.field select:focus,.field textarea:focus{outline:3px solid var(--blue);outline-offset:1px;border-color:var(--blue)}
.field small{color:#6B7178;font-size:.83rem}
.field-row{display:grid;gap:1.05rem;grid-template-columns:1fr}
@media(min-width:620px){.field-row{grid-template-columns:1fr 1fr}}
form.book .btn{justify-self:start}

/* ------------------------------------------------------------- footer --- */
footer.site{background:#12191F;color:#B4B9C0;padding-block:3.5rem 2rem;font-size:.94rem}
footer.site a{color:#fff;text-decoration:none}
footer.site a:hover{color:var(--yellow);text-decoration:underline}
.foot-grid{display:grid;gap:2rem;grid-template-columns:1fr}
@media(min-width:760px){.foot-grid{grid-template-columns:1.4fr 1fr 1fr}}
footer.site h4{font-family:"Overpass Mono",monospace;font-size:.7rem;letter-spacing:.2em;
  text-transform:uppercase;color:var(--yellow);margin:0 0 .9rem;font-weight:700}
footer.site ul{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.foot-rule{height:5px;margin:2.5rem 0 1.5rem;
  background:repeating-linear-gradient(90deg,var(--yellow) 0 30px,transparent 30px 55px)}
.foot-legal{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;justify-content:space-between;
  font-family:"Overpass Mono",monospace;font-size:.72rem;letter-spacing:.06em;color:#767C84}

.skip{position:absolute;left:-9999px}
.skip:focus{left:1rem;top:1rem;position:fixed;z-index:99;background:var(--yellow);color:var(--ink);
  padding:.7rem 1.1rem;border-radius:var(--r);font-weight:700}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.band--dark :focus-visible,.hero :focus-visible{outline-color:var(--yellow)}

@media(max-width:880px){
  header.site .shell{flex-wrap:wrap;gap:.6rem 1rem;padding-block:.7rem}
  .brand{margin-right:auto}
  nav.main{
    order:3;width:100%;gap:1.1rem;overflow-x:auto;padding-bottom:.15rem;
    border-top:1px solid var(--line);padding-top:.55rem;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;
  }
  nav.main::-webkit-scrollbar{display:none}
  nav.main a{white-space:nowrap;font-size:.88rem}
  .topbar .shell{font-size:.72rem}
}


/* ------------------------------------------------- WordPress plumbing --- */
.wp-block-buttons{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.8rem}
.wp-block-button__link{
  display:inline-block;font-family:"Overpass",sans-serif;font-weight:800;
  text-decoration:none;padding:.85rem 1.5rem;border-radius:var(--r);font-size:1rem;
  background:var(--blue);color:var(--white);box-shadow:inset 0 -4px 0 rgba(0,0,0,.22);
  transition:transform .12s ease,background .12s ease;border:0;
}
.wp-block-button__link:hover{background:var(--blue-deep);transform:translateY(-1px)}
.is-style-yellow .wp-block-button__link{background:var(--yellow);color:var(--ink)}
.is-style-yellow .wp-block-button__link:hover{background:#E3A600}
.is-style-ghost .wp-block-button__link{background:transparent;color:inherit;box-shadow:inset 0 0 0 2px currentColor}

.wp-block-columns{display:grid;gap:1.25rem;grid-template-columns:1fr;margin-bottom:0}
@media(min-width:700px){
  .wp-block-columns{grid-template-columns:repeat(var(--cols,2),1fr)}
  .wp-block-columns.cols-3{--cols:3}
  .wp-block-columns.cols-4{--cols:2}
}
@media(min-width:1050px){.wp-block-columns.cols-4{--cols:4}}
.wp-block-column{min-width:0}

.entry-content > *{margin-bottom:1.1rem}
.entry-content ul,.entry-content ol{max-width:64ch;padding-left:1.3rem}
.entry-content li{margin-bottom:.4rem}
.entry-content img,.wp-block-image img{border-radius:var(--r)}
.wp-block-image figcaption{font-size:.85rem;color:#6B7178}

.alignwide{width:min(1180px,100% - 3rem);margin-inline:auto}
.alignfull{width:100%}
.aligncenter{margin-inline:auto}
.screen-reader-text{position:absolute;left:-9999px}

/* editor parity so the back end resembles the front end */
.editor-styles-wrapper{background:var(--white)}

/* page header used by page.php / 404 */
.page-head{background:var(--navy);color:var(--white);padding-block:clamp(3rem,2rem+5vw,5rem)}
.page-head h1{color:var(--white);margin-bottom:.4rem}
.page-head p{color:#C9CDD4;margin:0}

/* comments are off for this site, but style defensively */
.comments-area{display:none}


/* ------------------------------------ SOP 2.2 — sticky mobile call bar --- */
.callbar{display:none}
@media(max-width:760px){
  .callbar{
    display:grid;grid-template-columns:1fr 1fr;
    position:fixed;left:0;right:0;bottom:0;z-index:60;
    box-shadow:0 -6px 20px rgba(0,0,0,.25);
  }
  .callbar a{
    display:flex;align-items:center;justify-content:center;gap:.4rem;
    padding:.95rem .5rem;text-decoration:none;
    font-family:"Overpass",sans-serif;font-weight:800;font-size:1rem;
    background:var(--blue);color:#fff;
  }
  .callbar .callbar-alt{background:var(--yellow);color:var(--ink)}
  body{padding-bottom:56px}
}

/* NAP block — must match GBP character for character (SOP 2.4) */
.nap{line-height:1.7}
.nap-name{font-weight:700;color:#fff}
.trust{font-size:.85rem;color:#8A9099}
