/* Ticker Bar */
.ticker-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2rem;
  background: #ffffff;
  z-index: 1100;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 24s linear infinite;
}

.ticker-item {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  padding-right: 6rem;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Custom Cursor — only on non-touch devices */
@media (pointer: fine) {

  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.3s ease;
  mix-blend-mode: difference;
  opacity: 0;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.3s ease;
  mix-blend-mode: difference;
  opacity: 0;
}

.cursor-dot.hovered {
  width: 6px;
  height: 6px;
}

.cursor-ring.hovered {
  width: 52px;
  height: 52px;
}

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

:root {
  --color-black: #000000;
  --color-white: #ffffff;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  font-size: 16px;
  /* Fluid typography scaling base */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: rgb(202, 193, 113);
  color: var(--color-black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

/* Typography Utilities */
.fluid-h1 {

  line-height: 1.1;
  text-transform: uppercase;
  font-weight: 400;
}

.fluid-text {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  max-width: 800px;
}

/* Header & Navigation */
.main-header {
  position: fixed;
  top: 2rem;
  left: 0;
  width: 100%;
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
  color: var(--color-white);
  transition: color 0.3s ease;
}

.main-header.nav-light {
  color: var(--color-black);
}

.header-glass {
  position: fixed;
  top: 2rem;
  left: 0;
  width: 100%;
  height: 7.25rem;
  background: transparent;
  backdrop-filter: none;
  isolation: isolate;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  z-index: 999;
  pointer-events: none;
}

.header-glass.scrolled {
  background: rgba(128, 128, 128, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

/* Enable clicks inside the header */
.main-header>* {
  pointer-events: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1100;
  /* above mobile nav background */
}

.main-nav .nav-list {
  display: flex;
  gap: 3rem;
}

.nav-item {
  font-size: 1rem;
  font-weight: 500;
  text-transform: capitalize;
  transition: opacity 0.3s ease;
}

.nav-item:hover {
  opacity: 0.5;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 20px;
  position: relative;
  z-index: 1100;
  color: inherit;
}

.menu-toggle .line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: all 0.3s ease;
}

.menu-toggle .line:first-child {
  top: 0;
}

.menu-toggle .line:last-child {
  bottom: 0;
}

.menu-toggle.active .line:first-child {
  top: 9px;
  transform: rotate(45deg);
}

.menu-toggle.active .line:last-child {
  bottom: 9px;
  transform: rotate(-45deg);
}

/* Showroom Example Content Sections */
.content-section {
  min-height: 50vh;
  padding: 8rem 4rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bg-white {
  background-color: var(--color-white);
  color: var(--color-black);
}

.bg-black {
  background-color: var(--color-black);
  color: var(--color-white);
}

.hero-section {
  align-items: center;
  text-align: center;
}

.spacing-top {
  margin-top: 3rem;
}

/* Car Section — Full Bleed */
.car-section-fullbleed {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.car-fullbleed-img {
  display: block;
  width: 100%;
  height: auto;
}

.car-desktop {
  position: relative;
}

.car-mobile {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

@media (max-width: 768px) {
  .car-section-fullbleed {
    height: 130vw;
  }

  .car-desktop {
    display: none;
  }

  .car-mobile {
    display: block;
  }
}

.car-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 28%),
    linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.05) 25%, transparent 55%);
  display: flex;
  align-items: flex-end;
}

.car-overlay-content {
  padding: 3rem;
  color: #fff;
}

.car-label {
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.car-title {
  font-size: clamp(1.8rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}

@media (max-width: 768px) {
  .car-overlay-content {
    padding: 2rem 1.5rem;
  }

  .car-section-fullbleed {
    height: 130vw;
  }
}

/* Shared Main Padding */
.main-content {
  padding-top: 10rem;
  min-height: 80vh;
}

.page-container {
  padding: 0 4rem 4rem;
}

/* Footer */
.main-footer {
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
  mix-blend-mode: normal;
}

.bg-black+.main-footer {
  background-color: var(--color-black);
  color: var(--color-white);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .main-header {
    padding: 1.5rem;
  }

  .header-glass {
    height: 5.25rem;
  }

  .content-section {
    padding: 8rem 1.5rem 4rem;
  }

  .page-container {
    padding: 0 1.5rem 4rem;
  }

  .main-footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .menu-toggle {
    display: block;
    pointer-events: auto;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1050;
    isolation: isolate;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .main-nav .nav-list {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .nav-item {
    font-size: 2.5rem;
    mix-blend-mode: difference;
    color: var(--color-white);
  }
}

/* When mobile menu is open, we need to disable mix-blend-mode 
   on the header so it layers normally over the black overlay. 
   But wait, mix-blend-mode affects its children. So if we swap it to normal,
   and we set color to white, the logo and hamburger will be white on black! Perfect. */
body.menu-open {
  overflow: hidden;
  /* disable scroll */
}

body.menu-open .header-glass {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

body.menu-open .main-header {
  mix-blend-mode: normal;
  color: var(--color-white);
}