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

/* =====================
   BUTTON CONSISTENCY
   ===================== */
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: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* =====================
   DECORATIVE ELEMENTS
   ===================== */

/* Dot grid pattern */
.decor-grid-dots {
  background-image: radial-gradient(circle, var(--color-accent) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Line grid pattern */
.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;
}

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

/* Mesh overlay */
.decor-mesh {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 140, 0, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(61, 41, 20, 0.1) 0%, transparent 60%);
}

/* Gradient blur blobs */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.decor-gradient-blur::before {
  width: 300px;
  height: 300px;
  background: rgba(255, 140, 0, 0.15);
  top: -50px;
  right: -50px;
}
.decor-gradient-blur::after {
  width: 250px;
  height: 250px;
  background: rgba(61, 41, 20, 0.08);
  bottom: -30px;
  left: -30px;
}

/* Corner accents */
.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(225deg, rgba(255, 140, 0, 0.2), transparent 70%);
  pointer-events: none;
}
.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, rgba(255, 140, 0, 0.15), transparent 70%);
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: relative;
}
.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, rgba(255, 140, 0, 0.2) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

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

/* =====================
   UTILITY CLASSES
   ===================== */
.rotate-180 { transform: rotate(180deg); }

/* Star rating */
.star-filled { color: #f59e0b; }
.star-empty { color: #d1d5db; }

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

/* Accent gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 41, 20, 0.12);
}

/* Order form accent border */
.form-input-accent:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}

/* Progress bar */
.progress-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), #ffb347);
  border-radius: 2px;
}

/* Badge pulse */
.badge-pulse {
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Sticky CTA bar (mobile) */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: white;
  border-top: 1px solid #f3f4f6;
  padding: 0.75rem 1rem;
  display: none;
}
@media (max-width: 768px) {
  .sticky-cta.is-visible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}

/* FAQ accordion transition */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer.is-open {
  max-height: 500px;
}

/* Ingredient card image wrapper */
.ingredient-img-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* Trust strip */
.trust-strip {
  background: var(--color-primary);
  color: white;
}

/* Section bg utilities */
.bg-light { background-color: var(--color-bg-light); }
.bg-alt { background-color: var(--color-bg-alt); }

/* Responsive image container */
.product-img-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Smooth transition for mobile menu */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* CTA button accent */
.btn-accent {
  background-color: var(--color-accent);
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}
.btn-accent:hover {
  background-color: rgba(255, 140, 0, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.35);
}
.btn-accent:active {
  transform: translateY(0);
}

/* Form validation states */
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}
.error-msg {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}
.error-msg.visible {
  display: block;
}

/* Success state */
.form-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  display: none;
}
.form-success.visible {
  display: block;
}