/* =========================================
   VARIABLES.CSS
   ========================================= */
/* ==========================================================================
   RC RALLYE LOCATION — Design Tokens
   All visual values are centralized here for easy rebranding.
   ========================================================================== */

:root {
  /* ── Colour Palette ──────────────────────────────────────────────────── */
  --color-black:        #0a0a0a;
  --color-anthracite:   #1a1a2e;
  --color-navy:         #16213e;
  --color-dark-grey:    #0f3460;
  --color-red:          #e63946;
  --color-orange:       #ff6b35;
  --color-white:        #f8f9fa;
  --color-grey-200:     #e9ecef;
  --color-grey-400:     #adb5bd;
  --color-grey-600:     #8c96a0;
  --color-grey-800:     #343a40;
  --color-success:      #2ecc71;

  /* ── Semantic Colours ────────────────────────────────────────────────── */
  --bg-primary:         var(--color-black);
  --bg-secondary:       var(--color-anthracite);
  --bg-card:            var(--color-navy);
  --bg-card-hover:      #1b2a4a;
  --bg-overlay:         rgba(10, 10, 10, 0.85);

  --accent-primary:     var(--color-red);
  --accent-secondary:   var(--color-orange);
  --accent-gradient:    linear-gradient(135deg, var(--color-red), var(--color-orange));

  --text-primary:       var(--color-white);
  --text-secondary:     var(--color-grey-400);
  --text-muted:         var(--color-grey-600);
  --text-on-accent:     var(--color-white);

  --border-color:       rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);

  /* ── Typography ──────────────────────────────────────────────────────── */
  --font-heading:       'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:          'Inter', system-ui, -apple-system, sans-serif;

  --fw-regular:         400;
  --fw-medium:          500;
  --fw-semibold:        600;
  --fw-bold:            700;

  /* Fluid type scale (clamp: min, preferred, max) */
  --fs-display:         clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --fs-h1:              clamp(2rem, 4vw + 0.5rem, 3.5rem);
  --fs-h2:              clamp(1.5rem, 3vw + 0.25rem, 2.5rem);
  --fs-h3:              clamp(1.25rem, 2vw + 0.25rem, 1.75rem);
  --fs-h4:              clamp(1.1rem, 1.5vw + 0.25rem, 1.35rem);
  --fs-body:            clamp(0.95rem, 1vw + 0.25rem, 1.1rem);
  --fs-small:           clamp(0.8rem, 0.8vw + 0.2rem, 0.9rem);
  --fs-xs:              0.75rem;

  --lh-tight:           1.2;
  --lh-normal:          1.6;
  --lh-relaxed:         1.8;

  /* ── Spacing Scale ───────────────────────────────────────────────────── */
  --space-2xs:          0.25rem;   /*  4px */
  --space-xs:           0.5rem;    /*  8px */
  --space-sm:           0.75rem;   /* 12px */
  --space-md:           1rem;      /* 16px */
  --space-lg:           1.5rem;    /* 24px */
  --space-xl:           2rem;      /* 32px */
  --space-2xl:          3rem;      /* 48px */
  --space-3xl:          4rem;      /* 64px */
  --space-4xl:          6rem;      /* 96px */
  --space-5xl:          8rem;      /* 128px */

  /* Section padding (responsive) */
  --section-py:         clamp(3rem, 8vw, 7rem);
  --section-px:         clamp(1rem, 4vw, 2rem);

  /* ── Layout ──────────────────────────────────────────────────────────── */
  --container-max:      1200px;
  --container-narrow:   800px;

  /* ── Border Radius ───────────────────────────────────────────────────── */
  --radius-sm:          0.375rem;
  --radius-md:          0.625rem;
  --radius-lg:          1rem;
  --radius-xl:          1.5rem;
  --radius-full:        50%;

  /* ── Shadows ─────────────────────────────────────────────────────────── */
  --shadow-sm:          0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md:          0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg:          0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow:        0 0 20px rgba(230, 57, 70, 0.3);
  --shadow-glow-hover:  0 0 30px rgba(230, 57, 70, 0.5);

  /* ── Glass Effect ────────────────────────────────────────────────────── */
  --glass-bg:           rgba(22, 33, 62, 0.6);
  --glass-blur:         16px;
  --glass-border:       rgba(255, 255, 255, 0.1);

  /* ── Transitions ─────────────────────────────────────────────────────── */
  --transition-fast:    150ms ease;
  --transition-base:    300ms ease;
  --transition-slow:    500ms ease;
  --transition-spring:  400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Z-index Scale ───────────────────────────────────────────────────── */
  --z-behind:           -1;
  --z-base:             1;
  --z-dropdown:         100;
  --z-sticky:           200;
  --z-overlay:          300;
  --z-modal:            400;
  --z-toast:            500;
}


/* =========================================
   RESET.CSS
   ========================================= */
/* ==========================================================================
   RC RALLYE LOCATION — CSS Reset
   Modern normalisation for consistent cross-browser rendering.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove default list styles */
ul[role='list'],
ol[role='list'],
ul,
ol {
  list-style: none;
}

/* Set core body defaults */
body {
  text-rendering: optimizeSpeed;
}

/* Anchor elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture,
svg,
video {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove default button styles */
button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Accessible focus-visible indicator for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Graceful prefers-reduced-motion fallback */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  /* Disable heavy entrance animations while preserving hover/focus state transitions */
  .reveal,
  .pulse {
    animation: none !important;
    transition: opacity 150ms ease !important;
  }
}

/* Remove default fieldset styles */
fieldset {
  border: none;
}

/* Fix table border collapse */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Prevent textarea from overflowing */
textarea {
  resize: vertical;
}

/* Remove text decoration from anchors */
a {
  text-decoration: none;
  color: inherit;
}


/* =========================================
   BASE.CSS
   ========================================= */
/* ==========================================================================
   RC RALLYE LOCATION — Base Styles
   Global element styles using design tokens.
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* ── Headings ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

/* ── Paragraph ─────────────────────────────────────────────────────────── */

p {
  color: var(--text-secondary);
  max-width: 70ch; /* Optimal reading width */
}

p + p {
  margin-top: var(--space-md);
}

/* ── Links ─────────────────────────────────────────────────────────────── */

a {
  color: var(--accent-primary);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-secondary);
}

a:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Selection ─────────────────────────────────────────────────────────── */

::selection {
  background-color: var(--accent-primary);
  color: var(--text-on-accent);
}

/* ── Scrollbar (Webkit) ────────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-grey-600);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ── Utility Classes ───────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding-block: var(--section-py);
}

.section--alt {
  background-color: var(--bg-secondary);
}

#cta-section {
  background-color: var(--color-anthracite);
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent-primary);
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section Header ────────────────────────────────────────────────────── */

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  margin-inline: auto;
  font-size: var(--fs-body);
  color: var(--text-secondary);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
}


/* =========================================
   COMPONENTS.CSS
   ========================================= */
/* ==========================================================================
   RC RALLYE LOCATION — Component Styles
   Reusable UI components for the rally car rental site.
   ========================================================================== */

/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-xl);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-glow-hover), inset 0 0 15px rgba(255, 255, 255, 0.15);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

.btn--secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn--large {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--fs-body);
}

.btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  padding: var(--space-md) 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: var(--bg-overlay);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-sm) 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.navbar__logo .logo-accent {
  color: var(--accent-primary);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar__link {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-base);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text-primary);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.lang-switch {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-2xs) var(--space-xs);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-switch:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Hamburger Menu */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: var(--z-modal);
  padding: var(--space-xs);
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  transform-origin: center;
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-overlay);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.mobile-menu .navbar__link {
  font-size: var(--fs-h3);
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.9) 0%,
    rgba(10, 10, 10, 0.7) 40%,
    rgba(10, 10, 10, 0.5) 100%
  );
}

.hero__content {
  position: relative;
  z-index: var(--z-base);
  max-width: 700px;
  padding-top: var(--space-5xl);
}

.hero__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-lg);
  padding: var(--space-2xs) var(--space-md);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-sm);
}

.hero__title {
  font-size: var(--fs-display);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero__description {
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: var(--lh-relaxed);
  max-width: 550px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: bounce 2s infinite;
}

.hero__scroll-indicator svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ══════════════════════════════════════════════════════════════════════════
   CAR CARDS
   ══════════════════════════════════════════════════════════════════════════ */

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.car-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  display: block;
}

.car-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.car-card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.car-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.car-card:hover .car-card__image img {
  transform: scale(1.05);
}

.car-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-2xs) var(--space-sm);
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
}

.car-card__badge--coming {
  top: var(--space-md);
  right: var(--space-md);
  left: auto;
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  border: none;
  box-shadow: var(--shadow-glow-hover);
  opacity: 1;
  z-index: var(--z-sticky);
}

.car-card__body {
  padding: var(--space-lg);
}

.car-card__category {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.car-card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.car-card__description {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: var(--lh-normal);
}

.car-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

.car-card__level {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.car-card__level .dots {
  display: flex;
  gap: 3px;
}

.car-card__level .dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-color);
}

.car-card__level .dot.filled {
  background: var(--accent-primary);
}

.car-card__arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.car-card:hover .car-card__arrow {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(230, 57, 70, 0.1);
}

/* ══════════════════════════════════════════════════════════════════════════
   SERVICE CARDS
   ══════════════════════════════════════════════════════════════════════════ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent-primary);
  font-size: 1.75rem;
}

.service-card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}

.service-card__description {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

/* ══════════════════════════════════════════════════════════════════════════
   SPEC TABLE (Car Detail Page)
   ══════════════════════════════════════════════════════════════════════════ */

.spec-table {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Prevent the table from forcing horizontal scroll on mobile */
  overflow-x: hidden;
  min-width: 0;
}

.spec-table__row {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  min-width: 0;
}

.spec-table__row:last-child {
  border-bottom: none;
}

.spec-table__label {
  flex: 0 0 40%;
  padding: var(--space-md) var(--space-lg);
  background: rgba(22, 33, 62, 0.4);
  font-weight: var(--fw-medium);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  min-width: 0;
  word-break: break-word;
}

.spec-table__value {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  font-weight: var(--fw-medium);
  font-size: var(--fs-small);
  color: var(--text-primary);
  min-width: 0;
  word-break: break-word;
}

/* ══════════════════════════════════════════════════════════════════════════
   CONTACT INFO
   ══════════════════════════════════════════════════════════════════════════ */

.contact-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  transition: all var(--transition-base);
  text-decoration: none;
}

.contact-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent-primary);
  font-size: 1.5rem;
}

.contact-card__info {
  flex: 1;
  min-width: 0;
}

.contact-card__label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2xs);
}

.contact-card__value {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

@media (max-width: 600px) {
  .contact-card__value {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   COMING SOON & EMAIL CAPTURE FORM
   ══════════════════════════════════════════════════════════════════════════ */

.copy-btn {
  position: absolute;
  top: 50%;
  right: var(--space-md);
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: var(--fs-sm);
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
  line-height: 1;
}
.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.coming-soon {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.coming-soon__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.coming-soon__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.coming-soon__description {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 640px;
  margin-inline: auto;
  line-height: var(--lh-normal);
}

.email-capture-form {
  max-width: 540px;
  margin: 0 auto;
}

.email-capture-form__group {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.email-capture-form__input {
  flex: 1;
  min-width: 260px;
  height: 48px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color-hover);
  background: rgba(10, 10, 10, 0.6);
  color: var(--text-primary);
  font-size: var(--fs-body);
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.email-capture-form__input:focus {
  outline: 2px solid var(--accent-secondary);
  border-color: var(--accent-primary);
  background: rgba(10, 10, 10, 0.85);
}

.email-capture-form__btn {
  height: 48px;
  padding: 0 var(--space-xl);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.email-capture-form__feedback {
  margin-top: var(--space-md);
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  display: none;
}

.email-capture-form__feedback.success {
  color: var(--color-success);
}

/* ══════════════════════════════════════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════════════════════════════════════ */

.cta-banner {
  position: relative;
  background: var(--accent-gradient);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  filter: blur(60px);
}

.cta-banner h2 {
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  position: relative;
}

.cta-banner .btn {
  position: relative;
  background: var(--color-white);
  color: var(--color-red);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.cta-banner .btn:hover {
  background: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand {
  max-width: 350px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.footer__logo .logo-accent {
  color: var(--accent-primary);
}

.footer__description {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--accent-primary);
}

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════════════════
   COMING SOON BANNER
   ══════════════════════════════════════════════════════════════════════════ */

.coming-soon {
  background: rgba(22, 33, 62, 0.4);
  border: 1px dashed var(--border-color-hover);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
}

.coming-soon__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.coming-soon__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
}

.coming-soon__description {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-inline: auto;
}

/* ══════════════════════════════════════════════════════════════════════════
   CAR DETAIL PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.car-detail {
  padding-top: calc(var(--space-5xl) + var(--space-2xl));
}

.car-detail__hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-3xl);
  height: 400px;
}

.car-detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-detail__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.8) 0%,
    transparent 60%
  );
  display: flex;
  align-items: flex-end;
  padding: var(--space-2xl);
}

.car-detail__availability {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid rgba(255, 107, 53, 0.35);
  background: rgba(255, 107, 53, 0.12);
  border-radius: var(--radius-full);
  width: fit-content;
}

.car-detail__availability-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xs) var(--space-sm);
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
}

.car-detail__availability p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.car-detail__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.car-detail__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-sm);
  background: rgba(230, 57, 70, 0.15);
  color: var(--accent-primary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(230, 57, 70, 0.3);
}

.car-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.car-detail__description p {
  margin-bottom: var(--space-md);
  line-height: var(--lh-relaxed);
}

.car-detail__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin-bottom: var(--space-xl);
  transition: color var(--transition-fast);
}

.car-detail__back:hover {
  color: var(--accent-primary);
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGE HEADER (for inner pages)
   ══════════════════════════════════════════════════════════════════════════ */

.page-header {
  padding-top: calc(var(--space-5xl) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(230, 57, 70, 0.05);
  border-radius: 50%;
  filter: blur(80px);
}

.page-header h1 {
  margin-bottom: var(--space-md);
  position: relative;
}

.page-header p {
  margin-inline: auto;
  position: relative;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════════════════════════════
   LEGAL PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.legal-content {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.legal-content h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--accent-primary);
}

.legal-content h3 {
  font-size: var(--fs-h4);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.legal-content ul {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content ul li {
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  list-style: disc;
}

.legal-content a {
  color: var(--accent-primary);
  text-decoration: underline;
}


/* =========================================
   LAYOUT.CSS
   ========================================= */
/* ==========================================================================
   RC RALLYE LOCATION — Layout System
   Responsive grid and layout utilities.
   ========================================================================== */

/* ── Responsive Navigation ─────────────────────────────────────────────── */

@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__actions .btn {
    display: none;
  }
}

/* ── Car Grid Responsive ───────────────────────────────────────────────── */

@media (max-width: 768px) {
  .car-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Services Grid Responsive ──────────────────────────────────────────── */

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Footer Responsive ─────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ── Car Detail Responsive ─────────────────────────────────────────────── */

@media (max-width: 768px) {
  .car-detail__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .car-detail__hero {
    height: 250px;
    border-radius: var(--radius-lg);
  }

  /* Fix spec table on mobile: prevent text overflow */
  .spec-table__label {
    flex: 0 0 45%;
    padding: var(--space-sm) var(--space-md);
    word-break: break-word;
    hyphens: auto;
  }

  .spec-table__value {
    padding: var(--space-sm) var(--space-md);
    word-break: break-word;
    hyphens: auto;
  }

  /* Fix CTA button on car detail page: prevent it from overflowing the viewport
     (white-space: nowrap on .btn causes the button to be wider than the screen,
     which in turn forces the whole page to be wider than 100vw) */
  .car-detail__description .btn {
    display: flex;
    width: 100%;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
  }
}

/* ── Hero Responsive ───────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero__content {
    padding-top: var(--space-4xl);
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__description {
    margin-inline: auto;
  }

  .hero__scroll-indicator {
    display: none;
  }
}

/* ── Contact Cards Responsive ──────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contact-card {
    flex-direction: column;
    text-align: center;
    padding: var(--space-xl);
  }
}

/* ── CTA Banner Responsive ─────────────────────────────────────────────── */

@media (max-width: 768px) {
  .cta-banner {
    padding: var(--space-2xl) var(--space-lg);
  }
}

/* ── Page Header Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {
  .page-header {
    padding-top: calc(var(--space-4xl) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }
}

/* ── Disable GPU-heavy backdrop-filter on mobile (perf) ────────────────── */

@media (max-width: 768px) {
  .car-card,
  .service-card,
  .contact-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(22, 33, 62, 0.85);
  }

  /* Remove expensive blur element on mobile */
  .page-header::before {
    display: none;
  }
}


/* =========================================
   ANIMATIONS.CSS
   ========================================= */
/* ==========================================================================
   RC RALLYE LOCATION — Animations
   Micro-animations, scroll reveal, hover effects.
   ========================================================================== */

/* ── Scroll Reveal ─────────────────────────────────────────────────────── */

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

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

/* Instant reveal for elements already in viewport at page load */
.reveal--instant.revealed {
  transition: none;
  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; }

.reveal--left {
  opacity: 0;
  transform: translateX(-30px);
}

.reveal--left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal--right {
  opacity: 0;
  transform: translateX(30px);
}

.reveal--right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal--scale {
  opacity: 0;
  transform: scale(0.95);
}

.reveal--scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ── Fade In Keyframes ─────────────────────────────────────────────────── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Hero Animations ───────────────────────────────────────────────────── */

.hero__label {
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero__title {
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero__description {
  animation: fadeInUp 0.6s ease 0.6s both;
}

.hero__actions {
  animation: fadeInUp 0.6s ease 0.8s both;
}

/* ── Pulse Glow on CTA ─────────────────────────────────────────────────── */

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
  }
  50% {
    box-shadow: 0 0 35px rgba(230, 57, 70, 0.5);
  }
}

.btn--primary.pulse {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* ── Checkered Flag Line ───────────────────────────────────────────────── */

.flag-line {
  width: 100%;
  height: 8px;
  background: repeating-conic-gradient(
    var(--color-black) 0% 25%,
    var(--color-white) 0% 50%
  ) 0 0 / 16px 16px;
  opacity: 0.3;
}

/* ── Shimmer loading placeholder ───────────────────────────────────────── */

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.placeholder-shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    var(--bg-card-hover) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ── Racing stripe accent ──────────────────────────────────────────────── */

.racing-stripe {
  position: relative;
}

.racing-stripe::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}


