@font-face { font-family: 'Mona Sans'; src: url('../fonts/mona-sans-400.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mona Sans'; src: url('../fonts/mona-sans-500.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mona Sans'; src: url('../fonts/mona-sans-600.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mona Sans'; src: url('../fonts/mona-sans-700.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mona Sans'; src: url('../fonts/mona-sans-800.woff') format('woff'); font-weight: 800; font-style: normal; font-display: swap; }
:root {
  --color-bg: #060404;
  --color-surface: #141010;
  --color-surface-translucent: rgba(20, 16, 16, 0.88);
  --color-card: #141010;
  --color-card-border: #2A2222;
  --color-lime: #FF1A1A;
  --color-lime-bright: #FF3B3B;
  --color-lime-dark: #FF4D4D;
  --color-lime-glow: rgba(255, 26, 26, 0.25);
  --color-red: #FF1A1A;
  --color-red-glow: rgba(255, 26, 26, 0.2);
  --color-text-main: #F7F4F4;
  --color-text-muted: #9E9494;
  --color-border: #2A2222;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--color-bg);
  color: #E8E2E2;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #1D1717;
}
::-webkit-scrollbar-thumb {
  background: #3A3030;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF1A1A;
}

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

/* Typography */
.font-display {
  font-family: 'Mona Sans', sans-serif;
}
.font-sans-body {
  font-family: 'Mona Sans', sans-serif;
}

/* Bright Mode Glassmorphism & Cards */
.glass-nav {
  background: rgba(20, 16, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.glass-card {
  background: #141010;
  border: 1px solid #2A2222;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: #FF1A1A;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.10), 0 0 20px -4px rgba(255, 26, 26, 0.25);
  transform: translateY(-3px);
}

.glass-panel {
  background: #141010;
  border: 1px solid #2A2222;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
}

/* Logo Color Badges */
.badge-lime {
  background: #1D1717;
  color: #FF4D4D;
  border: 1px solid #3A2525;
}

.badge-red {
  background: #2A0E0E;
  color: #FF4D4D;
  border: 1px solid #4A1515;
}

.badge-available {
  background: #1D1717;
  color: #FF6B6B;
  border: 1px solid #3A2525;
}

/* Button Styles */
.btn-brand, .btn-lime {
  background: linear-gradient(135deg, #FF1A1A 0%, #E00000 100%);
  color: #060404;
  font-weight: 800;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(255, 26, 26, 0.35);
}

.btn-brand:hover, .btn-lime:hover {
  background: linear-gradient(135deg, #FF3B3B 0%, #FF1A1A 100%);
  box-shadow: 0 6px 20px rgba(255, 26, 26, 0.5);
  transform: translateY(-1px);
}

.btn-red {
  background: linear-gradient(135deg, #FF1A1A 0%, #FF4D4D 100%);
  color: #FFFFFF;
  font-weight: 800;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(255, 26, 26, 0.3);
}

.btn-red:hover {
  box-shadow: 0 6px 20px rgba(255, 26, 26, 0.45);
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-outline-lime {
  border: 1px solid #FF1A1A;
  color: #FF4D4D;
  background: #141010;
  transition: all 0.25s ease;
}

.btn-outline-lime:hover {
  background: #1D1717;
  border-color: #E00000;
  color: #FF6B6B;
}

/* Ambient Radial Glows */
.bg-glow-lime {
  background: radial-gradient(circle at 50% 0%, rgba(255, 26, 26, 0.12) 0%, rgba(6, 4, 4, 0) 70%);
}

.bg-glow-card {
  background: radial-gradient(circle at 80% 20%, rgba(255, 26, 26, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
}

/* Pulse animation */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.15); }
}

.pulse-dot {
  animation: pulse-subtle 2s infinite ease-in-out;
}

/* Otto Search Console */
.otto-search-pill {
  background: #141010;
  border-radius: 9999px;
  padding: 6px 8px 6px 20px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.12), 0 0 0 1px #2A2222;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  transition: box-shadow 0.3s ease;
}

@media (max-width: 768px) {
  .otto-search-pill {
    border-radius: 20px;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
  }
}

.otto-search-field {
  flex: 1;
  text-align: left;
  padding: 4px 12px;
}

.otto-search-field label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9E9494;
  margin-bottom: 2px;
}

.otto-search-field select,
.otto-search-field input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #F7F4F4;
  padding: 0;
  outline: none;
  cursor: pointer;
}

.otto-search-field input::placeholder {
  color: #8E8484;
  font-weight: 500;
}

.otto-divider {
  width: 1px;
  height: 36px;
  background-color: #2A2222;
}

@media (max-width: 768px) {
  .otto-divider {
    display: none;
  }
  .otto-search-field {
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid #1D1717;
  }
}

.otto-search-btn {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: #FF1A1A;
  color: #060404;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(255, 26, 26, 0.4);
}

.otto-search-btn:hover {
  background: #FF3B3B;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(255, 26, 26, 0.6);
}

@media (max-width: 768px) {
  .otto-search-btn {
    width: 100%;
    border-radius: 12px;
    height: 44px;
    font-size: 14px;
    font-weight: 800;
    gap: 8px;
  }
}

/* Otto Horizontal Trust Strip */
.otto-trust-strip {
  background: #141010;
  border-bottom: 1px solid #2A2222;
}

.otto-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #CFC7C7;
}

.otto-trust-icon {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: #1D1717;
  color: #FF4D4D;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Translucent Sub-Bar Category Filter Pills */
.otto-filter-pill {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
}

.otto-filter-pill.active {
  background: #FF1A1A;
  color: #060404;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 26, 26, 0.3);
  border: 1px solid #E00000;
}

.otto-filter-pill:not(.active) {
  background: rgba(20, 16, 16, 0.85);
  color: #B8AFAF;
  border: 1px solid #2A2222;
}

.otto-filter-pill:not(.active):hover {
  background: #141010;
  color: #F7F4F4;
  border-color: #3A3030;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Image Aspect Ratio Lock */
.vehicle-img-wrapper {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background-color: #1D1717;
}

.vehicle-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover .vehicle-img-wrapper img {
  transform: scale(1.05);
}

/* Consistent Background Image Setup (sleekacademia style) */
.bg-ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.bg-ambient-backdrop .ambient-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.7s ease-in-out;
}

.bg-ambient-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Atmospheric Ambient Overlay (preserves blurred greens on sides) */
.bg-ambient-backdrop.home .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.65) 0%, rgba(6, 4, 4, 0.78) 65%, rgba(6, 4, 4, 0.92) 100%);
}

/* Blurred on Other Pages (Sleek Academia Style) */
.bg-ambient-backdrop.page img {
  filter: blur(24px);
  transform: scale(1.12);
}
.bg-ambient-backdrop.page .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 16, 0.88) 0%, rgba(20, 16, 16, 0.94) 50%, #060404 100%);
}

/* Smooth Detail Modal & Gallery Drawer (Mobile Bottom-Sheet & Desktop Centered) */
.modal-backdrop-smooth {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop-smooth.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog-smooth {
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  background: #141010;
  border-radius: 28px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
  border: 1px solid #2A2222;
  transform: scale(0.96) translateY(12px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-out;
}

.modal-backdrop-smooth.is-open .modal-dialog-smooth {
  transform: scale(1) translateY(0);
  opacity: 1;
}

@media (max-width: 640px) {
  .modal-backdrop-smooth {
    align-items: flex-end;
    padding: 0;
  }

  .modal-dialog-smooth {
    max-height: 92vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    transform: translateY(100%);
  }

  .modal-backdrop-smooth.is-open .modal-dialog-smooth {
    transform: translateY(0);
  }
}

/* Gallery Photo Active Viewer & Thumbnail Strips */
.gallery-thumb-btn {
  border: 2px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-thumb-btn.is-active {
  border-color: #FF1A1A;
  box-shadow: 0 0 0 2px rgba(255, 26, 26, 0.3);
}

.vehicle-img-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1D1717;
  color: #9E9494;
  user-select: none;
}

/* Spring Sliding Pill Navigation (Framer Motion layoutId Spring Physics) */
.main-nav-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 9999px;
  background-color: rgba(29, 23, 23, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.04);
}

.nav-sliding-pill {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 9999px;
  background-color: #FF1A1A;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease, background-color 0.3s ease;
  opacity: 0;
  will-change: transform, width;
}

.nav-tab-item {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  color: #B8AFAF;
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-tab-item:hover {
  color: #F7F4F4;
}

.nav-tab-item.active {
  color: #060404;
  font-weight: 900;
}

/* Full-Bleed Hero Stage (Edge-to-Edge Background, StudioX Style) */
.hero-stage-fullbleed {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background-color: transparent;
}

@media (max-width: 767px) {
  .hero-stage-fullbleed {
    min-height: calc(100dvh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }
}

.portal-action-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-action-btn.active {
  box-shadow: 0 8px 24px -4px rgba(255, 26, 26, 0.4);
}

/* Switcher Pill in Hero */
.portal-switch-pill {
  color: #B8AFAF;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.portal-switch-pill:hover {
  color: #F7F4F4;
}

.portal-switch-pill.active {
  background-color: #E00000;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(255, 26, 26, 0.3);
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(20, 16, 16, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

.mobile-nav-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  border-radius: 10px;
  color: #9E9494;
  transition: all 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.mobile-nav-btn.active {
  color: #E00000;
  font-weight: 800;
}

.mobile-nav-btn.active svg {
  stroke-width: 2.5;
  color: #E00000;
}

.mobile-nav-btn span {
  font-size: 10px;
  margin-top: 2px;
  line-height: 1;
}
