:root {
  --color-primary: #2D3A2D;
  --color-secondary: #4A5D4A;
  --color-accent: #9C27B0;
  --bg-light: #FAF5FF;
  --bg-alt: #F3E8FF;
}

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

body {
  font-family: 'Source Sans 3', 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 (JS-gated) ── */
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(156,39,176,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(156,39,176,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156,39,176,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

.decor-mesh {
  background-image: radial-gradient(ellipse at 20% 50%, rgba(156,39,176,0.08) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(45,58,45,0.08) 0%, transparent 60%);
}

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

.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(156,39,176,0.15), transparent 70%);
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(45,58,45,0.12), transparent 70%);
  bottom: -80px;
  left: -80px;
}

/* ── Corner accents ── */
.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, rgba(156,39,176,0.15), transparent 70%);
  pointer-events: none;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at bottom left, rgba(45,58,45,0.12), transparent 70%);
  pointer-events: none;
}

/* ── Glow element ── */
.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156,39,176,0.12), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

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

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

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

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

/* ── Order form ── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  font-family: 'Source Sans 3', 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: #9C27B0;
  box-shadow: 0 0 0 3px rgba(156,39,176,0.12);
}

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

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

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

/* ── Price badge ── */
.price-old {
  text-decoration: line-through;
  color: #9ca3af;
}

.price-save {
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
}

/* ── Hero gradient ── */
.hero-bg {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 50%, #fff 100%);
}

/* ── Section accent line ── */
.section-accent-line {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, #9C27B0, #4A5D4A);
  border-radius: 9999px;
  margin: 0 auto 1.5rem;
}

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

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(156,39,176,0.12);
}

/* ── Testimonial card ── */
.testimonial-card {
  transition: transform 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

/* ── Guarantee badge ── */
.guarantee-badge {
  border: 2px dashed rgba(156,39,176,0.3);
  border-radius: 9999px;
  background: rgba(156,39,176,0.04);
}

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

/* ── Notification / alert ── */
.form-alert {
  padding: 0.875rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  display: none;
}

.form-alert.success {
  background: #dcfce7;
  color: #15803d;
  display: block;
}

.form-alert.error-msg {
  background: #fee2e2;
  color: #b91c1c;
  display: block;
}

/* ── Responsive table ── */
@media (max-width: 640px) {
  .form-input {
    border-radius: 1rem;
  }
  button,
  .btn,
  a[href="#order_form"] {
    white-space: normal;
  }
}