:root {
  --color-primary: #1A1A1A;
  --color-secondary: #404040;
  --color-accent: #111111;
  --font-main: 'Space Grotesk', system-ui, sans-serif;
}

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

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

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

/* ─── Header scroll state ─── */
#site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

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

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

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

#site-header.scrolled #mobile-menu-btn {
  color: #1A1A1A;
}

/* ─── 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);
}

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 patterns ─── */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(0,0,0,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

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

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

.decor-subtle  { opacity: 0.05; }
.decor-moderate { opacity: 0.10; }
.decor-bold    { opacity: 0.20; }

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,26,26,0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  top: -100px;
  right: -100px;
  z-index: 0;
}

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

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

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

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,26,26,0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

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

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

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

/* ─── Form inputs ─── */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  font-family: var(--font-main);
  font-size: 0.9375rem;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

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

/* ─── Form error message ─── */
.form-error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: none;
}

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

/* ─── Order form success ─── */
#form-success {
  display: none;
}

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

/* ─── Testimonial card ─── */
.testimonial-card {
  border-left: 4px solid #111111;
  padding-left: 1.5rem;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }

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

/* ─── Section divider ─── */
.section-divider {
  width: 48px;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

/* ─── Ingredient image ring ─── */
.ingredient-img-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ingredient-img-wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(26,26,26,0.10);
}

/* ─── Guarantee badge ─── */
.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: #f8f8f8;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a1a;
}