:root {
  --color-primary: #3D4A3D;
  --color-secondary: #566556;
  --color-accent: #8FBC8F;
  --color-bg-light: #F5FAF5;
  --color-bg-alt: #E8F5E8;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
}

/* =============================================
   BUTTON FIXES
   ============================================= */
button,
.btn,
[class*="btn-"],
a[href="#order_form"] {
  white-space: nowrap;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

form button[type="submit"] {
  white-space: normal;
  width: 100%;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

html.js-anim html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js-anim [data-animate][data-delay="100"] { transition-delay: 0.1s; }
html.js-anim [data-animate][data-delay="200"] { transition-delay: 0.2s; }
html.js-anim [data-animate][data-delay="300"] { transition-delay: 0.3s; }
html.js-anim [data-animate][data-delay="400"] { transition-delay: 0.4s; }
html.js-anim [data-animate][data-delay="500"] { transition-delay: 0.5s; }
html.js-anim [data-animate][data-delay="600"] { transition-delay: 0.6s; }

/* =============================================
   HEADER TRANSPARENCY
   ============================================= */
#site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.07);
}

#site-header.scrolled .header-logo-text {
  color: #3D4A3D !important;
}

#site-header.scrolled .header-nav-link {
  color: #4B5563 !important;
}

#site-header.scrolled .header-nav-link:hover {
  color: #3D4A3D !important;
}

#site-header.scrolled #mobile-menu-btn {
  color: #3D4A3D !important;
}

/* =============================================
   ACCORDION
   ============================================= */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
}

.faq-answer.open {
  max-height: 600px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* =============================================
   DECORATIVE ELEMENTS
   ============================================= */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(61, 74, 61, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(61, 74, 61, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 74, 61, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(143, 188, 143, 0.05) 10px,
    rgba(143, 188, 143, 0.05) 11px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(at 20% 30%, rgba(143, 188, 143, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(61, 74, 61, 0.1) 0px, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(143, 188, 143, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(61, 74, 61, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(143, 188, 143, 0.15), transparent);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(315deg, rgba(143, 188, 143, 0.1), transparent);
  pointer-events: none;
}

.decor-glow-element {
  position: relative;
}

.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, rgba(143, 188, 143, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 0.75; }
.decor-bold { opacity: 1; }

/* =============================================
   STAR RATING
   ============================================= */
.star-rating {
  display: inline-flex;
  gap: 2px;
}

.star-rating .star {
  color: #F59E0B;
  font-size: 1rem;
}

/* =============================================
   PRODUCT IMAGE GLOW
   ============================================= */
.product-glow {
  filter: drop-shadow(0 0 30px rgba(143, 188, 143, 0.3));
}

/* =============================================
   ORDER FORM
   ============================================= */
.order-form-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 40px rgba(61, 74, 61, 0.12);
}

/* =============================================
   FORM INPUTS
   ============================================= */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  color: #111827;
  background: #FAFAFA;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #8FBC8F;
  box-shadow: 0 0 0 3px rgba(143, 188, 143, 0.15);
  background: #fff;
}

.form-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error-msg {
  font-size: 0.75rem;
  color: #EF4444;
  margin-top: 0.25rem;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

/* =============================================
   MISC UTILITIES
   ============================================= */
.rotate-180 {
  transform: rotate(180deg);
}

.text-accent {
  color: #8FBC8F;
}

.bg-accent {
  background-color: #8FBC8F;
}

.border-accent {
  border-color: #8FBC8F;
}

.ring-accent {
  --tw-ring-color: #8FBC8F;
}

/* =============================================
   SECTION BG HELPERS
   ============================================= */
.bg-light { background-color: #F5FAF5; }
.bg-alt { background-color: #E8F5E8; }

/* =============================================
   BADGE
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* =============================================
   INGREDIENT CARD HOVER
   ============================================= */
.ingredient-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(61, 74, 61, 0.12);
}

/* =============================================
   TESTIMONIAL QUOTE
   ============================================= */
.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: #8FBC8F;
  opacity: 0.3;
  font-family: Georgia, serif;
}

/* =============================================
   PROGRESS BAR
   ============================================= */
.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #8FBC8F, #3D4A3D);
  transition: width 1s ease-out;
}

/* =============================================
   NEWSLETTER FORM
   ============================================= */
#newsletter-form button {
  white-space: normal;
  width: 100%;
  display: flex;
}

/* =============================================
   MOBILE MENU ANIMATION
   ============================================= */
#mobile-menu {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

/* =============================================
   HERO GRADIENT OVERLAY
   ============================================= */
.hero-gradient {
  background: linear-gradient(
    135deg,
    rgba(61, 74, 61, 0.92) 0%,
    rgba(86, 101, 86, 0.80) 50%,
    rgba(61, 74, 61, 0.75) 100%
  );
}