:root {
  --color-primary: #0F1729;
  --color-secondary: #1E293B;
  --color-accent: #3B82F6;
  --color-bg-light: #EFF6FF;
  --color-bg-alt: #DBEAFE;
}

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

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

/* ── Button base ── */
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) ── */
html.js-anim 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 html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: translateX(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 utility ── */
.rotate-180 { transform: rotate(180deg); }

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

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

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(59,130,246,0.05) 10px,
    rgba(59,130,246,0.05) 11px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(at 40% 20%, rgba(59,130,246,0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(15,23,41,0.2) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(59,130,246,0.1) 0px, transparent 50%);
}

/* ── Accent decorative elements ── */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  left: -4rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(59,130,246,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: 12rem;
  height: 12rem;
  background: linear-gradient(135deg, transparent 50%, rgba(59,130,246,0.1) 50%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 10rem;
  height: 10rem;
  background: linear-gradient(315deg, transparent 50%, rgba(59,130,246,0.08) 50%);
  pointer-events: none;
}

.decor-glow-element {
  position: absolute;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

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

/* ── Star rating ── */
.stars {
  color: #F59E0B;
  letter-spacing: 0.05em;
}

/* ── Form inputs ── */
.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid #E5E7EB;
  border-radius: 9999px;
  font-family: 'Urbanist', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

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

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

/* ── Section transitions ── */
.section-fade { opacity: 0; transition: opacity 0.5s ease; }
.section-fade.visible { opacity: 1; }

/* ── 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(15,23,41,0.12);
}

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

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

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 50%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Accent line ── */
.accent-line {
  display: block;
  width: 3rem;
  height: 3px;
  background: #3B82F6;
  border-radius: 9999px;
}

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

#mobile-menu.hidden {
  display: none;
}

/* ── Hero gradient overlay ── */
.hero-gradient {
  background: linear-gradient(135deg, #0F1729 0%, #1E293B 50%, #0F1729 100%);
}

/* ── Ingredient card image wrapper ── */
.ingredient-img-wrap {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  overflow: hidden;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Testimonial card ── */
.testimonial-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(15,23,41,0.06);
  border: 1px solid #E5E7EB;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15,23,41,0.1);
}

/* ── FAQ ── */
.faq-answer {
  display: none;
}
.faq-answer.open {
  display: block;
}

/* ── Order form card ── */
.order-form-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 40px rgba(15,23,41,0.14);
  overflow: hidden;
}

/* ── Spinner ── */
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Smooth image load ── */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img.loaded {
  opacity: 1;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F3F4F6; }
::-webkit-scrollbar-thumb { background: #3B82F6; border-radius: 9999px; }

/* ── Newsletter success ── */
.newsletter-success {
  color: #059669;
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}