:root {
  --color-primary: #4A4035;
  --color-secondary: #6A5A4A;
  --color-accent: #F5E6D3;
  --color-bg-light: #FFFDFB;
  --color-bg-alt: #FDF8F3;
}

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

body {
  font-family: 'Urbanist', system-ui, sans-serif;
  background-color: var(--color-bg-light);
  color: #1a1a1a;
}

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

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; }

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

/* ─── Decorative Backgrounds ─── */
.decor-grid-dots {
  background-image: radial-gradient(circle, var(--color-primary) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(var(--color-accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-accent) 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    var(--color-accent) 10px,
    var(--color-accent) 11px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(74,64,53,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(245,230,211,0.5) 0%, transparent 60%);
}

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

/* ─── Accent Decorative Elements ─── */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: rgba(245, 230, 211, 0.4);
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: rgba(74, 64, 53, 0.08);
  bottom: -80px;
  left: -80px;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  border-bottom-left-radius: 9999px;
  opacity: 0.3;
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 160px;
  height: 160px;
  background: var(--color-accent);
  border-top-right-radius: 9999px;
  opacity: 0.25;
  pointer-events: none;
}

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(245,230,211,0.5) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

/* ─── FAQ Accordion ─── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
}

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

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

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

/* ─── Order Form ─── */
.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 9999px;
  font-family: 'Urbanist', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

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

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

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

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

/* ─── Benefit Cards ─── */
.benefit-card {
  background: var(--color-bg-alt);
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--color-accent);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.benefit-card:hover {
  box-shadow: 0 20px 40px rgba(74,64,53,0.12);
  transform: translateY(-3px);
}

/* ─── Ingredient Cards ─── */
.ingredient-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--color-accent);
  box-shadow: 0 4px 16px rgba(74,64,53,0.06);
  transition: box-shadow 0.25s ease;
}

.ingredient-card:hover {
  box-shadow: 0 12px 32px rgba(74,64,53,0.12);
}

/* ─── Section Styles ─── */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  background: var(--color-accent);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

/* ─── Progress Bar ─── */
.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--color-primary);
  transition: width 1s ease-in-out;
}

/* ─── Trust Badge ─── */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-accent);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-secondary);
}

/* ─── Hero Product Glow ─── */
.product-glow {
  filter: drop-shadow(0 20px 40px rgba(74,64,53,0.15));
}

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

/* ─── Smooth Header Shadow ─── */
header {
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(74,64,53,0.08);
}

/* ─── Utility ─── */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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