:root {
  --color-primary: #3D4A3D;
  --color-secondary: #566556;
  --color-accent: #8FBC8F;
  --color-bg-light: #F5FAF5;
  --color-bg-alt: #E8F5E8;
}

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

body {
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* =====================
   Decorative Backgrounds
   ===================== */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(143,188,143,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(143,188,143,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,188,143,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(143,188,143,0.05) 10px,
    rgba(143,188,143,0.05) 20px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(143,188,143,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(61,74,61,0.08) 0%, transparent 50%);
}

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

/* Gradient blur blobs */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,188,143,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

/* Corner accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(143,188,143,0.15) 0%, transparent 60%);
  pointer-events: none;
}

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

/* Glow element */
.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143,188,143,0.15) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(30px);
}

/* =====================
   Custom Components
   ===================== */

/* Star rating */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: var(--color-accent);
}

/* Pill badge */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

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

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

/* Ingredient card hover */
.ingredient-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ingredient-card:hover {
  transform: translateY(-4px);
}

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

/* Form focus ring */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(143, 188, 143, 0.2);
}

/* FAQ item */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
}
.faq-answer.open {
  max-height: 500px;
}

/* Progress bar for how it works */
.step-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-bg-alt));
  margin: 0 8px;
}

/* Benefit icon wrapper */
.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.benefit-icon:hover {
  background-color: var(--color-accent);
  color: white;
  transform: scale(1.05);
}

/* Order form card */
.order-form-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(61, 74, 61, 0.15);
}

/* Sticky header scrolled state */
.header-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

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

/* Price display */
.price-main {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

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

.price-save {
  font-size: 0.875rem;
  color: #16A34A;
  font-weight: 600;
}

/* Image float animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Pulse ring */
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(143,188,143,0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 16px rgba(143,188,143,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(143,188,143,0); }
}

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

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section bg helpers */
.bg-light { background-color: var(--color-bg-light); }
.bg-alt { background-color: var(--color-bg-alt); }

/* Error state for form inputs */
.input-error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.error-msg {
  color: #EF4444;
  font-size: 0.75rem;
  margin-top: 4px;
}

/* Success state */
.input-success {
  border-color: var(--color-accent) !important;
}

/* Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* Responsive table */
@media (max-width: 640px) {
  .responsive-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-secondary); }