:root {
  --color-primary: #1F2937;
  --color-secondary: #374151;
  --color-accent: #64748B;
  --color-bg-light: #F8FAFC;
  --color-bg-alt: #F1F5F9;
}

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

body {
  font-family: 'Outfit', 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 ─── */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* ─── Zoom-in variant ─── */
html.js-anim [data-animate="zoom"] {
  opacity: 0;
  transform: scale(0.95);
}

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

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

/* ─── Decorative backgrounds ─── */
.decor-grid-dots {
  background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(to right, #e5e7eb 1px, transparent 1px),
    linear-gradient(to bottom, #e5e7eb 1px, transparent 1px);
  background-size: 32px 32px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(100, 116, 139, 0.05) 8px,
    rgba(100, 116, 139, 0.05) 16px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(100, 116, 139, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(31, 41, 55, 0.06) 0%, transparent 60%);
}

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

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

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

/* ─── Corner accents ─── */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(100, 116, 139, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(31, 41, 55, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Glow element ─── */
.decor-glow-element {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(100, 116, 139, 0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

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

/* ─── Form styles ─── */
.form-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #64748B;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.1);
}

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

/* ─── Order form ─── */
#order_form {
  scroll-margin-top: 5rem;
}

/* ─── Guarantee badge ─── */
.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #F1F5F9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  color: #374151;
  font-weight: 500;
}

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

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

#mobile-menu.visible {
  opacity: 1;
}

/* ─── FAQ accordion ─── */
.faq-answer {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
}

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

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

.progress-bar-fill {
  height: 100%;
  background: #1F2937;
  border-radius: 9999px;
  transition: width 1s ease-out;
}

/* ─── Section bg helpers ─── */
.bg-light { background-color: #F8FAFC; }
.bg-alt { background-color: #F1F5F9; }

/* ─── Ingredient image frame ─── */
.ingredient-frame {
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  overflow: hidden;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

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