: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: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ===== BUTTON FIXES ===== */
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: translateX(-2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ===== UTILITY ===== */
.rotate-180 {
  transform: rotate(180deg);
}

/* ===== DECORATIVE BACKGROUNDS ===== */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(100,116,139,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(100,116,139,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,116,139,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

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

/* ===== INTENSITY MODIFIERS ===== */
.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 0.75; }
.decor-bold { opacity: 1; }

/* ===== ACCENT DECORATIONS ===== */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,116,139,0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

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

.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);
  pointer-events: none;
}

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

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,116,139,0.15) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

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

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

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.form-error {
  font-size: 0.78rem;
  color: #EF4444;
  margin-top: 0.3rem;
  display: none;
}

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

/* ===== STAR RATING ===== */
.stars {
  color: #F59E0B;
  letter-spacing: 0.05em;
}

/* ===== FAQ ACCORDION ===== */
.faq-answer {
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  max-height: 0;
}

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

/* ===== PRODUCT BADGE ===== */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  background: linear-gradient(135deg, #1F2937, #374151);
  color: #fff;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ===== GUARANTEE BADGE ===== */
.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(100,116,139,0.08);
  border: 1px solid rgba(100,116,139,0.2);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}

/* ===== CARD HOVER ===== */
.card-hover {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card-hover:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

/* ===== SECTION BASE ===== */
.section-light {
  background-color: #F8FAFC;
}

.section-alt {
  background-color: #F1F5F9;
}

/* ===== ORDER FORM ===== */
#order_form {
  scroll-margin-top: 5rem;
}

/* ===== ALERT ===== */
.form-alert {
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}

.form-alert.success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  display: block;
}

.form-alert.error-msg {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  display: block;
}

/* ===== MOBILE MENU TRANSITION ===== */
#mobile-menu {
  transition: opacity 0.2s ease;
}

/* ===== HEADER SCROLL SHADOW ===== */
header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ===== INGREDIENT CARD ===== */
.ingredient-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ingredient-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

/* ===== BENEFIT ICON ===== */
.benefit-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #1F2937, #374151);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== SCROLL SMOOTH ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-anim html.js-anim [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}