:root {
  --color-primary: #0F2027;
  --color-secondary: #1A3A40;
  --color-accent: #00F5A0;
  --color-bg-light: #ECFDF5;
  --color-bg-alt: #D1FAE5;
}

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

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

/* =====================
   BUTTON NORMALIZATION
   ===================== */
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 ELEMENTS
   ===================== */

/* Dot pattern background */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(0, 245, 160, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Line grid */
.decor-grid-lines {
  background-image:
    linear-gradient(rgba(0, 245, 160, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 160, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Diagonal stripes */
.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 245, 160, 0.05) 10px,
    rgba(0, 245, 160, 0.05) 20px
  );
}

/* Mesh overlay */
.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(0, 245, 160, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(15, 32, 39, 0.3) 0%, transparent 60%);
}

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

/* Blurred gradient blobs */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 245, 160, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26, 58, 64, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  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(135deg, transparent 50%, rgba(0, 245, 160, 0.08) 100%);
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(315deg, transparent 50%, rgba(0, 245, 160, 0.08) 100%);
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: relative;
}

.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(0, 245, 160, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* =====================
   ACCENT COLOR HELPERS
   ===================== */
.bg-accent { background-color: #00F5A0; }
.text-accent { color: #00F5A0; }
.border-accent { border-color: #00F5A0; }
.ring-accent { --tw-ring-color: #00F5A0; }

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

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

.form-input:focus {
  outline: none;
  border-color: #00F5A0;
  box-shadow: 0 0 0 3px rgba(0, 245, 160, 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.8125rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: none;
}

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

/* =====================
   ORDER FORM
   ===================== */
.order-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(15, 32, 39, 0.12);
  overflow: hidden;
}

/* =====================
   TESTIMONIAL SLIDER
   ===================== */
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-out;
}

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

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

/* =====================
   LOADING SPINNER
   ===================== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(15, 32, 39, 0.3);
  border-top-color: #0F2027;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

/* =====================
   NOTIFICATION TOAST
   ===================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.35s ease-out, opacity 0.35s ease-out;
  max-width: 360px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  background: #0F2027;
  color: #fff;
  border-left: 4px solid #00F5A0;
}

.toast-error {
  background: #fff;
  color: #111827;
  border-left: 4px solid #ef4444;
}

/* =====================
   HERO GRADIENT
   ===================== */
.hero-gradient {
  background: linear-gradient(135deg, #0F2027 0%, #1A3A40 50%, #0a2a30 100%);
}

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

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 245, 160, 0.12);
}

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

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

/* =====================
   MOBILE NAV ANIMATION
   ===================== */
#mobile-menu {
  transition: opacity 0.2s ease-out;
}

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

/* =====================
   PROGRESS BAR (rating)
   ===================== */
.rating-bar {
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
  height: 8px;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00F5A0, #00c97a);
  border-radius: 9999px;
  transition: width 0.8s ease-out;
}

/* =====================
   PRINT
   ===================== */
@media print {
  header, footer, #cookie-consent { display: none !important; }
  main { padding-top: 0 !important; }
}