: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: 'Urbanist', system-ui, sans-serif;
}

/* =========================================
   Button / CTA 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 — gated behind js-anim
   ========================================= */
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);
}

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

/* =========================================
   Decorative backgrounds
   ========================================= */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(64,192,87,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(64,192,87,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64,192,87,0.08) 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) 11px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(at 20% 50%, rgba(64,192,87,0.12) 0px, transparent 50%),
    radial-gradient(at 80% 20%, rgba(27,67,50,0.1) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(45,106,79,0.08) 0px, transparent 50%);
}

/* Opacity modifiers */
.decor-subtle { opacity: 0.4; }
.decor-moderate { opacity: 0.7; }
.decor-bold { opacity: 1; }

/* Blurred gradient blobs */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: rgba(64,192,87,0.15);
  top: -100px;
  right: -100px;
}
.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: rgba(27,67,50,0.12);
  bottom: -80px;
  left: -80px;
}

/* Corner accents */
.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, rgba(64,192,87,0.2), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at bottom left, rgba(27,67,50,0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

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

/* =========================================
   Order form
   ========================================= */
.order-form-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d1fae5;
  border-radius: 0.5rem;
  font-family: 'Urbanist', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.order-form-field:focus {
  border-color: #40C057;
}

.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 accordion
   ========================================= */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

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

/* =========================================
   Product badge
   ========================================= */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #1B4332, #2D6A4F);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =========================================
   Trust bar
   ========================================= */
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #374151;
}

/* =========================================
   Testimonial quote marks
   ========================================= */
.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;
}

/* =========================================
   Ingredient card
   ========================================= */
.ingredient-card {
  background: #F0FDF4;
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}

.ingredient-card:hover {
  box-shadow: 0 4px 12px rgba(64,192,87,0.15);
}

/* =========================================
   Notification toast
   ========================================= */
#form-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1B4332;
  color: #fff;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.4s ease;
  pointer-events: none;
  white-space: nowrap;
}

#form-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* =========================================
   Responsive helpers
   ========================================= */
@media (max-width: 640px) {
  .decor-gradient-blur::before,
  .decor-gradient-blur::after {
    width: 200px;
    height: 200px;
  }
}