/*
Theme Name: JTechMods
Theme URI: https://jtechmods.co.za
Author: JTechMods
Description: Official website theme for JTechMods. VW and Audi tuning specialists, mechanic and car service in Brackenfell, Cape Town.
Version: 1.6.7
License: GNU General Public License v2 or later
Text Domain: jtechmods
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
/* Size-matched local fallback for Bebas Neue. Before the webfont
   loads, phones were painting the display font in a wide default
   sans, making stats and headings render big then snap smaller.
   This shim scales the local fallback to Bebas-like proportions. */
@font-face {
  font-family: 'Bebas Fallback';
  src: local('Arial Narrow'), local('Helvetica Neue Condensed'), local('Arial'), local('Roboto'), local('Helvetica');
  size-adjust: 80%;
  ascent-override: 88%;
  descent-override: 12%;
  line-gap-override: 0%;
}

:root {
  --black:      #080808;
  --dark:       #101010;
  --dark-2:     #181818;
  --dark-3:     #202020;
  --white:      #f0f0f0;
  --white-dim:  rgba(240,240,240,0.92);
  --white-faint:rgba(240,240,240,0.08);
  --red:        #e63000;
  --red-dark:   #b32400;
  --red-glow:   rgba(230,48,0,0.12);
  --border:     rgba(240,240,240,0.07);
  --border-red: rgba(230,48,0,0.35);
  --green:      rgba(74,222,128,0.9);

  --font-display: 'Bebas Neue', 'Bebas Fallback', 'Impact', sans-serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);
  --max-w:      1280px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; background: var(--black); }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}
body.mobile-menu-open { overflow: hidden; }
/* Prevent phantom white space from fixed/absolute positioned elements */
.spotlight {
  position: fixed !important;
  pointer-events: none !important;
  z-index: 0 !important;
  overflow: hidden;
}
img { max-width: 100%; height: auto; display: block; }
/* Lucide Icons */
[data-lucide] { display: inline-block; vertical-align: middle; }
.pillar-icon [data-lucide] { width: 26px; height: 26px; stroke-width: 1.5; color: var(--red); }
.service-icon [data-lucide] { width: 28px; height: 28px; stroke-width: 1.5; color: var(--white-dim); }
.service-card:hover .service-icon [data-lucide] { color: var(--red); }
.quick-btn-icon [data-lucide] { width: 20px; height: 20px; stroke-width: 1.5; }
.contact-icon [data-lucide] { width: 16px; height: 16px; stroke-width: 1.5; color: var(--red); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
}
.section { padding: clamp(3rem, 8vw, 6rem) 0; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.section-body {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: var(--white-dim);
  line-height: 1.75;
  max-width: 600px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--red-glow);
}
.btn-outline {
  background: rgba(240,240,240,0.95);
  color: #1a1d27;
  border: 1px solid rgba(240,240,240,0.95);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-outline:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 clamp(1rem, 5vw, 2rem);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
/* On interior pages (articles, blog, etc.) there is no dark hero behind the
   header, so keep it solid dark at all times instead of transparent-until-scroll */
body:not(.home):not(.front-page) .site-header {
  background: rgba(8,8,8,0.97) !important;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--white);
  flex-shrink: 0;
  z-index: 1002;
  line-height: 1;
}
.site-logo span { color: var(--red); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-menu a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: var(--transition);
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: var(--transition);
}
.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::after { width: 100%; }
.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 0.45rem 1.1rem !important;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  transition: background 0.3s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }
.nav-cta::after { display: none !important; }

/* ============================================================
   HAMBURGER
   ============================================================ */
.nav-hamburger {
  /* Hidden on desktop */
  display: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1100;
  border-radius: 0;
  box-shadow: none;
}
.nav-hamburger:hover,
.nav-hamburger:focus,
.nav-hamburger:active {
  background: transparent;
  border: none;
  color: var(--white);
}
.nav-hamburger:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: #f0f0f0;
  border-radius: 1px;
  transition: width 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-hamburger span:nth-child(1) { width: 22px; }
.nav-hamburger span:nth-child(2) { width: 14px; margin-right: 8px; background: var(--red); }
.nav-hamburger span:nth-child(3) { width: 22px; }

/* Hamburger → X */
.nav-hamburger.is-open span:nth-child(1) { width: 20px; transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { width: 0; opacity: 0; margin-right: 0; }
.nav-hamburger.is-open span:nth-child(3) { width: 20px; transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE OVERLAY
   ============================================================ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   MOBILE MENU PANEL
   ============================================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 340px);
  max-width: 340px;
  background: #111111;
  border-left: 1px solid rgba(255,255,255,0.07);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(74px + env(safe-area-inset-top, 0px)) 1.35rem 2rem;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open {
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

/* Close button inside panel */
.mobile-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* Menu links */
.mobile-link {
  display: block;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(1.45rem, 7vw, 2rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.6);
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-link:first-of-type { border-top: 1px solid rgba(255,255,255,0.06); }
.mobile-link:active,
.mobile-link:hover { color: #f0f0f0; padding-left: 0.35rem; }
.mobile-link-wa {
  color: #e63000 !important;
  border-bottom: none !important;
  margin-top: 1.25rem;
  font-size: clamp(1.25rem, 6vw, 1.6rem);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding-top: clamp(5rem, 12vh, 8rem);
  padding-bottom: clamp(3rem, 8vh, 6rem);
  isolation: isolate;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(8,8,8,0.78) 0%,
    rgba(8,8,8,0.64) 30%,
    rgba(8,8,8,0.80) 65%,
    rgba(8,8,8,0.92) 100%
  );
}
/* Noise texture grain overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Animated red grid */
.hero-grid-overlay {
  display: none;
}
@keyframes gridFade { from{opacity:0} to{opacity:1} }

/* Accent lines */
.hero-line {
  display: none;
}
.hero-line-1 {
  top: 42%;
  left: 0;
  width: 0; height: 1px;
  opacity: 0.4;
}
.hero-line-2 {
  top: 0;
  right: 20%;
  width: 1px; height: 0;
  opacity: 0.18;
}
@keyframes lineH { from{width:0;opacity:0} to{width:40%;opacity:0.4} }
@keyframes lineV { from{height:0;opacity:0} to{height:60%;opacity:0.18} }

/* Pulsing left bar */
.hero::after {
  display: none;
}
@keyframes pulseBar { 0%,100%{opacity:1;height:80px} 50%{opacity:0.3;height:30px} }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 2vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-eyebrow::before { content: ''; width: 2.5rem; height: 1px; background: var(--red); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 10rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.8s ease 0.35s both;
}
.hero-title .accent { color: var(--red); }

.hero-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: var(--white);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  animation: fadeUp 0.8s ease 0.5s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.65s both;
}

/* Stats — inline under CTA */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: rgba(8,8,8,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(240,240,240,0.1);
  border-radius: 12px;
  animation: fadeUp 0.8s ease 0.8s both;
  width: fit-content;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1;
  color: var(--white);
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,240,240,0.7);
  margin-top: 0.35rem;
}
.hero-stat-highlight {
  padding-right: 2.5rem;
}
.hero-stat-highlight .hero-stat-num {
  color: var(--white);
}
.hero-stars {
  color: #FFC107;
  font-size: 0.65em;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--white-dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite;
}
.scroll-indicator svg { width: 18px; opacity: 0.35; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(7px)} }

/* Fade-up keyframe */
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--red);
  overflow: hidden;
  padding: 0.7rem 0;
  border-top: 1px solid var(--red-dark);
  border-bottom: 1px solid var(--red-dark);
  position: relative;
  z-index: 3;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 3rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.45); flex-shrink: 0; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { background: var(--dark); overflow: hidden; }

/* Reviews trust banner */
.reviews-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, rgba(230,48,0,0.08) 0%, var(--dark-2) 40%, var(--dark-2) 60%, rgba(230,48,0,0.08) 100%);
  border: 1px solid rgba(230,48,0,0.2);
  border-radius: 12px;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.reviews-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.6;
}
.reviews-banner-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.google-icon { flex-shrink: 0; }
.reviews-banner-score {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--white);
}
.reviews-banner-stars {
  color: #FFC107;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  align-self: flex-end;
  padding-bottom: 0.3rem;
}
.reviews-banner-count {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.reviews-banner-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--white);
}
.reviews-banner-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,240,240,0.6);
}
.reviews-banner-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(230,48,0,0.3);
  border-radius: 6px;
}
.reviews-banner-link:hover { background: rgba(230,48,0,0.1); }

.reviews-track-wrap {
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}
.reviews-track-wrap::before,
.reviews-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 5rem;
  z-index: 2;
  pointer-events: none;
}
.reviews-track-wrap::before { left: 0; background: linear-gradient(to right, var(--dark), transparent); }
.reviews-track-wrap::after  { right: 0; background: linear-gradient(to left, var(--dark), transparent); }

.reviews-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  padding: 0.5rem 0;
  width: max-content;
}

.review-card {
  flex: 0 0 auto;
  width: clamp(280px, 35vw, 340px);
  min-width: 280px;
  box-sizing: border-box;
  background: var(--dark-2);
  border: 1px solid var(--border);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}
.review-card:hover { border-color: var(--border-red); transform: translateY(-3px); }
.review-stars { color: #FFC107; font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 0.9rem; }
.review-text { font-size: 0.88rem; color: var(--white-dim); line-height: 1.7; margin-bottom: 1.25rem; }
.review-author { display: flex; align-items: center; gap: 0.75rem; }
.review-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.95rem; color: #fff; flex-shrink: 0;
}
.review-name { font-size: 0.82rem; font-weight: 600; }
.review-date { font-family: var(--font-mono); font-size: 0.6rem; color: var(--white-dim); letter-spacing: 0.1em; margin-top: 0.15rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--black); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 3rem;
  border: 1px solid var(--border);
}

.service-card {
  background: var(--dark);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: default;
}
/* Shimmer on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(230,48,0,0.04) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { background: var(--dark-2); }

.service-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.service-icon { font-size: 2rem; margin-bottom: 1.25rem; display: block; }
.service-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.service-text { font-size: 0.88rem; color: var(--white-dim); line-height: 1.7; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }
.service-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  transition: border-color 0.3s, color 0.3s;
}
.service-card:hover .service-tag { border-color: var(--border-red); color: rgba(230,48,0,0.7); }

/* STAY TUNED featured */
.service-card.featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--dark-2);
  border-left: none;
  padding: 3.5rem;
}
.service-card.featured .service-title { font-size: clamp(2rem, 5vw, 3rem); }
.service-card.featured .service-text { font-size: 0.95rem; }

.featured-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.85rem;
  animation: pulseBadge 2.5s ease-in-out infinite;
}
@keyframes pulseBadge { 0%,100%{opacity:1} 50%{opacity:0.6} }

/* Stay Tuned visual panel */
.staytuned-visual {
  background: var(--black);
  border: 1px solid var(--border);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}
/* Stay Tuned panel uses the actual software image */
.staytuned-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://jtechmods.co.za/wp-content/uploads/2026/05/694667112_1610019837799648_1242534033946032080_n.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  transition: opacity 0.4s;
}
.service-card.featured:hover .staytuned-visual::before { opacity: 0.2; }

.staytuned-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}
.staytuned-title span { color: var(--red); }

.software-stages {
  display: flex;
  gap: 1px;
  background: var(--border);
  margin-top: 1.5rem;
  position: relative;
}
.stage {
  flex: 1;
  background: var(--dark);
  padding: 0.9rem;
  text-align: center;
  transition: background 0.25s;
  cursor: default;
}
.stage:hover { background: var(--red); }
.stage-name { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.05em; }
.stage-desc { font-size: 0.72rem; font-weight: 500; color: var(--white-dim); margin-top: 0.2rem; }
.stage:hover .stage-desc { color: rgba(255,255,255,0.85); }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter 0.5s;
}
.about-image-wrap:hover img { filter: grayscale(0%); }
/* Red border offset */
.about-image-wrap::after {
  content: '';
  position: absolute;
  top: -1.25rem; left: -1.25rem;
  right: 1.25rem; bottom: 1.25rem;
  border: 1px solid var(--border-red);
  z-index: 0;
  pointer-events: none;
}
.about-image-wrap img { position: relative; z-index: 1; }

/* Team photo in About section */
.about-image-wrap {
  position: relative;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.pillar {
  border: 1px solid var(--border);
  padding: 1.4rem;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.pillar:hover { border-color: var(--border-red); background: var(--red-glow); transform: translateY(-2px); }
.pillar:hover::before { transform: scaleX(1); }
.pillar-icon { font-size: 1.6rem; margin-bottom: 0.75rem; }
.pillar-title { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.5rem; }
.pillar-text { font-size: 0.95rem; color: var(--white-dim); line-height: 1.65; }

/* ============================================================
   TEAM
   ============================================================ */
.team { background: var(--black); }

.team-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.team-intro .section-body {
  margin-top: 1rem;
}

/* Full team photo — wide banner */
.team-photo-banner {
  width: min(100%, 900px);
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  filter: grayscale(20%);
  transition: filter 0.5s;
  display: block;
  margin: 0 auto 2rem;
  border: 1px solid var(--border);
}
.team-photo-banner:hover { filter: grayscale(0%); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.team-card {
  background: var(--dark-2);
  overflow: hidden;
  transition: background 0.3s;
  position: relative;
}
.team-card:hover { background: var(--dark-3); }
.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 420px;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.5s, transform 0.5s;
}
.team-card:hover .team-photo { filter: grayscale(0%); transform: scale(1.03); }
.team-info { padding: 1.25rem; border-top: 1px solid var(--border); }
.team-name { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.team-role { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); margin-top: 0.2rem; }
.team-bio { font-size: 0.82rem; color: var(--white-dim); line-height: 1.6; margin-top: 0.6rem; }

/* ============================================================
   BLOG
   ============================================================ */
.blog { background: var(--dark); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}
.blog-card { background: var(--dark-2); overflow: hidden; transition: background 0.3s; display: block; }
.blog-card:hover { background: var(--dark-3); }
.blog-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.5s, transform 0.5s;
  display: block;
}
.blog-card:hover .blog-thumb { filter: grayscale(0%); transform: scale(1.03); }
.blog-body { padding: 1.75rem; border-top: 1px solid var(--border); }
.blog-cat { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 0.65rem; }
.blog-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  transition: color 0.25s;
}
.blog-card:hover .blog-title { color: var(--red); }
.blog-excerpt { font-size: 0.85rem; color: var(--white-dim); line-height: 1.6; margin-bottom: 1.25rem; }
.blog-meta { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; color: var(--white-dim); text-transform: uppercase; border-top: 1px solid var(--border); padding-top: 0.9rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--black); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  gap: 2rem;
  align-items: start;
  margin-top: 3rem;
}

/* Quick contact buttons */
.quick-contact { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2.5rem; }
.quick-btn {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--border);
  background: var(--dark);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
}
.quick-btn:hover { transform: translateX(6px); }
.quick-btn-call:hover, .quick-btn-whatsapp:hover {
  border-color: rgba(74,222,128,0.4);
  background: rgba(74,222,128,0.05);
}
.quick-btn-email:hover { border-color: var(--border-red); background: var(--red-glow); }
.quick-btn-icon { font-size: 1.4rem; flex-shrink: 0; width: 2.25rem; text-align: center; }
.quick-btn-label { font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.18rem;
}
.quick-btn-call .quick-btn-label,
.quick-btn-whatsapp .quick-btn-label { font-weight: 600; color: #4ade80; }
.quick-btn-email .quick-btn-label { font-weight: 600; color: var(--red); }
.quick-btn-value { font-size: 0.9rem; font-weight: 600; }

.contact-details { display: flex; flex-direction: column; gap: 0; }
.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-icon {
  font-size: 1.1rem;
  width: 36px; height: 36px;
  background: var(--dark);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-label { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 0.2rem; }
.contact-value { font-size: 0.88rem; line-height: 1.5; }
.contact-value a:hover { color: var(--red); }

.contact-map {
  margin-top: 3rem;
  border: 1px solid var(--border);
  background: var(--dark);
  overflow: hidden;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: clamp(260px, 34vw, 420px);
  border: 0;
  filter: grayscale(20%) contrast(1.05);
}
.map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  transition: background 0.25s, color 0.25s;
}
.map-link:hover {
  background: var(--red);
  color: #fff;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white-dim); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.8rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color 0.25s, background 0.25s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: var(--dark-2);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { cursor: pointer; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-brand .site-logo { font-size: 1.8rem; margin-bottom: 0.9rem; }
.footer-tagline { font-size: 0.85rem; color: var(--white-dim); line-height: 1.7; max-width: 260px; margin-bottom: 1.4rem; }
.social-links { display: flex; gap: 0.6rem; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, background 0.25s;
  color: var(--white-dim);
}
.social-link:hover { border-color: var(--red); background: var(--red); color: #fff; }
.site-footer .footer-col h4 {
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white) !important;
  margin-bottom: 1.25rem;
}
.site-footer .footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; list-style: none; margin: 0; padding: 0; }
.site-footer .footer-col ul li { margin: 0; }
.site-footer .footer-col ul span { font-family: var(--font-body) !important; font-size: 0.82rem !important; color: var(--white-dim) !important; }
.site-footer .footer-col ul a { font-family: var(--font-body) !important; font-size: 0.82rem !important; color: var(--white-dim) !important; text-decoration: none !important; transition: color 0.25s, padding-left 0.25s; }
.site-footer .footer-col ul a:hover { color: var(--red) !important; padding-left: 0.25rem; }
.site-footer .footer-tagline { font-family: var(--font-body) !important; color: var(--white-dim) !important; }
.site-footer .site-logo { color: var(--white) !important; text-decoration: none !important; }
.site-footer .site-logo span { color: var(--red) !important; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copy { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white-dim); }

/* ============================================================
   FANCY UI / UX EFFECTS
   ============================================================ */

/* 1. Animated gradient border on section transitions */
.ticker + .reviews,
.services + .about,
.about + .team {
  position: relative;
}
.ticker + .reviews::before,
.services + .about::before,
.about + .team::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  animation: gradBorder 4s ease-in-out infinite;
}
@keyframes gradBorder { 0%,100%{opacity:0.3} 50%{opacity:1} }

/* 2. Glowing red orb — ambient light effect on hero */
.hero-orb {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,48,0,0.12) 0%, transparent 70%);
  bottom: -150px; right: -80px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  animation: orbFloat 8s ease-in-out infinite;
}
@keyframes orbFloat { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-20px) scale(1.04)} }

/* 4. Section reveal lines (decorative) */
.reveal-line {
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
  margin-bottom: 2rem;
  transition: width 1.2s var(--ease);
}
.reveal-line.active { width: 8rem; }

/* 5. Count-up number animated style */
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--white);
  transition: color 0.3s;
}
.hero-stat:hover .hero-stat-num { color: var(--red); }

/* 6. Scanline effect on service featured card */
.service-card.featured {
  position: relative;
}
.service-card.featured .staytuned-visual::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(230,48,0,0.04), transparent);
  pointer-events: none;
  animation: scanline 6s linear infinite;
}
@keyframes scanline { from{top:-30%} to{top:130%} }

/* 7. Scroll-triggered word highlight in hero */
.hero-title .accent {
  position: relative;
  display: inline-block;
}
.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineSlide 0.6s var(--ease) 1.2s both;
}
@keyframes underlineSlide { from{transform:scaleX(0)} to{transform:scaleX(1)} }

/* ============================================================
   WORDPRESS HELPERS
   ============================================================ */
.wp-block-image img { width: 100%; }
.aligncenter { margin: 0 auto; }
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.post-header { padding: 8rem 0 3rem; background: var(--dark); border-bottom: 1px solid var(--border); }
.post-content { padding: 4rem 0; max-width: 720px; margin: 0 auto; }
.post-content h2 { font-family: var(--font-display); font-size: 2rem; margin: 2rem 0 1rem; }
.post-content p { color: var(--white-dim); line-height: 1.8; margin-bottom: 1.25rem; }
.post-content a { color: var(--red); }
.post-content img { width: 100%; margin: 2rem 0; }

/* ============================================================
   RESPONSIVE — TABLET  (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card.featured { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { max-width: 480px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .team-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .team-photo-banner { width: min(100%, 820px); height: auto; }
  .hero-stats { gap: 1.5rem; }
}

/* ============================================================
   RESPONSIVE — TABLET  (max 1024px)
   Already declared above. Additional tablet fixes:
   ============================================================ */

/* ============================================================
   RESPONSIVE — MOBILE FIRST  (max 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* --- NAV --- */
  .nav-menu         { display: none !important; }
  .nav-hamburger    { display: flex !important; }
  .site-header      { padding: 0 1rem; }
  .nav-inner        { height: 60px; gap: 0; }
  .site-logo        { font-size: 1.4rem; }

  /* --- HERO --- */
  .hero {
    min-height: 100svh;
    align-items: flex-end;
    padding-bottom: 4rem;
    padding-top: 70px;
  }
  .hero::after  { display: none; }
  .hero-orb     { display: none; }
  .hero-line-1,
  .hero-line-2  { display: none; }
  .hero-grid-overlay { opacity: 0.5; background-size: 50px 50px; }
  .hero-content { padding: 0 1rem; }
  .hero-eyebrow { font-size: 0.58rem; letter-spacing: 0.2em; margin-bottom: 0.75rem; }
  .hero-title   { font-size: clamp(2.8rem, 13vw, 4.5rem); margin-bottom: 1rem; }
  .hero-subtitle { font-size: 0.88rem; margin-bottom: 1.75rem; max-width: 100%; }
  .hero-actions { flex-direction: row; gap: 0.6rem; }
  .hero-actions .btn { padding: 0.7rem 1.25rem; font-size: 0.75rem; flex: 1; text-align: center; justify-content: center; }
  .hero-stats   {
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1.25rem 1.1rem;
  }
  .hero-stat    { flex: 1; min-width: 0; text-align: center; }
  .hero-stat .stat-gauge { margin: 0 auto; display: block; }
  .hero-stat-label { letter-spacing: 0.14em; }
  .hero-stat-num { font-size: 1.5rem; }
  .scroll-indicator { display: none; }

  /* --- TICKER --- */
  .ticker-item { font-size: 0.82rem; gap: 1rem; padding-right: 2rem; }

  /* --- REVIEWS --- */
  .reviews-banner        { flex-direction: column; gap: 1.25rem; text-align: center; padding: 1.5rem; }
  .reviews-track-wrap::before,
  .reviews-track-wrap::after { width: 2rem; }
  .review-card            { flex: 0 0 auto; width: clamp(260px, 80vw, 300px); min-width: 260px; box-sizing: border-box; padding: 1.4rem; }

  /* --- SERVICES --- */
  .services-grid          { grid-template-columns: 1fr; }
  .service-card           { padding: 1.75rem 1.4rem; }
  .service-card.featured  {
    grid-column: span 1;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.75rem 1.4rem;
    border-left: none;
    border-top: none;
  }
  .service-card.featured .staytuned-visual::after { display: none; }
  .service-card.featured .service-title { font-size: 2.2rem; }
  .staytuned-visual { padding: 1.5rem; }
  .staytuned-title  { font-size: 2.2rem; }
  .software-stages  { flex-direction: row; }
  .stage            { padding: 0.65rem 0.5rem; }
  .stage-name       { font-size: 1rem; }
  .stage-desc       { font-size: 0.58rem; }

  /* --- ABOUT --- */
  .about            { padding: clamp(2.5rem, 6vw, 4rem) 0; }
  .about::before    { display: none; }
  .about-grid       { grid-template-columns: 1fr; gap: 2rem; }
  .about-image-wrap { max-width: 100%; }
  .about-image-wrap img { aspect-ratio: 16/9; }
  .about-image-wrap::after { display: none; }
  .about-pillars    { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .pillar           { padding: 1.25rem; }
  .pillar-icon      { font-size: 1.4rem; }
  .pillar-title     { font-size: 1.2rem; }
  .pillar-text      { font-size: 0.9rem; }

  /* --- TEAM --- */
  .team-intro       { grid-template-columns: 1fr; gap: 1rem; }
  .team-photo-banner {
    width: min(100%, 520px);
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    margin-bottom: 1.5rem;
  }
  .team-grid        { grid-template-columns: 1fr 1fr; }
  .team-photo       {
    aspect-ratio: 4/5;
    max-height: 260px;
  }

  /* --- BLOG --- */
  .blog-grid        { grid-template-columns: 1fr; }

  /* --- CONTACT --- */
  .contact-grid     { grid-template-columns: 1fr; gap: 2rem; }
  .form-row         { grid-template-columns: 1fr; }
  .quick-btn        { padding: 1rem 1.1rem; }
  .quick-btn-value  { font-size: 0.85rem; }

  /* --- FOOTER --- */
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer-brand     { grid-column: span 2; }
  .footer-tagline   { max-width: 100%; }

  /* --- GENERAL --- */
  .section          { padding: clamp(2.5rem, 7vw, 4rem) 0; }
  .section-title    { font-size: clamp(2rem, 9vw, 3rem); }
  .section-label    { font-size: 0.6rem; }
  .btn              { font-size: 0.78rem; padding: 0.75rem 1.4rem; }
  .container        { padding: 0 1rem; }
}

/* ============================================================
   RESPONSIVE — SMALL PHONES  (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-title       { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .hero-stats       { padding: 1.1rem 0.75rem; gap: 0.5rem; }
  .hero-stat-num    { font-size: 1.35rem; }
  .hero-stat-label  { font-size: 0.55rem; letter-spacing: 0.1em; }
  .hero-actions     { flex-direction: column; }
  .hero-actions .btn { flex: none; width: 100%; }
  .about-pillars    { grid-template-columns: 1fr; }
  .mobile-menu      { width: min(92vw, 320px); padding-left: 1.15rem; padding-right: 1.15rem; }
  .team-grid        { grid-template-columns: 1fr; }
  .team-photo-banner { width: min(100%, 360px); height: auto; max-height: none; }
  .team-photo       { aspect-ratio: 16/10; max-height: 220px; object-position: center 20%; }
  .footer-grid      { grid-template-columns: 1fr; }
  .footer-brand     { grid-column: span 1; }
  .reviews-banner   { flex-direction: column; gap: 1rem; text-align: center; }
  .section-title    { font-size: clamp(1.9rem, 10vw, 2.5rem); }
  .service-card.featured .service-title { font-size: 1.9rem; }
}

/* ============================================================
   MOBILE HARDENING OVERRIDES
   Keep these last so they win against plugin/browser defaults.
   ============================================================ */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    position: fixed;
    background: rgba(8,8,8,0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-inner {
    width: 100%;
    min-width: 0;
  }

  .site-logo {
    max-width: calc(100vw - 84px);
    overflow: hidden;
    white-space: nowrap;
  }

  .nav-menu {
    display: none !important;
  }

  button.nav-hamburger,
  .nav-hamburger {
    display: inline-flex !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--white) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .nav-hamburger span {
    display: block !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 2px !important;
    min-height: 2px !important;
    max-height: 2px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: var(--white) !important;
    border: 0 !important;
    border-radius: 1px !important;
    opacity: 1 !important;
  }

  .nav-hamburger span:nth-child(2) {
    width: 14px !important;
    min-width: 14px !important;
    margin-right: 8px !important;
    background: var(--red) !important;
  }

  .nav-hamburger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }

  .nav-hamburger.is-open span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
    margin-right: 0 !important;
  }

  .nav-hamburger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }

  .mobile-overlay {
    z-index: 1998;
  }

  .mobile-menu {
    z-index: 1999;
    width: min(88vw, 340px);
    max-width: 340px;
    min-width: 0;
    background: #101010;
    padding: calc(82px + env(safe-area-inset-top, 0px)) 1.25rem 2rem;
    justify-content: flex-start;
  }

  .mobile-link {
    font-size: clamp(1.35rem, 6.4vw, 1.9rem);
    line-height: 1;
    padding: 0.95rem 0;
  }

  .hero {
    min-height: 78svh;
    padding-top: 76px;
    padding-bottom: 2.35rem;
    align-items: center;
  }

  .hero-grid-overlay {
    opacity: 0.8;
    background-size: 54px 54px;
  }

  .hero-content {
    padding-top: 1.4rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.85rem;
  }

  .hero-title {
    font-size: clamp(2.25rem, 11vw, 3.6rem);
    line-height: 0.95;
    margin-bottom: 0.8rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-title {
    font-size: clamp(1.9rem, 9.5vw, 2.8rem);
    line-height: 0.96;
    margin-bottom: 0.9rem;
  }

  .section-label {
    font-size: 0.56rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.7rem;
  }

  .section-body {
    max-width: none;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .ticker {
    padding: 0.48rem 0;
  }

  .ticker-item {
    font-size: 0.76rem;
    gap: 0.8rem;
    padding-right: 1.4rem;
  }

  .reviews {
    overflow: hidden;
  }

  .reviews-banner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
  }

  .reviews-banner-score {
    font-size: 2.2rem;
  }

  .reviews-banner-num {
    font-size: 2rem;
  }

  .reviews-banner-stars {
    font-size: 1.1rem;
  }

  .reviews-track-wrap::before,
  .reviews-track-wrap::after { display: none; }

  .review-card {
    flex: 0 0 auto;
    width: min(78vw, 280px);
    min-width: min(78vw, 280px);
    box-sizing: border-box;
    padding: 1.25rem;
  }

  .review-stars {
    font-size: 0.72rem; font-weight: 500;
    margin-bottom: 0.55rem;
  }

  .review-text {
    font-size: 0.76rem;
    line-height: 1.52;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .review-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .review-name {
    font-size: 0.75rem;
  }

  .review-date {
    font-size: 0.52rem;
  }

  .team-intro {
    display: block;
    margin-bottom: 1.25rem;
  }

  .team-photo-banner {
    width: min(100%, 340px);
    height: auto;
    max-height: none;
    margin: 0 auto 1.5rem;
    object-fit: contain;
    object-position: center;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-photo {
    width: 100%;
    height: auto;
    max-height: 280px;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    background: var(--dark-3);
  }

  .team-info {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .team-bio {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .services-grid,
  .blog-grid,
  .contact-grid {
    margin-top: 1.6rem;
  }

  .contact-grid {
    display: block;
  }

  .service-card {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .service-num,
  .service-icon {
    margin-bottom: 0.7rem;
  }

  .service-title {
    font-size: 1.35rem;
    margin-bottom: 0.55rem;
  }

  .service-text {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .service-tags {
    margin-top: 0.9rem;
    gap: 0.35rem;
  }

  .service-tag {
    font-size: 0.52rem;
    padding: 0.18rem 0.42rem;
  }

  .service-card.featured {
    padding: 1.35rem 1rem;
  }

  .service-card.featured .service-title,
  .staytuned-title {
    font-size: clamp(1.7rem, 8vw, 2.25rem);
  }

  .staytuned-visual {
    padding: 1rem;
  }

  .software-stages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1rem;
  }

  .stage {
    padding: 0.55rem 0.35rem;
  }

  .stage-name {
    font-size: 0.95rem;
  }

  .stage-desc {
    font-size: 0.52rem;
  }

  .about-grid {
    gap: 1.4rem;
  }

  .about-image-wrap {
    max-width: 320px;
    margin: 0 auto;
  }

  .about-image-wrap img {
    aspect-ratio: auto;
    max-height: 340px;
    object-fit: contain;
    background: var(--black);
  }

  .pillar {
    padding: 1.15rem;
  }

  .pillar-title {
    font-size: 1.15rem;
  }

  .pillar-text {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .quick-contact {
    margin-bottom: 1.5rem;
  }

  .quick-btn {
    gap: 0.85rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .quick-btn-icon {
    width: 1.75rem;
    font-size: 1.1rem;
  }

  .quick-btn-value,
  .contact-value {
    font-size: 0.82rem;
    overflow-wrap: anywhere;
  }

  .contact-item {
    gap: 0.85rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 0.72rem 0.8rem;
  }

  .team-info,
  .blog-body,
  .service-card,
  .quick-btn,
  .contact-item {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .about-pillars,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .site-logo {
    font-size: 1.22rem;
  }

  .team-photo-banner {
    width: min(100%, 300px);
    height: auto;
  }

  .mobile-menu {
    width: 100vw;
    max-width: none;
  }
}

/* Rounded image edges */
.hero-bg { border-radius: 0; }
.about-image-wrap img,
.team-photo-banner,
.team-photo,
.blog-thumb,
.review-card,
.service-card,
.pillar,
.reviews-banner,
.quick-btn,
.contact-icon,
.staytuned-visual {
  border-radius: 12px;
}
.review-avatar { border-radius: 50%; }
.services-grid,
.team-grid,
.blog-grid {
  border-radius: 12px;
  overflow: hidden;
}
.about-image-wrap::after { border-radius: 12px; }

/* Hours next to map */
.map-hours {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.6;
}

/* ============================================================
   VISUAL PACK v9 — gauges, dyno, headlight sweep,
   carbon fibre, tread dividers, OBD typing
   ============================================================ */

/* ---- 1. Tacho gauges on hero stats ---- */
.stat-gauge {
  display: block;
  width: 64px;
  height: 40px;
  margin-bottom: 0.45rem;
  overflow: visible;
}
.stat-gauge .g-track {
  fill: none;
  stroke: rgba(240,240,240,0.14);
  stroke-width: 4;
  stroke-linecap: round;
}
.stat-gauge .g-zone {
  fill: none;
  stroke: rgba(230,48,0,0.35);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 18 82;
  stroke-dashoffset: -82; /* redline segment at the top end */
}
.stat-gauge .g-fill {
  fill: none;
  stroke: var(--red);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-gauge .g-needle {
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: 40px 42px;
  transform: rotate(-90deg);
  transition: transform 1.5s cubic-bezier(0.34, 1.3, 0.4, 1); /* slight tacho overshoot */
}
.stat-gauge .g-hub { fill: var(--white); }
.gauge-live .g-fill { stroke-dashoffset: calc(100 - var(--gp)); }
.gauge-live .g-needle { transform: rotate(calc(var(--gp) * 1.8deg - 90deg)); }

/* ---- 2. Dyno graph in the Stay Tuned panel ---- */
.dyno {
  position: relative;
  margin-top: 1.5rem;
}
.dyno svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
}
.dyno-grid { stroke: rgba(240,240,240,0.07); stroke-width: 1; stroke-dasharray: 3 5; }
.dyno-axis { stroke: rgba(240,240,240,0.22); stroke-width: 1; }
.dyno-text {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  fill: rgba(240,240,240,0.4);
  text-transform: uppercase;
}
.dyno-stock,
.dyno-tuned {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.dyno-stock {
  stroke: rgba(240,240,240,0.35);
  stroke-dasharray: 100;
  transition: stroke-dashoffset 1.4s ease-out;
}
.dyno-tuned {
  stroke: var(--red);
  stroke-width: 2.5;
  transition: stroke-dashoffset 1.6s ease-out 0.35s;
}
.dyno-dot {
  fill: var(--red);
  opacity: 0;
  transition: opacity 0.4s ease 1.9s;
}
.dyno-live .dyno-stock,
.dyno-live .dyno-tuned { stroke-dashoffset: 0; }
.dyno-live .dyno-dot { opacity: 1; }
.dyno-legend {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.6rem;
}
.dyno-key {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.dyno-key::before {
  content: '';
  width: 14px;
  height: 2px;
  flex-shrink: 0;
}
.dyno-key-stock::before { background: rgba(240,240,240,0.35); }
.dyno-key-tuned::before { background: var(--red); }

/* ---- 4. Headlight sweep on service cards ---- */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg,
      transparent 40%,
      rgba(255,255,255,0.06) 47%,
      rgba(230,48,0,0.12) 52%,
      transparent 60%),
    linear-gradient(135deg, transparent 40%, rgba(230,48,0,0.04) 100%);
  background-size: 240% 100%, 100% 100%;
  background-position: 120% 0, 0 0;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover::before {
  opacity: 1;
  animation: headlightSweep 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes headlightSweep {
  from { background-position: 120% 0, 0 0; }
  to   { background-position: -50% 0, 0 0; }
}

/* ---- 5. Stay Tuned panel: darker base so the dyno stands out ---- */
.staytuned-visual {
  background: #050505;
}
/* Brushed metal hint behind the hero stats panel */
.hero-stats {
  background-image: repeating-linear-gradient(90deg,
    rgba(255,255,255,0.016) 0 1px,
    transparent 1px 3px);
}

/* ---- 6. Tyre tread section dividers ---- */
.tread-divider {
  height: 18px;
  margin: 0 auto;
  max-width: 1200px;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(240,240,240,0.07) 0 3px,
      transparent 3px 14px),
    repeating-linear-gradient(45deg,
      rgba(240,240,240,0.07) 0 3px,
      transparent 3px 14px);
  background-size: 100% 9px, 100% 9px;
  background-position: 0 0, 0 9px;
  background-repeat: repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

/* ---- 7. OBD scan-tool typing on section labels ---- */
.section-label .tl-text { white-space: nowrap; }
.section-label .tl-text.typing::after {
  content: '\2588';
  color: var(--red);
  margin-left: 2px;
  animation: obdBlink 0.55s steps(1) infinite;
}
@keyframes obdBlink { 50% { opacity: 0; } }

/* ---- Mobile sizing for the new elements ---- */
@media (max-width: 640px) {
  .stat-gauge { width: 52px; height: 33px; margin-bottom: 0.35rem; }
  .tread-divider { height: 14px; }
  .dyno { margin-top: 1.15rem; }
}

/* ---- Reduced motion: show final states, skip the theatrics ---- */
@media (prefers-reduced-motion: reduce) {
  .stat-gauge .g-fill,
  .stat-gauge .g-needle,
  .dyno-stock,
  .dyno-tuned,
  .dyno-dot { transition: none !important; }
  .service-card:hover::before { animation: none; }
  .section-label .tl-text.typing::after { animation: none; }
}

/* ---- Burger rev blip on tap ---- */
.nav-hamburger.jt-rev {
  animation: jtRevBlip 0.32s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
.nav-hamburger.jt-rev span:nth-child(2) {
  animation: jtRevFlash 0.32s ease-out;
}
@keyframes jtRevBlip {
  0%   { transform: translateX(0); }
  30%  { transform: translateX(3px); }
  55%  { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}
@keyframes jtRevFlash {
  40% { filter: brightness(1.9); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-hamburger.jt-rev,
  .nav-hamburger.jt-rev span:nth-child(2) { animation: none; }
}

/* ---- Ignition ring: traces the burger border on tap like turning a key ---- */
.jt-ignition-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.jt-ignition-ring rect {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
}
.nav-hamburger.jt-rev .jt-ignition-ring rect {
  animation: jtIgnition 0.32s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes jtIgnition {
  0%   { stroke-dashoffset: 100; opacity: 1; }
  70%  { stroke-dashoffset: 0;   opacity: 1; }
  100% { stroke-dashoffset: 0;   opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-hamburger.jt-rev .jt-ignition-ring rect { animation: none; }
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq { background: var(--black); }
.faq-list { max-width: 820px; margin-top: 2.5rem; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  transition: color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--red); }
.faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: translateY(-50%);
  transition: transform 0.3s var(--ease);
}
.faq-toggle::after { transform: translateY(-50%) rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: translateY(-50%) rotate(0deg); }
.faq-item[open] .faq-question { color: var(--red); }
.faq-answer { padding: 0 0 1.5rem; max-width: 720px; }
.faq-answer p { color: var(--white); font-size: 0.92rem; line-height: 1.75; }
.faq-footnote { margin-top: 2rem; font-size: 0.9rem; color: var(--white-dim); }
.faq-footnote a { color: var(--red); }

/* ============================================================
   HOMEPAGE NEWS SECTION
   ============================================================ */
.home-news { background: var(--dark); }
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--dark-2);
  border: 1px solid var(--border);
  padding: 1.75rem;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.news-card:hover { background: var(--dark-3); border-color: var(--border-red); transform: translateY(-3px); }
.news-date { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 0.85rem; }
.news-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 0.85rem;
  transition: color 0.25s;
}
.news-card:hover .news-title { color: var(--red); }
.news-excerpt { font-size: 0.85rem; color: var(--white-dim); line-height: 1.65; margin-bottom: 1.5rem; flex-grow: 1; }
.news-more { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white-dim); border-top: 1px solid var(--border); padding-top: 0.9rem; transition: color 0.25s; }
.news-card:hover .news-more { color: var(--red); }
.home-news-all { margin-top: 2.5rem; }
@media (max-width: 900px) {
  .home-news-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TEXT-ONLY BLOG CARDS (posts without featured images)
   ============================================================ */
.blog-card-text { border: 1px solid var(--border); }
.blog-card-text .blog-body { border-top: none; display: flex; flex-direction: column; height: 100%; }
.blog-card-text .blog-excerpt { flex-grow: 1; }
.blog-card-text:hover { border-color: var(--border-red); }

/* ============================================================
   FLOATING CALL BUTTON
   ============================================================ */
.float-call {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(230, 48, 0, 0.45);
  transition: background 0.25s, transform 0.25s;
}
.float-call:hover { background: var(--red-dark); transform: scale(1.06); }
.float-call::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--red);
  animation: float-call-pulse 2.4s ease-out infinite;
}
@keyframes float-call-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .float-call::before { animation: none; }
}
body.mobile-menu-open .float-call { display: none; }

/* ============================================================
   ARTICLE TYPOGRAPHY (post content — safe defaults for any
   markup pasted or written in the editor)
   ============================================================ */
.post-content h1,
.post-content h3 { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.02em; margin: 2rem 0 0.9rem; color: var(--white); }
.post-content h4,
.post-content h5,
.post-content h6 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin: 1.75rem 0 0.75rem; color: var(--white); }
.post-content ul,
.post-content ol { margin: 0 0 1.5rem 1.35rem; color: var(--white-dim); }
.post-content li { margin-bottom: 0.6rem; line-height: 1.75; }
.post-content li::marker { color: var(--red); }
.post-content blockquote {
  border-left: 3px solid var(--red);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 2rem 0;
  color: var(--white);
  font-style: italic;
}
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content strong { color: var(--white); }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.88rem; }
.post-content th { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--border-red); }
.post-content td { padding: 0.75rem; border-bottom: 1px solid var(--border); color: var(--white-dim); }
.post-content code { font-family: var(--font-mono); font-size: 0.85em; background: var(--dark-2); padding: 0.15em 0.4em; color: var(--white); }
.post-content pre { background: var(--dark-2); border: 1px solid var(--border); padding: 1.25rem; overflow-x: auto; margin: 2rem 0; }
.post-content pre code { background: none; padding: 0; }


/* ============================================================
   REVIEW CARDS — full car photo layout
   ============================================================ */
.review-card { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.review-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--dark-3);
  flex-shrink: 0;
}
.review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(35%);
  transform: scale(1.001);
  transition: filter 0.4s var(--ease), transform 0.5s var(--ease);
}
.review-card:hover .review-photo img { filter: grayscale(0%); transform: scale(1.045); }
.review-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.4rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.review-body .review-text { flex-grow: 1; }
.review-author { display: flex; align-items: center; gap: 0.6rem; }
.review-google-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.review-name { font-size: 0.82rem; font-weight: 600; color: var(--white); }

/* ============================================================
   POST NAVIGATION (previous / next article cards)
   ============================================================ */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.post-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
a.post-nav-card:hover {
  border-color: var(--border-red);
  background: var(--dark-3);
  transform: translateY(-3px);
}
.post-nav-next { text-align: right; }
.post-nav-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.post-nav-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--white);
  transition: color 0.25s;
}
a.post-nav-card:hover .post-nav-title { color: var(--red); }
.post-nav-empty { visibility: hidden; padding: 0; border: none; }
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .post-nav-empty { display: none; }
}

/* ============================================================
   PASTED CONTENT SAFETY NET — articles pasted in with inline
   HTML styling must not carry their own light backgrounds or
   dark text onto the site's dark design
   ============================================================ */
.post-content [style*="background"] { background: transparent !important; }
.post-content [style*="color"]:not(a) { color: inherit !important; }
.post-content a[style] { color: var(--red) !important; }
.post-content div, .post-content section, .post-content article { background: transparent !important; }
.post-content div[class] { border-color: var(--border) !important; }

/* ============================================================
   ARTICLE SPACING — breathing room on mobile and desktop
   ============================================================ */
.post-content {
  padding-top: clamp(3rem, 7vw, 4.5rem);
  padding-bottom: clamp(4rem, 9vw, 6rem);
}
.post-nav { margin-bottom: clamp(2rem, 6vw, 3rem); }
@media (max-width: 640px) {
  .post-header { padding: 7rem 0 2.5rem; }
  .post-content { padding-left: 1.5rem; padding-right: 1.5rem; }
  .post-nav { margin-top: 3rem; }
}

/* Reviews carousel: let the browser hand horizontal gestures to our
   drag handler immediately (vertical page scroll still works) */
.reviews-track-wrap { touch-action: pan-y; }
