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

/* ─── Button base ─── */
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 — only when JS adds html.js-anim) ─── */
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; }

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

/* ─── Decorative patterns ─── */
.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.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64,192,87,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

.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:
    radial-gradient(ellipse at 20% 50%, rgba(64,192,87,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(27,67,50,0.12) 0%, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(64,192,87,0.15);
  filter: blur(80px);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(27,67,50,0.1);
  filter: blur(60px);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

.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) 0%, transparent 70%);
  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) 0%, transparent 70%);
  pointer-events: none;
}

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

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

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

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

/* ─── Testimonial slider ─── */
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  min-width: 100%;
}

/* ─── Order form ─── */
.order-form-card {
  background: linear-gradient(145deg, #ffffff 0%, #F0FDF4 100%);
  border: 1px solid #DCFCE7;
}

/* ─── Badge ─── */
.badge-popular {
  background: linear-gradient(135deg, #40C057, #2D6A4F);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ─── Pricing display ─── */
.price-main {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.price-old {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 1.1rem;
}

.price-badge {
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
}

/* ─── Guarantee badge ─── */
.guarantee-badge {
  border: 2px dashed var(--color-accent);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(64,192,87,0.05);
}

/* ─── Input focus ─── */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(64,192,87,0.15);
}

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

/* ─── 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 30px rgba(27,67,50,0.12);
}

/* ─── Benefit icon ─── */
.benefit-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(64,192,87,0.2), rgba(27,67,50,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Section divider ─── */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  border-radius: 999px;
  margin: 0.75rem auto 0;
}

/* ─── Mobile menu transition ─── */
#mobile-menu {
  transition: all 0.3s ease;
}

/* ─── Sticky header scroll shadow ─── */
.header-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ─── FAQ cards ─── */
.faq-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,67,50,0.08);
}

/* ─── Progress steps ─── */
.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: white;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Responsive video embed ─── */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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