:root {
  --color-primary: #2F4F2F;
  --color-secondary: #4A6B4A;
  --color-accent: #FFB300;
  --color-bg-light: #FFFBEB;
  --color-bg-alt: #FEF3C7;
}

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

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

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;
}

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);
}

.rotate-180 {
  transform: rotate(180deg);
}

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(47,79,47,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(47,79,47,0.04) 10px,
    rgba(47,79,47,0.04) 11px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(at 20% 50%, rgba(255,179,0,0.08) 0px, transparent 50%),
    radial-gradient(at 80% 20%, rgba(47,79,47,0.08) 0px, transparent 50%);
}

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

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,179,0,0.15), transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

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

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

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

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

/* Star rating */
.stars {
  color: #FFB300;
  letter-spacing: 0.05em;
}

/* Order form styles */
.order-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.order-form-input:focus {
  border-color: #2F4F2F;
  box-shadow: 0 0 0 3px rgba(47,79,47,0.1);
}

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

.form-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  padding-left: 1rem;
}

/* Slider / testimonials */
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

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

/* FAQ */
.faq-answer {
  display: none;
}

.faq-answer.open {
  display: block;
}

/* Badge */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #FFB300;
  color: #2F4F2F;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Pulse animation for CTA */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(47,79,47,0.3); }
  70% { box-shadow: 0 0 0 12px rgba(47,79,47,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,79,47,0); }
}

.cta-pulse {
  animation: pulse-ring 2.5s ease-out infinite;
}

/* Guarantee badge */
.guarantee-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFBEB;
  border: 1.5px solid #FFB300;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2F4F2F;
}

/* 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 32px rgba(47,79,47,0.12);
}

/* Section bg helpers */
.bg-brand-light { background-color: #FFFBEB; }
.bg-brand-alt { background-color: #FEF3C7; }
.bg-brand-primary { background-color: #2F4F2F; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #4A6B4A; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2F4F2F; }

/* Image aspect ratio helpers */
.aspect-product { aspect-ratio: 1 / 1; }
.aspect-wide { aspect-ratio: 16 / 9; }

/* Mobile menu transition */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

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