:root {
  --color-primary: #1B4332;
  --color-secondary: #2D6A4F;
  --color-accent: #40C057;
  --color-bg-light: #F0FDF4;
  --color-bg-alt: #DCFCE7;
}

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

body {
  font-family: 'Work Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* =====================
   BUTTON BASE 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%;
  display: flex;
}

/* =====================
   SCROLL ANIMATIONS
   ===================== */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateX(-2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

html.js-anim html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: translateX(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; }

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

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

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(27,67,50,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,67,50,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(64,192,87,0.05) 10px,
    rgba(64,192,87,0.05) 20px
  );
}

.decor-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(64,192,87,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(27,67,50,0.08) 0%, transparent 60%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(64,192,87,0.15) 0%, transparent 70%);
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  left: -4rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(27,67,50,0.12) 0%, transparent 70%);
  border-radius: 9999px;
  filter: blur(50px);
  pointer-events: none;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 12rem;
  height: 12rem;
  background: linear-gradient(225deg, rgba(64,192,87,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12rem;
  height: 12rem;
  background: linear-gradient(45deg, rgba(27,67,50,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.decor-glow-element {
  position: absolute;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(64,192,87,0.2) 0%, transparent 70%);
  border-radius: 9999px;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

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

/* =====================
   STAR RATING
   ===================== */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

/* =====================
   TESTIMONIAL SLIDER
   ===================== */
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  flex: 0 0 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 33.3333%;
  }
}

/* =====================
   ORDER FORM
   ===================== */
.order-form-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 0.925rem;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.order-form-field:focus {
  border-color: #40C057;
  box-shadow: 0 0 0 3px rgba(64,192,87,0.15);
}

.order-form-field.error {
  border-color: #ef4444;
}

.field-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: none;
}

.field-error.visible {
  display: block;
}

/* =====================
   FAQ CARDS
   ===================== */
.faq-card {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.faq-card:hover {
  box-shadow: 0 4px 12px rgba(27,67,50,0.08);
}

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

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(27,67,50,0.12);
}

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

#mobile-menu.menu-open {
  display: block;
}

/* =====================
   HERO GRADIENT
   ===================== */
.hero-gradient {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 50%, #ffffff 100%);
}

/* =====================
   SECTION DIVIDERS
   ===================== */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

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

/* =====================
   BENEFIT ICON BOX
   ===================== */
.benefit-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(64,192,87,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

/* =====================
   PROGRESS BAR (ratings)
   ===================== */
.progress-bar-track {
  background: #e5e7eb;
  border-radius: 9999px;
  height: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--color-accent);
  transition: width 1s ease;
}

/* =====================
   NEWSLETTER FORM FEEDBACK
   ===================== */
.newsletter-success {
  display: none;
  color: #40C057;
  font-size: 0.875rem;
  font-weight: 500;
}

/* =====================
   PRINT
   ===================== */
@media print {
  header, footer, #cookie-consent { display: none !important; }
  main { padding-top: 0 !important; }
}