:root {
  --color-primary: #3D2914;
  --color-secondary: #5C4020;
  --color-accent: #FF8C00;
  --color-bg-light: #FFFBF0;
  --color-bg-alt: #FEF0C7;
}

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 ─────────────────────────────────────── */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

html.js-anim html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: translateY(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 elements ───────────────────────────────────── */

/* Pattern backgrounds */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(61,41,20,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

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

.decor-mesh {
  background: radial-gradient(ellipse at 20% 50%, rgba(255,140,0,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(61,41,20,0.06) 0%, transparent 60%);
}

/* Accent blobs */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(255,140,0,0.15) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 35%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(61,41,20,0.10) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
}

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

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

/* Glow element */
.decor-glow-element {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255,140,0,0.18) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

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

/* ─── Star rating ───────────────────────────────────────────── */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-accent);
}

/* ─── Order form ────────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 9999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--color-accent);
}

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

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

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

/* ─── Accordion ─────────────────────────────────────────────── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

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

/* ─── Custom scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f9fafb; }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 9999px; }

/* ─── Accent color utility ──────────────────────────────────── */
.text-accent { color: var(--color-accent); }
.bg-accent { background-color: var(--color-accent); }
.border-accent { border-color: var(--color-accent); }
.ring-accent { --tw-ring-color: var(--color-accent); }

.text-primary { color: var(--color-primary); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }

.bg-bg-light { background-color: var(--color-bg-light); }
.bg-bg-alt { background-color: var(--color-bg-alt); }

/* ─── Section separators ─────────────────────────────────────── */
.wave-divider svg {
  display: block;
  width: 100%;
}

/* ─── Badge ─────────────────────────────────────────────────── */
.badge-bestseller {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── Testimonial border-left accent ───────────────────────── */
.testimonial-card {
  border-left: 4px solid var(--color-accent);
  padding-left: 1.5rem;
}

/* ─── Hero gradient overlay ─────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #FFFBF0 0%, #FEF0C7 60%, #FFFBF0 100%);
}

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

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

/* ─── Spinner ────────────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ─── Fade-up keyframe (for no-JS fallback) ─────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}