/* RACEFOLIO.PRO — Official Formula 1 Standalone Motorsport Design System */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600;700&family=Outfit:ital,wght@0,600;0,700;0,800;0,900;1,700;1,800&family=Space+Grotesk:wght@400;500;600;700&family=Orbitron:wght@600;700;800;900&display=swap');

:root {
  --color-racing-red: #E10600;
  --color-racing-red-hover: #B80500;
  --color-carbon-dark: #15151E;
  --color-near-black: #0F172A;
  --color-slate-gray: #475569;
  --color-light-bg: #F7F4F1;
  --color-card-bg: #FFFFFF;
  --color-border: #CBD5E1;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  
  /* Formula 1 Typography Stack Roles */
  --font-f1-regular: 'F1 Regular', 'Titillium Web', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-f1-turbo: 'F1 Turbo', 'Outfit', sans-serif;
  --font-f1-torque: 'F1 Torque', 'Space Grotesk', 'Orbitron', monospace;
}

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

/* Prevent Google Translate and browser extension <font> / <mark> tags from creating white background boxes */
font, mark {
  background-color: transparent !important;
  color: inherit !important;
  display: inline !important;
}

/* Prevent Horizontal Scroll & Side-to-Side Wobble on Mobile */
html {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-f1-regular);
  font-weight: 300;
  background-color: var(--color-light-bg);
  color: var(--color-near-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

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

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

/* Base Form Controls Reset — Ensure crisp F1 styling across all browsers */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="url"],
select,
textarea {
  font-family: var(--font-f1-regular);
  font-size: 0.8125rem;
  color: #0F172A;
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  border-color: #E10600;
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.15);
}

/* Prevent iOS Safari and Mobile Chrome from Auto-Zooming on Input Focus */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="url"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Typography Utility Classes */
.font-f1-regular { font-family: var(--font-f1-regular); }
.font-f1-turbo   { font-family: var(--font-f1-turbo); }
.font-f1-torque  { font-family: var(--font-f1-torque); }

/* F1 Design System Micro-Components & Helpers */
.ticker-track { display: inline-block; white-space: nowrap; animation: ticker 42s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-wrap { overflow: hidden; white-space: nowrap; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50% ); }
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #E10600;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

.card-lift { transition: transform 0.22s ease, box-shadow 0.22s ease; }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.12); }

.section-pill {
  display: inline-block;
  width: 5px;
  height: 24px;
  background: #E10600;
  border-radius: 99px;
  flex-shrink: 0;
}

.pos-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  font-weight: 700;
}

#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp 0.55s ease both; }
.fade-up-2 { animation: fadeUp 0.55s 0.1s ease both; }

/* ─── Standalone Desktop Responsive Navigation ─── */
@media screen and (min-width: 1024px) {
  .desktop-nav {
    display: flex !important;
  }
  .mobile-menu-btn {
    display: none !important;
  }
  .desktop-cta-signin {
    display: flex !important;
  }
}

@media screen and (max-width: 1023px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
}

/* ─── Hero Visual Desktop Visibility Guarantee ─── */
.hero-visual-col {
  display: none;
}
@media screen and (min-width: 768px) {
  .hero-visual-col {
    display: block !important;
  }
}

.hero-car-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1A1A26;
  height: 480px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(225, 6, 0, 0.08);
}

.hero-car-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  filter: brightness(0.98) contrast(1.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-car-card:hover .hero-car-img {
  transform: scale(1.03);
}

/* ─── Track Database Single-Line Horizontal Slider ─── */
.track-slider-wrap {
  position: relative;
  width: 100%;
}

.track-slider-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  gap: 1.25rem;
  padding: 0.25rem 0.25rem 1.25rem 0.25rem;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.track-slider-track::-webkit-scrollbar {
  display: none;
}

.track-card-slide {
  flex: 0 0 350px !important;
  width: 350px !important;
  max-width: 85vw !important;
  scroll-snap-align: start;
}

@media screen and (min-width: 640px) {
  .track-card-slide {
    flex: 0 0 380px !important;
    width: 380px !important;
  }
}

.slider-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #15151E;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.slider-ctrl-btn:hover {
  border-color: #E10600;
  color: #E10600;
  background-color: #F8FAFC;
  transform: translateY(-1px);
}
.slider-ctrl-btn:active {
  transform: translateY(0);
}
.slider-ctrl-btn:disabled,
.slider-ctrl-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

