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

/* ─── 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-delay="100"] { transition-delay: 0.1s; }
html.js-anim [data-animate-delay="200"] { transition-delay: 0.2s; }
html.js-anim [data-animate-delay="300"] { transition-delay: 0.3s; }
html.js-anim [data-animate-delay="400"] { transition-delay: 0.4s; }
html.js-anim [data-animate-delay="500"] { transition-delay: 0.5s; }
html.js-anim [data-animate-delay="600"] { transition-delay: 0.6s; }

/* ─── Header scroll state ───────────────────────────────── */
#site-header.scrolled {
  background-color: rgba(27, 67, 50, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

#site-header.scrolled #logo-text {
  color: #ffffff;
}

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

/* ─── Decorative Patterns ───────────────────────────────── */
.decor-grid-dots {
  background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    currentColor 0,
    currentColor 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 12px 12px;
}

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, var(--color-accent) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, var(--color-secondary) 0%, transparent 60%);
}

/* Intensity modifiers */
.decor-subtle  { color: rgba(64, 192, 87, 0.06); opacity: 0.5; }
.decor-moderate { color: rgba(64, 192, 87, 0.10); opacity: 0.8; }
.decor-bold    { color: rgba(64, 192, 87, 0.20); }

/* ─── 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: radial-gradient(circle, rgba(64, 192, 87, 0.25), transparent 70%);
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(45, 106, 79, 0.20), transparent 70%);
  bottom: -80px;
  left: -60px;
}

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

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at bottom left, rgba(64, 192, 87, 0.15), transparent 70%);
  pointer-events: none;
}

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

/* ─── Card styles ────────────────────────────────────────── */
.card-base {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition: box-shadow 0.2s ease;
}

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

/* ─── Form inputs ────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 9999px;
  border: 1.5px solid #e5e7eb;
  font-family: 'Urbanist', 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;
  appearance: none;
  -webkit-appearance: none;
}

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

.form-input::placeholder {
  color: #9ca3af;
}

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

/* ─── Stars ──────────────────────────────────────────────── */
.star-filled  { color: #f59e0b; }
.star-empty   { color: #d1d5db; }

/* ─── Pill badge ─────────────────────────────────────────── */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ─── Testimonial rating ─────────────────────────────────── */
.stars-row {
  display: flex;
  gap: 0.15rem;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-card {
  background: #F0FDF4;
  border-radius: 1.5rem;
  padding: 1.5rem;
}

/* ─── Progress / steps ───────────────────────────────────── */
.step-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--color-accent), var(--color-secondary));
  margin: 0 0.5rem;
  border-radius: 9999px;
}

/* ─── Section hero gradient ──────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 60%, #1e5c3e 100%);
}

/* ─── Newsletter success ─────────────────────────────────── */
.newsletter-success {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: #40C057;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ─── Order form field error messages ────────────────────── */
.field-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  padding-left: 1rem;
  display: none;
}

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

/* ─── Loading spinner ────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 9999px;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ─── Responsive image helpers ───────────────────────────── */
img {
  max-width: 100%;
  height: auto;
}

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

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

/* ─── Ingredient card hover ──────────────────────────────── */
.ingredient-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* ─── Scrollbar (light) ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #2D6A4F; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #1B4332; }