:root {
  --color-primary: #1B4332;
  --color-secondary: #2D6A4F;
  --color-accent: #40C057;
  --color-bg-light: #F0FDF4;
  --color-bg-alt: #DCFCE7;
}

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

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

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

/* ===================== 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-delay="100"] { transition-delay: 0.1s; }
html.js-anim [data-animate-delay="200"] { transition-delay: 0.2s; }
html.js-anim [data-animate-delay="300"] { transition-delay: 0.3s; }
html.js-anim [data-animate-delay="400"] { transition-delay: 0.4s; }
html.js-anim [data-animate-delay="500"] { transition-delay: 0.5s; }

.rotate-180 {
  transform: rotate(180deg);
}

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

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

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

.decor-mesh {
  background-image: radial-gradient(at 40% 20%, rgba(64,192,87,0.15) 0px, transparent 50%),
                    radial-gradient(at 80% 0%, rgba(27,67,50,0.1) 0px, transparent 50%),
                    radial-gradient(at 0% 50%, rgba(45,106,79,0.1) 0px, transparent 50%);
}

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

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

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

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

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(64,192,87,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

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

/* ===================== COMPONENTS ===================== */

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

.star-filled::before { content: '★'; }
.star-empty::before { content: '☆'; color: #d1d5db; }

/* Progress bars */
.progress-bar {
  background: var(--color-bg-alt);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  border-radius: 9999px;
  transition: width 1s ease-out;
}

/* Product image glow */
.product-glow {
  filter: drop-shadow(0 0 30px rgba(64,192,87,0.25));
}

/* Order form */
.order-form-card {
  background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
  border: 1px solid rgba(64,192,87,0.2);
}

/* Ingredient card */
.ingredient-card {
  background: white;
  border: 1px solid rgba(64,192,87,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(27,67,50,0.1);
}

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

/* Badge */
.badge-accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* Benefit icon circle */
.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-secondary);
}

/* Section heading underline accent */
.heading-accent {
  display: inline-block;
  position: relative;
}

.heading-accent::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border-radius: 9999px;
}

/* Trust bar */
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #4b5563;
}

/* FAQ cards */
.faq-card {
  background: #F0FDF4;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(64,192,87,0.15);
}

/* Form input focus */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(64,192,87,0.15);
}

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

/* Scroll to top */
#scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(27,67,50,0.3);
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scroll-top:hover {
  background: var(--color-secondary);
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

/* Lucide icons default size fix */
[data-lucide] {
  display: inline-block;
  vertical-align: middle;
}

/* Cookie banner backdrop blur */
#cookie-consent > div {
  backdrop-filter: blur(8px);
}

/* ===================== RESPONSIVE HELPERS ===================== */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js-anim html.js-anim [data-animate] {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}