:root {
  --color-primary: #0F2027;
  --color-secondary: #1A3A40;
  --color-accent: #00F5A0;
  --color-bg-light: #ECFDF5;
  --color-bg-alt: #D1FAE5;
}

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

body {
  font-family: 'Work Sans', 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;
}

/* ─── Header Scroll State ─── */
#site-header.scrolled {
  background-color: rgba(15, 32, 39, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

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

#site-header.scrolled .header-nav-link {
  color: rgba(255,255,255,0.75);
}

/* ─── Scroll Animations ─── */
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);
}

html.js-anim [data-animate][data-delay="100"] { transition-delay: 0.1s; }
html.js-anim [data-animate][data-delay="200"] { transition-delay: 0.2s; }
html.js-anim [data-animate][data-delay="300"] { transition-delay: 0.3s; }
html.js-anim [data-animate][data-delay="400"] { transition-delay: 0.4s; }
html.js-anim [data-animate][data-delay="500"] { transition-delay: 0.5s; }
html.js-anim [data-animate][data-delay="600"] { transition-delay: 0.6s; }

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

/* ─── Decorative Backgrounds ─── */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(0,245,160,0.15) 1px, transparent 1px);
  background-size: 28px 28px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(0,245,160,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,160,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(0,245,160,0.04) 10px,
    rgba(0,245,160,0.04) 20px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(0,245,160,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(15,32,39,0.06) 0%, transparent 60%);
}

/* ─── Decorative Accents ─── */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,245,160,0.15) 0%, 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(26,58,64,0.12) 0%, 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: 180px; height: 180px;
  background: linear-gradient(135deg, rgba(0,245,160,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 180px; height: 180px;
  background: linear-gradient(315deg, rgba(0,245,160,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.decor-glow-element {
  position: relative;
}
.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(0,245,160,0.18) 0%, transparent 65%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

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

/* ─── Form Styles ─── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-family: 'Work Sans', system-ui, sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  color: #111827;
  outline: none;
}

.form-input:focus {
  border-color: #00F5A0;
  box-shadow: 0 0 0 3px rgba(0,245,160,0.15);
}

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

.form-error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: none;
}

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

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

/* ─── Accent Gradient Text ─── */
.text-gradient {
  background: linear-gradient(135deg, #00F5A0 0%, #00c97a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Hero gradient overlay ─── */
.hero-gradient {
  background: linear-gradient(135deg, #0F2027 0%, #1A3A40 50%, #0d3d30 100%);
}

/* ─── Accent card border ─── */
.card-accent-border {
  border: 1.5px solid rgba(0,245,160,0.2);
}

/* ─── Pulse animation for CTA ─── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,245,160,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(0,245,160,0); }
}

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

/* ─── Order form loading state ─── */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(15,32,39,0.3);
  border-top-color: #0F2027;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  right: 1rem;
}

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

/* ─── FAQ Cards ─── */
.faq-card {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1.5px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-card:hover {
  border-color: rgba(0,245,160,0.25);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* ─── Testimonial Cards ─── */
.testimonial-card {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1.5px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.testimonial-card:hover {
  border-color: rgba(0,245,160,0.2);
  transform: translateY(-2px);
}

/* ─── Number Badge ─── */
.step-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #00F5A0, #00c97a);
  color: #0F2027;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Ingredient icon wrapper ─── */
.ingredient-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(0,245,160,0.15), rgba(0,245,160,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(0,245,160,0.2);
}

/* ─── Mobile menu open state ─── */
#mobile-menu.open {
  display: block;
}

/* ─── Cookie consent transition ─── */
#cookie-consent {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

#cookie-consent.show {
  display: block;
}

/* ─── Responsive image wrapper ─── */
.product-img-wrapper {
  position: relative;
  z-index: 1;
}