/* ═══════════════════════════════════════════════════════════════
   RITZY brand fonts (Hyperion + Abnes), added 27 May 2026
═══════════════════════════════════════════════════════════════ */
@font-face {
  font-family: 'Hyperion';
  src: url('/assets/fonts/Hyperion-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hyperion';
  src: url('/assets/fonts/Hyperion-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hyperion';
  src: url('/assets/fonts/Hyperion-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Abnes';
  src: url('/assets/fonts/Abnes.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════════════════════════════
   RITZY AUTO, CYBERPUNK DESIGN SYSTEM v2
   Black / Red / White. Brutal. Neon. Unforgettable.
   Site by MotifyMe® | motifyme.co
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
  --black:        #000000;
  --off-black:    #080808;
  --surface:      #0d0d0d;
  --surface2:     #141414;
  --surface3:     #1a1a1a;
  --red:          #ff0000;
  --red-dim:      rgba(255,0,0,0.15);
  --red-glow:     rgba(255,0,0,0.45);
  --red-border:   rgba(255,0,0,0.25);
  --cyan:         #00ffff;
  --cyan-dim:     rgba(0,255,255,0.08);
  --white:        #ffffff;
  --off-white:    #f0ede8;
  --muted:        rgba(240,237,232,0.82);
  --muted2:       rgba(240,237,232,0.64);

  --font-brand:   'Hyperion', 'Orbitron', monospace;
  --font-tagline: 'Abnes', 'Share Tech Mono', monospace;
  --font-display: 'Orbitron', monospace;
  --font-body:    'Rajdhani', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;

  --gap:    24px;
  --gap-lg: 48px;
  --gap-xl: 80px;

  --border:       1px solid rgba(255,0,0,0.2);
  --border-white: 1px solid rgba(255,255,255,0.07);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 0.15s;
  --med:  0.3s;
  --slow: 0.6s;
}

/* ── RESET ────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; overflow-x:hidden; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body, a, button, [role="button"] { cursor: crosshair; }
img { display:block; width:100%; height:auto; }
a  { color:inherit; text-decoration:none; }

/* ── SCANLINE OVERLAY ─────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.025) 2px,
    rgba(0,0,0,0.025) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* ── NOISE GRAIN ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  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)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 9997;
  animation: grainShift 0.5s steps(1) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0,0); }
  10%  { transform: translate(-2%,-3%); }
  20%  { transform: translate(3%,2%); }
  30%  { transform: translate(-1%,4%); }
  40%  { transform: translate(4%,-1%); }
  50%  { transform: translate(-3%,3%); }
  60%  { transform: translate(2%,-4%); }
  70%  { transform: translate(-4%,1%); }
  80%  { transform: translate(1%,3%); }
  90%  { transform: translate(3%,-2%); }
  100% { transform: translate(-2%,4%); }
}

/* ── TYPOGRAPHY ───────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 6vw, 5.5rem); }
/* mm-interior-header: sensible h1 size for interior pages, not the homepage hero scale */
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin-bottom: 14px; }
/* mm-interior-header-theme: bring interior page headers in keeping with the homepage cyberpunk section styling */
.page-hero{ position: relative; background: linear-gradient(135deg, #0a0a0a 0%, #1a0606 100%); border-bottom: 1px solid rgba(255,0,0,0.2); max-width: none!important; margin: 0!important; }
.page-hero::before{ content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.page-hero > *{ max-width: 2200px; margin-left: auto; margin-right: auto; }

h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 2rem); }
h4 { font-size: 1rem; letter-spacing: 0.12em; }

.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
}

.data {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── NEON GLOW TEXT ───────────────────────────────── */
.glow-red {
  color: var(--red);
  text-shadow:
    0 0 7px rgba(255,0,0,1),
    0 0 20px rgba(255,0,0,0.8),
    0 0 40px rgba(255,0,0,0.5),
    0 0 80px rgba(255,0,0,0.3);
  animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow:
      0 0 7px rgba(255,0,0,1),
      0 0 20px rgba(255,0,0,0.8),
      0 0 40px rgba(255,0,0,0.5),
      0 0 80px rgba(255,0,0,0.3);
  }
  50% {
    text-shadow:
      0 0 4px rgba(255,0,0,0.9),
      0 0 12px rgba(255,0,0,0.6),
      0 0 25px rgba(255,0,0,0.3),
      0 0 50px rgba(255,0,0,0.15);
  }
}

/* ── MASTER GLITCH ────────────────────────────────── */
/* Continuous coloured scanline laser over glitch text */
.glitch-wrap {
  position: relative;
  display: inline-block;
}

/* The red laser line that sweeps over the title continuously */
.glitch-laser {
  position: absolute;
  left: -5%;
  width: 110%;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,0,0,0) 10%,
    rgba(255,0,0,0.9) 40%,
    rgba(255,255,255,1) 50%,
    rgba(255,0,0,0.9) 60%,
    rgba(255,0,0,0) 90%,
    transparent 100%
  );
  box-shadow:
    0 0 6px rgba(255,0,0,0.8),
    0 0 20px rgba(255,0,0,0.5),
    0 0 40px rgba(255,0,0,0.3),
    0 0 2px rgba(255,255,255,0.9);
  animation: laserSweep 2.4s cubic-bezier(0.4,0,0.6,1) infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes laserSweep {
  0%   { top: -4px; opacity: 0; }
  5%   { opacity: 1; }
  92%  { opacity: 1; }
  95%  { top: 100%; opacity: 0.3; }
  100% { top: 100%; opacity: 0; }
}

/* RGB split / chromatic aberration on the text */
.glitch {
  position: relative;
  display: inline-block;
  animation: glitchMain 5s infinite;
}

@keyframes glitchMain {
  0%, 85%, 100% { transform: none; filter: none; }
  86%  { transform: skewX(-1deg); filter: brightness(1.2); }
  87%  { transform: skewX(1.5deg); color: rgba(255,0,0,0.95); }
  88%  { transform: none; }
  90%  {
    transform: translate(-3px, 1px);
    filter: drop-shadow(3px 0 0 cyan) drop-shadow(-3px 0 0 rgba(255,0,0,0.8));
  }
  91%  { transform: translate(3px, -1px); filter: none; }
  92%  { transform: none; }
  94%  {
    transform: translate(2px, 2px) skewX(-2deg);
    filter: drop-shadow(-4px 0 0 cyan);
  }
  95%  { transform: none; filter: none; }
  97%  {
    clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
    transform: translate(-6px);
    color: var(--cyan);
  }
  98%  { clip-path: none; transform: none; color: inherit; }
}

/* Ghost layers for RGB split */
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
}

.glitch::before {
  color: var(--cyan);
  animation: ghostBefore 5s infinite;
}

.glitch::after {
  color: var(--red);
  animation: ghostAfter 5s infinite;
}

@keyframes ghostBefore {
  0%, 85%, 100% { opacity: 0; transform: none; }
  86% { opacity: 0.85; transform: translate(-4px, 1px); clip-path: polygon(0 0,100% 0,100% 40%,0 40%); }
  88% { opacity: 0; }
  93% { opacity: 0.7; transform: translate(3px,-2px); clip-path: polygon(0 60%,100% 60%,100% 80%,0 80%); }
  94% { opacity: 0; }
}

@keyframes ghostAfter {
  0%, 85%, 100% { opacity: 0; transform: none; }
  87% { opacity: 0.85; transform: translate(4px,-1px); clip-path: polygon(0 45%,100% 45%,100% 70%,0 70%); }
  89% { opacity: 0; }
  92% { opacity: 0.7; transform: translate(-3px,2px); clip-path: polygon(0 10%,100% 10%,100% 30%,0 30%); }
  93% { opacity: 0; }
}

/* ── FLICKER ──────────────────────────────────────── */
.flicker {
  animation: flicker 8s linear infinite;
}

@keyframes flicker {
  0%, 97%, 100% { opacity: 1; }
  97.5% { opacity: 0.4; }
  98%   { opacity: 1; }
  98.5% { opacity: 0.1; }
  99%   { opacity: 1; }
  99.3% { opacity: 0.6; }
  99.6% { opacity: 1; }
}

/* ── DATA CORRUPTION EFFECT ───────────────────────── */
@keyframes corrupt {
  0%, 88%, 100% { opacity:1; transform:none; }
  89% { opacity:0.8; transform:translate(2px,0) skewX(2deg); }
  90% { opacity:1; transform:none; }
  91% { clip-path:polygon(0 20%,100% 20%,100% 45%,0 45%); transform:translate(-3px,0); }
  92% { clip-path:none; transform:none; }
}

/* ── NAV ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(12px) saturate(0.8);
  border-bottom: 1px solid var(--red-border);
  transition: background var(--med) var(--ease);
}

.nav::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.7;
  animation: navLinePulse 3s ease-in-out infinite;
}

@keyframes navLinePulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.25; }
}

.nav-logo { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.nav-logo img { height:36px; width:auto; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 1 1 auto;
  gap: 8px;
  margin: 0 40px;
  list-style: none;
}
.nav-links li { flex: 0 1 auto; }

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width var(--med) var(--ease);
  box-shadow: 0 0 6px var(--red);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { flex-shrink:0; }

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all var(--med) var(--ease);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity var(--fast);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--red);
  color: var(--white);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-primary:hover {
  box-shadow: 0 0 20px var(--red-glow), 0 0 50px rgba(255,0,0,0.2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 15px var(--red-glow);
}

.btn-red-outline {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-red-outline:hover {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 20px var(--red-glow);
}

.form-submit {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: var(--white);
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.95rem; padding: 16px 32px; border: none; cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: box-shadow .2s ease, transform .2s ease; width: 100%;
}
.form-submit:hover {
  box-shadow: 0 0 20px var(--red-glow), 0 0 50px rgba(255,0,0,0.2);
  transform: translateY(-1px);
}
.form-submit:disabled { opacity: .55; cursor: default; box-shadow: none; transform: none; }

/* ── CARDS ────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: var(--border);
  position: relative;
  overflow: hidden;
  transition: all var(--med) var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  transition: left var(--slow) var(--ease);
}

.card:hover::before { left: 100%; }
.card:hover {
  border-color: var(--red);
  box-shadow: 0 0 30px rgba(255,0,0,0.15), inset 0 0 30px rgba(255,0,0,0.03);
  transform: translateY(-2px);
}

/* ── CORNER ACCENTS ───────────────────────────────── */
.corner-accent { position: relative; }
.corner-accent::before,
.corner-accent::after {
  content: ''; position: absolute;
  width: 16px; height: 16px;
}
.corner-accent::before {
  top:0; left:0;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
  box-shadow: -2px -2px 10px var(--red-glow);
}
.corner-accent::after {
  bottom:0; right:0;
  border-bottom: 2px solid var(--red);
  border-right: 2px solid var(--red);
  box-shadow: 2px 2px 10px var(--red-glow);
}

/* ── SECTION ──────────────────────────────────────── */
.section {
  padding: var(--gap-xl) 32px;
  max-width: 2200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

/* ── DIVIDER ──────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-border), transparent);
  position: relative;
}

.divider::after {
  content: '◆';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--red);
  font-size: 0.5rem;
  text-shadow: 0 0 8px var(--red);
  animation: glowPulse 2s ease-in-out infinite;
}

/* ── SPEC GRID ────────────────────────────────────── */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--red-border);
  border: var(--border);
}

.spec-item {
  background: var(--surface);
  padding: 16px;
  text-align: center;
}

.spec-item .spec-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

.spec-item .spec-key {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── FEATURE PILL ─────────────────────────────────── */
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: var(--border);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface2);
}

.feature-pill::before { content:'▸'; color:var(--red); font-size:0.5rem; }

/* ── FORMS ────────────────────────────────────────── */
input, select, textarea {
  background: var(--surface2);
  border: var(--border);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border-color var(--fast), box-shadow var(--fast);
  appearance: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 12px var(--red-dim), 0 0 0 1px rgba(255,0,0,0.1);
}

input::placeholder, textarea::placeholder { color: var(--muted2); letter-spacing: 0.1em; }

label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

/* ── HAMBURGER ────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--white);
  transition: all var(--med) var(--ease);
}

.hamburger.open span:nth-child(1) { transform:rotate(45deg) translate(4px,4px); background:var(--red); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:rotate(-45deg) translate(4px,-4px); background:var(--red); }

/* ── MOBILE MENU ──────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open { display:flex; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--fast), text-shadow 0.3s;
}

.mobile-menu a:hover {
  color: var(--red);
  text-shadow: 0 0 20px var(--red-glow);
}

/* ── POWERED BY ───────────────────────────────────── */
.powered-by {
  position: fixed;
  bottom: 46px; right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: all 0.2s;
  padding: 7px 13px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(61,220,132,0.55);
  backdrop-filter: blur(8px);
}

.powered-by:hover {
  color: rgba(255,255,255,0.85);
  border-color: rgba(61,220,132,0.6);
  background: rgba(0,0,0,0.85);
}

.powered-by::before {
  content: '⬡';
  color: #3DDC84;
  font-size: 0.72rem;
  text-shadow: 0 0 8px rgba(61,220,132,0.7);
}

/* ── FOOTER ───────────────────────────────────────── */
.footer {
  border-top: var(--border);
  padding: 48px 32px 32px;
  background: var(--off-black);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.footer-grid {
  max-width: 2200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-legal {
  max-width: 2200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: var(--border-white);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted2);
  line-height: 1.8;
}

/* ── UTILITIES ────────────────────────────────────── */
.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; }
.text-red    { color: var(--red); }
.text-muted  { color: var(--muted); }
.text-mono   { font-family: var(--font-mono); }
.text-center { text-align: center; }
.uppercase   { text-transform: uppercase; letter-spacing: 0.1em; }

/* ── SCROLL REVEAL ────────────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible { opacity:1; transform:translateY(0); }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
  :root { --gap-xl: 48px; }
  .nav-links  { display:none; }
  .hamburger  { display:flex; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
  .section     { padding:var(--gap-xl) 20px; }
  h1 { font-size:clamp(1.8rem, 8vw, 2.8rem); }
  h2 { font-size:clamp(1.4rem, 6vw, 2rem); }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns:1fr; }
  .nav { padding: 0 20px; }
}

/* ════════════════════════════════════════════════
   BRAND FONT APPLICATION (Hyperion + Abnes)
   Added 27 May 2026 per Mo feedback
═══════════════════════════════════════════════════ */

/* Hyperion on the brand wordmark/logo wrapper */
.nav-logo,
.boot-logo,
.footer-brand,
.car-brand-name,
.car-make-tag,
[data-brand=ritzy] {
  font-family: var(--font-brand) !important;
}

/* Hyperion on any headline mentioning the brand name */
.brand-headline,
.ritzy-title {
  font-family: var(--font-brand) !important;
  letter-spacing: 0.04em;
}

/* Abnes on the tagline */
.brand-tagline,
.footer-tagline,
[data-role=tagline] {
  font-family: var(--font-tagline) !important;
  letter-spacing: 0.06em;
}

/* Footer logo with brand glow pulse */
.footer-logo-glow {
  filter: drop-shadow(0 0 8px rgba(255,0,0,0.45)) drop-shadow(0 0 16px rgba(255,0,0,0.2));
  animation: footerLogoPulse 3.6s ease-in-out infinite;
}
@keyframes footerLogoPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255,0,0,0.35)) drop-shadow(0 0 14px rgba(255,0,0,0.18)); }
  50%      { filter: drop-shadow(0 0 14px rgba(255,0,0,0.7)) drop-shadow(0 0 28px rgba(255,0,0,0.35)); }
}

/* Finance strip restyled to neon red text (matches .hero-stat-num treatment) */
.finance-strip {
  background: transparent !important;
  padding: 28px 32px !important;
  border-top: 1px solid rgba(255,0,0,0.18);
  border-bottom: 1px solid rgba(255,0,0,0.18);
}
.finance-strip::after { display: none !important; }
.finance-strip-text {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  color: var(--red) !important;
  text-shadow: 0 0 20px var(--red-glow);
  font-size: 1rem !important;
  letter-spacing: 0.18em !important;
  animation: glowPulse 3s ease-in-out infinite;
}
.finance-strip a {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  color: var(--red) !important;
  text-shadow: 0 0 20px var(--red-glow);
  font-size: 1rem !important;
  letter-spacing: 0.18em !important;
  border-bottom-color: rgba(255,0,0,0.4) !important;
}
.finance-strip a:hover {
  color: var(--white) !important;
  border-bottom-color: rgba(255,0,0,0.8) !important;
}

/* Vehicle derivative text: cyan, larger - per Mo feedback */
.car-derivative,
.derivative,
.vehicle-derivative,
[data-role=derivative] {
  color: var(--cyan) !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px rgba(0,255,255,0.35);
}
.car-derivative-small,
.stock-card .derivative,
.sc-derivative {
  color: var(--cyan) !important;
  font-size: 0.95rem !important;
}

/* ════════════════════════════════════════════════
   COOKIE CONSENT BANNER (PECR/GDPR compliant)
   Added 27 May 2026
═══════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.96);
  border-top: 1px solid rgba(255,0,0,0.4);
  padding: 18px 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
  animation: cookieBannerSlide 0.4s ease-out;
}
@keyframes cookieBannerSlide {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-inner {
  max-width: 2200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 280px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  margin: 0;
}
.cookie-link {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-link:hover { color: #fff; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 11px 22px;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.18s;
  background: transparent;
}
.cookie-btn-secondary {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.55);
}
.cookie-btn-secondary:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
}
.cookie-btn-primary {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.cookie-btn-primary:hover {
  background: #ff2020;
  box-shadow: 0 0 18px rgba(255,0,0,0.5);
}
@media (max-width: 720px) {
  .cookie-banner { padding: 14px 16px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-text { font-size: 0.72rem; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; padding: 11px 12px; font-size: 0.65rem; }
}


/* ════════════════════════════════════════════════
   MOBILE OPTIMISATION (Android + iOS)
   Added 27 May 2026 - bulletproof defaults
═══════════════════════════════════════════════════ */

/* Universal: stop horizontal scrolling, respect notch */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  /* iPhone notch / Android status bar safe areas */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img, video, iframe { max-width: 100%; height: auto; }

/* Prevent iOS auto-zoom on form focus by ensuring 16px input size */
@media (max-width: 900px) {
  input[type=text],
  input[type=email],
  input[type=tel],
  input[type=number],
  input[type=search],
  input[type=url],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Touch targets - WCAG recommends 44x44px minimum */
@media (max-width: 768px) {
  .btn, .btn-primary, button[type=submit], .wl-form-submit,
  .mobile-menu a, .nav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-cta a { min-height: 44px; }
}

/* Hero on small screens - prevent text overflow */
@media (max-width: 600px) {
  .hero h1, .hero-title { 
    font-size: clamp(2.4rem, 13vw, 4rem) !important; 
    line-height: 1.05;
  }
  .hero-stat-num { font-size: 1.8rem !important; }
  .hero-stat-label { font-size: 0.55rem !important; }
  .hero { padding: 100px 16px 60px !important; }
}

/* Finance strip - tight stack on phone */
@media (max-width: 720px) {
  .finance-strip {
    padding: 14px 16px !important;
    text-align: center;
  }
  .finance-strip-text, .finance-strip a {
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    letter-spacing: 0.12em !important;
    display: block !important;
  }
  .finance-strip a {
    margin-top: 8px;
    display: inline-block !important;
  }
}

/* Stock grid stacks well on phone */
@media (max-width: 720px) {
  .stock-grid, .card-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .stock-card, .car-card { padding: 16px !important; }
}

/* Forms full width, generous spacing */
@media (max-width: 720px) {
  form input, form textarea, form select {
    width: 100% !important;
    padding: 14px 14px !important;
    margin-bottom: 12px;
  }
  .form-row { flex-direction: column !important; gap: 0 !important; }
}

/* Footer columns clean stack */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    text-align: center;
  }
  .footer-grid h4 { text-align: center; }
  .footer-grid ul { align-items: center; }
  .footer-tagline { max-width: 100% !important; }
}

/* Powered by badge - ensure tappable, not off-screen */
@media (max-width: 600px) {
  .powered-by {
    bottom: 44px !important;
    right: 12px !important;
    font-size: 0.55rem !important;
    padding: 7px 11px !important;
  }
}

/* Mobile menu spacing */
@media (max-width: 768px) {
  .mobile-menu { padding: 20px 24px !important; }
  .mobile-menu a {
    padding: 14px 0 !important;
    font-size: 1.05rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .mobile-menu a:last-child { border-bottom: none; }
  /* Buttons inside the mobile menu must keep their horizontal padding so the */
  /* angled red background fully contains the text with breathing room. */
  .mobile-menu a.btn {
    padding: 14px 32px !important;
    border-bottom: none !important;
    width: auto !important;
    align-self: center !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.16em !important;
  }
}

/* Walnut Lakes mobile tweaks */
@media (max-width: 600px) {
  .wl-section { padding: 70px 18px !important; }
  .wl-hero-inner { padding: 0 18px !important; }
  .wl-hero-title { font-size: clamp(2.2rem, 12vw, 3.6rem) !important; }
  .wl-section-title { font-size: clamp(1.5rem, 6.5vw, 2.2rem) !important; }
  .wl-pillar { padding: 24px 20px !important; }
  .wl-enquiry-card { padding: 32px 22px !important; }
  .wl-location { padding: 32px 22px !important; }
  .wl-location-addr { font-size: 1.1rem !important; }
}

/* Vehicle detail page - mobile */
@media (max-width: 720px) {
  .car-hero { padding: 90px 16px 40px !important; }
  .car-spec-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .car-spec-item { padding: 14px !important; }
  .car-actions { flex-direction: column !important; gap: 10px !important; }
  .car-actions a, .car-actions button { width: 100% !important; }
}

/* Booking and contact forms - clean mobile */
@media (max-width: 720px) {
  .booking-form, .contact-form { padding: 24px 18px !important; }
  .form-section { padding: 20px 0 !important; }
}

/* Cookie banner already handled above */

/* Finance/About hero on mobile - prevent overflow */
@media (max-width: 600px) {
  .page-hero h1 { font-size: clamp(1.8rem, 9vw, 2.8rem) !important; line-height: 1.1; }
  .page-hero { padding: 100px 18px 50px !important; }
}

/* Disclosure text on mobile - readable */
@media (max-width: 600px) {
  .finance-disclosure-text { font-size: 0.72rem !important; line-height: 1.7 !important; }
  .finance-disclosure { padding: 24px 18px !important; }
}


/* ════════════════════════════════════════════════
   FINAL POLISH (27 May 2026 - evening)
═══════════════════════════════════════════════════ */

/* Custom scrollbar - consistent red across ALL pages */
html {
  scrollbar-color: rgba(255, 0, 0, 0.6) #0a0a0a;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 0, 0, 0.5);
  border-radius: 2px;
  border: 2px solid #0a0a0a;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 0, 0, 0.85);
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}
::-webkit-scrollbar-corner {
  background: #0a0a0a;
}

/* Cookie button - strip Chrome's default native button styling */
.cookie-btn, button.cookie-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  border-radius: 0 !important;
  outline: none;
  box-shadow: none;
}
.cookie-btn:focus, button.cookie-btn:focus {
  outline: 1px solid rgba(255, 0, 0, 0.5);
  outline-offset: 2px;
}

/* Finance & Regulatory Information - centered text on all pages */
.finance-disclosure-text {
  text-align: center;
}
.finance-disclosure-inner {
  text-align: center;
  margin: 0 auto;
}
.fd-label {
  display: block;
  text-align: center;
  margin-bottom: 12px;
}

/* Walnut Lakes nav item - subtle spacing/separator from Contact */
.nav-links li:has(a[href="/walnut-lakes"]) {
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 0, 0, 0.2);
}
@media (max-width: 768px) {
  .nav-links li:has(a[href="/walnut-lakes"]) {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }
}
/* Fallback for browsers without :has() */
.nav-links li.nav-walnut {
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 0, 0, 0.2);
}

/* Walnut Lakes teaser strip on homepage */
.wl-teaser {
  position: relative;
  min-height: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.85) 100%),
    url('/assets/img/walnut-lakes/walnut-lakes-05.jpg') center/cover no-repeat;
  background-color: #000;
  text-align: center;
  border-top: 1px solid rgba(255, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 0, 0, 0.15);
}
.wl-teaser-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
}
.wl-teaser-title {
  font-family: var(--font-brand);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.wl-teaser-sub {
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.wl-teaser-btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 1px solid var(--red);
  text-decoration: none;
  transition: all 0.25s;
  text-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
}
.wl-teaser-btn:hover {
  background: rgba(255, 0, 0, 0.1);
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.4);
  letter-spacing: 0.34em;
}
@media (max-width: 600px) {
  .wl-teaser { min-height: 480px; padding: 56px 20px; }
}


/* ════════════════════════════════════════════════
   POLISH BATCH 29 May 2026 (afternoon)
═══════════════════════════════════════════════════ */

/* FIX 2: Space between footer-grid and finance-disclosure */
.footer .footer-grid {
  padding-bottom: 48px;
  margin-bottom: 0;
}
.footer .finance-disclosure {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 0, 0, 0.12);
}
@media (max-width: 600px) {
  .footer .footer-grid { padding-bottom: 32px; }
  .footer .finance-disclosure { margin-top: 28px; padding-top: 24px; }
}

/* FIX 3: 'Coming Soon' neon-blue tag on Walnut Lakes nav item */
.nav-links li.nav-walnut {
  position: relative;
}
.nav-links li.nav-walnut a {
  position: relative;
  display: inline-block;
}
.nav-links li.nav-walnut a::after {
  content: 'Coming Soon';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
  white-space: nowrap;
  font-weight: 400;
  pointer-events: none;
  animation: comingSoonPulse 3s ease-in-out infinite;
}
@keyframes comingSoonPulse {
  0%, 100% { opacity: 0.85; text-shadow: 0 0 8px rgba(0, 255, 255, 0.6); }
  50% { opacity: 1; text-shadow: 0 0 12px rgba(0, 255, 255, 0.95); }
}
/* hide on mobile (the pseudo lives in the desktop nav only) */
@media (max-width: 768px) {
  .nav-links li.nav-walnut a::after { display: none; }
}

/* FIX 4: Force CB fonts on all form controls site-wide */
input[type=text],
input[type=email],
input[type=tel],
input[type=number],
input[type=search],
input[type=url],
input[type=password],
input[type=date],
input[type=time],
textarea,
select {
  font-family: var(--font-mono) !important;
}
/* Specifically lock down valuation form controls (highest specificity for sub-elements like option) */
.val-field input,
.val-field select,
.val-field textarea,
#valForm input,
#valForm select,
#valForm textarea {
  font-family: var(--font-mono) !important;
}
/* Keep the UK number-plate field in its plate font (overrides the mono rule above) */
#valForm input.val-reg-input, #valForm #valReg, input#valReg.val-reg-input {
  font-family: 'Charles Wright', 'UKNumberPlate', Impact, sans-serif !important;
}
#valForm select option {
  font-family: var(--font-mono), system-ui, sans-serif;
  background: #0a0a0a;
  color: #fff;
}
/* Reg input keeps its number-plate font (Charles Wright) */
.val-reg-input {
  font-family: 'Charles Wright', 'UKNumberPlate', Impact, var(--font-display), sans-serif !important;
}
/* Labels stay mono per design */
.val-field label {
  font-family: var(--font-mono) !important;
}
/* Buttons stay mono */
.val-submit, .val-reg-btn {
  font-family: var(--font-mono) !important;
}


/* ════════════════════════════════════════════════
   SITE-WIDE SELECT NORMALISATION (29 May pm)
   Removes Windows/Mac default grey, applies site fonts
════════════════════════════════════════════════ */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(0,0,0,0.5);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23ff3333' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-mono, system-ui) !important;
}
select option {
  background: #0a0a0a;
  color: #fff;
  font-family: var(--font-mono, system-ui), sans-serif;
}
select:focus {
  outline: none;
  border-color: var(--red);
  background-color: rgba(0,0,0,0.7);
}

/* Hero centred brandmark (logo + Abnes tagline) - added per Mahmudul feedback */
.hero-brandmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin: -110px auto 32px;
  width: 100%;
}
.hero-brandmark-logo {
  height: 92px;
  width: auto;
  filter: drop-shadow(0 0 18px rgba(255,0,0,0.35));
}
.hero-brandmark-tagline {
  font-family: var(--font-tagline), 'Share Tech Mono', monospace;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: 0.06em;
  color: var(--white);
  text-transform: none;
}
@media (max-width: 768px) {
  .hero-brandmark-logo { height: 64px; }
  .hero-brandmark { margin: -40px auto 20px; }
}

/* Footer contact form - added per Mahmudul feedback (replaces logo+tagline+Navigate) */
.footer-grid.footer-grid-form { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer-contact { max-width: 460px; }
.footer-contact-hd {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white); margin-bottom: 4px;
}
.footer-contact-sub {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px;
}
.footer-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.footer-contact input,
.footer-contact textarea,
.footer-contact select {
  width: 100%; background: var(--surface2);
  border: 1px solid var(--red-border); color: var(--white);
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.04em;
  padding: 11px 13px; margin-bottom: 10px;
  transition: border-color .2s ease;
}
.footer-contact input::placeholder,
.footer-contact textarea::placeholder { color: var(--muted2); letter-spacing: 0.1em; }
.footer-contact input:focus,
.footer-contact textarea:focus { outline: none; border-color: var(--red); }
.footer-contact textarea { resize: vertical; min-height: 70px; }
.footer-consent {
  display: flex; align-items: flex-start; gap: 8px;
  font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--muted2); line-height: 1.5; text-transform: none;
  margin-bottom: 12px; cursor: pointer;
}
.footer-consent input { width: auto; margin: 2px 0 0; accent-color: var(--red); }
.footer-consent a { color: var(--red); }
.footer-contact .form-submit { padding: 13px 28px; font-size: 0.85rem; }
@media (max-width: 880px) {
  .footer-grid.footer-grid-form { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 480px) {
  .footer-grid.footer-grid-form { grid-template-columns: 1fr; }
  .footer-form-grid { grid-template-columns: 1fr; }
}

/* Disclaimer ticker + popup - added per Mahmudul feedback */
.disclaimer-ticker {
  overflow: hidden;
  border-top: 1px solid rgba(255,0,0,0.3);
  border-bottom: 1px solid rgba(255,0,0,0.3);
  background: rgba(10,0,0,0.85);
  padding: 9px 0;
  cursor: pointer;
  position: relative;
}
.disclaimer-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: disclaimerScroll 48s linear infinite;
  will-change: transform;
}
.disclaimer-ticker:hover .disclaimer-ticker-track { animation-play-state: paused; }
@keyframes disclaimerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.disclaimer-ticker-item {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.92);
  padding-right: 60px;
}
.disclaimer-ticker-item .sep { color: var(--red); margin: 0 8px; text-shadow: 0 0 8px var(--red); }
.disclaimer-ticker-cta { color: var(--cyan); }
/* popup */
.disclaimer-modal {
  position: fixed; inset: 0; z-index: 9998;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.86); backdrop-filter: blur(6px);
  padding: 24px;
}
.disclaimer-modal.open { display: flex; animation: dmFade 0.25s ease; }
@keyframes dmFade { from { opacity: 0; } to { opacity: 1; } }
.disclaimer-modal-box {
  position: relative; max-width: 680px; width: 100%;
  max-height: 82vh; overflow-y: auto;
  background: var(--off-black);
  border: 1px solid var(--red); 
  box-shadow: 0 0 40px rgba(255,0,0,0.25), inset 0 0 60px rgba(255,0,0,0.04);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  padding: 36px 38px;
}
.disclaimer-modal-label {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--red); text-shadow: 0 0 8px rgba(255,0,0,0.5); margin-bottom: 14px;
}
.disclaimer-modal-title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--white); margin-bottom: 18px;
}
.disclaimer-modal-text {
  font-family: var(--font-body); font-size: 0.86rem; line-height: 1.85;
  color: rgba(240,237,232,0.82);
}
.disclaimer-modal-text strong { color: var(--white); }
.disclaimer-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--muted);
  font-family: var(--font-mono); font-size: 1.3rem; cursor: pointer;
  line-height: 1; transition: color .2s ease, text-shadow .2s ease;
}
.disclaimer-modal-close:hover { color: var(--red); text-shadow: 0 0 10px var(--red); }

/* Contact nav popup - added per Mahmudul feedback (CB-themed) */
.contact-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.86); backdrop-filter: blur(6px); padding: 24px;
}
.contact-modal.open { display: flex; animation: dmFade 0.25s ease; }
.contact-modal-box {
  position: relative; max-width: 520px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  background: var(--off-black);
  border: 1px solid var(--red);
  box-shadow: 0 0 40px rgba(255,0,0,0.25), inset 0 0 60px rgba(255,0,0,0.04);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  padding: 34px 36px;
}
.contact-modal-title {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--white); margin-bottom: 20px;
}
.contact-modal-box input,
.contact-modal-box select,
.contact-modal-box textarea {
  width: 100%; background: var(--surface2);
  border: 1px solid var(--red-border); color: var(--white);
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.04em;
  padding: 12px 14px; margin-bottom: 11px; transition: border-color .2s ease;
}
.contact-modal-box input::placeholder,
.contact-modal-box textarea::placeholder { color: var(--muted2); letter-spacing: 0.1em; }
.contact-modal-box input:focus,
.contact-modal-box select:focus,
.contact-modal-box textarea:focus { outline: none; border-color: var(--red); }
.contact-modal-box textarea { resize: vertical; min-height: 72px; }
.contact-modal-box .footer-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.contact-modal-box .footer-consent { margin-bottom: 14px; }
@media (max-width: 480px) {
  .contact-modal-box .footer-form-grid { grid-template-columns: 1fr; }
  .contact-modal-box { padding: 28px 22px; }
}

/* Website-themed select dropdowns for contact + footer forms */
.contact-modal-box select,
.footer-contact select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ff0000' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px; cursor: pointer;
}
.contact-modal-box select option,
.footer-contact select option {
  background: #0a0a0a; color: var(--white);
}
.contact-modal-box select:hover,
.footer-contact select:hover { border-color: var(--red); }
/* tidy consent spacing */
.footer-consent { align-items: center; line-height: 1.55; }
.footer-consent input { flex-shrink: 0; margin-top: 0; }

/* consent checkbox fix */
.contact-modal-box input[type=checkbox],
.footer-contact input[type=checkbox]{width:16px !important;height:16px;flex:0 0 auto;margin:0 8px 0 0 !important;accent-color:var(--red);vertical-align:middle;}
.contact-modal-box .footer-consent,
.footer-contact .footer-consent{display:flex;flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap;font-family:var(--font-mono);font-size:0.62rem;color:var(--muted2);line-height:1.5;text-transform:none;margin-bottom:14px;}
.contact-modal-box .footer-consent span,
.footer-contact .footer-consent span{flex:1;min-width:200px;}

/* Disclaimer fixed bottom bar - cyan CTA left + scrolling text right (per Mahmudul) */
.disclaimer-bar{position:fixed;left:0;right:0;bottom:0;z-index:9990;display:flex;align-items:stretch;height:34px;background:rgba(8,0,0,0.94);backdrop-filter:blur(8px);border-top:1px solid rgba(255,0,0,0.35);cursor:pointer;}
.disclaimer-bar-cta{flex:0 0 auto;display:flex;align-items:center;padding:0 18px;font-family:var(--font-mono);font-size:0.64rem;letter-spacing:0.12em;text-transform:uppercase;color:var(--cyan);text-shadow:0 0 7px rgba(0,255,255,0.6);background:rgba(0,255,255,0.05);border-right:1px solid rgba(0,255,255,0.25);white-space:nowrap;}
.disclaimer-bar:hover .disclaimer-bar-cta{background:rgba(0,255,255,0.12);}
.disclaimer-bar-scroll{flex:1 1 auto;overflow:hidden;display:flex;align-items:center;}
.disclaimer-bar-track{display:inline-flex;white-space:nowrap;animation:disclaimerScroll 55s linear infinite;will-change:transform;}
.disclaimer-bar:hover .disclaimer-bar-track{animation-play-state:paused;}
.disclaimer-bar-item{font-family:var(--font-mono);font-size:0.64rem;letter-spacing:0.13em;text-transform:uppercase;color:rgba(245,240,235,0.95);padding-right:60px;}
.disclaimer-bar-item .sep{color:var(--red);margin:0 10px;text-shadow:0 0 8px var(--red);}
@media (max-width:600px){
  .disclaimer-bar{height:32px;}
  .disclaimer-bar-cta{font-size:0.5rem;letter-spacing:0.08em;padding:0 10px;background:rgba(8,0,0,0.98);position:relative;z-index:2;}
  .disclaimer-bar-item{font-size:0.54rem;letter-spacing:0.1em;padding-right:36px;}
  .disclaimer-bar-track{animation-duration:38s;}
}
body{padding-bottom:34px;}

/* Brand marque logos (per Mahmudul) */
.make-logo {
  height: 44px; width: auto; max-width: 130px;
  object-fit: contain;
  /* logo unaltered (full brand colour); faint frosted CB-themed chip keeps dark logos legible without breaking the neon-dark look */
  box-sizing: content-box;
  padding: 13px 18px;
  background: rgba(216,224,235,0.16);
  backdrop-filter: blur(2px);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.12);
  opacity: 0.95;
  transition: background .3s ease, box-shadow .3s ease, opacity .3s ease, transform .3s ease;
}
.make-item:hover .make-logo {
  background: rgba(232,238,245,0.32);
  box-shadow: inset 0 0 0 1px rgba(255,0,0,0.45), 0 0 18px rgba(255,0,0,0.18);
  opacity: 1;
  transform: scale(1.07);
}
.make-initial {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 900;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.08em; display: block; text-align: center;
  text-shadow: 0 0 8px rgba(255,0,0,0.4);
}

/* Featured stock carousel (per Mahmudul) - 16:9, auto-slide, pause on hover */
.featured-carousel { position: relative; overflow: hidden; border: var(--border); background: var(--surface); }
.fc-track { display: flex; transition: transform 0.6s cubic-bezier(0.65,0,0.35,1); will-change: transform; }
.fc-slide { min-width: 100%; position: relative; }
.fc-slide-link { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; text-decoration: none; }
.fc-slide-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s ease; }
.fc-slide-link:hover .fc-slide-img { transform: scale(1.04); }
.fc-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 44px 36px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85) 70%);
}
.fc-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.55rem;
  letter-spacing: 0.25em; text-transform: uppercase; color: #fff;
  background: var(--red); padding: 5px 12px; margin-bottom: 14px;
  clip-path: polygon(6px 0,100% 0,calc(100% - 6px) 100%,0 100%);
}
.fc-make { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.fc-model { font-family: var(--font-display); font-size: clamp(1.4rem,3vw,2.2rem); font-weight: 700; text-transform: uppercase; color: #fff; line-height: 1.1; margin-bottom: 6px; }
.fc-derivative { font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan); text-shadow: 0 0 6px rgba(0,255,255,0.3); margin-bottom: 14px; }
.fc-features { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.8); margin-bottom: 12px; }

.fc-meta { display: flex; gap: 24px; flex-wrap: wrap; }
.fc-meta-item { font-family: var(--font-display); font-size: 0.9rem; color: #fff; }
.fc-meta-item span { display: block; font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted2); margin-top: 2px; }
/* arrows */
.fc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 48px; height: 48px; background: rgba(0,0,0,0.6); border: 1px solid var(--red-border);
  color: #fff; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; backdrop-filter: blur(4px);
}
.fc-arrow:hover { background: var(--red); box-shadow: 0 0 18px var(--red-glow); }
.fc-arrow.prev { left: 18px; } .fc-arrow.next { right: 18px; }
/* dots */
.fc-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 8px; }
.fc-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.35); border: none; cursor: pointer; padding: 0; transition: all 0.2s; }
.fc-dot.active { background: var(--red); box-shadow: 0 0 8px var(--red-glow); width: 22px; border-radius: 5px; }
@media (max-width: 600px) {
  .fc-slide-overlay { padding: 18px 16px 26px; }
  /* taller ratio so the car is not cropped on narrow screens */
  .fc-slide-link { aspect-ratio: 4/3; }
  /* smaller arrows, pulled to the very edge, semi-transparent so they do not cover the car */
  .fc-arrow { width: 32px; height: 32px; font-size: 0.95rem; background: rgba(0,0,0,0.45); }
  .fc-arrow.prev { left: 6px; } .fc-arrow.next { right: 6px; }
  .fc-dots { bottom: 10px; }
}

/* Dark/monochrome logos get a slightly lighter chip so they stay legible, while colourful logos keep the faint CB chip */
.make-logo-dark {
  background: rgba(220,228,238,0.34);
  box-shadow: inset 0 0 0 1px rgba(255,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.18);
}
.make-item:hover .make-logo-dark {
  background: rgba(232,238,245,0.5);
  box-shadow: inset 0 0 0 1px rgba(255,0,0,0.45), 0 0 18px rgba(255,0,0,0.18);
}

/* Click-to-call CTA (contact popup + contact page) */
.call-divider{display:flex;align-items:center;text-align:center;margin:16px 0 14px;}
.call-divider::before,.call-divider::after{content:"";flex:1;height:1px;background:rgba(255,255,255,0.12);}
.call-divider span{font-family:var(--font-mono);font-size:0.6rem;letter-spacing:0.2em;text-transform:uppercase;color:var(--muted2);padding:0 14px;}
.call-cta{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;padding:14px 18px;background:linear-gradient(135deg,rgba(255,0,0,0.1),rgba(255,0,0,0.02));border:1px solid var(--red-border);text-decoration:none;transition:all .2s ease;box-sizing:border-box;}
.call-cta:hover{background:linear-gradient(135deg,rgba(255,0,0,0.18),rgba(255,0,0,0.06));box-shadow:0 0 18px rgba(255,0,0,0.25);}
.call-cta-icon{font-size:1.2rem;color:var(--red);text-shadow:0 0 10px var(--red-glow);}
.call-cta-text{font-family:var(--font-mono);font-size:0.78rem;letter-spacing:0.06em;color:rgba(255,255,255,0.85);}
.call-cta-text strong{color:var(--red);font-weight:700;}

/* === HERO LOGO (left-aligned, shrunk, vertical laser + flicker) === */
.hero-logo-hero { position:relative; display:inline-block; width:auto; max-width:340px; margin:0 0 22px; overflow:hidden; line-height:0; }
.hero-logo-hero-img { display:block; width:100%; max-width:340px; height:auto; filter:drop-shadow(0 0 16px rgba(255,0,0,0.38)); position:relative; z-index:1; animation:heroLogoFlicker 6s steps(1) infinite; }
.hero-logo-sweep { position:absolute; left:0; top:0; width:100%; height:14%; z-index:3; pointer-events:none; background:linear-gradient(180deg, transparent 0%, rgba(0,255,255,0.1) 25%, rgba(0,255,255,0.9) 50%, rgba(0,255,255,0.1) 75%, transparent 100%); filter:blur(1px); mix-blend-mode:screen; animation:heroLogoSweepV 4.5s ease-in-out infinite; }
@keyframes heroLogoSweepV { 0% { top:-14%; opacity:0; } 8% { opacity:1; } 90% { opacity:1; } 100% { top:100%; opacity:0; } }
@keyframes heroLogoFlicker { 0%,100%{opacity:1;} 49%{opacity:1;} 50%{opacity:0.82;} 51%{opacity:1;} 73%{opacity:1;} 74%{opacity:0.9;} 75%{opacity:1;} }
.sys-pulse { color:#00ffff !important; animation:sysPulse 1.8s ease-in-out infinite; }
@keyframes sysPulse { 0%,100% { opacity:1; text-shadow:0 0 6px rgba(0,255,255,0.9), 0 0 14px rgba(0,255,255,0.5); } 50% { opacity:0.55; text-shadow:0 0 10px rgba(0,255,255,1), 0 0 22px rgba(0,255,255,0.7), 0 0 34px rgba(0,255,255,0.4); } }
@media (max-width:1024px){ .hero-right { display:none !important; } }
.hero-content { max-width:2000px; margin:0 auto; padding-left:clamp(20px,5vw,48px); padding-right:clamp(20px,5vw,48px); box-sizing:border-box; }
@media (max-width:768px){ .hero-logo-hero { max-width:230px; margin-top:8px; } .hero-logo-hero-img { max-width:230px; } }

/* Mobile nav spacing fix: separate logo from CTA + hamburger */
@media (max-width:768px){
  .nav { gap:10px; }
  .nav-cta { margin-left:auto; display:flex; align-items:center; gap:10px; }
  .nav-cta .btn-primary { padding:9px 14px; font-size:0.6rem; letter-spacing:0.12em; }
  .hamburger { margin-left:4px; }
  .nav-logo img { height:30px; }
}
@media (max-width:400px){
  .nav-cta .btn-primary { padding:8px 11px; font-size:0.55rem; }
  .nav-logo img { height:27px; }
}

/* 4-column footer (no enquiry form) for contact + walnut-lakes */
.footer-grid.footer-grid-links4 { grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width:768px){ .footer-grid.footer-grid-links4 { grid-template-columns: 1fr 1fr; } }
@media (max-width:480px){ .footer-grid.footer-grid-links4 { grid-template-columns: 1fr; } }

/* Mobile polish pass (hero video + viewport height + readability) */
@media (max-width:768px){
  /* hero video: keep visible but slightly darker for text legibility on small screens */
  .hero-video { filter: brightness(0.6) saturate(1.2); }
  .hero-video-overlay { background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(4,0,0,0.38) 55%, rgba(8,0,0,0.72) 100%); }
  /* use dynamic viewport height so mobile browser chrome does not clip the hero */
  .hero { min-height: 100svh; min-height: 100dvh; }
}
