@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Strict Monochrome Visual Design Tokens */
:root {
  --color-pure-white: #FFFFFF;
  --color-matte-obsidian: #000000;
  --color-charcoal-graphite: #0A0A0A;
  --color-soft-platinum: #F8F9FA;
  --color-border-light: #E5E5E5;
  --color-border-dark: #262626;
  
  --font-header: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Base Styles */
html {
  font-family: var(--font-body);
  scroll-behavior: smooth;
  background-color: var(--color-pure-white);
  overflow-x: hidden;
}

body {
  color: var(--color-matte-obsidian);
  background-color: var(--color-pure-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-matte-obsidian);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-matte-obsidian);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: #3F3F46;
}

/* Lenis Smooth Scroll Configuration */
html.lenis, html.lenis body {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis-stopped {
  overflow: hidden;
}

/* Dynamic Navigation Drawer (Hardware-Accelerated, Non-Sticky Overlay) */
.mobile-nav-drawer-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 420px;
  background-color: var(--color-matte-obsidian);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  border-right: 1px solid var(--color-border-dark);
}

.mobile-nav-drawer-panel.open {
  transform: translateX(0);
}

/* Form input border animation */
.input-focus-grow {
  position: relative;
}

.input-focus-grow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-matte-obsidian);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-focus-grow:focus-within::after {
  width: 100%;
}

/* Interactive Tabs highlight elements */
.inspect-tab-btn {
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspect-tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-pure-white);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspect-tab-btn.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.inspect-tab-content-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspect-tab-content-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Razor-thin outline card animation */
.premium-outlined-card {
  border: 1px solid var(--color-border-light);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-outlined-card:hover {
  border-color: var(--color-matte-obsidian);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

.premium-outlined-card-dark {
  border: 1px solid var(--color-border-dark);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-outlined-card-dark:hover {
  border-color: var(--color-pure-white);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* Elegant line underline expansion for links */
.luxury-underline-effect {
  position: relative;
  padding-bottom: 2px;
}

.luxury-underline-effect::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transform-origin: bottom right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-underline-effect:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Sliding hover triggers for primary actions */
.btn-monochrome-slider {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-monochrome-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #27272A;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn-monochrome-slider:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.btn-monochrome-slider-invert {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-monochrome-slider-invert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-pure-white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn-monochrome-slider-invert:hover {
  color: var(--color-matte-obsidian);
  border-color: var(--color-pure-white);
}

.btn-monochrome-slider-invert:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Vertical Timeline Draw Classes */
.timeline-track-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--color-border-light);
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%; /* driven by ScrollTrigger */
  background-color: var(--color-matte-obsidian);
  z-index: 1;
}

@media (max-width: 1023px) {
  .timeline-track-bar {
    left: 24px;
    transform: none;
  }
}

/* Accordion expand definitions */
.accordion-drawer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding-bottom 0.4s ease;
}

.accordion-drawer-item.open .accordion-drawer-content {
  max-height: 500px;
}

.accordion-drawer-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-drawer-item.open .accordion-drawer-icon {
  transform: rotate(45deg);
}

/* Carousel translations */
.carousel-track-wrapper {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium Showroom Image Blend Mask */
.hero-showroom-blend {
  mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.showcase-showroom-blend {
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* Master Showroom Backdrop Component */
.showroom-delivery-bay {
  background: linear-gradient(to bottom, #F4F4F6 0%, #FFFFFF 65%, #E5E5E5 65%, #F4F4F5 100%);
  border: 1px solid #E5E5E5;
  position: relative;
  overflow: hidden;
}

.showroom-delivery-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  border-top: 1px solid rgba(0,0,0,0.03);
  pointer-events: none;
  z-index: 1;
}

.showroom-delivery-shadow {
  position: absolute;
  bottom: 8%;
  left: 10%;
  right: 10%;
  height: 10%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, transparent 80%);
  filter: blur(5px);
  z-index: 2;
  pointer-events: none;
}

.showroom-delivery-car {
  mix-blend-mode: multiply;
  filter: brightness(1.02) contrast(1.02);
  z-index: 3;
  position: relative;
}
