: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: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   BUTTON RESETS & 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: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s 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; }

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

/* =========================================
   DECORATIVE ELEMENTS
   ========================================= */

/* Dot pattern */
.decor-grid-dots {
  background-image: radial-gradient(circle, var(--color-primary) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Line grid */
.decor-grid-lines {
  background-image:
    linear-gradient(to right, var(--color-primary) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-primary) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Diagonal stripes */
.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    var(--color-accent),
    var(--color-accent) 1px,
    transparent 1px,
    transparent 20px
  );
}

/* Mesh gradient */
.decor-mesh {
  background: radial-gradient(ellipse at 20% 50%, var(--color-bg-alt) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, var(--color-bg-light) 0%, transparent 60%);
}

/* Gradient blur blobs */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: var(--color-bg-alt);
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: var(--color-bg-light);
  bottom: -80px;
  left: -80px;
}

/* Corner accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, var(--color-bg-alt) 0%, transparent 70%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, var(--color-bg-alt) 0%, transparent 70%);
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

/* Intensity modifiers */
.decor-subtle  { opacity: 0.05; }
.decor-moderate { opacity: 0.10; }
.decor-bold    { opacity: 0.20; }

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

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

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

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

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

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

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

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

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

/* =========================================
   ORDER FORM
   ========================================= */
.order-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(27, 67, 50, 0.12);
  overflow: hidden;
}

.order-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.order-success.visible {
  display: block;
}

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

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

.stars svg {
  fill: #f59e0b;
  color: #f59e0b;
}

/* =========================================
   INGREDIENT CARDS
   ========================================= */
.ingredient-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ingredient-card:hover {
  transform: translateY(-4px);
}

/* =========================================
   HEADER SCROLL EFFECT
   ========================================= */
header.scrolled {
  box-shadow: 0 2px 20px rgba(27, 67, 50, 0.08);
}

/* =========================================
   MOBILE MENU ANIMATION
   ========================================= */
#mobile-menu {
  transition: opacity 0.2s ease;
}

#mobile-menu.visible {
  display: block;
  animation: slideDown 0.2s ease-out;
}

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

/* =========================================
   TOAST NOTIFICATION
   ========================================= */
#toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}

#toast.success {
  background: #1B4332;
  color: white;
}

#toast.error {
  background: #ef4444;
  color: white;
}

/* =========================================
   TESTIMONIAL QUOTES
   ========================================= */
.quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: #DCFCE7;
  font-family: Georgia, serif;
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* =========================================
   BADGE
   ========================================= */
.badge-bestseller {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =========================================
   RESPONSIVE FIXES
   ========================================= */
@media (max-width: 640px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group a {
    width: 100%;
    justify-content: center;
  }
}

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