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

/* ─── Button Fixes ─────────────────────────────────────────── */
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);
}

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

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

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

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

.decor-mesh {
  background-image:
    radial-gradient(at 40% 20%, rgba(0,245,160,0.12) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(15,32,39,0.15) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(26,58,64,0.1) 0px, transparent 50%);
}

/* ─── Accent Decorators ────────────────────────────────────── */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(0,245,160,0.18) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

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

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: linear-gradient(135deg, rgba(0,245,160,0.12), transparent);
  pointer-events: none;
}

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

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(0,245,160,0.15) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Intensity Modifiers ──────────────────────────────────── */
.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 1; }
.decor-bold { opacity: 1.4; }

/* ─── Accent Color Helpers ─────────────────────────────────── */
.text-accent { color: var(--color-accent); }
.bg-accent { background-color: var(--color-accent); }
.border-accent { border-color: var(--color-accent); }
.ring-accent { --tw-ring-color: var(--color-accent); }

/* ─── Form Styles ──────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.5rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-accent);
  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-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

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

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

/* ─── CTA Button Base ──────────────────────────────────────── */
.cta-btn {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-radius: 9999px;
  font-weight: 700;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  box-shadow: 0 8px 25px rgba(0,245,160,0.35);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cta-btn:hover {
  background-color: rgba(0,245,160,0.88);
  box-shadow: 0 12px 32px rgba(0,245,160,0.45);
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(0);
}

/* ─── Card Styles ──────────────────────────────────────────── */
.card-premium {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(15,32,39,0.08);
  transition: box-shadow 0.25s, transform 0.25s;
}

.card-premium:hover {
  box-shadow: 0 12px 40px rgba(15,32,39,0.14);
  transform: translateY(-2px);
}

/* ─── Section Badge ────────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--color-bg-light);
  color: var(--color-primary);
  border: 1px solid var(--color-bg-alt);
  border-radius: 9999px;
  padding: 0.25rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ─── Progress / Loader ────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(15,32,39,0.25);
  border-top-color: var(--color-primary);
  border-radius: 9999px;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

/* ─── FAQ Accordion ────────────────────────────────────────── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
}

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

/* ─── Mobile Menu Transition ───────────────────────────────── */
#mobile-menu {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

/* ─── Hero Gradient ────────────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #0F2027 0%, #1A3A40 60%, #0e3028 100%);
}

/* ─── Ingredient Card Hover ────────────────────────────────── */
.ingredient-card {
  transition: transform 0.25s, box-shadow 0.25s;
}

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

/* ─── Testimonial Quote ────────────────────────────────────── */
.quote-marks::before {
  content: '\201C';
  font-size: 4rem;
  line-height: 0;
  color: var(--color-accent);
  opacity: 0.4;
  font-family: Georgia, serif;
  vertical-align: -1.5rem;
  margin-right: 0.25rem;
}

/* ─── Order Form Card ──────────────────────────────────────── */
.order-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(15,32,39,0.15);
  overflow: hidden;
}

/* ─── Pulse Animation for CTA ──────────────────────────────── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 25px rgba(0,245,160,0.35); }
  50% { box-shadow: 0 8px 40px rgba(0,245,160,0.6); }
}

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

/* ─── Responsive Helpers ───────────────────────────────────── */
@media (max-width: 640px) {
  .mobile-full { width: 100%; }
}