:root {
  --color-primary: #3D2914;
  --color-secondary: #5C4020;
  --color-accent: #FF8C00;
  --color-bg-light: #FFFBF0;
  --color-bg-alt: #FEF0C7;
}

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

body {
  font-family: 'Space Grotesk', 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%;
  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; }

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

/* =========================================
   DECORATIVE BACKGROUNDS
   ========================================= */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(255,140,0,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

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

.decor-mesh {
  background-image: radial-gradient(ellipse at 20% 50%, rgba(255,140,0,0.12) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(61,41,20,0.08) 0%, transparent 60%);
}

/* Intensity modifiers */
.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 1; }
.decor-bold { opacity: 1.5; }

/* =========================================
   ACCENT / GLOW ELEMENTS
   ========================================= */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,140,0,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(61,41,20,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,140,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(255,140,0,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(255,140,0,0.10) 0%, transparent 60%);
  pointer-events: none;
}

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

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

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

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

.form-input:focus {
  border-color: #FF8C00;
  box-shadow: 0 0 0 3px rgba(255,140,0,0.12);
}

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

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

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

/* =========================================
   PRODUCT BADGE
   ========================================= */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  background: rgba(255,140,0,0.12);
  color: #FF8C00;
  border: 1px solid rgba(255,140,0,0.25);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* =========================================
   TESTIMONIALS — QUOTES STYLE
   ========================================= */
.testimonial-quote::before {
  content: '\201C';
  font-size: 5rem;
  line-height: 0;
  color: rgba(255,140,0,0.2);
  display: block;
  margin-bottom: -1.5rem;
  font-family: Georgia, serif;
}

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

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

/* =========================================
   HERO GRADIENT
   ========================================= */
.hero-bg {
  background: linear-gradient(135deg, #FFFBF0 0%, #FEF0C7 60%, #fff8e1 100%);
}

/* =========================================
   ACCENT UNDERLINE
   ========================================= */
.accent-underline {
  position: relative;
  display: inline-block;
}

.accent-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #FF8C00;
  border-radius: 9999px;
}

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

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255,140,0,0.15);
}

/* =========================================
   PROGRESS / STEP INDICATOR
   ========================================= */
.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: #FF8C00;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

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