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

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

/* Animations — gated behind html.js-anim so bots and no-JS users 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);
}

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-180 {
  transform: rotate(180deg);
}

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

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(44,24,16,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44,24,16,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

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

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

/* Gradient blur blobs */
.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.10) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

/* Corner accents */
.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(220,38,38,0.1) 0%, transparent 60%);
  pointer-events: none;
}

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

/* Glow element */
.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;
}

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

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.5rem;
  font-family: 'Urbanist', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

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

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

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

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

/* Badge */
.badge-bestseller {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: linear-gradient(135deg, #DC2626, #2C1810);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Trust bar */
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4b5563;
}

/* Hero gradient bg */
.hero-bg {
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 50%, #fff 100%);
}

/* Section alternating */
.section-light {
  background-color: #FEF2F2;
}

.section-alt {
  background-color: #FEE2E2;
}

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

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(44,24,16,0.10);
}

/* Ingredient card */
.ingredient-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1.5px solid #FEE2E2;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ingredient-card:hover {
  border-color: #DC2626;
  box-shadow: 0 4px 20px rgba(220,38,38,0.1);
}

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

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

/* Scroll to top button */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2C1810;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 40;
  border: none;
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu open state */
#mobile-menu-btn[aria-expanded="true"] .menu-icon {
  display: none;
}

/* Header scroll state */
.header-scrolled {
  box-shadow: 0 2px 20px rgba(44,24,16,0.08);
}

/* Quote marks for testimonials */
.quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: #DC2626;
  opacity: 0.2;
  font-family: Georgia, serif;
  leading-trim: both;
  text-edge: cap;
  display: block;
  margin-bottom: -1.5rem;
}

/* FAQ two-column */
.faq-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2C1810;
  margin-bottom: 0.375rem;
}

.faq-item p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-content.open {
  max-height: 500px;
}

/* Order form highlight */
.order-section {
  background: linear-gradient(135deg, #2C1810 0%, #4A2C20 100%);
}

/* Sticky order bar (mobile) */
.sticky-order-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: #2C1810;
  padding: 0.875rem 1rem;
  display: none;
}

@media (max-width: 768px) {
  .sticky-order-bar.visible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}