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

/* =====================
   BUTTON BASE STYLES
   ===================== */
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; }
html.js-anim [data-animate-delay="600"] { transition-delay: 0.6s; }

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

/* =====================
   DECORATIVE ELEMENTS
   ===================== */

/* Dot grid pattern */
.decor-grid-dots {
  background-image: radial-gradient(circle, var(--color-accent) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Line grid */
.decor-grid-lines {
  background-image:
    linear-gradient(to right, var(--color-accent) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-accent) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Diagonal stripes */
.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    var(--color-accent) 10px,
    var(--color-accent) 11px
  );
}

/* Mesh gradient */
.decor-mesh {
  background: radial-gradient(at 40% 20%, var(--color-bg-alt) 0px, transparent 50%),
              radial-gradient(at 80% 0%, var(--color-bg-light) 0px, transparent 50%),
              radial-gradient(at 0% 50%, var(--color-bg-alt) 0px, transparent 50%);
}

/* Gradient blur blobs */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: var(--color-bg-alt);
  top: -100px;
  right: -100px;
  opacity: 0.6;
}
.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: var(--color-bg-light);
  bottom: -80px;
  left: -80px;
  opacity: 0.4;
}

/* Corner accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, var(--color-accent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at bottom left, var(--color-secondary), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Glow element */
.decor-glow-element {
  position: relative;
}
.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

/* Rings SVG pattern */
.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='30' fill='none' stroke='%2340C057' stroke-width='1' opacity='0.3'/%3E%3Ccircle cx='100' cy='100' r='55' fill='none' stroke='%2340C057' stroke-width='1' opacity='0.2'/%3E%3Ccircle cx='100' cy='100' r='80' fill='none' stroke='%2340C057' stroke-width='1' opacity='0.1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Intensity modifiers */
.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.10; }
.decor-bold { opacity: 0.20; }

/* =====================
   STARS / RATINGS
   ===================== */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

/* =====================
   FORM STYLES
   ===================== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: 'Work Sans', system-ui, sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: white;
  color: #111827;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(64, 192, 87, 0.15);
}

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

.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: none;
}

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

/* =====================
   CARD STYLES
   ===================== */
.card-benefit {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-benefit:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

/* =====================
   GRADIENT BUTTON
   ===================== */
.btn-gradient {
  background: linear-gradient(to right, #40C057, #1B4332);
  color: white;
  font-weight: 700;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(27,67,50,0.3);
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient:hover {
  opacity: 0.92;
  box-shadow: 0 10px 15px -3px rgba(27,67,50,0.3);
}

/* =====================
   FAQ ACCORDION
   ===================== */
.faq-item {
  background: #f9fafb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07);
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #111827;
  white-space: normal;
  min-width: unset;
}

.faq-toggle .faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-accent);
}

.faq-toggle[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

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

.faq-body-inner {
  padding: 0 1.5rem 1.25rem;
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* =====================
   PROGRESS STEPS
   ===================== */
.step-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =====================
   TESTIMONIAL QUOTE
   ===================== */
.testimonial-quote {
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 5rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.25;
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
}

/* =====================
   PRICE TAG
   ===================== */
.price-tag {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.price-old {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 1.125rem;
}

.price-save {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

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

#mobile-menu.open {
  display: block;
}

/* =====================
   HERO SECTION
   ===================== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(64, 192, 87, 0.3);
}

/* =====================
   SECTION DIVIDERS
   ===================== */
.wave-divider {
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* =====================
   INGREDIENT CARD
   ===================== */
.ingredient-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* =====================
   TRUST BADGES
   ===================== */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4b5563;
}

/* =====================
   ORDER FORM SECTION
   ===================== */
.order-form-wrapper {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
  padding: 2rem;
  border: 1px solid #e5e7eb;
}

/* =====================
   NOTIFICATION
   ===================== */
.notification {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
  transform: translateX(120%);
  transition: transform 0.4s ease;
  max-width: 24rem;
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.notification-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}