/* ═══════════════════════════════════════════════════════════════
 24TUNING ULTRA. Final polish layer
 ═══════════════════════════════════════════════════════════════ */

/* Film grain, subtle premium texture */
body::after {
 content: '';
 position: fixed;
 inset: 0;
 pointer-events: none;
 z-index: 9999;
 opacity: 0.025;
 background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Scroll reveal ── */
.reveal {
 opacity: 0;
 transform: translateY(28px);
 transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
 transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
 opacity: 1;
 transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
 .reveal { opacity: 1; transform: none; transition: none; }
 .trust-marquee-track { animation: none !important; }
}

/* ── Header scroll state ── */
.site-header.is-scrolled {
 background: rgba(3, 5, 8, 0.96);
 box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.site-header.is-scrolled .logo img {
 height: 38px;
 transition: height 0.3s ease;
}

.logo img { transition: height 0.3s ease; }

/* ── Hero split layout ── */
.hero {
 display: flex;
 align-items: stretch;
}

.hero .container.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-rows: auto auto;
  grid-template-areas:
    "hero-content hero-quote"
    "hero-stats hero-quote";
  gap: 48px;
  align-items: start;
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 100px) var(--site-gutter);
  position: relative;
  z-index: 1;
}

.hero-main {
  grid-area: hero-content;
  min-width: 0;
}

.hero-quote-panel {
  grid-area: hero-quote;
}

.hero-grid > .hero-stats {
  grid-area: hero-stats;
  align-self: start;
}

.hero-content { padding: 0; max-width: none; }

.hero-panel {
 background: rgba(10, 14, 20, 0.75);
 backdrop-filter: blur(24px) saturate(160%);
 -webkit-backdrop-filter: blur(24px) saturate(160%);
 border: 1px solid var(--border-accent);
 border-radius: var(--radius-sm);
 padding: 28px;
 position: relative;
 overflow: hidden;
}

.hero-panel::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 height: 2px;
 background: linear-gradient(90deg, var(--racing-red), var(--brand-blue), var(--bright-cyan));
}

.hero-panel-label {
 font-family: var(--font-display);
 font-size: 10px;
 font-weight: 700;
 letter-spacing: 0.2em;
 color: var(--bright-cyan);
 margin-bottom: 20px;
 display: flex;
 align-items: center;
 gap: 8px;
}

.hero-panel-label::before {
 content: '';
 width: 8px;
 height: 8px;
 background: var(--success);
 border-radius: 50%;
 box-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
 animation: pulse-dot 2s ease infinite;
}

.hero-panel-row {
 display: flex;
 justify-content: space-between;
 align-items: baseline;
 padding: 12px 0;
 border-bottom: 1px solid var(--border-subtle);
 font-size: 14px;
}

.hero-panel-row:last-child { border-bottom: none; }

.hero-panel-row .key {
 color: var(--text-muted);
 font-family: var(--font-display);
 font-size: 11px;
 font-weight: 600;
 letter-spacing: 0.1em;
 text-transform: uppercase;
}

.hero-panel-row .val {
 font-family: var(--font-display);
 font-weight: 800;
 font-size: 18px;
 color: var(--text);
 font-variant-numeric: tabular-nums;
}

.hero-panel-row .val.highlight { color: var(--bright-cyan); }

.hero-panel-cta {
 margin-top: 20px;
 display: block;
 text-align: center;
 width: 100%;
}

/* Speed lines decoration */
.hero-speed-lines {
 position: absolute;
 inset: 0;
 overflow: hidden;
 pointer-events: none;
 z-index: 0;
}

.hero-speed-lines span {
 position: absolute;
 height: 1px;
 background: linear-gradient(90deg, transparent, rgba(8, 146, 212, 0.15), transparent);
 animation: speedline 8s linear infinite;
}

.hero-speed-lines span:nth-child(1) { top: 20%; width: 60%; left: -60%; animation-delay: 0s; }
.hero-speed-lines span:nth-child(2) { top: 45%; width: 40%; left: -40%; animation-delay: 2s; }
.hero-speed-lines span:nth-child(3) { top: 70%; width: 50%; left: -50%; animation-delay: 4s; }

@keyframes speedline {
 0% { transform: translateX(0); opacity: 0; }
 10% { opacity: 1; }
 90% { opacity: 1; }
 100% { transform: translateX(250vw); opacity: 0; }
}

/* ── Trust marquee ── */
.trust-marquee {
 background: var(--carbon);
 border-top: 1px solid var(--border-subtle);
 border-bottom: 1px solid var(--border-subtle);
 padding: 14px 0;
 overflow: hidden;
 position: relative;
}

.trust-marquee::before,
.trust-marquee::after {
 content: '';
 position: absolute;
 top: 0;
 bottom: 0;
 width: 80px;
 z-index: 2;
 pointer-events: none;
}

.trust-marquee::before {
 left: 0;
 background: linear-gradient(90deg, var(--carbon), transparent);
}

.trust-marquee::after {
 right: 0;
 background: linear-gradient(-90deg, var(--carbon), transparent);
}

.trust-marquee-track {
 display: flex;
 gap: 48px;
 animation: marquee 40s linear infinite;
 width: max-content;
}

.trust-marquee-item {
 display: flex;
 align-items: center;
 gap: 10px;
 white-space: nowrap;
 font-family: var(--font-display);
 font-size: 12px;
 font-weight: 600;
 letter-spacing: 0.12em;
 text-transform: uppercase;
 color: var(--text-muted);
}

.trust-marquee-item svg,
.trust-marquee-item .dot {
 flex-shrink: 0;
 color: var(--brand-blue);
}

.trust-marquee-item .dot {
 width: 4px;
 height: 4px;
 background: var(--brand-blue);
 border-radius: 50%;
}

@keyframes marquee {
 0% { transform: translateX(0); }
 100% { transform: translateX(-50%); }
}

/* ── Section labels ── */
.section-label {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 font-family: var(--font-display);
 font-size: 11px;
 font-weight: 700;
 letter-spacing: 0.18em;
 text-transform: uppercase;
 color: var(--brand-blue);
 margin-bottom: 10px;
}

.section-label::before {
 content: '';
 width: 24px;
 height: 2px;
 background: var(--racing-red);
}

/* ── Service cards. Image zoom ── */
.service-card-image,
.service-hub-card-image,
.product-card-image {
 overflow: hidden;
 transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-hub-card:hover .service-hub-card-image {
 transform: scale(1.05);
}

.service-hub-card-image {
 transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card-image::after,
.service-hub-card-image::after {
 content: '';
 position: absolute;
 inset: 0;
 background: inherit;
 background-size: cover;
 background-position: center;
 transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .service-card-image {
 transform: scale(1.04);
}

.service-card-image {
 transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Glass feature cards */
.feature-card-premium {
 backdrop-filter: blur(12px);
 background: linear-gradient(145deg, rgba(20, 26, 36, 0.9) 0%, rgba(10, 14, 20, 0.85) 100%) !important;
}

.feature-icon {
 width: 52px;
 height: 52px;
 background: linear-gradient(135deg, rgba(8, 146, 212, 0.2), rgba(8, 146, 212, 0.05));
 border: 1px solid var(--border-accent);
 border-radius: var(--radius-sm);
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 22px;
 position: relative;
}

/* ── Pill quick links ── */
.pill-row {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
 margin-top: 24px;
}

.pill-link {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 8px 16px;
 background: rgba(255, 255, 255, 0.04);
 border: 1px solid var(--border-subtle);
 border-radius: 100px;
 font-family: var(--font-display);
 font-size: 12px;
 font-weight: 600;
 letter-spacing: 0.06em;
 text-transform: uppercase;
 color: var(--text-muted);
 transition: all 0.2s ease;
}

.pill-link:hover {
 color: var(--text);
 border-color: var(--border-accent);
 background: rgba(8, 146, 212, 0.1);
}

/* ── Guarantee strip ── */
.guarantee-strip {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 1px;
 background: var(--border-subtle);
 border: 1px solid var(--border-subtle);
 border-radius: var(--radius-sm);
 overflow: hidden;
 margin-top: 48px;
}

.guarantee-item {
 background: var(--dark-surface);
 padding: 24px 20px;
 text-align: center;
}

.guarantee-item .icon {
 font-size: 24px;
 margin-bottom: 10px;
 display: block;
}

/* CSS icons, no emoji dependency */
.icon-warranty,
.icon-backup,
.icon-diagnostics,
.icon-mobile,
.icon-expertise,
.icon-global,
.icon-shield {
 width: 52px;
 height: 52px;
 margin: 0 auto 10px;
 background: linear-gradient(135deg, rgba(8, 146, 212, 0.2), rgba(8, 146, 212, 0.05));
 border: 1px solid var(--border-accent);
 border-radius: var(--radius-sm);
 position: relative;
}

.icon-warranty::after { content: '01'; font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--bright-cyan); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.icon-backup::after { content: ''; width: 18px; height: 14px; border: 2px solid var(--brand-blue); border-radius: 2px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -55%); box-shadow: 0 4px 0 -2px var(--brand-blue); }
.icon-diagnostics::after { content: ''; width: 20px; height: 2px; background: var(--brand-blue); box-shadow: 0 6px 0 var(--brand-blue), 0 12px 0 var(--brand-blue); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.icon-mobile::after { content: ''; width: 22px; height: 10px; border: 2px solid var(--brand-blue); border-radius: 3px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.icon-mobile::before { content: ''; width: 6px; height: 6px; background: var(--brand-blue); border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.icon-expertise::after { content: 'ECU'; font-family: var(--font-display); font-weight: 800; font-size: 11px; color: var(--bright-cyan); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; letter-spacing: 0.05em; }
.icon-global::after { content: 'UK'; font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--bright-cyan); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.icon-shield::after { content: '∞'; font-size: 22px; color: var(--bright-cyan); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

.guarantee-item .icon-warranty,
.guarantee-item .icon-backup,
.guarantee-item .icon-diagnostics,
.guarantee-item .icon-mobile {
 margin-bottom: 10px;
}

.guarantee-item h4 {
 font-family: var(--font-display);
 font-size: 13px;
 font-weight: 700;
 letter-spacing: 0.06em;
 text-transform: uppercase;
 margin-bottom: 6px;
 color: var(--text);
 font-style: normal;
}

.guarantee-item p {
 font-size: 12px;
 color: var(--text-muted);
 line-height: 1.5;
}

/* ── CTA strip upgrade ── */
.cta-strip-inner {
 background: rgba(8, 146, 212, 0.06);
 border: 1px solid var(--border-accent);
 border-radius: var(--radius-sm);
 padding: clamp(32px, 5vw, 48px);
 position: relative;
 overflow: hidden;
}

.cta-strip-inner::before {
 content: '';
 position: absolute;
 top: -50%;
 right: -20%;
 width: 400px;
 height: 400px;
 background: radial-gradient(circle, rgba(8, 146, 212, 0.12), transparent 70%);
 pointer-events: none;
}

/* ── Footer upgrade ── */
.site-footer {
 position: relative;
}

.footer-newsletter {
 background: rgba(8, 146, 212, 0.06);
 border: 1px solid var(--border-subtle);
 border-radius: var(--radius-sm);
 padding: 32px;
 margin-bottom: 48px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 24px;
 flex-wrap: wrap;
}

.footer-newsletter h3 {
 font-family: var(--font-display);
 font-size: 20px;
 font-weight: 700;
 letter-spacing: 0.04em;
 text-transform: uppercase;
 margin-bottom: 4px;
 font-style: normal;
}

.footer-newsletter p {
 font-size: 14px;
 color: var(--text-muted);
}

.footer-newsletter-form {
 display: flex;
 gap: 8px;
 flex: 1;
 max-width: 400px;
}

.footer-newsletter-form input {
 flex: 1;
 padding: 12px 16px;
 background: var(--dark-bg);
 border: 1px solid var(--border-subtle);
 border-radius: var(--radius-sharp);
 color: var(--text);
 font-family: var(--font-body);
 font-size: 14px;
}

.footer-newsletter-form input:focus {
 outline: none;
 border-color: var(--brand-blue);
 box-shadow: 0 0 0 3px var(--glow-blue);
}

/* ── Vehicle search HUD upgrade ── */
.vehicle-search-section {
 position: relative;
}

.vehicle-search-container {
 background: rgba(10, 14, 20, 0.6);
 border: 1px solid var(--border-subtle);
 border-radius: var(--radius-sm);
 padding: clamp(32px, 5vw, 48px);
 margin: 0 var(--site-gutter);
 max-width: var(--site-max-width);
 margin-left: auto;
 margin-right: auto;
 box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.results-section {
 border: 1px solid var(--border-accent);
 box-shadow: inset 0 0 40px rgba(8, 146, 212, 0.04);
}

/* ── Focus & a11y (SEO indirect via UX signals) ── */
:focus-visible {
 outline: 2px solid var(--bright-cyan);
 outline-offset: 3px;
}

.btn:focus-visible,
a:focus-visible {
 outline: 2px solid var(--bright-cyan);
 outline-offset: 3px;
}

/* ── Skip link ── */
.skip-link {
 position: absolute;
 top: -100px;
 left: 16px;
 background: var(--brand-blue);
 color: #fff;
 padding: 10px 20px;
 font-family: var(--font-display);
 font-weight: 700;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 z-index: 10000;
 border-radius: var(--radius-sharp);
 transition: top 0.2s;
}

.skip-link:focus {
 top: 16px;
}

/* ── Page hero upgrade ── */
.page-hero {
 overflow: hidden;
}

.page-hero .container {
 position: relative;
 z-index: 1;
}

.page-hero::before {
 content: '';
 position: absolute;
 right: 0;
 top: 0;
 bottom: 0;
 width: 40%;
 background: radial-gradient(ellipse at right, rgba(8, 146, 212, 0.06), transparent 70%);
 pointer-events: none;
}

/* ── Stats bar items hover ── */
.stats-bar-item {
 padding: 8px 16px;
 border-radius: var(--radius-sharp);
 transition: background 0.2s;
}

.stats-bar-item:hover {
 background: rgba(8, 146, 212, 0.06);
}

/* ── Inline prose cleanup ── */
.prose h3 {
 font-family: var(--font-display);
 font-size: 20px;
 font-weight: 700;
 letter-spacing: 0.04em;
 text-transform: uppercase;
 color: var(--text);
 margin-bottom: 12px;
 font-style: normal;
}

.prose p {
 color: var(--text-muted);
 line-height: 1.75;
 margin-bottom: 14px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero {
    min-height: auto !important;
    max-height: none !important;
  }

  .hero-panel.hero-quote-panel {
    overflow: visible !important;
  }
}

@media (max-width: 749px) {
 .guarantee-strip { grid-template-columns: 1fr; }

 .footer-newsletter { flex-direction: column; text-align: center; }

 .footer-newsletter-form { max-width: 100%; width: 100%; }
}
