/* ============================================
   Wildflower Nutrition — Custom Styles
   ============================================ */

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Hero Background --- */
.hero-bg {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 25%, #047857 50%, #059669 75%, #34d399 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(52, 211, 153, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(110, 231, 183, 0.1) 0%, transparent 50%);
}

/* --- Tags --- */
.tag-emerald {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 95, 70, 0.08);
  color: #065f46;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(6, 95, 70, 0.12);
}

.tag-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #065f46;
  color: #fefdf8;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 12px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.25);
}

.btn-primary:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 78, 59, 0.35);
  color: #fefdf8;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fefdf8;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 12px 28px;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: #fefdf8;
}

/* --- Inputs --- */
.input-field {
  background: #fefdf8;
  border: 1.5px solid #d1fae5;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #064e3b;
  transition: all 0.2s ease;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.input-field::placeholder {
  color: #94a3b8;
}

.input-field:hover {
  border-color: #6ee7b7;
}

.input-field:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #059669;
  border-radius: 1px;
  transition: width 0.25s ease;
}

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

.nav-link:hover {
  color: #059669 !important;
}

.mobile-nav-link {
  position: relative;
  padding-left: 0;
  border-radius: 8px;
}

.mobile-nav-link:active {
  background: rgba(6, 95, 70, 0.06);
}

/* --- Header States --- */
#site-header {
  background: transparent;
}

#site-header.scrolled {
  background: rgba(254, 253, 248, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.06), 0 4px 20px rgba(6, 95, 70, 0.04);
}

#site-header.scrolled .nav-link {
  color: rgba(6, 78, 59, 0.7);
}

#site-header.scrolled .nav-link:hover {
  color: #059669;
}

#site-header.scrolled .btn-primary {
  background: #065f46;
  color: #fefdf8;
}

/* --- Product Cards --- */
.card-product {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 8px;
  transition: all 0.3s ease;
}

.card-product:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up {
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Enhanced states — applied by JS only */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal-up {
    opacity: 0;
    transform: translateY(24px);
  }
  .js-reveal .reveal-left {
    opacity: 0;
    transform: translateX(-24px);
  }
  .js-reveal .reveal-right {
    opacity: 0;
    transform: translateX(24px);
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card-product:hover {
    transform: none;
  }
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

/* --- Focus visible --- */
*:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Selection --- */
::selection {
  background: rgba(5, 150, 105, 0.2);
  color: #064e3b;
}

/* --- Mobile menu animation --- */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Subtle floating animation for hero decorations --- */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(10px) rotate(-3deg); }
}

.hero-bg .absolute.top-20 {
  animation: float 6s ease-in-out infinite;
}

.hero-bg .absolute.bottom-32 {
  animation: float-reverse 7s ease-in-out infinite;
}
