:root {
  --color-primary: #1A1A2E;
  --color-secondary: #2D2D44;
  --color-accent: #FF6B35;
  --color-bg-light: #FFF7ED;
  --color-bg-alt: #FFEDD5;
  --font-main: 'Outfit', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Header Scroll Behavior ─── */
#site-header {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

#site-header.scrolled {
  background-color: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

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

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

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

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

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

/* ─── Decorative Backgrounds ─── */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(255,107,53,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

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

.decor-mesh {
  background-image: radial-gradient(ellipse at 20% 50%, rgba(255,107,53,0.08) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(26,26,46,0.06) 0%, transparent 60%);
}

/* Gradient blur blob decorations */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

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

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

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

.decor-glow-element {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,107,53,0.20) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

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

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

/* ─── Star Ratings ─── */
.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: 9999px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}

.form-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.10);
}

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

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

/* ─── Order Form Card ─── */
.order-form-card {
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 30px rgba(26,26,46,0.12);
  padding: 2rem;
}

/* ─── Product Badge ─── */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── Ingredient Card ─── */
.ingredient-img {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  object-fit: cover;
  border: 3px solid var(--color-bg-alt);
}

/* ─── FAQ Accordion ─── */
[data-faq-toggle] {
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

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

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

#mobile-menu.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ─── Section base ─── */
.section-py {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .section-py {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ─── Hero gradient overlay ─── */
.hero-gradient {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D44 60%, #3d2a1e 100%);
}

/* ─── Testimonial cards ─── */
.testimonial-card {
  background: #F9FAFB;
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #F3F4F6;
  transition: box-shadow 0.2s ease;
}

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

/* ─── Gradient CTA Style ─── */
.cta-gradient {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #ffffff;
}

.cta-gradient:hover {
  opacity: 0.90;
}

/* ─── Scroll to top ─── */
#scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--color-accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255,107,53,0.35);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#scroll-top-btn.visible {
  display: flex;
}

#scroll-top-btn:hover {
  opacity: 0.85;
}

/* ─── Responsive table ─── */
.responsive-table {
  width: 100%;
  overflow-x: auto;
}

/* ─── Highlight text ─── */
.text-accent { color: var(--color-accent); }
.bg-accent { background-color: var(--color-accent); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.border-accent { border-color: var(--color-accent); }