/* ============================================
   The Healthy Zone — Custom Styles
   Premium Dark Luxury · Midnight + Mint + Gold
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #F0F4F8;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #060F1E;
}
::-webkit-scrollbar-thumb {
  background: #1A3A6B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #305588;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
}

/* --- Eyebrow Label --- */
.eyebrow-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 0.75rem;
}

/* --- Buttons --- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #C9A84C 0%, #B8943F 50%, #A07D30 100%);
  color: #060F1E;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  color: #060F1E;
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #F0F4F8;
  border: 1px solid rgba(100, 223, 223, 0.4);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: #64DFDF;
  background: rgba(100, 223, 223, 0.08);
  color: #64DFDF;
  transform: translateY(-2px);
}

/* --- Badge --- */
.badge-mint {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(100, 223, 223, 0.12);
  border: 1px solid rgba(100, 223, 223, 0.3);
  color: #64DFDF;
  border-radius: 9999px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* --- Card Gold (craft section) --- */
.card-gold {
  background: linear-gradient(160deg, rgba(11, 29, 58, 0.8) 0%, rgba(6, 15, 30, 0.9) 100%);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: all 0.4s ease;
}

.card-gold:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(201, 168, 76, 0.06);
}

/* --- Product Card --- */
.product-card {
  background: rgba(11, 29, 58, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 1rem;
  transition: all 0.4s ease;
}

.product-card:hover {
  border-color: rgba(100, 223, 223, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- Testimonial Card --- */
.testimonial-card {
  background: rgba(11, 29, 58, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-2px);
}

/* --- Input Fields --- */
.input-field {
  font-family: 'Inter', system-ui, sans-serif;
}

.input-field:focus {
  border-color: rgba(201, 168, 76, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1) !important;
}

/* --- Navigation --- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C9A84C;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Mobile Nav Links --- */
.mobile-nav-link {
  position: relative;
}

.mobile-nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: #C9A84C;
  transition: width 0.3s ease;
  margin: 0 auto;
}

.mobile-nav-link:hover::after {
  width: 60%;
}

/* --- Mobile Menu Active State --- */
body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

body.menu-open .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.menu-open .menu-line:nth-child(3) {
  width: 100%;
  transform: rotate(-45deg) translate(4px, -4px);
}

body.menu-open #mobile-menu {
  translate: 0;
}

/* --- Header States --- */
#site-header.scrolled {
  background: rgba(3, 9, 18, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }

  /* Hero animations */
  .hero-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
  }

  h1 {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
  }

  .hero-sub {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
  }

  .hero-ctas {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
  }

  @keyframes heroFadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Always-visible fallback for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-eyebrow, h1, .hero-sub, .hero-ctas {
    opacity: 1;
    animation: none;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .font-display {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}
