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

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

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

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

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

.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.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 192, 87, 0.07) 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) 20px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(64, 192, 87, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(27, 67, 50, 0.1) 0%, transparent 50%);
}

.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 0.8; }
.decor-bold { opacity: 1; }

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(64, 192, 87, 0.25), 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.2), transparent 70%);
  border-radius: 50%;
  bottom: -80px;
  left: -60px;
  pointer-events: none;
  z-index: 0;
}

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

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

.decor-glow-element {
  box-shadow: 0 0 60px rgba(64, 192, 87, 0.3), 0 0 120px rgba(64, 192, 87, 0.1);
}

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

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 9999px;
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: #40C057;
  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 {
  color: #EF4444;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  padding-left: 1rem;
  display: none;
}

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

/* Trust badges */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: #F0FDF4;
  border: 1px solid #DCFCE7;
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: #1B4332;
  font-weight: 500;
}

/* Ingredient card */
.ingredient-card {
  background: #ffffff;
  border: 1px solid #DCFCE7;
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ingredient-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(64, 192, 87, 0.12);
}

/* Testimonial minimal style */
.testimonial-minimal {
  border-left: 4px solid #40C057;
  padding-left: 1.5rem;
}

/* FAQ card style */
.faq-card {
  background: #F9FAFB;
  padding: 1.5rem;
  border-radius: 1rem;
}

/* Section decorative divider */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* Pulse animation for CTA */
@keyframes pulse-accent {
  0%, 100% { box-shadow: 0 4px 20px rgba(64, 192, 87, 0.3); }
  50% { box-shadow: 0 8px 32px rgba(64, 192, 87, 0.5); }
}

.cta-pulse {
  animation: pulse-accent 2.5s ease-in-out infinite;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Accordion transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-content.open {
  max-height: 600px;
}

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

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

/* Order form card */
.order-card {
  background: #ffffff;
  border-radius: 2rem;
  padding: 2rem;
  border: 1.5px solid #DCFCE7;
}

@media (max-width: 640px) {
  .order-card {
    padding: 1.25rem;
    border-radius: 1.5rem;
  }
}

/* Guarantee badge */
.guarantee-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #F0FDF4;
  border: 1px solid #DCFCE7;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #1B4332;
  font-weight: 500;
}

/* Price display */
.price-main {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1B4332;
  line-height: 1;
}

/* Origin badge */
.origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #6B7280;
}