:root {
  --color-primary: #1A1A1A;
  --color-secondary: #404040;
  --color-accent: #111111;
  --font-main: 'Nunito Sans', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Button / CTA base 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%;
  display: flex;
}

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

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

/* ── Decorative patterns ─────────────────────────────────── */
.decor-grid-dots {
  background-image: radial-gradient(circle, #1A1A1A 1px, transparent 1px);
  background-size: 28px 28px;
}

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

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

.decor-mesh {
  background:
    radial-gradient(at 20% 30%, rgba(26,26,26,0.08) 0px, transparent 60%),
    radial-gradient(at 80% 70%, rgba(64,64,64,0.06) 0px, transparent 60%);
}

/* Intensity modifiers */
.decor-subtle  { opacity: 0.05; }
.decor-moderate { opacity: 0.10; }
.decor-bold    { opacity: 0.20; }

/* Corner accents */
.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 220px;
  background: radial-gradient(circle at top right, rgba(26,26,26,0.12), transparent 70%);
  pointer-events: none;
}

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

/* Gradient blur blob */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(26,26,26,0.10) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* Glow behind product */
.decor-glow-element {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(26,26,26,0.18) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* ── FAQ accordion ───────────────────────────────────────── */
[data-faq-answer] {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

[data-faq-answer].open {
  max-height: 500px;
}

/* ── Order form ──────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: #1A1A1A;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

.form-input.error {
  border-color: #ef4444;
}

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

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

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

/* ── Smooth header ───────────────────────────────────────── */
header {
  transition: box-shadow 0.2s ease;
}

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

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

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

/* ── Testimonial card ────────────────────────────────────── */
.testimonial-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

/* ── Print / accessibility ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html.js-anim html.js-anim [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}