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

/* ─── Button resets ─── */
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 (only when JS is active) ─── */
html.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 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); }

/* ─── Header scroll state ─── */
#site-header.scrolled {
  background-color: rgba(15, 32, 39, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

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

/* ─── Accent glow ─── */
.accent-glow {
  box-shadow: 0 0 40px rgba(0, 245, 160, 0.25);
}

.accent-glow-sm {
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.15);
}

/* ─── 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.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 160, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

.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(26, 58, 64, 0.3) 0%, transparent 60%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 245, 160, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(26, 58, 64, 0.2) 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(0, 245, 160, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(0, 245, 160, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 245, 160, 0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

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

/* ─── Star rating ─── */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

/* ─── Form styles ─── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  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.1);
}

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

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

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

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

.card-hover:hover {
  transform: translateY(-3px);
}

/* ─── Accent underline ─── */
.accent-underline {
  position: relative;
  display: inline-block;
}

.accent-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #00F5A0;
  border-radius: 2px;
}

/* ─── Ingredient card ─── */
.ingredient-card {
  border: 1px solid rgba(0, 245, 160, 0.2);
  background: linear-gradient(135deg, rgba(15, 32, 39, 0.04) 0%, rgba(0, 245, 160, 0.03) 100%);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ingredient-card:hover {
  border-color: rgba(0, 245, 160, 0.4);
  background: linear-gradient(135deg, rgba(15, 32, 39, 0.06) 0%, rgba(0, 245, 160, 0.06) 100%);
}

/* ─── Progress bar ─── */
.progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00F5A0, #00c97c);
  border-radius: 9999px;
  transition: width 1s ease-out;
}

/* ─── Benefit alternating layout ─── */
.benefit-row:nth-child(even) .benefit-image {
  order: 2;
}

.benefit-row:nth-child(even) .benefit-content {
  order: 1;
}

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

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #00F5A0;
  border-radius: 3px;
}

/* ─── Selection ─── */
::selection {
  background: rgba(0, 245, 160, 0.25);
  color: #0F2027;
}

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