/* ==========================================================================
   VIRGINIA CLINIC HOME PAGES - MASTER SHEET  (BUILD 2026-11-25-E)
   One file for every Virginia clinic home page on the old template
   (header.masthead + #mainNav): Virginia Driver Improvement Clinic Online (gold),
   Virginia Driving Clinic Online, Cheap Driving Clinic, Driver Improvement
   Clinic Online (red). Same approach as the California home-page master.
   Each site adds its own short settings block at the END of its styles.css
   (pictures, colours, crop); this file does the rest.
   Styling only: no prices, links or page text change.
   Undo: remove the link to this file (and the site's settings block).
   ========================================================================== */

/* Heading fonts for the site personalities (only the fonts a site uses are downloaded) */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Poppins:wght@700;800&family=Nunito:wght@700;800&family=Montserrat:wght@300;800&display=swap");

/* ---------- defaults (a site's settings block overrides these) ---------- */
:where(:root){
  --hero-img:none;                    /* url("/assets/img/<Splash>.jpg") */
  --hero-top:#ffffff; --hero-mid:#ffffff; --hero-bot:#f4f6f8;  /* phone backdrop, matches the picture's sky */
  --hero-ratio:16/10;                 /* phone picture band shape */
  --hero-size:190%;                   /* phone picture zoom (wider than the screen = crop) */
  --hero-pos:8% 100%;                 /* phone crop: left part (car / people), bottom */
  --hero-fade:linear-gradient(180deg,#000 80%,transparent 100%);  /* "none" = hard edge */
  --hero-desk-pos:center bottom;      /* desktop picture position */
  --hero-glow:0 1px 0 rgba(255,255,255,.85),0 4px 18px rgba(255,255,255,.95);
  --brand:#830000;                    /* clinic colour: feature icons, price, Register buttons */
  --brand-dark:#5a0000;
  --on-brand:#ffffff;
  --nav-ink:#1f2329;                  /* menu button colour on the menu bar */
  --pricing-img:none;                 /* pricing section background (the template's path is broken) */
  --contact-img:none;                 /* map picture behind "Need help?" */
}

/* ===================== 1. MENU BAR ===================== */
#mainNav .navbar-brand{display:inline-flex!important;align-items:center!important}
#mainNav .navbar-brand img{display:block;width:auto!important;max-width:100%}
#mainNav .navbar-toggler{border-radius:12px!important;border:1.5px solid currentColor!important;color:var(--nav-ink)!important;
  background:rgba(255,255,255,.18)!important;min-height:44px;min-width:44px;box-shadow:0 1px 2px rgba(0,0,0,.14)!important}
#mainNav .navbar-toggler:focus-visible,#mainNav .nav-link:focus-visible{outline:2px solid #1f6feb!important;outline-offset:2px!important;box-shadow:none!important}
@media (min-width:992px){
  #mainNav .navbar-brand img{max-height:52px!important;height:auto!important}
  #mainNav:not(.navbar-shrink){padding-top:14px!important;padding-bottom:14px!important}
}
@media (max-width:991.98px){
  #mainNav{position:sticky!important;top:0!important;padding-top:8px!important;padding-bottom:8px!important}
  #mainNav > .container{flex-wrap:wrap;align-items:center}
  #mainNav .navbar-brand{flex:0 1 auto;min-width:0;margin-right:8px!important}
  #mainNav .navbar-toggler{flex:0 0 auto;margin-left:auto;padding:0 12px!important;font-size:13px!important;letter-spacing:.06em}
  #mainNav .navbar-brand img{height:auto!important;max-height:36px!important;max-width:calc(100vw - 150px)!important}
  #mainNav .navbar-nav{padding-top:8px!important;padding-bottom:8px!important}
  #mainNav .navbar-nav .nav-link{display:block;min-height:44px;padding:12px 4px!important;font-size:15px!important}
}
@media (max-width:379.98px){
  #mainNav .navbar-toggler{font-size:0!important;width:44px!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center}
  #mainNav .navbar-toggler svg,#mainNav .navbar-toggler i{font-size:20px!important;width:20px!important;height:20px!important;margin:0!important}
  #mainNav .navbar-brand img{max-width:calc(100vw - 96px)!important}
}

/* ===================== 2. HERO ===================== */
header.masthead .container{max-width:1000px}
header.masthead .container > br{display:none}
header.masthead .masthead-subheading{font-weight:600;letter-spacing:-.01em;text-shadow:var(--hero-glow);margin-bottom:24px!important}
header.masthead .price-swap{display:block;margin:0 auto!important;height:auto!important;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.28)) drop-shadow(0 2px 3px rgba(0,0,0,.22));transition:transform .25s ease}
header.masthead a:hover .price-swap,header.masthead a:focus-visible .price-swap{transform:translateY(-4px) scale(1.03) rotate(-2deg)}

/* desktop: the whole picture, people/car at the bottom fully in view */
@media (min-width:992px){
  header.masthead{background-size:cover!important;background-position:var(--hero-desk-pos)!important;padding-top:200px!important;padding-bottom:220px!important}
  header.masthead .price-swap{max-width:150px!important}
}
/* phones/tablets: the picture comes back FIRST, right under the menu;
   the slogan and the $5 badge layer over its faded bottom edge */
@media (max-width:991.98px){
  header.masthead{position:relative;background:linear-gradient(180deg,var(--hero-top) 0%,var(--hero-mid) 55%,var(--hero-bot) 100%)!important;
    padding:0 0 24px!important;text-align:center}
  header.masthead::before{content:"";display:block;width:100%;aspect-ratio:var(--hero-ratio);margin:0 0 4px;
    background-image:var(--hero-img);background-repeat:no-repeat;background-size:var(--hero-size) auto;background-position:var(--hero-pos);
    -webkit-mask-image:var(--hero-fade);mask-image:var(--hero-fade)}
  header.masthead .container{position:relative;margin-top:-16px;padding-left:16px!important;padding-right:16px!important}
  header.masthead .masthead-subheading{font-size:clamp(20px,5.6vw,26px)!important;line-height:1.25!important;margin:0 0 16px!important}
  header.masthead .price-swap{max-width:112px!important}
}

/* ===================== 3. SECTIONS THAT WERE STUCK OR MISSING ===================== */
/* The page's scroll animation leaves 31 blocks half-faded and pushed down
   (the "Need help?" box sits over the reviews). Show everything, in place. */
.tile,[data-sr-id]{opacity:1!important;visibility:visible!important;transform:none!important}
/* Pricing background: the template points to the wrong folder, so it never loads */
section.bg-img,section .bg-img{background-image:var(--pricing-img)!important;background-size:cover!important;background-position:center!important}
/* "Need help?": was flat grey with grey text; now the map picture under a dark shade, white text */
section#contact{background:linear-gradient(rgba(20,24,30,.78),rgba(20,24,30,.86)),var(--contact-img) center/cover no-repeat,#2b3038!important}
section#contact,section#contact .text-muted,section#contact p{color:#e9edf2!important}
section#contact a{color:#fff!important;text-decoration:underline;text-underline-offset:3px}

/* ===================== 4. FEATURE ICONS: 3D, polished ===================== */
.page-section .fa-stack{display:inline-flex!important;align-items:center;justify-content:center;width:120px!important;height:120px!important;line-height:1!important;
  margin:8px auto 20px;border-radius:50%;border:4px solid #fff;outline:1px solid rgba(0,0,0,.08);
  background:radial-gradient(circle at 32% 26%,color-mix(in srgb,var(--brand) 45%,#fff) 0%,var(--brand) 52%,var(--brand-dark) 100%);
  box-shadow:inset 0 -8px 14px rgba(0,0,0,.28),inset 0 8px 12px rgba(255,255,255,.28),0 14px 26px rgba(0,0,0,.22),0 3px 6px rgba(0,0,0,.18);
  transition:transform .2s ease,box-shadow .2s ease}
.page-section .fa-stack .fa-stack-2x{display:none!important}
.page-section .fa-stack .fa-stack-1x{position:static!important;width:46px!important;height:46px!important;font-size:46px!important;color:#fff!important;
  filter:drop-shadow(0 3px 3px rgba(0,0,0,.35))}
.page-section .col-md-4:hover .fa-stack{transform:translateY(-4px);
  box-shadow:inset 0 -8px 14px rgba(0,0,0,.28),inset 0 8px 12px rgba(255,255,255,.28),0 20px 32px rgba(0,0,0,.26),0 4px 8px rgba(0,0,0,.18)}
.page-section .col-md-4 h4{margin-top:4px!important;font-weight:700}
@media (max-width:991.98px){
  .page-section .fa-stack{width:96px!important;height:96px!important}
  .page-section .fa-stack .fa-stack-1x{width:38px!important;height:38px!important}
  .page-section .col-md-4{padding:8px 24px 24px}
}

/* ===================== 5. PRICE CARD ===================== */
#pricing .card{border:0!important;border-radius:20px!important;overflow:hidden;background:#fff;box-shadow:0 24px 48px rgba(16,24,40,.16),0 4px 10px rgba(16,24,40,.08)!important}
#pricing .card-body{padding:28px 28px 24px!important}
#pricing .card-title{font-size:14px!important;letter-spacing:.14em!important;margin-bottom:6px!important}
#pricing .card-price{font-size:44px!important;font-weight:800!important;line-height:1.1!important;color:var(--brand)!important;margin:0 0 6px!important;letter-spacing:-.02em}
#pricing .card-body ul{margin:16px 0 20px!important;padding:0!important;list-style:none}
#pricing .card-body li{font-size:16px!important;line-height:1.5;padding:6px 0!important}
#pricing .card .btn{width:100%;min-height:52px;font-size:17px!important;font-weight:700!important;border-radius:12px!important;
  background:var(--brand)!important;border-color:var(--brand)!important;box-shadow:0 8px 18px rgba(0,0,0,.18)}
#pricing .card .btn:hover{background:var(--brand-dark)!important}
#pricing img.shadow-1-strong{display:block;margin:0 auto 16px;max-height:120px;width:auto;filter:drop-shadow(0 6px 10px rgba(0,0,0,.18))}

/* ===================== 6. PAGE BODY ON PHONES ===================== */
@media (max-width:991.98px){
  section.page-section,section#services,section#testimonials,section#contact{padding-top:48px!important;padding-bottom:48px!important}
  .section-heading{font-size:clamp(22px,6.2vw,30px)!important;line-height:1.2!important;margin-bottom:12px!important}
  .section-subheading{font-size:16px!important;line-height:1.5!important;margin-bottom:24px!important}
  p,.text-muted{font-size:16px;line-height:1.6}
  .btn{min-height:48px;display:inline-flex!important;align-items:center;justify-content:center;padding:12px 24px!important;font-size:16px!important;border-radius:12px!important}
  .accordion-button{min-height:52px;font-size:16px!important;line-height:1.35!important;padding:14px 16px!important}
  .accordion-body{font-size:16px!important;line-height:1.6!important}
  img{max-width:100%;height:auto}
  iframe,video{max-width:100%}
}
/* pinned "Register Now!" button on phones: always one tap away */
@media (max-width:991.98px){
  #services a.btn-success[href*="start.php"]{position:fixed!important;left:16px;right:16px;bottom:12px;z-index:1030;margin:0!important;
    background:var(--brand)!important;border-color:var(--brand)!important;color:var(--on-brand)!important;font-weight:700!important;
    box-shadow:0 8px 24px rgba(0,0,0,.28)!important;letter-spacing:.02em}
  #services a.btn-success[href*="start.php"]:hover{background:var(--brand-dark)!important}
  body{padding-bottom:84px}
}

/* ===================== 7. NEVER WIDER THAN THE SCREEN ===================== */
html,body{max-width:100%;overflow-x:clip}
a[href^="mailto:"],.timeline-body a,#contact a{overflow-wrap:anywhere;word-break:break-word}

/* ---- Brand color follows each site (2026-11-25-B) ----
   Site headings use Bootstrap .text-primary, hard-coded red in styles.css.
   Point it at the per-site --brand so each clinic has its own color. */
.text-primary,.section-heading.text-primary{color:var(--heading-ink,var(--brand))!important}
/* ==== PERSONALITY LAYER (BUILD 2026-11-25-C) ====
   Same page structure, four different looks. Every knob below is a variable;
   each site's settings block picks its own values. Defaults = the 25-B look. */
:where(:root){--accent:var(--brand);--head-font:inherit;--head-case:uppercase;--head-track:normal;--head-style:normal;
--icon-shape:50%;--icon-ring:#fff;--icon-ink:#fff;--icon-tilt:0deg;
--icon-fill:radial-gradient(circle at 32% 26%,color-mix(in srgb,var(--brand) 45%,#fff) 0%,var(--brand) 52%,var(--brand-dark) 100%);
--icon-shadow:inset 0 -8px 14px rgba(0,0,0,.28),inset 0 8px 12px rgba(255,255,255,.28),0 14px 26px rgba(0,0,0,.22),0 3px 6px rgba(0,0,0,.18);
--band-bg:transparent;--band-head:#212529;--band-text:#6c757d;
--feat-bg:transparent;--feat-radius:0;--feat-shadow:none;--feat-border:0;
--feat-phone-cols:1fr;--feat-phone-align:center;--feat-icon-row:auto;--feat-icon-m:8px auto 20px;--icon-phone:96px;--glyph-phone:38px;
--btn-radius:12px;--cta-bg:var(--brand);--cta-ink:#fff;
--card-top:0 solid transparent;--card-border:0 solid transparent;--ribbon:none;--ribbon-bg:var(--accent);--ribbon-ink:#fff}
.section-heading,.page-section h4,#pricing .card-price{font-family:var(--head-font)!important}
.section-heading,.section-heading.text-uppercase{text-transform:var(--head-case)!important;letter-spacing:var(--head-track)!important;font-style:var(--head-style)}
section.page-section:has(.fa-stack){background:var(--band-bg)!important}
section.page-section:has(.fa-stack) .section-heading,section.page-section:has(.fa-stack) h4{color:var(--band-head)!important}
section.page-section:has(.fa-stack) .text-muted,section.page-section:has(.fa-stack) p{color:var(--band-text)!important}
.page-section .col-md-4:has(>.fa-stack){background:var(--feat-bg);border-radius:var(--feat-radius);box-shadow:var(--feat-shadow);border:var(--feat-border)}
@media (min-width:768px){.page-section .col-md-4:has(>.fa-stack){width:calc(33.333% - 20px)!important;margin:0 10px;padding:28px 20px!important}.page-section .row:has(>.col-md-4>.fa-stack){flex-wrap:nowrap}}
.page-section .fa-stack{border-radius:var(--icon-shape)!important;background:var(--icon-fill)!important;border-color:var(--icon-ring)!important;box-shadow:var(--icon-shadow)!important;transform:rotate(var(--icon-tilt))}
.page-section .fa-stack .fa-stack-1x{color:var(--icon-ink)!important;transform:rotate(calc(-1 * var(--icon-tilt)))}
@media (max-width:991.98px){.page-section .col-md-4:has(>.fa-stack){display:grid;grid-template-columns:var(--feat-phone-cols);column-gap:16px;align-items:start;text-align:var(--feat-phone-align);margin:0 0 16px;padding:20px!important}
.page-section .col-md-4>.fa-stack{grid-row:var(--feat-icon-row);margin:var(--feat-icon-m)!important;width:var(--icon-phone)!important;height:var(--icon-phone)!important}
.page-section .col-md-4>.fa-stack .fa-stack-1x{width:var(--glyph-phone)!important;height:var(--glyph-phone)!important}
.page-section .col-md-4:has(>.fa-stack) h4{margin:0 0 6px!important}.page-section .col-md-4:has(>.fa-stack) p{margin:0!important}}
.btn,#pricing .card .btn{border-radius:var(--btn-radius)!important}
#services a.btn-success,#pricing .card .btn{background:var(--cta-bg)!important;border-color:var(--cta-bg)!important;color:var(--cta-ink)!important}
@media (max-width:991.98px){#services a.btn-success[href*='start.php']{border-radius:var(--btn-radius)!important;background:var(--cta-bg)!important;color:var(--cta-ink)!important}}
#pricing .card{position:relative;overflow:visible!important;border-top:var(--card-top)!important;outline:var(--card-border)}
#pricing .card::before{content:var(--ribbon);position:absolute;top:-15px;left:50%;transform:translateX(-50%);background:var(--ribbon-bg);color:var(--ribbon-ink);font:800 12px/1 var(--head-font);letter-spacing:.12em;text-transform:uppercase;padding:9px 16px;border-radius:999px;box-shadow:0 6px 14px rgba(0,0,0,.18);white-space:nowrap}
#pricing .card-body{padding-top:34px!important}

/* ==== INTRO BLOCK under the hero (BUILD 2026-11-25-D) ====
   The first text after the picture: badge line, headline, lead line, and the
   four selling points as cards. Each site's badge text comes from its own
   settings block (--eyebrow), worded from that site's own page copy. */
:where(:root){--eyebrow:none;--intro-card-bg:#fff;--intro-card-border:1px solid rgba(16,24,40,.08);
  --intro-card-shadow:0 6px 18px rgba(16,24,40,.06);--intro-card-radius:16px;--check-bg:var(--cta-bg);--check-ink:var(--cta-ink);--intro-bg:transparent;--eyebrow-bg:color-mix(in srgb,var(--brand) 12%,#fff);--eyebrow-ink:var(--brand-dark);--bar-w:64px;--bar-h:4px;--bar-bg:var(--accent);--bar-border:0 solid transparent;--bar-shadow:none}
section#services{background:var(--intro-bg)!important}
section#services > .container{max-width:880px!important;display:grid!important;grid-template-columns:1fr;gap:12px;padding-left:16px!important;padding-right:16px!important}
section#services > .container > *{grid-column:1 / -1;margin-left:0!important;margin-right:0!important}
section#services h1.section-heading{font-size:clamp(26px,4vw,44px)!important;line-height:1.12!important;margin:0 0 4px!important;
  background:linear-gradient(90deg,var(--heading-ink,var(--brand-dark)) 0%,var(--brand) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
section#services > .container::before{content:var(--eyebrow);grid-column:1 / -1;justify-self:center;display:block;margin:0 0 2px;padding:8px 14px;border-radius:999px;
  background:var(--eyebrow-bg);color:var(--eyebrow-ink);-webkit-text-fill-color:var(--eyebrow-ink);
  font:800 12px/1 var(--head-font);letter-spacing:.14em;text-transform:uppercase;font-style:normal}
section#services h1.section-heading::after{content:"";display:block;width:var(--bar-w);height:var(--bar-h);border-radius:4px;margin:18px auto 6px;background:var(--bar-bg);border-top:var(--bar-border);border-bottom:var(--bar-border);box-shadow:var(--bar-shadow)}
section#services h2.section-subheading{font-size:clamp(17px,2vw,20px)!important;line-height:1.55!important;color:#3b4452!important;max-width:680px;margin:0 auto 12px!important}
section#services > .container > p:has(> strong){position:relative;text-align:left;margin:0!important;padding:16px 18px 16px 56px!important;
  background:var(--intro-card-bg);border:var(--intro-card-border);border-radius:var(--intro-card-radius);box-shadow:var(--intro-card-shadow);
  font-size:15.5px!important;line-height:1.5!important}
section#services > .container > p:has(> strong)::before{content:"\2713";position:absolute;left:16px;top:16px;width:26px;height:26px;border-radius:50%;
  display:grid;place-items:center;background:var(--check-bg);color:var(--check-ink);font:800 14px/1 system-ui,sans-serif}
section#services > .container > p:has(> strong) > strong{display:block;margin-bottom:2px;color:var(--heading-ink,var(--brand-dark))!important;font-family:var(--head-font)}
section#services > .container > p:has(> strong) > strong + br{display:none}
section#services > .container > p:last-child{margin-top:12px!important;text-align:center}
@media (min-width:768px){section#services > .container{grid-template-columns:1fr 1fr;gap:16px}
  section#services > .container > p:has(> strong){grid-column:auto}}

/* ---- Pinned means pinned (BUILD 2026-11-25-D) ----
   The menu bar (top) and the Register button (bottom, phones) must never scroll
   with the text. Nothing around them may carry a transform or filter. */
body:has(#mainNav) :is(*:has(> #mainNav),*:has(a.btn-success[href*="start.php"])):not(body){transform:none!important;filter:none!important;perspective:none!important;contain:none!important;will-change:auto!important}
@media (max-width:991.98px){html,body{overflow-y:visible!important}}

/* ==== HEADLINE TREATMENT (BUILD 2026-11-25-E) ====
   Line 1 (clinic name): big, extra-bold, metallic fill in the logo's main colour
   with one soft shine that crosses once on load.
   Line 2 (the claim): thin, uppercase, wide-spaced, in the logo's second colour.
   Computers: full two-weight split. Phones: the name wraps, so the whole headline
   gets the bold metallic finish (a stylesheet can only split by the first line). */
:where(:root){--name-a:var(--brand-dark);--name-b:var(--brand);--claim-ink:var(--brand-dark);--claim-font:Montserrat,system-ui,sans-serif}
section#services h1.section-heading{background:none;-webkit-text-fill-color:currentColor}
@media (min-width:768px){
  section#services h1.section-heading{font:300 20px/1.5 var(--claim-font)!important;letter-spacing:.22em!important;text-transform:uppercase!important;font-style:normal!important;
    color:var(--claim-ink)!important;-webkit-text-fill-color:var(--claim-ink)!important;
    background:linear-gradient(100deg,var(--name-a) 0%,var(--name-b) 42%,#ffffff 50%,var(--name-b) 58%,var(--name-a) 100%) 0 0/250% 100%!important;
    -webkit-background-clip:text!important;background-clip:text!important;animation:vaShine 1.6s ease-out .4s 1 both}
  section#services h1.section-heading::first-line{font-family:var(--head-font);font-size:48px;font-weight:800;letter-spacing:-.015em;
    text-transform:var(--head-case);font-style:var(--head-style);-webkit-text-fill-color:transparent;line-height:1.15}
}
@media (max-width:767.98px){
  section#services h1.section-heading{font-weight:800!important;font-size:clamp(24px,7vw,30px)!important;
    background:linear-gradient(100deg,var(--name-a) 0%,var(--name-b) 42%,#ffffff 50%,var(--name-b) 58%,var(--name-a) 100%) 0 0/250% 100%!important;
    -webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;animation:vaShine 1.6s ease-out .4s 1 both}
}
@keyframes vaShine{from{background-position:100% 0}to{background-position:0 0}}
@media (prefers-reduced-motion:reduce){section#services h1.section-heading{animation:none!important;background-position:0 0!important}}
