/* ─── DESIGN SYSTEM VARIABLES ────────────────────────────────────────── */
:root {
  --la-font-display: 'Outfit', sans-serif;
  --la-font-body: 'Inter', sans-serif;
  
  --la-canvas: #0B0B0B;
  --la-surface: #121212;
  --la-surface-card: #161616;
  --la-accent: #FF1F1F;
  --la-accent-dim: #B31212;
  --la-accent-hover: #E01818;
  --la-hairline: #222222;
  --la-hairline-strong: #333333;
  --la-primary: #FFFFFF;
  --la-body: #999999;
  --la-body-strong: #E4E4E7;
  --la-muted: #666666;
  
  --container-max-wide: 1280px;
  --container-max-narrow: 800px;
}

/* ─── RESET & BASE STYLES ────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--la-canvas);
}

body {
  font-family: var(--la-font-body);
  background-color: var(--la-canvas);
  color: var(--la-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

.display-xl {
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.display-lg {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
}

.display-md {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.display-sm {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.title-lg {
  font-size: 1.25rem;
  font-weight: 600;
}

.body-lg {
  font-size: 1.15rem;
  color: var(--la-body-strong);
}

.body-md {
  font-size: 0.95rem;
}

.body-sm {
  font-size: 0.85rem;
}

/* Labels */
.label-accent {
  font-family: var(--la-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--la-accent);
}

.label-upper {
  font-family: var(--la-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--la-primary);
}

/* Accent Stripes */
.accent-stripe {
  height: 2px;
  background-color: var(--la-accent);
  width: 100%;
}

.accent-stripe-v {
  width: 2px;
  background-color: var(--la-accent);
}

/* Layout Containers */
.container-wide {
  max-width: var(--container-max-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.container-narrow {
  max-width: var(--container-max-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ─── BUTTONS ────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--la-accent);
  color: #fff;
  font-family: var(--la-font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--la-accent);
  padding: 16px 36px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -15%;
  width: 130%;
  height: 100%;
  background-color: #fff;
  z-index: -1;
  transform: skewX(-20deg) translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover::before {
  transform: skewX(-20deg) translateX(0);
}

.btn-primary:hover {
  color: #0b0b0b;
  border-color: #fff;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: #fff;
  font-family: var(--la-font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--la-accent);
  padding: 16px 36px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -15%;
  width: 130%;
  height: 100%;
  background-color: var(--la-accent);
  z-index: -1;
  transform: skewX(-20deg) translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-accent:hover::before {
  transform: skewX(-20deg) translateX(0);
}

.btn-accent:hover {
  color: #fff;
  border-color: var(--la-accent);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: var(--la-body-strong);
  font-family: var(--la-font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--la-hairline-strong);
  padding: 16px 36px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-ghost::before {
  content: '';
  position: absolute;
  top: 0;
  left: -15%;
  width: 130%;
  height: 100%;
  background-color: #fff;
  z-index: -1;
  transform: skewX(-20deg) translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ghost:hover::before {
  transform: skewX(-20deg) translateX(0);
}

.btn-ghost:hover {
  color: #0b0b0b;
  border-color: #fff;
}

/* ─── NAVIGATION ──────────────────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

#main-nav.scrolled {
  background: rgba(11, 11, 11, 0.96);
  border-bottom-color: var(--la-hairline);
  backdrop-filter: blur(12px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-left: 20px !important;
  padding-right: 20px !important;
  gap: 1vw;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--la-hairline-strong);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.nav-brand:hover .nav-logo {
  border-color: var(--la-accent);
  transform: scale(1.03);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-brand-title {
  font-family: var(--la-font-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--la-primary);
}

.nav-brand-sub {
  font-family: var(--la-font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--la-accent);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 28px);
  flex-shrink: 0;
}

.nav-link {
  font-family: var(--la-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--la-body);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--la-accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after, .nav-link-active::after {
  width: 100%;
}

.nav-link:hover, .nav-link-active {
  color: var(--la-primary);
}

/* Hamburger toggle */
#menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: var(--la-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#menu-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

#menu-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile drawer menu */
.mobile-menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background-color: #0b0b0b;
  display: flex;
  flex-direction: column;
  padding: 120px 40px 40px;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
  border-left: 1px solid var(--la-hairline);
}

.mobile-menu-drawer.open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-nav-link {
  font-family: var(--la-font-display);
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--la-body);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translate3d(30px, 0, 0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.mobile-menu-drawer.open .mobile-nav-link {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.mobile-nav-links a:nth-child(1) { transition-delay: 0.10s; }
.mobile-nav-links a:nth-child(2) { transition-delay: 0.14s; }
.mobile-nav-links a:nth-child(3) { transition-delay: 0.18s; }
.mobile-nav-links a:nth-child(4) { transition-delay: 0.22s; }
.mobile-nav-links a:nth-child(5) { transition-delay: 0.26s; }
.mobile-nav-links a:nth-child(6) { transition-delay: 0.30s; }
.mobile-nav-links a:nth-child(7) { transition-delay: 0.34s; }
.mobile-nav-links a:nth-child(8) { transition-delay: 0.38s; }

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--la-accent);
  padding-left: 6px;
}

/* ─── MANAGED IMAGE PLACEHOLDERS ─────────────────────────────────────── */
.managed-image-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.managed-image-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 250px;
  background-color: var(--la-surface-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--la-hairline);
}

.placeholder-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
}

.placeholder-icon {
  opacity: 0.3;
  flex-shrink: 0;
}

.placeholder-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.placeholder-label {
  font-family: var(--la-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--la-accent);
}

.placeholder-sub {
  font-family: var(--la-font-body);
  font-size: 9px;
  color: var(--la-muted);
  letter-spacing: 0.05em;
}

/* ─── SECTION STYLINGS ───────────────────────────────────────────────── */
.section {
  padding: 108px 0;
  border-bottom: 1px solid var(--la-hairline);
}

.section-sm {
  padding: 64px 0;
  border-bottom: 1px solid var(--la-hairline);
}

/* ─── EDITORIAL GRID SYSTEM ──────────────────────────────────────────── */
.editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.editorial-grid.reversed {
  grid-template-columns: 1fr 1.2fr;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ─── HERO STORYTELLING (HOMEPAGE) ──────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,11,11,0.5) 0%, rgba(11,11,11,0.95) 100%);
  z-index: 2;
}

.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-zoom {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: 60px;
}

.hero-inner {
  max-width: 800px;
}

.hero-heading {
  margin: 20px 0 24px;
  color: #fff;
  line-height: 1.0;
}

.hero-subtitle {
  max-width: 580px;
  margin-bottom: 40px;
  color: var(--la-body-strong);
}

/* ─── TRUST METRICS ─────────────────────────────────────────────────── */
.trust-metric-card {
  border-left: 1px solid var(--la-hairline-strong);
  padding-left: 24px;
}

.trust-metric-num {
  font-family: var(--la-font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.0;
  margin-bottom: 8px;
}

/* ─── REVIEWS SLIDER ────────────────────────────────────────────────── */
.review-slider-box {
  background-color: var(--la-surface);
  border: 1px solid var(--la-hairline);
  padding: 64px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-slide {
  display: none;
}

.review-slide.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.slider-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  color: var(--la-accent);
}

.slider-text {
  font-family: var(--la-font-body);
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 40px;
}

.slider-meta-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.slider-meta-left, .slider-meta-right {
  display: flex;
  flex-direction: column;
}

.slider-meta-name {
  font-family: var(--la-font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

/* ─── SERVICE AREA INTERACTIVE DIRECTORY ──────────────────────────────── */
.area-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: stretch;
}

.area-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.area-tab-btn {
  background: var(--la-surface);
  border: 1px solid var(--la-hairline);
  border-left: 3px solid transparent;
  padding: 12px 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.area-tab-btn:hover {
  border-color: var(--la-hairline-strong);
  border-left-color: var(--la-accent-dim);
  background-color: var(--la-surface-card);
}

.area-tab-btn.active {
  border-color: var(--la-hairline-strong);
  border-left-color: var(--la-accent);
  background-color: var(--la-surface-card);
}

.area-tab-name {
  font-family: var(--la-font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: block;
}

.area-tab-meta {
  font-size: 10px;
  color: var(--la-body);
  margin-top: 2px;
  display: block;
}

.area-details-card {
  background-color: var(--la-surface);
  border: 1px solid var(--la-hairline);
  padding: 48px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.area-panel {
  display: none;
}

.area-panel.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: fadeIn 0.3s ease-out;
}

/* ─── DYNAMIC COMPETENCY LISTS (HOMEPAGE) ───────────────────────────── */
.competency-row {
  background-color: var(--la-surface-card);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
  border: 1px solid var(--la-hairline);
  margin-bottom: -1px;
}

.competency-row:hover {
  background-color: var(--la-surface);
  border-color: var(--la-hairline-strong);
  z-index: 2;
  position: relative;
}

/* ─── CARDS & INTERACTIVES ──────────────────────────────────────────── */
.showcase-card {
  background-color: var(--la-surface);
  border: 1px solid var(--la-hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}

.showcase-card:hover {
  border-color: var(--la-hairline-strong);
}

.showcase-img-container {
  height: 280px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--la-hairline);
}

.showcase-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-img-container img {
  transform: scale(1.05);
}

.showcase-info {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-title {
  color: #fff;
  font-size: 20px;
  margin-bottom: 8px;
}

.showcase-meta {
  display: flex;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--la-muted);
  margin-bottom: 16px;
}

.showcase-summary {
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ─── FOOTER STYLINGS ───────────────────────────────────────────────── */
#main-footer {
  background-color: var(--la-canvas);
  border-top: 1px solid var(--la-hairline);
}

.footer-container {
  padding: 72px 40px 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--la-hairline-strong);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-brand-title {
  font-family: var(--la-font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--la-primary);
}

.footer-brand-sub {
  font-family: var(--la-font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--la-accent);
  margin-top: 2px;
}

.footer-desc {
  max-width: 280px;
  margin-bottom: 24px;
  font-size: 14px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item {
  font-size: 14px;
  color: var(--la-body-strong);
}

.contact-link {
  font-size: 14px;
  color: var(--la-accent);
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.8;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-family: var(--la-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--la-primary);
  margin-bottom: 20px;
  display: block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 14px;
  color: var(--la-body);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--la-primary);
}

.admin-lock-link {
  color: var(--la-muted);
}

.admin-lock-link:hover {
  color: var(--la-accent);
}

.legal-copy {
  font-size: 12px;
  color: var(--la-muted);
  margin-top: 8px;
}

/* ─── CONTACT FORM & INTAKE ─────────────────────────────────────────── */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-form-card {
  background-color: var(--la-surface);
  border: 1px solid var(--la-hairline);
  padding: 48px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--la-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--la-body-strong);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--la-canvas);
  border: 1px solid var(--la-hairline-strong);
  color: #fff;
  padding: 14px 16px;
  font-family: var(--la-font-body);
  font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--la-accent);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  width: 100%;
  background: var(--la-canvas);
  border: 1px solid var(--la-hairline-strong);
  color: #fff;
  padding: 14px 16px;
  font-family: var(--la-font-body);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px;
}

.form-select:focus {
  border-color: var(--la-accent);
}

/* ─── ADMIN DASHBOARD STYLINGS ─────────────────────────────────────── */
.admin-login-box {
  max-width: 420px;
  margin: 120px auto;
  background: var(--la-surface);
  border: 1px solid var(--la-hairline);
  padding: 40px;
}

.admin-header {
  height: 80px;
  background: var(--la-surface);
  border-bottom: 1px solid var(--la-hairline);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0 40px;
}

.admin-container {
  margin-top: 100px;
  padding: 40px 0;
}

.admin-tabs-nav {
  display: flex;
  gap: 1px;
  background-color: var(--la-hairline);
  margin-bottom: 32px;
  border: 1px solid var(--la-hairline);
}

.admin-tab-nav-btn {
  background: var(--la-surface);
  border: none;
  color: var(--la-body);
  font-family: var(--la-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 28px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.admin-tab-nav-btn:hover {
  color: #fff;
}

.admin-tab-nav-btn.active {
  background-color: var(--la-canvas);
  color: var(--la-accent);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

/* Admin Tables */
.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--la-hairline);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--la-hairline);
  font-size: 13px;
}

.admin-table th {
  background-color: var(--la-surface);
  color: #fff;
  font-family: var(--la-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr {
  background-color: var(--la-surface-card);
}

.admin-table tbody tr:hover {
  background-color: var(--la-surface);
}

/* Badge statuses */
.badge {
  display: inline-flex;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.badge-new { background-color: var(--la-accent); }
.badge-contacted { background-color: #0fa336; }
.badge-closed { background-color: #444; }

/* Image Slot Grid inside Admin */
.admin-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.admin-image-card {
  background-color: var(--la-surface);
  border: 1px solid var(--la-hairline);
  display: flex;
  flex-direction: column;
}

.admin-image-preview {
  height: 180px;
  background-color: var(--la-surface-card);
  position: relative;
  border-bottom: 1px solid var(--la-hairline);
}

.admin-image-meta {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Form Settings Layout */
.admin-settings-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.admin-settings-card {
  background-color: var(--la-surface);
  border: 1px solid var(--la-hairline);
  padding: 40px;
}

/* ─── ANIMATION KEYFRAMES ───────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE MEDIA QUERIES ───────────────────────────────────────── */
@media (max-width: 992px) {
  .editorial-grid, .editorial-grid.reversed, .contact-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .grid-4, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .area-selector-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hidden-mobile {
    display: none !important;
  }
  
  .show-mobile {
    display: block !important;
  }
}

@media (min-width: 901px) {
  .show-mobile {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .footer-grid, .grid-2, .grid-3, .grid-4, .admin-settings-layout {
    grid-template-columns: 1fr;
  }
  
  .container-wide {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .review-slider-box {
    padding: 32px;
  }
  
  .slider-text {
    font-size: 16px;
  }
  
  .area-details-card {
    padding: 24px;
  }
}

/* ─── ELEGANT IMAGE PLACEHOLDER ─────────────────────────────────────────── */
.elegant-placeholder {
  background: linear-gradient(135deg, #111 0%, #1a1a1a 50%, #0d0d0d 100%);
  position: relative;
  overflow: hidden;
}
.elegant-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,31,31,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,31,31,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.elegant-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,31,31,0.06) 0%, transparent 70%);
}
.managed-image-placeholder.placeholder-fill,
.elegant-placeholder.placeholder-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ─── POPUP / LEAD CAPTURE MODAL ────────────────────────────────────────── */
#lead-popup-overlay {
  position: fixed !important;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
#lead-popup-overlay.active {
  display: flex !important;
  opacity: 1;
}
#lead-popup-modal {
  background: #111111;
  border: 1px solid #222;
  border-top: 3px solid #FF1F1F;
  width: 100%;
  max-width: 520px;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.3s ease;
  padding: 48px;
}
#lead-popup-overlay.active #lead-popup-modal {
  transform: translateY(0);
}
#lead-popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #666;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}
#lead-popup-close:hover {
  color: #fff;
}
.popup-label {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FF1F1F;
  margin-bottom: 12px;
  display: block;
}
.popup-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 8px;
}
.popup-sub {
  font-size: 13px;
  color: #777;
  margin-bottom: 28px;
  line-height: 1.5;
}
.popup-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.popup-form-full {
  margin-bottom: 12px;
}
.popup-input {
  width: 100%;
  background: #0B0B0B;
  border: 1px solid #2a2a2a;
  color: #fff;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.popup-input:focus {
  border-color: #FF1F1F;
}
.popup-input::placeholder {
  color: #444;
}
.popup-submit {
  width: 100%;
  background: #FF1F1F;
  color: #fff;
  border: none;
  padding: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
}
.popup-submit:hover {
  background: #e01818;
}
.popup-success {
  text-align: center;
  padding: 24px 0;
}
.popup-success-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}
.popup-success-msg {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}
.popup-stripe {
  width: 40px;
  height: 3px;
  background: #FF1F1F;
  margin-bottom: 20px;
}
.popup-error {
  color: #FF1F1F;
  font-size: 12px;
  margin-bottom: 12px;
  display: none;
}

@media (max-width: 600px) {
  #lead-popup-modal {
    padding: 32px 24px;
  }
  .popup-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── GLOBAL PREMIUM ANIMATIONS & REVEALS ───────────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

/* Staggered transition delays for grid elements */
.grid-3 > .scroll-reveal:nth-child(1),
.gallery-manager-grid > .gallery-card:nth-child(1) { transition-delay: 0.05s; }
.grid-3 > .scroll-reveal:nth-child(2),
.gallery-manager-grid > .gallery-card:nth-child(2) { transition-delay: 0.12s; }
.grid-3 > .scroll-reveal:nth-child(3),
.gallery-manager-grid > .gallery-card:nth-child(3) { transition-delay: 0.19s; }

.grid-4 > .scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.grid-4 > .scroll-reveal:nth-child(2) { transition-delay: 0.12s; }
.grid-4 > .scroll-reveal:nth-child(3) { transition-delay: 0.19s; }
.grid-4 > .scroll-reveal:nth-child(4) { transition-delay: 0.26s; }

/* Slow Zoom Motorsport Animation for Hero background */
@keyframes heroSlowZoom {
  0% { transform: scale(1.03); }
  50% { transform: scale(1.10); }
  100% { transform: scale(1.03); }
}

.hero-bg-zoom {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroSlowZoom 28s ease-in-out infinite;
  will-change: transform;
}

/* Dark overlay with Red Motorsport glow */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 31, 31, 0.08) 0%, transparent 60%),
              linear-gradient(to bottom, rgba(11, 11, 11, 0.3) 0%, rgba(11, 11, 11, 0.95) 100%);
  z-index: 2;
}

/* Image Hover Zoom effect on Showcase and Gallery Cards */
.showcase-img-container img, .gallery-thumb-wrap img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.showcase-card:hover .showcase-img-container img, 
.gallery-item:hover .gallery-thumb-wrap img {
  transform: scale(1.06) !important;
}

/* Mobile Navbar background fix & Hamburger alignment */
@media (max-width: 900px) {
  #main-nav {
    background: rgba(11, 11, 11, 0.95) !important;
    border-bottom: 1px solid var(--la-hairline);
    backdrop-filter: blur(12px);
  }
  
  #menu-toggle.show-mobile {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    z-index: 101; /* Stay on top of drawer */
  }
}

/* Responsive improvements for Typography and Touch Targets on Mobile */
@media (max-width: 768px) {
  body {
    font-size: 13px;
  }
  .display-xl {
    font-size: 42px !important;
    line-height: 1.1 !important;
  }
  .display-lg {
    font-size: 32px !important;
    line-height: 1.15 !important;
  }
  .display-md {
    font-size: 26px !important;
  }
  .btn-primary, .btn-accent, .btn-ghost {
    padding: 12px 24px !important;
    font-size: 11px !important;
    min-height: 44px; /* Touch target minimum */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .container-wide {
    padding: 0 20px;
  }
  /* Force clean aspect ratios and scaling */
  img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }
}/* ─── HOMEPAGE COMPETENCIES GRID ───────────────────────────────────────── */
.competencies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .competencies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .competencies-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.competency-card {
  background: var(--la-surface);
  border: 1px solid var(--la-hairline);
  border-top: 3px solid transparent;
  padding: 40px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.competency-card:hover {
  border-color: var(--la-hairline-strong);
  border-top-color: var(--la-accent);
  background-color: var(--la-surface-card);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.competency-num {
  font-size: 11px;
  font-family: var(--la-font-display);
  color: var(--la-accent);
  font-weight: 700;
}
.competency-arrow {
  color: var(--la-muted);
  font-size: 16px;
  transition: color 0.3s, transform 0.3s;
}
.competency-card:hover .competency-arrow {
  color: #fff;
  transform: translateX(4px);
}
.competency-title {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px 0;
  font-family: var(--la-font-display);
}
.competency-desc {
  font-size: 13px;
  color: var(--la-body);
  margin: 0;
  line-height: 1.6;
}

/* Staggered delay overrides for competencies columns */
.competencies-grid > .scroll-reveal:nth-child(2n+1) { transition-delay: 0.05s; }
.competencies-grid > .scroll-reveal:nth-child(2n+2) { transition-delay: 0.12s; }

/* Responsive service area selector tab list */
@media (max-width: 992px) {
  .area-tabs-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    margin-bottom: 24px;
  }
  .area-details-card {
    min-height: auto !important;
    padding: 32px !important;
  }
}

@media (max-width: 600px) {
  .area-tabs-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
}

/* Dynamic padding override for pages to match new header height */
div[style*="padding-top: 68px"], 
div[style*="padding-top:68px"] {
  padding-top: 80px !important;
}

/* ─── PHASE 7: PREMIUM CTA STYLES ────────────────────────────────────── */

/* Base container and layout stability modifications */
.nav-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  /* Containment wall — prevents any child from rendering outside the nav bar */
  overflow: hidden;
}

/* Nav links compression on intermediate viewports to prevent wrapping/overlap */
@media (min-width: 1025px) and (max-width: 1200px) {
  .nav-links {
    gap: 20px !important;
  }
  .nav-link {
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
  }
}

/* Mobile brand text hiding to prevent overlap and make room for CTA */
@media (max-width: 480px) {
  .nav-brand-text {
    display: none !important;
  }
}

/* Mobile space priority failsafe */
@media (max-width: 300px) {
  .nav-cta {
    display: none !important;
  }
}

/* Premium CTA button */
.btn-cta-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff3d3d 0%, #ff1f1f 40%, #c60d0d 75%, #910000 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  color: #ffffff;
  font-family: var(--la-font-body);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  z-index: 10;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 
              inset 0 -2px 0 rgba(0, 0, 0, 0.4), 
              0 4px 15px rgba(255, 31, 31, 0.35);
  animation: cta-glow-pulse 3s infinite ease-in-out;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  /* Touch target safety */
  min-height: 44px;
  
  /* GPU Acceleration — NOTE: no perspective, it breaks overflow:hidden for composited children */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, box-shadow;
}

/* Content container */
.btn-cta-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
}

/* Text elements */
.btn-cta-text-desktop {
  display: inline;
}
.btn-cta-text-mobile {
  display: none;
}

/* Car icon wrapper */
.btn-cta-car-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  /* Base fallback dimensions so the SVG is never zero-sized */
  width: 40px;
  height: 11px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Stable GPU compositing — no will-change (promotes to own layer, escaping overflow:hidden) */
  transform: translate3d(0, 0, 0);
  opacity: 1;
  /* Prevent frozen keyframe values persisting when class is removed */
  animation-fill-mode: none;
}

/* Car SVG icon */
.btn-cta-car {
  height: 100%;
  width: 100%;
  display: block;
}

/* Glowing light beam on car */
.car-beam {
  animation: headlight-pulse 3s infinite ease-in-out;
  transform-origin: 93px 20.5px;
  will-change: opacity;
  /* Prevent frozen opacity on bfcache restore */
  animation-fill-mode: none;
}

/* Glare sheen element */
.btn-cta-glare {
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  z-index: 4;
  will-change: left;
}

/* Pulsing ambient glow shadow */
@keyframes cta-glow-pulse {
  0%, 100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 
                inset 0 -2px 0 rgba(0, 0, 0, 0.4), 
                0 4px 14px rgba(255, 31, 31, 0.3);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 
                inset 0 -2px 0 rgba(0, 0, 0, 0.4), 
                0 4px 24px rgba(255, 31, 31, 0.65);
  }
}

/* Headlight soft pulsing */
@keyframes headlight-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.8; }
}

/* ─── DESKTOP SPECIFIC HOVER & INTERACTION (>1024px) ────────────────── */
@media (min-width: 1025px) {
  .btn-cta-premium {
    padding: 13px 26px;
    font-size: 11px;
    letter-spacing: 0.15em;
  }
  .btn-cta-car-wrapper {
    width: 52px;
    height: 14px;
    margin-left: 12px;
  }
  
  /* Hover effects */
  .btn-cta-premium:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ff4d4d 0%, #ff1f1f 35%, #e00f0f 70%, #b30000 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 
                inset 0 -2px 0 rgba(0, 0, 0, 0.3), 
                0 6px 26px rgba(255, 31, 31, 0.75);
    border-color: rgba(255, 255, 255, 0.35);
  }
  
  .btn-cta-premium:hover .btn-cta-car-wrapper {
    transform: translateX(4px);
  }
  
  .btn-cta-premium:hover .car-beam {
    animation: none;
    opacity: 1;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
  }
  
  /* Glare sweep on hover */
  .btn-cta-premium:hover .btn-cta-glare {
    left: 150%;
    transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  /* Keyboard focus style */
  .btn-cta-premium:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
  }
}

/* ─── TABLET BREAKPOINT (768px - 1024px) ──────────────────────────── */
@media (max-width: 1024px) and (min-width: 768px) {
  .btn-cta-premium {
    padding: 11px 20px;
    font-size: 10.5px;
    letter-spacing: 0.12em;
  }
  .btn-cta-car-wrapper {
    width: 44px;
    height: 12px;
    margin-left: 10px;
  }
  
  /* Reduced animations on hover */
  .btn-cta-premium:hover {
    transform: translate3d(0, -1px, 0);
    background: linear-gradient(135deg, #ff4747 0%, #ff1f1f 40%, #d10e0e 75%, #a30000 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 
                inset 0 -2px 0 rgba(0, 0, 0, 0.4), 
                0 4px 16px rgba(255, 31, 31, 0.45);
  }
  .btn-cta-premium:hover .btn-cta-car-wrapper {
    transform: translate3d(2px, 0, 0);
  }
  
  /* Reduced/optimized launch animation for tablet */
  .btn-cta-premium.accelerating .btn-cta-car-wrapper {
    animation: car-rocket-launch-tablet 0.55s cubic-bezier(0.42, 0, 0.58, 1) forwards;
  }
  
  /* Snap back when class is removed (bfcache restore guard) */
  .btn-cta-premium:not(.accelerating) .btn-cta-car-wrapper {
    animation-fill-mode: none;
    transform: translate3d(0, 0, 0);
    opacity: 1;
    filter: none;
  }
}

@keyframes car-rocket-launch-tablet {
  0% {
    transform: translate3d(0, 0, 0) scaleX(1);
    opacity: 1;
  }
  20% {
    transform: translate3d(-2px, 0, 0) scaleX(0.98);
    opacity: 1;
  }
  100% {
    transform: translate3d(120px, 0, 0) scaleX(1.3);
    opacity: 0;
  }
}

/* ─── MOBILE BREAKPOINT (<768px) ──────────────────────────────────── */
@media (max-width: 767px) {
  .btn-cta-premium {
    padding: 10px 14px;
    font-size: 10px;
    letter-spacing: 0.08em;
    
    /* Subtle Mobile Glow Pulse */
    animation: cta-glow-pulse-mobile 4s infinite ease-in-out;
  }
  
  .btn-cta-text-desktop {
    display: none;
  }
  .btn-cta-text-mobile {
    display: inline;
  }
  
  .btn-cta-car-wrapper {
    width: 34px;
    height: 10px;
    margin-left: 6px;
    
    /* Mobile Floating Motion (2-3px max) */
    animation: car-float-mobile 3s infinite ease-in-out;
  }
  
  /* Mobile Headlight Pulse */
  .car-beam {
    animation: headlight-pulse-mobile 4s infinite ease-in-out;
    transform-origin: 93px 20.5px;
  }
  
  /* Disable hover effects to avoid sticky state on touch */
  .btn-cta-premium:hover {
    transform: none;
  }
  
  /* Lightweight tap active state scale-down feedback */
  .btn-cta-premium.tapped,
  .btn-cta-premium:active {
    transform: translate3d(0, 0, 0) scale(0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 
                inset 0 -1px 0 rgba(0, 0, 0, 0.5), 
                0 2px 8px rgba(255, 31, 31, 0.25);
    background: linear-gradient(135deg, #e61a1a 0%, #cc0d0d 100%);
  }
}

/* ─── LAUNCH ANIMATION FOR CLICK (>1024px) ────────────────────────── */
.btn-cta-premium.accelerating {
  pointer-events: none; /* Block double-clicks */
  transform: translate3d(0, 1px, 0);
  background: linear-gradient(135deg, #e61919 0%, #c10c0c 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 
              0 2px 8px rgba(255, 31, 31, 0.3) !important;
  transition: all 0.1s ease;
}

.btn-cta-premium.accelerating .btn-cta-car-wrapper {
  /* forwards is intentional here — JS resets inline style immediately after redirect */
  animation: car-rocket-launch 0.55s cubic-bezier(0.42, 0, 0.58, 1) forwards;
}

/* When accelerating class is removed, snap car wrapper back to rest */
.btn-cta-premium:not(.accelerating) .btn-cta-car-wrapper {
  animation-fill-mode: none;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  filter: none;
}

.btn-cta-premium.accelerating .btn-cta-glare {
  left: 150%;
  transition: left 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes car-rocket-launch {
  0% {
    transform: translate3d(0, 0, 0) scaleX(1);
    filter: blur(0);
    opacity: 1;
  }
  20% {
    transform: translate3d(-3px, 0, 0) scaleX(0.96);
    filter: blur(0);
    opacity: 1;
  }
  100% {
    transform: translate3d(160px, 0, 0) scaleX(1.8);
    filter: blur(2px) brightness(1.5);
    opacity: 0;
  }
}

/* Optimized Mobile Keyframes */
@keyframes cta-glow-pulse-mobile {
  0%, 100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 
                inset 0 -2px 0 rgba(0, 0, 0, 0.4), 
                0 3px 10px rgba(255, 31, 31, 0.25);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 
                inset 0 -2px 0 rgba(0, 0, 0, 0.4), 
                0 3px 16px rgba(255, 31, 31, 0.45);
  }
}

@keyframes car-float-mobile {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(2.5px, 0, 0);
  }
}

@keyframes headlight-pulse-mobile {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.75;
  }
}



