:root {
  --color-primary: #2C1810;
  --color-secondary: #4A2C20;
  --color-accent: #DC2626;
  --color-bg-light: #FEF2F2;
  --color-bg-alt: #FEE2E2;
}

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

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

/* ── Button base 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 ── */
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, currentColor 1px, transparent 1px);
  background-size: 24px 24px;
}

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

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    currentColor,
    currentColor 1px,
    transparent 1px,
    transparent 12px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, var(--color-accent) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, var(--color-primary) 0%, transparent 50%);
}

.decor-subtle { opacity: 0.04; }
.decor-moderate { opacity: 0.08; }
.decor-bold { opacity: 0.16; }

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

.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  opacity: 0.08;
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  opacity: 0.06;
  bottom: -80px;
  left: -80px;
}

/* Corner accents */
.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  opacity: 0.06;
  border-radius: 0 0 0 100%;
  pointer-events: none;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: var(--color-primary);
  opacity: 0.06;
  border-radius: 0 100% 0 0;
  pointer-events: none;
}

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 9999px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

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

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

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input.error {
  border-color: #EF4444;
}

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

/* ── Trust badge strip ── */
.trust-strip {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-bg-alt);
  border-bottom: 1px solid var(--color-bg-alt);
}

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

.ingredient-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44, 24, 16, 0.12);
}

/* ── Testimonial border accent ── */
.testimonial-card {
  border-left: 4px solid var(--color-accent);
  padding-left: 1.5rem;
}

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

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

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

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

/* ── Pulse animation for CTA ── */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.btn-pulse {
  animation: pulse-ring 2.5s ease-in-out infinite;
}

/* ── Progress steps ── */
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--color-bg-alt);
}

.step-connector.active {
  background: var(--color-accent);
}

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

/* ── Cookie banner ── */
#cookie-consent {
  animation: slide-up 0.4s ease-out;
}

@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

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