/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #e01e24;
  --red-rgb:    224, 30, 36;
  --red-dark:   #b01820;
  --red-glow:   rgba(var(--red-rgb), 0.18);
  --red-a11y:   #ff525a; /* AA-safe (≥4.5:1) variant of --red for small text on dark backgrounds */
  --red-a11y-rgb: 255, 82, 90;
  --bg:         #0d0d0d;
  --bg-card:    #171717;
  --bg-alt:     #111111;
  --bg-deep:    #070707; /* footer — deepest layering shade */
  --bg-ribbon:  #080808; /* brand ribbon strip */
  --bg-announce:#1a0809; /* announce bar (red-tinted near-black) */
  --border:     #242424;
  /* UK number-plate convention colors — locked to this look, not the app palette.
     --plate-yellow is the user's explicit choice (#FFC726), not the closest real
     DVLA-plate yellow (#F5C518, used until this was requested a second time). */
  --plate-yellow: #FFC726;
  --plate-blue:   #003399;
  --plate-gold:   #FFD700;
  --white:      #ffffff;
  --grey:       #9a9a9a;
  --grey-light: #cccccc;
  --announce-h: 36px;
  --nav-h:      76px;
  --radius:     10px;
  --font-head:  'Bebas Neue', sans-serif;
  --font-body:  'Work Sans', sans-serif;
  --transition: 0.3s ease;
  --section-py: 120px;
  /* Top padding only for a page's lead section (About/Services/Gallery/Contact) — deliberately
     smaller than --section-py. That token already stacks on top of body:not(.has-hero)'s own
     header-clearance padding (announce-h + nav-h, ~112px, structurally required so content
     isn't hidden under the fixed bars), so using --section-py for both made the visible gap
     before the heading ~232px — most of that read as dead space, not breathing room. */
  --section-pt: 60px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  /* Long unbroken strings (the email address, mainly) have no space or hyphen
     to wrap at, so on a narrow phone they force their container past the
     viewport edge - overflow-x:hidden above only stops the resulting scroll
     after the fact, it doesn't stop mobile browsers computing a wider layout
     viewport from that overflow and rendering the whole page zoomed out (the
     "random zoom" symptom), so this needs fixing at the source, not just
     hidden downstream. */
  overflow-wrap: break-word;
  /* While a custom font is loading, the browser renders text in the fallback
     (sans-serif) at face value - from-font instead sizes that fallback text
     using the *custom* font's own x-height/advance metrics once known, so body
     copy doesn't visibly grow/shrink when the real font swaps in. Doesn't need
     any hand-measured numbers; Firefox/Safari/Chromium all read this from the
     font file itself. No effect (silently ignored) on a browser that doesn't
     support the keyword - this is additive, not a dependency. */
  font-size-adjust: from-font;
}

/* Pages without their own hero need clearance under the fixed announce bar + nav. */
body:not(.has-hero) { padding-top: calc(var(--announce-h) + var(--nav-h)); }

img { display: block; width: 100%; object-fit: cover; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hidden until keyboard-focused, so it doesn't affect sighted mouse users but lets
   keyboard/screen-reader users jump past the announce bar + full nav on every page. */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  background: var(--red);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-title span { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  /* Reduced from 0.4 - a blurred colour glow this strong reads as cheap, especially
     on a small/bright mobile screen, and the lift + darker fill already carry the
     hover feedback on their own. */
  box-shadow: 0 8px 30px rgba(var(--red-rgb),0.15);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* ─── Logo Mark ─────────────────────────────────────────── */
.logo-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
}

/* Fixed height set inline per-instance; scaled down on narrow viewports
   below so it can't crowd the hamburger or overflow the nav row. */
.site-logo {
  display: block;
  width: auto;
}
@media (max-width: 600px) {
  .site-logo { height: 26px !important; }
}

/* ─── Announce Bar ──────────────────────────────────────── */
.announce-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  height: var(--announce-h);
  background: var(--bg-announce);
  border-bottom: 1px solid rgba(var(--red-rgb),0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}
.announce-inner {
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 11.5px;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
  gap: 0;
}
.announce-inner a {
  color: var(--white);
  font-weight: 500;
  transition: color var(--transition);
  /* Enlarge the tap target without shifting layout — the 36px announce bar is too short
     for a full 44px target, so this is a partial mitigation, not a full fix. */
  padding: 10px 4px;
  margin: -10px -4px;
}
.announce-inner a:hover { color: var(--red-a11y); }
.announce-sep {
  margin: 0 14px;
  color: rgba(255,255,255,0.22);
}
@media (max-width: 600px) {
  /* Stack into exactly 2 lines (phone, then hours) rather than hiding the hours
     outright: flex-direction:column makes every direct child its own line, so
     the "Mon–Sat ... | Sun: Closed" separator has to live *inside* .announce-hours
     (not a sibling of it) to stay on the same line as the rest of that string —
     only the outer separator (between the phone line and the hours line) is a
     direct child of .announce-inner, so only it gets hidden here. */
  .announce-inner {
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    line-height: 1.3;
    white-space: normal;
  }
  .announce-inner > .announce-sep { display: none; }
}

/* ─── Nav ───────────────────────────────────────────────── */
nav {
  position: fixed;
  top: var(--announce-h); left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  /* Fully opaque, not translucent-over-blur: a semi-transparent nav let whatever
     scrolled underneath (hero photos, brand logos, lighter sections) bleed through
     and shift its apparent color, which broke the logo's mix-blend-mode transparency
     trick (blending against a moving target instead of one fixed near-black). Matches
     the old rgba(10,10,10,0.92)'s resting appearance exactly, just constant now. */
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 44px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1.75px;
  text-transform: uppercase;
  color: var(--grey-light);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--red-a11y); }
.nav-links a.active:not(.btn) { color: var(--red-a11y); }

.nav-cta {
  padding: 13px 28px;
  font-size: 15px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 14px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen overlay drawer (mirrors the reference site's nav pattern). */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow-y: auto;
  padding: calc(var(--announce-h) + var(--nav-h) + 16px) 16px 24px;
}
.mobile-menu.open { display: flex; }
/* :not(.btn) on every variant here, not just .active below: without it, this rule's
   (0,1,1) specificity beats .btn-primary's (0,1,0) color, so the mobile-menu's
   "Enquire Now" link rendered grey-on-red at rest and red-a11y-on-red-dark on
   hover (2.2-3.0:1 contrast, both well under the 4.5:1 floor) instead of the
   white .btn-primary is supposed to give it. .btn already carries its own
   complete font-family/size/weight/tracking/transform, so excluding it here
   loses nothing. */
.mobile-menu a:not(.btn) {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-light);
  padding: 14px 28px;
  transition: color var(--transition);
}
.mobile-menu a:not(.btn):hover { color: var(--red-a11y); }
.mobile-menu a.active:not(.btn) { color: var(--red-a11y); }
.mobile-menu .btn { margin-top: 12px; flex-shrink: 0; padding: 18px 44px; font-size: 19px; }

/* Short viewports (phone landscape): tighten the drawer so it fits without scrolling. */
@media (max-height: 480px) {
  .mobile-menu { gap: 0; padding-top: calc(var(--announce-h) + var(--nav-h) + 8px); }
  .mobile-menu a { padding: 8px 28px; font-size: 19px; }
  .mobile-menu .btn { margin-top: 6px; padding: 14px 36px; font-size: 16px; }
}

/* ─── Hero ──────────────────────────────────────────────── */
#hero {
  position: relative;
  /* min-height, not height: a fixed height combined with overflow:hidden clipped the
     hero-badge and other content on shorter laptop viewports where 100svh wasn't tall
     enough to fit badge + title + subhead + actions. As a floor, the section instead
     grows to fit its content, so nothing is ever hidden. */
  min-height: max(100svh, 620px);
  display: flex;
  align-items: center;
  /* The announce-h + nav-h term alone only clears the fixed bars — it pushes content
     down exactly far enough not to sit underneath them, which reads as the hero-badge
     touching the navbar with zero visual gap (worst case: shorter viewports where this
     section grows to fit its content rather than being vertically centered in extra
     svh room). The +48px on top of that is real breathing room between the two. */
  padding-top: calc(var(--announce-h) + var(--nav-h) + 48px);
  /* .hero-stats is absolutely positioned over the bottom of this section, not laid out
     in flow — on viewports where content height forces #hero to grow to fit it exactly
     (min-height's floor, not svh, wins), the centered .hero-content had no reserved
     clearance from that bottom edge, so hero-actions' buttons ran straight into the
     stat bar. This padding is sized to the stat bar's own height (~105px, one row)
     plus 80px of clear space above it. */
  padding-bottom: 184px;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.28);
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s ease;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity 0.4s ease; transform: none; }
  .hero-badge::before { animation: none; }
  .brand-ribbon-track { animation: none; }
}

/* On a narrow, tall phone viewport, cover-sizing these landscape photos crops far more
   aggressively than on desktop (most of the width is lost to fill the height), so the
   40%-from-top anchor tuned for a wide desktop crop can end up off-subject. Bias higher. */
@media (max-width: 600px) {
  .hero-slide { background-position: center 28%; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(13,13,13,0.75) 0%, rgba(var(--red-rgb),0.06) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--red-rgb),0.12);
  border: 1px solid rgba(var(--red-rgb),0.35);
  border-radius: 50px;
  padding: 8px 18px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red-a11y);
  font-weight: 600;
  margin-bottom: 40px;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  /* Slowed from 2s to 3s and narrowed to a plain opacity fade (no scale change,
     a narrower range) - the original's fast blink-and-grow drew the eye away
     from the headline right next to it. */
  animation: blink 3s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 32px;
}
.hero-title span { color: var(--red); }

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--grey-light);
  max-width: 540px;
  margin-bottom: 56px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
/* Scoped here rather than on the shared .btn rule, which the nav's Enquire Now
   link and the contact form's submit button also use - this only bumps the two
   hero buttons. */
.hero-actions .btn {
  font-size: 16px;
}

.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 2;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
}

.hero-stat {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.hero-stat:last-child { border-right: none; }

.hero-stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  /* "All Makes" is text, not a digit — Bebas Neue has no distinct lowercase, so make
     the always-caps rendering explicit rather than relying on the font's fallback behavior. */
  text-transform: uppercase;
}
.hero-stat-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 6px;
}

/* ─── About ─────────────────────────────────────────────── */
#about {
  padding: var(--section-pt) 0 var(--section-py);
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text-col {}

.about-body {
  font-size: 16px;
  color: var(--grey-light);
  line-height: 1.8;
  margin-top: 28px;
  margin-bottom: 40px;
}

.about-closing {
  font-size: 15px;
}
/* The global `a { color: inherit }` reset would otherwise make this link invisible
   against the surrounding dark background - same treatment as .form-email-link. */
.about-closing a {
  color: var(--red-a11y);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.about-closing a:hover { color: var(--red); }

.about-image-col {
  position: relative;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 520px;
}
.about-img-wrap img {
  height: 100%;
  filter: brightness(0.8);
  transition: transform 0.6s ease;
}
.about-img-wrap:hover img { transform: scale(1.04); }

.about-img-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.about-img-badge-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.about-img-badge-label {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ─── Services ──────────────────────────────────────────── */
#services {
  padding: var(--section-pt) 0 var(--section-py);
  background: var(--bg);
}

.services-header {
  max-width: 640px;
  margin: 0 auto clamp(48px, 6vw, 64px);
  text-align: center;
}

/* Compact utility grid, not a showcase one: 8 services curated down from the
   full menu, name + small inline icon only, built to fit on one screen rather
   than invite scrolling. 3 columns only above 960px (matching the sitewide
   tablet breakpoint already used elsewhere) - below that, 2 columns all the
   way down to the smallest phone, since a compact row has plenty of room at
   2-up even at narrow widths and the brief explicitly wants 2, not 1, on
   mobile. 8 doesn't divide evenly by 3 (a 3/3/2 last row), but unlike the
   16-card version, a plain 2-short last row reads as normal in a dense
   utility grid rather than a lone stranded card, so it's left as-is rather
   than reaching for the flex-centering trick used earlier for a true orphan. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  background: var(--bg-card);
  border-bottom: 2px solid #CC0000; /* the same deliberate Services-section accent as before, not --red/#e01e24 - already documented in DESIGN.md and a sanctioned detector ignore-value. 2px, not 3-4px: at this card's 10px radius a thicker straight-edge border starts to visibly clash with the curve at the bottom corners. */
  border-radius: var(--radius);
  padding: 18px;
  transition: var(--transition);
  /* Icon inline to the left of the name, not stacked above it - a single row,
     vertically centered, rather than the taller icon-on-its-own-line cards
     used previously. */
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(204,0,0,0.4);
}

.service-icon {
  width: 18px; height: 18px;
  color: #CC0000;
  flex-shrink: 0;
}

.service-name {
  /* Work Sans, not the Bebas Neue Title-step treatment every earlier version
     of this card used - explicitly "normal weight, not huge/bold" this time,
     which calls for the body/reading font's own natural register rather than
     structural-chrome styling turned down. */
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
}

/* ─── Gallery ───────────────────────────────────────────── */
#gallery {
  padding: var(--section-pt) 0 var(--section-py);
  background: var(--bg-alt);
}

.gallery-header {
  max-width: 640px;
  margin: 0 auto clamp(48px, 6vw, 64px);
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  height: 100%;
  transition: transform 0.55s ease, filter 0.3s ease;
  filter: brightness(0.82);
}
.gallery-item:hover img { transform: scale(1.07); filter: brightness(1); }

.gallery-item:nth-child(1) { grid-column: span 7; height: 380px; }
.gallery-item:nth-child(2) { grid-column: span 5; height: 380px; }
.gallery-item:nth-child(3) { grid-column: span 4; height: 260px; }
.gallery-item:nth-child(4) { grid-column: span 4; height: 260px; }
.gallery-item:nth-child(5) { grid-column: span 4; height: 260px; }
.gallery-item:nth-child(6) { grid-column: span 12; height: 260px; }
/* Repeats the 3-equal-columns-then-full-width-banner rhythm of items 3-6
   for the next 4, rather than inventing a new shape. */
.gallery-item:nth-child(7) { grid-column: span 4; height: 260px; }
.gallery-item:nth-child(8) { grid-column: span 4; height: 260px; }
.gallery-item:nth-child(9) { grid-column: span 4; height: 260px; }
.gallery-item:nth-child(10) { grid-column: span 12; height: 260px; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--red-rgb),0);
  transition: background 0.3s ease;
  display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-overlay { background: rgba(var(--red-rgb),0.10); }

.gallery-zoom {
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: var(--transition);
}
.gallery-zoom svg { width: 18px; height: 18px; color: white; }
.gallery-item:hover .gallery-zoom { opacity: 1; transform: scale(1); }

/* ─── Reviews ───────────────────────────────────────────── */
#reviews {
  padding: var(--section-py) 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
#reviews::before {
  content: '\201C';
  position: absolute;
  top: -20px; right: -10px;
  font-size: 360px;
  font-family: var(--font-head);
  color: rgba(var(--red-rgb),0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.reviews-header {
  max-width: 640px;
  margin: 0 auto clamp(48px, 6vw, 64px);
  text-align: center;
}

.reviews-grid {
  display: grid;
  /* min(300px, 100%), not a bare 300px: on a narrow phone the container can be
     under 300px wide (e.g. 320px viewport minus 20px side padding = 280px), and
     a bare minmax floor doesn't shrink for that - it forces the track (and the
     whole page) to overflow horizontally instead. min() lets the floor drop to
     100% of the available width there while staying 300px on anything wider. */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 32px;
}

/* A repeated booking CTA at the trust peak — the fixed nav's own "Book Now" drops
   out between 1100px and the hamburger-only phone breakpoints, so reviews (the
   page's highest-trust moment) would otherwise have no visible action nearby. */
.reviews-cta {
  text-align: center;
  margin-top: clamp(40px, 6vw, 56px);
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
}
.review-card:hover {
  border-color: rgba(var(--red-rgb),0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.review-stars {
  color: #f59e0b;
  font-size: 17px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.review-quote {
  font-size: 15px;
  color: var(--grey-light);
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
}
.review-quote::before { content: '\201C'; }
.review-quote::after  { content: '\201D'; }

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red-glow);
  border: 2px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--red);
  font-size: 14px;
  flex-shrink: 0;
}
.review-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  /* Bebas Neue has no distinct lowercase forms — make the always-caps
     rendering explicit rather than relying on the font's own fallback behavior. */
  text-transform: uppercase;
}
.review-source {
  font-size: 12px;
  color: var(--grey);
  margin-top: 3px;
}

/* ─── Contact ───────────────────────────────────────────── */
#contact {
  padding: var(--section-pt) 0 var(--section-py);
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-info p {
  color: var(--grey);
  font-size: 15px;
  margin-top: 24px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  color: inherit;
  text-decoration: none;
}
.contact-detail:hover { border-color: rgba(var(--red-rgb),0.35); }
a.contact-detail:focus-visible { border-color: rgba(var(--red-rgb),0.35); outline: 2px solid var(--red-a11y); outline-offset: 2px; }

.contact-detail-icon {
  width: 40px; height: 40px;
  background: var(--red-glow);
  border: 1px solid rgba(var(--red-rgb),0.3);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 17px; height: 17px; }

.contact-detail-label {
  font-size: 10px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 3px;
}
.contact-detail-text {
  font-size: 14px;
  color: var(--grey-light);
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
  /* #enquiry-section is a same-page-navigation anchor target (the reviews "Enquire
     Now" CTA jumps here) - without this, the fixed announce bar + nav would land
     right on top of the card instead of just above it. */
  scroll-margin-top: calc(var(--announce-h) + var(--nav-h) + 24px);
}

.form-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* The global `a { color: inherit }` reset would otherwise make this mailto link
   invisible against the surrounding grey copy. */
.form-email-link {
  color: var(--red-a11y);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-email-link:hover { color: var(--red); }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey);
}

.form-group input,
.form-group textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #808080; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(var(--red-rgb),0.1);
}

.form-group textarea { min-height: 130px; }

/* Mileage's number input: the browser's default up/down spinner reads as a stepper
   for a small count, not a field for typing a 5-6 digit odometer reading. */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  padding: 16px;
}
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* Hidden by default via display, not the `hidden` attribute — a class-based toggle
   avoids fighting the UA [hidden] stylesheet rule once this needs display:flex. */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 20px;
}
.form-success.is-visible { display: flex; }
.form-success svg {
  width: 28px; height: 28px;
  padding: 14px;
  background: var(--red-glow);
  border-radius: 50%;
  color: var(--red);
}
.form-success p {
  font-size: 17px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.5;
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.footer-brand .logo-mark {
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.75;
  max-width: 300px;
  margin-bottom: 28px;
}

.footer-contact-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-address {
  font-size: 13px;
  color: var(--grey);
  margin-top: 20px;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.footer-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-phone {
  background: var(--red-glow);
  border-color: rgba(var(--red-rgb),0.35);
  color: var(--red);
}
.btn-phone:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--red-rgb),0.15); /* reduced from 0.32, same reasoning as .btn-primary:hover */
}

/* Neutral rather than an accent color — Call Us already carries red, and email
   isn't a distinct "brand" the way a contact channel like phone is. */
.btn-email {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: var(--grey-light);
}
.btn-email:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links li { margin-bottom: 12px; }
.footer-links a {
  font-size: 14px;
  color: var(--grey);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--red-a11y); }

.footer-hours li {
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.footer-hours span { color: var(--grey-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--grey);
}

.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  display: inline-block;
  font-size: 12px;
  color: var(--grey);
  transition: color var(--transition);
  padding: 16px 0;
  margin: -16px 0;
}
.footer-legal a:hover { color: var(--white); }

/* ─── Scroll Top ────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px; height: 48px;
  background: var(--red);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
  border: none;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
/* Glow moved here from the base rule (and reduced from 0.45), rather than just
   dimmed in place: a shadow on this button at rest - not just on hover - was
   already a real violation of the Earned-Shadow Rule documented below (shadows
   are feedback for an action, not decoration), on top of being the strongest
   glow on the page. Hover is where .btn-primary/.btn-phone earn theirs too. */
#scroll-top:hover   { background: var(--red-dark); transform: translateY(-3px); box-shadow: 0 4px 20px rgba(var(--red-rgb),0.15); }
#scroll-top svg     { width: 20px; height: 20px; color: white; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-links    { display: none; }
  .nav-cta      { display: none; }
  .hamburger    { display: flex; }
}

@media (max-width: 960px) {
  :root         { --section-py: 96px; }
  .about-grid   { grid-template-columns: 1fr; }
  .about-image-col { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-top   { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .gallery-item:nth-child(1) { grid-column: span 12; height: 260px; }
  .gallery-item:nth-child(2) { grid-column: span 12; height: 220px; }
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4) { grid-column: span 6;  height: 190px; }
  .gallery-item:nth-child(5) { grid-column: span 12; height: 190px; }
  .gallery-item:nth-child(6) { grid-column: span 12; height: 190px; }
  .gallery-item:nth-child(7),
  .gallery-item:nth-child(8) { grid-column: span 6;  height: 190px; }
  .gallery-item:nth-child(9) { grid-column: span 12; height: 190px; }
  .gallery-item:nth-child(10) { grid-column: span 12; height: 190px; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat  { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  /* Wrapping to 2 rows roughly doubles the stat bar's height, so the fixed clearance
     set on #hero needs to grow to match or the buttons crowd it again here. */
  #hero { padding-bottom: 288px; }
}

/* Short viewports (phone landscape): the 620px floor plus the pinned stat bar
   pushes primary content below the fold. Drop the floor and the decorative
   stat bar so title/subhead/CTAs stay reachable without scrolling.
   Declared after the max-width:768px block (same specificity, cascade order
   decides) since phone landscape matches both — this one must win there to
   zero out the clearance the 768px rule reserves for a stat bar that's hidden. */
@media (max-height: 500px) {
  #hero { min-height: 460px; padding-bottom: 0; }
  .hero-stats { display: none; }
}

@media (max-width: 600px) {
  /* The announce bar wraps to 2 lines on mobile (see its own rule above), so it
     needs more height here too - every consumer of --announce-h (nav's top
     offset, the fixed-header-clearance padding on body/hero/mobile-menu, the
     contact form's scroll-margin-top) reads this same variable, so overriding
     it once here is enough; nothing needs updating individually. */
  :root { --section-py: 72px; --announce-h: 52px; }
  .container { padding: 0 20px; }
  .contact-form-wrap { padding: 28px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #scroll-top { right: 20px; bottom: 20px; }
}

/* ─── UK Plate (shared: contact page's Reg Plate field) ──────── */
.plate-wrap {
  display: flex;
  align-items: stretch;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid #111;
  flex: 1;
  max-width: 360px;
  box-shadow: 0 0 0 1px #000;
  transition: box-shadow var(--transition);
}
.plate-wrap:focus-within {
  box-shadow: 0 0 0 1px #000, 0 0 0 4px rgba(var(--red-a11y-rgb), 0.55);
}
.plate-flag {
  background: var(--plate-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  gap: 2px;
  flex-shrink: 0;
}
.flag-star { font-size: 7px; color: var(--plate-gold); line-height: 1; }
.flag-gb   { font-family: var(--font-head); font-size: 11px; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.plate-input {
  flex: 1;
  background: var(--plate-yellow);
  border: none;
  outline: none;
  /* 'Charles Wright' is the real DVLA plate typeface; essentially no visitor has it
     installed, so this is a no-cost authenticity attempt that falls straight through
     to the Arial Black look the plate already shipped with. */
  font-family: 'Charles Wright', 'Arial Black', 'Arial', monospace;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #000;
  padding: 10px 14px;
  min-width: 0;
  text-align: center;
}
.plate-input::placeholder { color: rgba(0,0,0,0.28); letter-spacing: 5px; font-size: 26px; }
@media (max-width: 600px) {
  .plate-wrap { max-width: 100%; }
  .plate-input { font-size: 24px; letter-spacing: 6px; }
}

/* ─── Brand Ribbon ─────────────────────────────────────────── */
.brand-ribbon {
  background: var(--bg-ribbon);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 40px 0;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.brand-ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbon-scroll 50s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.brand-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 60px;
  width: auto;
  max-width: 140px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  margin: 0 50px;
  transition: opacity 0.25s ease;
}
.brand-logo:hover { opacity: 1; }

@keyframes ribbon-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ─── Lightbox ───────────────────────────────────────────── */
.gallery-item { outline-offset: 4px; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}
.lightbox-close:hover { background: var(--red); border-color: var(--red); }
@media (max-width: 600px) {
  .lightbox { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* ─── Fade-in ────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-d1 { transition-delay: 0.08s; }
.fade-in-d2 { transition-delay: 0.16s; }
.fade-in-d3 { transition-delay: 0.24s; }
.fade-in-d4 { transition-delay: 0.32s; }
.fade-in-d5 { transition-delay: 0.40s; }
.fade-in-d6 { transition-delay: 0.48s; }
.fade-in-d7 { transition-delay: 0.56s; }
