:root {
  --color-primary: #1B4332;
  --color-secondary: #2D6A4F;
  --color-accent: #40C057;
  --bg-light: #F0FDF4;
  --bg-alt: #DCFCE7;
}

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

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

/* ── Button normalization ── */
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 (zoom_in) — gated behind js-anim ── */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

html.js-anim html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Rotate helper ── */
.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: 32px 32px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(64,192,87,0.06) 10px,
    rgba(64,192,87,0.06) 11px
  );
}

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

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

/* Gradient blur blobs */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(64,192,87,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: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(27,67,50,0.14) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(64,192,87,0.15), transparent);
  border-radius: 0 0 0 100%;
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(27,67,50,0.12), transparent);
  border-radius: 0 100% 0 0;
  pointer-events: none;
}

.decor-glow-element {
  filter: drop-shadow(0 0 40px rgba(64,192,87,0.35));
}

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

/* ── Section alt bg ── */
.bg-alt-section {
  background-color: var(--bg-light);
}

/* ── Card styles ── */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* ── CTA gradient button ── */
.btn-gradient {
  background: linear-gradient(to right, #40C057, #1B4332);
  color: #fff;
}

.btn-gradient:hover {
  opacity: 0.9;
}

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

/* ── Progress bar ── */
.progress-bar {
  height: 6px;
  border-radius: 9999px;
  background: var(--bg-alt);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--color-accent), var(--color-primary));
  border-radius: 9999px;
  transition: width 1s ease-out;
}

/* ── Badge ── */
.badge-new {
  background: linear-gradient(135deg, #40C057, #2D6A4F);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

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

/* ── Order form ── */
.order-form-section {
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
}

/* ── Mobile menu transition ── */
#mobile-menu {
  transition: opacity 0.2s ease;
}

/* ── Ingredient card ── */
.ingredient-card {
  border: 1px solid rgba(64,192,87,0.2);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ingredient-card:hover {
  border-color: rgba(64,192,87,0.5);
  box-shadow: 0 4px 16px rgba(64,192,87,0.12);
}

/* ── Testimonial card ── */
.testimonial-card {
  border: 1px solid rgba(27,67,50,0.08);
  transition: box-shadow 0.2s ease;
}

.testimonial-card:hover {
  box-shadow: 0 4px 20px rgba(27,67,50,0.1);
}

/* ── Guarantee badge ── */
.guarantee-badge {
  border: 2px solid rgba(64,192,87,0.3);
  background: rgba(240,253,244,0.9);
}

/* ── Number counter ── */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ── Scroll indicator ── */
.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── Pulse animation for CTA ── */
.pulse-ring {
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(64,192,87,0.4); }
  70% { box-shadow: 0 0 0 12px rgba(64,192,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(64,192,87,0); }
}

/* ── Form input focus ── */
.form-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

/* ── Error state ── */
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12) !important;
}

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

/* ── Success state ── */
.form-success {
  background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
  border: 1px solid rgba(64,192,87,0.3);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

/* ── Loading spinner ── */
.spinner {
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Utility ── */
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.bg-primary-color { background-color: var(--color-primary); }
.bg-accent-color { background-color: var(--color-accent); }

/* ── Responsive image containers ── */
.product-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Section divider wave ── */
.wave-divider {
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}