/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', system-ui, sans-serif; overflow-x: hidden; }

/* ─── HERO ─── */
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { will-change: transform; }
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(9, 16, 32, 0.55) 0%,
    rgba(9, 16, 32, 0.40) 40%,
    rgba(9, 16, 32, 0.75) 100%
  );
}

/* ─── HERO ENTRANCE ANIMATIONS ─── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroScale {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero-bg img {
  animation: heroScale 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-eyebrow {
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.hero-title {
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
.hero-subtitle {
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}
.hero-ctas {
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

/* ─── SCROLL DOT ─── */
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
.animate-scroll-dot {
  animation: scrollDot 1.4s ease-in-out infinite;
}

/* ─── NAV SCROLLED STATE ─── */
#nav.scrolled {
  background: rgba(9, 16, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
#nav.scrolled .text-white/70 { color: rgba(255,255,255,0.7) !important; }

/* ─── MOBILE MENU ─── */
#mobileMenu.open { opacity: 1 !important; pointer-events: all !important; }
#mobileMenu.closed { opacity: 0 !important; pointer-events: none !important; }
.mobile-link { transition: opacity 0.3s; }

/* ─── REVEAL (scroll-driven, progressive enhancement) ─── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.product-card:nth-child(1) { transition-delay: 0s; }
.product-card:nth-child(2) { transition-delay: 0.1s; }
.product-card:nth-child(3) { transition-delay: 0.2s; }
.product-card:nth-child(4) { transition-delay: 0.3s; }

/* ─── PRODUCT CARDS ─── */
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(212, 168, 67, 0);
  transition: border-color 0.4s;
  pointer-events: none;
}
.product-card:hover::after {
  border-color: rgba(212, 168, 67, 0.3);
}

/* ─── SELECTION ─── */
::selection { background: rgba(212, 168, 67, 0.3); color: #fff; }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── FOCUS VISIBLE ─── */
a:focus-visible, button:focus-visible {
  outline: 2px solid #d4a843;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .hero-title { font-size: 2.75rem; }
}
