:root {
  --color-primary: #2C1810;
  --color-secondary: #4A2C20;
  --color-accent: #DC2626;
  --color-bg-light: #FEF2F2;
  --color-bg-alt: #FEE2E2;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
}

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 — gated so bots and no-JS see full content */
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);
}

/* Stagger delays */
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; }
html.js-anim [data-animate-delay="600"] { transition-delay: 0.6s; }

.rotate-180 {
  transform: rotate(180deg);
}

/* Header scroll state */
#site-header.scrolled {
  background-color: rgba(44, 24, 16, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

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

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

#site-header.scrolled nav a:hover {
  color: #ffffff;
}

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(220,38,38,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

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

.decor-mesh {
  background: radial-gradient(ellipse at 20% 50%, rgba(220,38,38,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(44,24,16,0.06) 0%, transparent 50%);
}

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

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44,24,16,0.1) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(220,38,38,0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

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

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

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

/* FAQ accordion */
.faq-answer {
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  max-height: 0;
  opacity: 0;
}

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

/* Order form */
.order-form-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.order-form-field:focus {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

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

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

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

/* Submit button loading */
.btn-submit-loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* Benefit card hover */
.benefit-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Ingredient card */
.ingredient-card {
  transition: transform 0.2s ease;
}

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

/* Price badge */
.price-badge {
  background: linear-gradient(135deg, #DC2626 0%, #b91c1c 100%);
}

/* Guarantee badge */
.guarantee-badge {
  border: 2px dashed rgba(220,38,38,0.3);
}

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

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

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

/* Accent text */
.text-accent { color: #DC2626; }
.bg-accent { background-color: #DC2626; }
.border-accent { border-color: #DC2626; }

/* Section bg helpers */
.bg-light { background-color: #FEF2F2; }
.bg-alt { background-color: #FEE2E2; }

/* Scroll to top */
#scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #2C1810;
  color: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 40;
  border: none;
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-top:hover {
  transform: translateY(-2px);
}