:root {
  --color-primary: #1A1625;
  --color-secondary: #2E2540;
  --color-accent: #7C3AED;
  --color-bg-light: #FAF5FF;
  --color-bg-alt: #EDE9FE;
}

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

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

/* ─── Button resets ─────────────────────────────────────────────────── */
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 behind html.js-anim) ─────────────────── */
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);
}

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

/* ─── Decorative backgrounds ─────────────────────────────────────────── */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(124,58,237,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

.decor-mesh {
  background: radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(46,37,64,0.12) 0%, transparent 60%);
}

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

/* Gradient blur blobs */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: rgba(124,58,237,0.15);
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: rgba(46,37,64,0.2);
  bottom: -80px;
  left: -80px;
}

/* Corner accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(124,58,237,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(124,58,237,0.10) 0%, transparent 70%);
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

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

/* ─── Testimonial slider ─────────────────────────────────────────────── */
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  flex-shrink: 0;
  width: 100%;
}

/* ─── FAQ card style ─────────────────────────────────────────────────── */
.faq-card {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

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

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

.form-input:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

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

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

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

/* ─── Loading spinner ────────────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ─── Accent gradient text ───────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #7C3AED 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.10);
}

/* ─── Ingredient image frame ─────────────────────────────────────────── */
.ingredient-img-wrap {
  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;
}

.ingredient-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Section heading underline accent ───────────────────────────────── */
.heading-accent {
  display: inline-block;
  position: relative;
}

.heading-accent::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7C3AED, #a855f7);
  border-radius: 9999px;
}

/* ─── Mobile menu open state ─────────────────────────────────────────── */
#mobile-menu.is-open {
  display: block;
}

/* ─── Scrollbar styling ──────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

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

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

/* ─── Print / no-JS fallback ─────────────────────────────────────────── */
@media print {
  header, footer, #cookie-consent { display: none !important; }
  main { padding-top: 0 !important; }
}