: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: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* =====================
   HEADER STATES
   ===================== */
#site-header {
  background: transparent;
}

#site-header.scrolled {
  background: #2C1810;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

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

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

#site-header.page-header {
  background: #2C1810;
}

#site-header.page-header .header-logo-text {
  color: #fff;
}

#site-header.page-header .header-nav-link {
  color: rgba(255,255,255,0.8);
}

/* =====================
   BUTTON STANDARDS
   ===================== */
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
   ===================== */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateX(-2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

html.js-anim html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: translateX(0);
}

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

/* =====================
   DECORATIVE ELEMENTS
   ===================== */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(0,0,0,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

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

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

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(220,38,38,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 45%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(44,24,16,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

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

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

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

.decor-rings-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

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

/* =====================
   FORM ELEMENTS
   ===================== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  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.08);
}

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

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

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

.faq-toggle-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

/* =====================
   STAR RATING
   ===================== */
.stars-display {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

/* =====================
   PRODUCT BADGE
   ===================== */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #DC2626;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =====================
   TRUST BAR
   ===================== */
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
}

/* =====================
   SECTION UTILITIES
   ===================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #DC2626;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: #DC2626;
  display: block;
}

/* =====================
   INGREDIENT CARD
   ===================== */
.ingredient-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

/* =====================
   TESTIMONIAL CARD
   ===================== */
.testimonial-card {
  background: #f9fafb;
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: transform 0.25s ease;
}

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

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

/* =====================
   SCROLLBAR
   ===================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #DC2626;
  border-radius: 3px;
}

/* =====================
   MOBILE MENU
   ===================== */
#mobile-menu {
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
   UTILITY
   ===================== */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

@media (max-width: 640px) {
  .mobile-full {
    width: 100%;
  }
}