/* ===========================
   MHD Detailing — Hero
   =========================== */

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

:root {
  --green: #78E758;
  --dark: #040404;
  --white: #ffffff;
  --font: 'Aldrich', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  font-family: var(--font);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 34px;
  z-index: 100;
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  opacity: 0;
}

.nav__logo img {
  display: block;
  height: 30px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(247, 254, 248, 0.19);
  border-radius: 9999px;
  padding: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
}

.nav__menu-item {
  font-family: var(--font);
  font-size: clamp(13px, 1.1vw, 17px);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  padding: 8px 17px 5px;
  border-radius: 9999px;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
  line-height: 1.4;
}

.nav__menu-item--active {
  background: var(--green);
  color: var(--dark);
}

.nav__menu-item:hover:not(.nav__menu-item--active) {
  background: rgba(255, 255, 255, 0.08);
}

.nav__cta {
  font-family: var(--font);
  font-size: clamp(13px, 1.1vw, 17px);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark);
  background: var(--white);
  padding: 14px 21px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  line-height: 1.4;
  transition: background 0.3s, transform 0.2s;
  opacity: 0;
}

.nav__cta:hover {
  background: var(--green);
  transform: scale(1.03);
}

/* ---- Burger button (mobile) ---- */

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
  opacity: 0;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__burger.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__burger.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---- Mobile overlay menu ---- */

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 4, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 105;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.nav__overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav__overlay-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.nav__overlay-item {
  font-family: var(--font);
  font-size: 28px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav__overlay-item:hover {
  color: var(--green);
}

.nav__overlay-cta {
  font-family: var(--font);
  font-size: 18px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark);
  background: var(--green);
  padding: 14px 32px 10px;
  border-radius: 9999px;
  margin-top: 16px;
  letter-spacing: 0.03em;
  transition: background 0.3s;
}

.nav__overlay-cta:hover {
  background: var(--white);
}

/* ---- Hero section ---- */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Green radial glow */
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 55%,
    rgba(120, 231, 88, 0.18) 0%,
    transparent 70%
  );
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

/* Stage — stacked container for logo + car (same-size PNGs) */
.hero__stage {
  position: relative;
  width: 90%;
  max-width: 1400px;
  z-index: 2;
}

.hero__logo {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

.hero__car {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  opacity: 0;
  will-change: transform, opacity;
}

/* Glare overlay — foreground parallax element */
.hero__car-glare {
  position: absolute;
  top: 5%;
  left: 10%;
  width: 80%;
  height: 50%;
  background: radial-gradient(
    ellipse at 40% 30%,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 70%
  );
  z-index: 3;
  pointer-events: none;
  will-change: transform;
}

/* Dark gradient below car to fade the reflection */
.hero__car-shadow {
  position: absolute;
  bottom: -5%;
  left: 0;
  width: 100%;
  height: 55%;
  background: radial-gradient(
    ellipse 100% 100% at 50% 100%,
    var(--dark) 0%,
    transparent 70%
  );
  z-index: 3;
  pointer-events: none;
}

/* ---- Text block ---- */

.hero__text {
  position: relative;
  z-index: 4;
  text-align: center;
  margin-top: -4%;
  opacity: 0;
}

.hero__title {
  font-family: var(--font);
  font-size: clamp(18px, 2.4vw, 38px);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.hero__subtitle {
  font-family: var(--font);
  font-size: clamp(15px, 1.8vw, 28px);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 14px;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* ---- Scroll indicator ---- */

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  cursor: pointer;
}

.hero__scroll svg {
  display: block;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .nav {
    padding: 16px 20px;
  }

  .nav__menu {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .hero__stage {
    width: 88%;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 14px 16px;
  }

  .nav__logo img {
    height: 22px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__stage {
    width: 92%;
  }

  .hero__text {
    margin-top: -6%;
    padding: 0 20px;
  }

  .hero__title {
    font-size: 20px;
    letter-spacing: 0.03em;
  }

  .hero__subtitle {
    font-size: 14px;
    margin-top: 8px;
  }

  .hero__scroll {
    bottom: 24px;
  }
}
