/* ═══════════════════════════════════════════════════════════
   MAYNARD NUTRITION — Custom Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: #020617;
  color: #e2e8f0;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ── Selection ── */
::selection { background: rgba(20, 184, 166, 0.3); color: #f0fdfa; }

/* ── Nav active state ── */
.nav-link.active {
  color: #5eead4 !important;
}

/* ── Reveal animations ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ── Header scrolled state ── */
#site-header.scrolled {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  box-shadow: 0 1px 0 rgba(20, 184, 166, 0.05);
}

/* ── Mobile menu open ── */
#mobile-nav.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* ── Gradient text utility ── */
.gradient-text {
  background: linear-gradient(135deg, #5eead4, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Gold accent line ── */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #14b8a6, #fbbf24);
  border-radius: 2px;
}

/* ── Product card shimmer on hover ── */
.group:hover .group-hover\:scale-105 {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Input focus ring animation ── */
input:focus, select:focus, textarea:focus {
  animation: none;
}

/* ── Custom select arrow ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

/* ── Button press effect ── */
button:active, a:active {
  transform: scale(0.98);
  transition: transform 0.1s;
}

/* ── 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;
  }
}
