/* ================================================================
   TYRE MASTER TRADE — Stylesheet
   German Precision. Qatari Trust.
   Palette: Red #C8102E · Black #0A0A0A · White #FFFFFF
   ================================================================ */

:root {
  --red: #C8102E;
  --red-dark: #9E0C24;
  --red-light: #E63946;
  --black: #0A0A0A;
  --black-soft: #1A1A1A;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-alt: #F5F5F5;
  --bg-dark: #0A0A0A;
  --text: #0F0F0F;
  --text-muted: #6B7280;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1240px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'Cairo', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-de: 'Inter', system-ui, sans-serif;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-en);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); }
html[lang="de"] body { font-family: var(--font-de); }
html[dir="rtl"] { direction: rtl; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(200,16,46,0.35); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--gray-900); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--gray-300); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
}
.site-header.scrolled { background: rgba(10,10,10,0.98); box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.logo img { height: 52px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text small { font-size: 0.65rem; font-weight: 500; color: var(--gray-300); letter-spacing: 0.15em; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  color: var(--white);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--red-light); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--red);
  border-radius: 3px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 4px;
}
.lang-switch button {
  color: var(--white);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}
.lang-switch button.active { background: var(--red); }
.lang-switch button:hover:not(.active) { background: rgba(255,255,255,0.12); }

.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.phone-btn:hover { background: var(--red-dark); transform: translateY(-2px); }

.menu-toggle { display: none; color: var(--white); font-size: 1.5rem; padding: 8px; }

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(200,16,46,0.18), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(200,16,46,0.08), transparent 60%);
  pointer-events: none;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-eyebrow {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(200,16,46,0.15);
  border: 1px solid rgba(200,16,46,0.4);
  color: var(--red-light);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.1s both;
}
.hero h1 {
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.2s both;
}
.hero h1 .accent { color: var(--red); }
.hero p.lead {
  font-size: 1.2rem;
  color: var(--gray-300);
  margin-bottom: 36px;
  max-width: 600px;
  animation: fadeUp 0.8s 0.3s both;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 0.8s 0.4s both; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 720px;
  animation: fadeUp 0.8s 0.6s both;
}
.hero-stats .stat { }
.hero-stats .stat-num { font-size: 2.5rem; font-weight: 900; color: var(--red); line-height: 1; }
.hero-stats .stat-label { font-size: 0.85rem; color: var(--gray-300); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.1em; }

.hero-visual {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  z-index: 1;
  opacity: 0.7;
}
html[dir="rtl"] .hero-visual { right: auto; left: -100px; }
.tyre-svg { width: 100%; height: 100%; animation: spin 60s linear infinite; }

/* Sections */
section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { max-width: 700px; margin: 0 auto; color: var(--text-muted); font-size: 1.1rem; }

.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--bg-dark); color: var(--white); }
.bg-dark .section-head h2 { color: var(--white); }
.bg-dark .section-head p { color: var(--gray-300); }

/* Trust strip */
.trust-strip {
  background: var(--black);
  color: var(--white);
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 600;
}
.trust-item .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,16,46,0.15);
  border-radius: 50%;
  color: var(--red);
  font-size: 1.2rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,16,46,0.08);
  color: var(--red);
  border-radius: var(--radius-sm);
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: all var(--transition);
}
.service-card:hover .icon { background: var(--red); color: var(--white); }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }
.service-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Brands */
.brands-strip { padding: 50px 0; background: var(--bg-alt); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  align-items: center;
}
.brand-tile {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 24px 16px;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gray-700);
  letter-spacing: 0.04em;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}
.brand-tile:hover { transform: translateY(-4px); border-color: var(--red); color: var(--red); box-shadow: var(--shadow-md); }
.brand-tile small { display: block; font-size: 0.65rem; font-weight: 500; color: var(--gray-500); margin-top: 4px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Products */
.products-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.filter-group label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--gray-500); letter-spacing: 0.08em; }
.filter-group select, .filter-group input {
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition);
}
.filter-group select:focus, .filter-group input:focus { outline: none; border-color: var(--red); }
.filter-actions { margin-left: auto; display: flex; gap: 8px; }
html[dir="rtl"] .filter-actions { margin-left: 0; margin-right: auto; }
.results-count { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.product-image {
  height: 200px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-image svg { width: 70%; height: 70%; transition: transform 0.6s; }
.product-card:hover .product-image svg { transform: rotate(180deg); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
html[dir="rtl"] .product-badge { left: auto; right: 12px; }
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 0.7rem; font-weight: 800; color: var(--red); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 6px; }
.product-name { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.product-size { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; }
.product-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag { font-size: 0.7rem; padding: 3px 10px; border-radius: 50px; background: var(--gray-100); color: var(--gray-700); font-weight: 600; }
.tag.season-summer { background: #FEF3C7; color: #92400E; }
.tag.season-winter { background: #DBEAFE; color: #1E40AF; }
.tag.season-all { background: #D1FAE5; color: #065F46; }
.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}
.product-price { font-size: 1.4rem; font-weight: 900; color: var(--black); }
.product-price small { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

/* Why Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.why-card {
  padding: 36px 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--red);
  transition: all var(--transition);
}
html[dir="rtl"] .why-card { border-left: none; border-right: 4px solid var(--red); }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-num { font-size: 2.5rem; font-weight: 900; color: var(--red); opacity: 0.3; line-height: 1; margin-bottom: 8px; }
.why-card h3 { margin-bottom: 12px; }
.why-card p { color: var(--text-muted); }

/* Counters — light theme with circular progress rings */
.counters {
  background: var(--white);
  color: var(--text);
  padding: 80px 0;
}
.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  text-align: center;
}
.counter-num { font-size: 3.2rem; font-weight: 900; color: var(--red); line-height: 1; }
.counter-num::after { content: '+'; }
.counter-num.no-plus::after { content: ''; }
.counter-label { font-size: 0.95rem; color: var(--text-muted); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* Circular progress ring */
.ring-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-bg-circle {
  fill: none;
  stroke: var(--gray-100);
  stroke-width: 9;
}
.ring-fg-circle {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 1.6s cubic-bezier(.4,0,.2,1);
}
.ring-pct {
  position: relative;
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}
.ring-pct sup { font-size: 0.95rem; font-weight: 700; color: var(--red); margin-left: 2px; }
.ring-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ring-sub { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin-top: 4px; text-transform: none; letter-spacing: 0; }

/* ==========================================
   German heritage section
   ========================================== */
.german-heritage {
  background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 90px 0;
}
.german-heritage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(200,16,46,0.18), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(255,204,0,0.06), transparent 50%);
  pointer-events: none;
}
.german-heritage::after {
  /* Black-Red-Gold flag stripe at top */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #000 33.33%, #DD0000 33.33% 66.66%, #FFCE00 66.66%);
}
.german-heritage .container { position: relative; z-index: 2; }
.heritage-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}
.heritage-seal-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.heritage-seal {
  width: 280px;
  height: 280px;
  position: relative;
  filter: drop-shadow(0 20px 50px rgba(200,16,46,0.35));
  animation: sealFloat 5s ease-in-out infinite;
}
@keyframes sealFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.heritage-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--red-light);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.heritage-content .eyebrow .flag-mini {
  display: inline-flex;
  width: 20px; height: 14px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.heritage-content .eyebrow .flag-mini span { flex: 1; }
.heritage-content .eyebrow .flag-mini span:nth-child(1) { background: #000; }
.heritage-content .eyebrow .flag-mini span:nth-child(2) { background: #DD0000; }
.heritage-content .eyebrow .flag-mini span:nth-child(3) { background: #FFCE00; }
.heritage-content h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 18px;
}
.heritage-content h2 .accent { color: var(--red-light); }
.heritage-content p { color: var(--gray-300); font-size: 1.05rem; margin-bottom: 28px; }
.heritage-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.heritage-pillar {
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  border-top: 3px solid var(--red);
}
.heritage-pillar .pill-num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--red-light);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 6px;
}
.heritage-pillar h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 6px; }
.heritage-pillar p { font-size: 0.82rem; color: var(--gray-300); margin: 0; }

/* Small heritage badge (used in hero corner / footer) */
.heritage-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  backdrop-filter: blur(10px);
}
.heritage-badge .flag-mini {
  display: inline-flex;
  width: 18px; height: 12px;
  border-radius: 2px;
  overflow: hidden;
}
.heritage-badge .flag-mini span { flex: 1; }
.heritage-badge .flag-mini span:nth-child(1) { background: #000; }
.heritage-badge .flag-mini span:nth-child(2) { background: #DD0000; }
.heritage-badge .flag-mini span:nth-child(3) { background: #FFCE00; }

/* ==========================================
   Hero animated scene (CSS+SVG, no video dependency)
   ========================================== */
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(200,16,46,0.25), transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 40%, #2a0a10 70%, #1a1a1a 100%);
}
.hero-mountains {
  position: absolute;
  bottom: 28%;
  left: 0; right: 0;
  width: 100%;
  height: 30%;
  pointer-events: none;
}
.hero-road {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 30%, #0a0a0a 100%);
  perspective: 600px;
  overflow: hidden;
}
.hero-road::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, #050505);
  z-index: 2;
}
.road-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background-image: linear-gradient(90deg, transparent 0, transparent 50%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.45) 100%);
  background-size: 80px 100%;
  animation: roadDash 0.45s linear infinite;
}
.road-line-1 { bottom: 38%; transform: scaleY(0.8); }
.road-line-2 { bottom: 18%; height: 8px; background-size: 110px 100%; animation-duration: 0.32s; }
@keyframes roadDash { from { background-position: 0 0; } to { background-position: -80px 0; } }
.road-side {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200,16,46,0.5) 30%, rgba(200,16,46,0.5) 70%, transparent);
  opacity: 0.7;
}
.road-side-top { bottom: 65%; }
.road-side-bottom { bottom: 5%; }

.hero-car {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, 70vw);
  z-index: 3;
  filter: drop-shadow(0 30px 30px rgba(0,0,0,0.6));
  animation: carBounce 0.4s ease-in-out infinite alternate;
}
@keyframes carBounce { from { transform: translateX(-50%) translateY(0); } to { transform: translateX(-50%) translateY(-3px); } }
.hero-car svg { width: 100%; height: auto; display: block; }
.hero-wheel {
  animation: heroWheelSpin 0.18s linear infinite;
}
@keyframes heroWheelSpin { to { transform: rotate(360deg); } }

.speed-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.speed-lines span {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
  border-radius: 2px;
  animation: speedFly 1.2s linear infinite;
}
.speed-lines span:nth-child(1) { top: 20%; right: -100px; width: 80px; animation-delay: 0s; }
.speed-lines span:nth-child(2) { top: 28%; right: -100px; width: 120px; animation-delay: 0.15s; opacity: 0.6; }
.speed-lines span:nth-child(3) { top: 34%; right: -100px; width: 60px; animation-delay: 0.3s; opacity: 0.4; }
.speed-lines span:nth-child(4) { top: 42%; right: -100px; width: 100px; animation-delay: 0.45s; opacity: 0.7; }
.speed-lines span:nth-child(5) { top: 48%; right: -100px; width: 70px; animation-delay: 0.6s; opacity: 0.3; }
.speed-lines span:nth-child(6) { top: 55%; right: -100px; width: 130px; animation-delay: 0.75s; opacity: 0.55; }
.speed-lines span:nth-child(7) { top: 62%; right: -100px; width: 90px; animation-delay: 0.9s; opacity: 0.4; }
.speed-lines span:nth-child(8) { top: 18%; right: -100px; width: 60px; animation-delay: 1.05s; opacity: 0.5; }
@keyframes speedFly {
  from { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  to { transform: translateX(-110vw); opacity: 0; }
}

.hero-smoke {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(calc(-50% - 220px));
  z-index: 2;
  pointer-events: none;
}
.hero-smoke span {
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.55), rgba(180,180,180,0.18) 60%, transparent 80%);
  filter: blur(8px);
  animation: heroSmoke 2s ease-out infinite;
  opacity: 0;
}
.hero-smoke span:nth-child(1) { animation-delay: 0s; }
.hero-smoke span:nth-child(2) { animation-delay: 0.3s; }
.hero-smoke span:nth-child(3) { animation-delay: 0.6s; }
.hero-smoke span:nth-child(4) { animation-delay: 0.9s; }
.hero-smoke span:nth-child(5) { animation-delay: 1.2s; }
.hero-smoke span:nth-child(6) { animation-delay: 1.5s; }
@keyframes heroSmoke {
  0% { transform: translateX(0) translateY(0) scale(0.4); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: translateX(-160px) translateY(-20px) scale(2.4); opacity: 0; }
}

/* RTL: flip the car so it drives the other way */
html[dir="rtl"] .hero-car { transform: translateX(-50%) scaleX(-1); }
html[dir="rtl"] .hero-smoke { transform: translateX(calc(-50% + 220px)) scaleX(-1); }
html[dir="rtl"] .speed-lines span { right: auto; left: -100px; }
html[dir="rtl"] @keyframes speedFly {
  from { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  to { transform: translateX(110vw); opacity: 0; }
}

/* Hero video — sits on top of SVG scene; if video fails, video element is hidden and SVG shows through */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: #0a0a0a;
}
.hero-video.failed { display: none; }
.hero-scene { z-index: 0; }
.hero-video-overlay { z-index: 2; }
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.65) 50%, rgba(10,10,10,0.85) 100%),
    radial-gradient(ellipse at top right, rgba(200,16,46,0.18), transparent 60%);
  pointer-events: none;
}
.hero .container { z-index: 2; position: relative; }
.hero-controls { z-index: 5; }

/* Heritage pill in hero */
.hero-heritage-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  backdrop-filter: blur(10px);
  animation: fadeUp 0.8s 0.05s both;
}
.hero-heritage-pill .flag-mini {
  display: inline-flex;
  width: 18px; height: 12px;
  border-radius: 2px;
  overflow: hidden;
}
.hero-heritage-pill .flag-mini span { flex: 1; }
.hero-heritage-pill .flag-mini span:nth-child(1) { background: #000; }
.hero-heritage-pill .flag-mini span:nth-child(2) { background: #DD0000; }
.hero-heritage-pill .flag-mini span:nth-child(3) { background: #FFCE00; }

/* ==========================================
   Star ratings (testimonials)
   ========================================== */
.stars {
  display: inline-flex;
  gap: 3px;
  color: #FFB800;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.stars i.empty { color: var(--gray-300); }

.testimonial { display: flex; flex-direction: column; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--gray-100);
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px; left: 24px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--red);
  line-height: 1;
}
.testimonial p { margin-bottom: 20px; color: var(--gray-700); font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}
.testimonial-author strong { display: block; font-weight: 800; }
.testimonial-author small { color: var(--text-muted); font-size: 0.85rem; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08), transparent 50%);
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; position: relative; }
.cta-banner p { margin-bottom: 28px; opacity: 0.95; font-size: 1.1rem; position: relative; }
.cta-banner .btn-outline { position: relative; }

/* Page header (sub-pages) */
.page-header {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: var(--white);
  padding: 180px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(200,16,46,0.15), transparent 60%);
}
.page-header h1 { position: relative; margin-bottom: 12px; }
.page-header p { position: relative; color: var(--gray-300); font-size: 1.15rem; max-width: 640px; margin: 0 auto; }
.breadcrumb {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 24px;
}
.breadcrumb a { color: var(--red-light); }
.breadcrumb .sep { color: var(--gray-500); }

/* About specific */
.about-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.about-image {
  height: 500px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(200,16,46,0.2), transparent 70%);
}
.about-image svg { width: 70%; height: 70%; position: relative; z-index: 2; opacity: 0.9; }
.about-content .eyebrow { color: var(--red); font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 12px; display: inline-block; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { color: var(--text-muted); margin-bottom: 16px; font-size: 1.05rem; }
.tabs {
  display: flex;
  gap: 4px;
  margin: 32px 0 24px;
  background: var(--gray-100);
  padding: 6px;
  border-radius: 50px;
  width: fit-content;
}
.tab {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.tab.active { background: var(--red); color: var(--white); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.value {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.value .icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,16,46,0.1);
  color: var(--red);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  font-size: 1.1rem;
}
.value h4 { font-size: 0.95rem; margin-bottom: 4px; }
.value p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Contact */
.contact-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info-card {
  background: var(--black);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  height: fit-content;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 24px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,16,46,0.2);
  color: var(--red-light);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-row .label { font-size: 0.75rem; color: var(--gray-300); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.contact-row .value-text { font-weight: 600; font-size: 1rem; }

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.85rem; font-weight: 700; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  background: #D1FAE5;
  color: #065F46;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-weight: 600;
  display: none;
}
.form-success.show { display: block; animation: fadeIn 0.4s; }

.map-embed {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 40px;
  border: 1px solid var(--gray-100);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 70px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-col p { font-size: 0.95rem; line-height: 1.7; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.95rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--red-light); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--white); font-weight: 900; }
.footer-logo img { height: 56px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: var(--white);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.footer-social a:hover { background: var(--red); transform: translateY(-3px); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.9rem; }
.footer-contact-item .icon { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  flex-wrap: wrap;
  gap: 12px;
}

/* Whatsapp floating */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 95;
  background: #25D366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 25px rgba(37,211,102,0.45);
  transition: all var(--transition);
  animation: pulse 2.5s infinite;
}
html[dir="rtl"] .whatsapp-float { right: auto; left: 24px; }
.whatsapp-float:hover { transform: scale(1.1); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 8px 25px rgba(37,211,102,0.45), 0 0 0 16px rgba(37,211,102,0); }
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================
   Page transition (tyre + smoke)
   ========================================== */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  visibility: hidden;
}
.page-transition.active { visibility: visible; pointer-events: all; }

.page-transition .pt-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #050505 0%, #1a1a1a 50%, #2a0a10 100%);
  transform: translateX(-100%);
  transition: transform 0.55s cubic-bezier(.7,0,.3,1);
}
.page-transition.entering .pt-bg { transform: translateX(0); }
.page-transition.exiting .pt-bg { transform: translateX(100%); }

.page-transition .pt-stage {
  position: absolute;
  top: 50%; left: -200px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
}
.page-transition.entering .pt-stage {
  animation: ptDrive 0.9s cubic-bezier(.5,0,.4,1) forwards;
}
@keyframes ptDrive {
  0% { left: -300px; opacity: 0; }
  20% { opacity: 1; }
  100% { left: calc(100% + 100px); opacity: 1; }
}

.pt-tyre {
  width: 140px;
  height: 140px;
  position: relative;
  z-index: 2;
  animation: ptSpin 0.4s linear infinite;
}
@keyframes ptSpin {
  to { transform: rotate(360deg); }
}

.pt-smoke-trail {
  position: absolute;
  top: 50%;
  left: -40px;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
}
.pt-smoke-puff {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.55), rgba(180,180,180,0.25) 50%, transparent 75%);
  filter: blur(4px);
  animation: ptSmoke 0.9s ease-out infinite;
  opacity: 0;
}
.pt-smoke-puff:nth-child(1) { animation-delay: 0s; }
.pt-smoke-puff:nth-child(2) { animation-delay: 0.1s; transform: scale(0.85); }
.pt-smoke-puff:nth-child(3) { animation-delay: 0.2s; transform: scale(0.7); }
.pt-smoke-puff:nth-child(4) { animation-delay: 0.3s; transform: scale(0.55); }
.pt-smoke-puff:nth-child(5) { animation-delay: 0.4s; transform: scale(0.4); }
@keyframes ptSmoke {
  0% { transform: translateX(0) scale(0.4); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: translateX(-180px) scale(2.2); opacity: 0; }
}

.pt-road {
  position: absolute;
  bottom: 30%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red) 70%, transparent);
  opacity: 0;
}
.page-transition.entering .pt-road { animation: ptRoad 0.6s ease-out 0.1s; }
@keyframes ptRoad {
  0%, 100% { opacity: 0; transform: scaleX(0); }
  50% { opacity: 0.8; transform: scaleX(1); }
}

/* ==========================================
   Drift hero scene
   ========================================== */
.drift-scene {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-45%);
  width: 720px;
  height: 480px;
  z-index: 1;
  pointer-events: none;
}
html[dir="rtl"] .drift-scene {
  right: auto;
  left: -50px;
  transform: translateY(-45%) scaleX(-1);
}
.drift-scene svg { width: 100%; height: 100%; overflow: visible; }
.drift-wheel {
  transform-origin: center;
  animation: driftSpin 0.18s linear infinite;
}
@keyframes driftSpin { to { transform: rotate(360deg); } }
.drift-smoke {
  animation: driftSmokeFloat 1.8s ease-out infinite;
  transform-origin: center;
}
.drift-smoke.s2 { animation-delay: 0.3s; animation-duration: 2.2s; }
.drift-smoke.s3 { animation-delay: 0.6s; animation-duration: 2.4s; }
.drift-smoke.s4 { animation-delay: 0.9s; animation-duration: 2.0s; }
.drift-smoke.s5 { animation-delay: 1.2s; }
@keyframes driftSmokeFloat {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  20% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(-180px, -40px) scale(2.4); }
}
.drift-spark {
  animation: sparkFly 0.6s ease-out infinite;
}
.drift-spark.k2 { animation-delay: 0.15s; }
.drift-spark.k3 { animation-delay: 0.3s; }
@keyframes sparkFly {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-100px, 30px) scale(0.3); }
}
.drift-line {
  stroke-dasharray: 40 40;
  animation: dashMove 0.4s linear infinite;
}
@keyframes dashMove { to { stroke-dashoffset: -80; } }

.hero-controls {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 5;
  display: flex;
  gap: 8px;
}
html[dir="rtl"] .hero-controls { right: auto; left: 40px; }
.hero-control-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.hero-control-btn:hover { background: var(--red); border-color: var(--red); }
.hero-control-btn.paused { background: rgba(200,16,46,0.3); }

/* ==========================================
   Featured tyres — interactive enhancements
   ========================================== */
.featured-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.featured-tab {
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--white);
  border: 2px solid var(--gray-100);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--transition);
}
.featured-tab.active { background: var(--red); border-color: var(--red); color: var(--white); }
.featured-tab:hover:not(.active) { border-color: var(--red); color: var(--red); }
.featured-tab .count {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(0,0,0,0.08);
  font-size: 0.7rem;
}
.featured-tab.active .count { background: rgba(255,255,255,0.25); }

.product-card { position: relative; }
.product-card .quick-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
}
html[dir="rtl"] .product-card .quick-actions { right: auto; left: 12px; transform: translateX(-10px); }
.product-card:hover .quick-actions { opacity: 1; transform: translateX(0); }
.qa-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.qa-btn:hover { background: var(--red); color: var(--white); transform: scale(1.1); }
.qa-btn.active { background: var(--red); color: var(--white); }

.product-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 0 14px;
  border-top: 1px solid var(--gray-100);
  margin-top: 10px;
}
.spec-pill {
  text-align: center;
  padding: 6px 4px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}
.spec-pill .spec-num {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.spec-pill .spec-label {
  display: block;
  font-size: 0.62rem;
  color: var(--gray-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Quick view modal */
.qv-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.qv-modal.open { display: flex; animation: fadeIn 0.25s; }
.qv-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  animation: qvSlide 0.3s cubic-bezier(.4,0,.2,1);
}
@keyframes qvSlide {
  from { transform: translateY(30px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.qv-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
html[dir="rtl"] .qv-close { right: auto; left: 16px; }
.qv-image {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
html[dir="rtl"] .qv-image { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.qv-image svg { width: 100%; max-width: 320px; }
.qv-body { padding: 36px; display: flex; flex-direction: column; }
.qv-body .qv-brand { font-size: 0.75rem; color: var(--red); font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.qv-body h3 { font-size: 1.6rem; margin: 6px 0 8px; }
.qv-body .qv-size { font-family: 'JetBrains Mono', monospace; color: var(--gray-700); font-size: 0.95rem; margin-bottom: 16px; }
.qv-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.qv-features {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.qv-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--gray-700);
}
.qv-features li i { color: var(--red); margin-top: 4px; }
.qv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.qv-stats .spec-pill .spec-num { font-size: 1.3rem; }
.qv-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.qv-price { font-size: 2rem; font-weight: 900; color: var(--black); }
.qv-price small { font-size: 0.75rem; color: var(--gray-500); font-weight: 500; }
.qv-actions { display: flex; gap: 8px; margin-top: 16px; }
.qv-actions .btn { flex: 1; }

/* Compare bar */
.compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--black);
  color: var(--white);
  padding: 14px 24px;
  z-index: 90;
  transform: translateY(100%);
  transition: transform var(--transition);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}
.compare-bar.visible { transform: translateY(0); }
.compare-bar .container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.compare-bar .cb-label { font-weight: 700; font-size: 0.9rem; }
.compare-bar .cb-items { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.cb-chip {
  background: rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cb-chip .x { cursor: pointer; opacity: 0.7; font-size: 0.9rem; }
.cb-chip .x:hover { opacity: 1; color: var(--red-light); }

/* ==========================================
   Workshop section (LIGHT theme — photo cards)
   ========================================== */
.workshop-intro {
  background: var(--bg-alt);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.workshop-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(200,16,46,0.06), transparent 60%);
  pointer-events: none;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  position: relative;
}
.workshop-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}
.workshop-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.workshop-image {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}
.workshop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.workshop-card:hover .workshop-image img { transform: scale(1.06); }
.workshop-image .photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.55));
  pointer-events: none;
}
.workshop-image .photo-cut {
  position: absolute;
  bottom: -2px;
  left: -2px;
  right: -2px;
  height: 40px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 60%, 30% 0);
}
.stock-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.85);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
html[dir="rtl"] .stock-tag { right: auto; left: 12px; }
.workshop-body {
  padding: 8px 28px 28px;
  position: relative;
  background: var(--white);
}
.workshop-body .label {
  display: inline-block;
  font-size: 0.65rem;
  color: var(--white);
  background: var(--red);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 50px;
  margin-top: -22px;
  position: relative;
  box-shadow: 0 6px 16px rgba(200,16,46,0.35);
}
.workshop-body h4 { color: var(--text); font-size: 1.2rem; margin-bottom: 10px; font-weight: 800; }
.workshop-body p { color: var(--text-muted); font-size: 0.93rem; }

/* Process steps (light) */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
  margin-top: 70px;
}
.process-step {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.process-step .step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0 auto 18px;
  box-shadow: 0 12px 28px rgba(200,16,46,0.35);
}
.process-step h4 { color: var(--text); font-size: 1.1rem; margin-bottom: 8px; font-weight: 800; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-split, .contact-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { transform: translateY(0); }
  .menu-toggle { display: block; }
  .header-actions .phone-btn span { display: none; }
  .trust-strip .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; padding: 110px 0 60px; }
  .hero-stats { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; margin-top: 32px; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .page-header { padding: 140px 0 56px; }
  .filter-actions { width: 100%; }
  .filter-group { width: 100%; }
  .contact-form { padding: 24px; }
  .contact-info-card { padding: 28px; }
}
@media (max-width: 480px) {
  .trust-strip .container { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .lang-switch { padding: 3px; }
  .lang-switch button { padding: 5px 9px; font-size: 0.7rem; }
}

@media (max-width: 768px) {
  .drift-scene { display: none; }
  .qv-content { grid-template-columns: 1fr; }
  .qv-image { border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important; min-height: 220px; padding: 24px; }
  .qv-body { padding: 24px; }
  .pt-tyre { width: 90px; height: 90px; }
  .featured-tab { padding: 9px 16px; font-size: 0.75rem; }
  .heritage-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .heritage-seal { width: 200px; height: 200px; }
  .heritage-pillars { grid-template-columns: 1fr; }
  .ring-wrap { width: 150px; height: 150px; }
}

/* ==========================================
   MOBILE RESPONSIVE — comprehensive phone fixes
   ========================================== */
@media (max-width: 768px) {
  /* General */
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  section { padding: 48px 0; }
  h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 0.95rem; }

  /* Header — tighter mobile fit */
  .header-inner { height: 64px; gap: 12px; }
  .logo img { height: 38px; }
  .logo-text { display: none; }
  .header-actions { gap: 8px; }
  .phone-btn { padding: 8px 12px; }
  .phone-btn span { display: none; }
  .lang-switch { padding: 3px; }
  .lang-switch button { padding: 6px 8px; font-size: 0.7rem; }
  .menu-toggle { font-size: 1.4rem; padding: 6px; }

  /* Hero — animated scene scaled for phone */
  .hero { min-height: 88vh; padding: 100px 0 60px; }
  .hero-content { padding: 0; }
  .hero-eyebrow, .hero-heritage-pill { font-size: 0.65rem; padding: 5px 11px; letter-spacing: 0.12em; }
  .hero h1 { font-size: clamp(1.85rem, 7vw, 3rem); margin-bottom: 16px; }
  .hero p.lead { font-size: 1rem; margin-bottom: 24px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; padding: 14px 16px; font-size: 0.85rem; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 14px; padding-top: 24px; margin-top: 28px; }
  .hero-stats .stat-num { font-size: 1.5rem; }
  .hero-stats .stat-label { font-size: 0.65rem; letter-spacing: 0.06em; }
  .hero-controls { bottom: 18px; right: 18px; gap: 6px; }
  .hero-control-btn { width: 38px; height: 38px; font-size: 0.8rem; }
  .hero-mountains { display: none; }
  .hero-car { width: 90vw; bottom: 8%; }
  .hero-smoke { transform: translateX(calc(-50% - 130px)); }

  /* Trust strip — 2x2 grid on phone */
  .trust-strip .container { grid-template-columns: 1fr 1fr; gap: 14px; }
  .trust-item { font-size: 0.78rem; gap: 10px; }
  .trust-item .icon { width: 36px; height: 36px; font-size: 0.95rem; }

  /* German heritage — readable on phone */
  .german-heritage { padding: 60px 0; }
  .heritage-seal { width: 180px; height: 180px; }
  .heritage-content h2 { font-size: 1.5rem; }
  .heritage-content p { font-size: 0.95rem; }
  .heritage-pillar { padding: 16px; }
  .heritage-pillar h4 { font-size: 0.92rem; }
  .heritage-pillar p { font-size: 0.78rem; }
  .heritage-pillars { gap: 12px; }

  /* Services grid — 1 column on phone */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 28px 22px; }
  .service-card .icon { width: 56px; height: 56px; font-size: 1.5rem; margin-bottom: 18px; }
  .service-card h3 { font-size: 1.15rem; }

  /* Brands strip — smaller tiles */
  .brands-strip { padding: 36px 0; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brand-tile { padding: 18px 12px; font-size: 0.92rem; }
  .brand-tile small { font-size: 0.6rem; }

  /* Featured tabs — horizontal scroll on phone */
  .featured-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .featured-tab { flex-shrink: 0; padding: 9px 14px; font-size: 0.72rem; }
  .featured-tab .count { padding: 1px 6px; font-size: 0.62rem; margin-left: 4px; }

  /* Products grid — 1 column on phone */
  .products-grid { grid-template-columns: 1fr; gap: 18px; }
  .product-card .product-image { height: 180px; }
  .product-specs { gap: 4px; }
  .spec-pill { padding: 4px 2px; }
  .spec-pill .spec-num { font-size: 0.85rem; }
  .spec-pill .spec-label { font-size: 0.55rem; }

  /* Filters toolbar — full-width stacked */
  .products-toolbar { padding: 14px; gap: 10px; }
  .filter-group { width: 100%; min-width: 0; }
  .filter-actions { width: 100%; }
  .filter-actions .btn { width: 100%; }

  /* Why us — 1 column */
  .why-grid { grid-template-columns: 1fr; gap: 14px; }
  .why-card { padding: 24px 20px; }

  /* Counters — 2x2 on phone */
  .counters { padding: 50px 0; }
  .counters-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .counter-num { font-size: 2.2rem; }
  .counter-label { font-size: 0.78rem; }
  .ring-wrap { width: 130px; height: 130px; }
  .ring-pct { font-size: 1.65rem; }
  .ring-label { font-size: 0.85rem; }
  .ring-sub { font-size: 0.7rem; }

  /* Testimonials — 1 column */
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonial { padding: 26px; }
  .testimonial p { font-size: 0.95rem; }

  /* CTA banner */
  .cta-banner { padding: 50px 0; }
  .cta-banner h2 { font-size: 1.5rem; }
  .cta-banner p { font-size: 1rem; margin-bottom: 22px; }

  /* Page header (sub-pages) */
  .page-header { padding: 120px 0 50px; }
  .page-header h1 { font-size: 2rem; }
  .page-header p { font-size: 1rem; }
  .breadcrumb { font-size: 0.78rem; margin-top: 18px; }

  /* About timeline — single column */
  .timeline::before { left: 20px !important; }
  .tl-item { width: 100% !important; left: 0 !important; padding: 16px 8px 16px 50px !important; text-align: left !important; }
  .tl-item::after { left: 11px !important; right: auto !important; }
  .tl-card { padding: 18px; }

  /* About certifications */
  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cert-card { padding: 22px 14px; }
  .cert-icon { width: 52px; height: 52px; font-size: 1.3rem; margin-bottom: 12px; }
  .cert-card h4 { font-size: 0.92rem; }
  .cert-card p { font-size: 0.78rem; }

  /* Workshop section */
  .workshop-image { height: 200px; }
  .workshop-body { padding: 6px 22px 22px; }
  .workshop-body h4 { font-size: 1.1rem; }
  .workshop-body p { font-size: 0.88rem; }

  /* Process steps — 2x2 on phone */
  .process-steps { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
  .process-step { padding: 24px 14px; }
  .process-step .step-num { width: 46px; height: 46px; font-size: 1.15rem; margin-bottom: 12px; }
  .process-step h4 { font-size: 0.95rem; }
  .process-step p { font-size: 0.82rem; }

  /* Products page category cards — 2x2 on phone */
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-card { padding: 22px 14px; }
  .cat-icon { width: 56px; height: 56px; font-size: 1.4rem; margin-bottom: 12px; }
  .cat-card h4 { font-size: 0.95rem; }
  .cat-card p { font-size: 0.75rem; }

  /* Contact split — 1 column */
  .contact-split { grid-template-columns: 1fr; gap: 24px; }
  .contact-info-card { padding: 24px; }
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .map-embed { height: 280px; margin-top: 24px; }
  .hours-table td { font-size: 0.85rem; padding: 8px 0; }

  /* FAQ */
  .faq-q { padding: 16px 18px; font-size: 0.92rem; gap: 12px; }
  .faq-a p { padding: 0 18px 18px; font-size: 0.9rem; }
  .faq-item.open .faq-a { max-height: 480px; }

  /* Footer — 1 column */
  .site-footer { padding: 50px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; margin-bottom: 32px; }
  .footer-col h4 { font-size: 0.9rem; margin-bottom: 14px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; font-size: 0.78rem; padding-top: 18px; }

  /* WhatsApp floating button */
  .whatsapp-float { width: 54px; height: 54px; font-size: 1.6rem; bottom: 16px; right: 16px; }
  html[dir="rtl"] .whatsapp-float { left: 16px; }

  /* Compare bar */
  .compare-bar { padding: 12px 16px; }
  .compare-bar .container { gap: 10px; }
  .cb-chip { font-size: 0.72rem; padding: 4px 10px; }
}

/* Extra-small phones (≤ 380px) */
@media (max-width: 380px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-stats .stat:nth-child(3) { grid-column: 1 / -1; }
  .trust-strip .container { grid-template-columns: 1fr; }
  .featured-tab span:not(.count) { display: none; }
  .featured-tab i { font-size: 0.95rem; }
  .cat-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .counters-grid { grid-template-columns: 1fr; }
  .ring-wrap { width: 160px; height: 160px; }
  .process-steps { grid-template-columns: 1fr; }
  .lang-switch button { padding: 5px 6px; font-size: 0.65rem; }
}

/* Tablet refinements (481-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .heritage-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .heritage-seal { width: 220px; height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-split { grid-template-columns: 1fr; }
  .hero-car { width: min(560px, 75vw); }
}

/* Touch-friendly: ensure tap targets are at least 44x44 on touch devices */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .qa-btn { width: 42px; height: 42px; }
  .lang-switch button { min-height: 32px; padding-left: 11px; padding-right: 11px; }
  .main-nav a { padding: 14px 18px; }
  .featured-tab { min-height: 40px; }
  .filter-group select, .filter-group input { min-height: 44px; }
  .form-group input, .form-group select, .form-group textarea { min-height: 44px; font-size: 16px; /* prevents iOS zoom */ }
  .faq-q { min-height: 56px; }
}
