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

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

/* ─── Transparent Header ─── */
#site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

#site-header.scrolled .header-logo-text {
  color: #3D4A3D !important;
}

#site-header.scrolled .header-nav-link {
  color: #566556 !important;
}

#site-header.scrolled .header-nav-link:hover {
  color: #3D4A3D !important;
}

#site-header.scrolled #mobile-menu-btn {
  color: #3D4A3D;
}

/* ─── Scroll Animations (gated — bots/no-JS see full content) ─── */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

html.js-anim html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: scale(1);
}

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

/* ─── Decorative Elements ─── */

/* Dot 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(rgba(143,188,143,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,188,143,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

/* Mesh gradient overlay */
.decor-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(143,188,143,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(61,74,61,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(86,101,86,0.1) 0%, transparent 50%);
}

/* Gradient 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: radial-gradient(circle, rgba(143,188,143,0.25) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(61,74,61,0.2) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}

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

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at bottom left, rgba(61,74,61,0.15) 0%, transparent 70%);
  pointer-events: none;
}

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

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

/* ─── Star Ratings ─── */
.stars {
  color: #F59E0B;
  letter-spacing: 0.05em;
}

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

/* ─── Order Form ─── */
.order-form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  font-family: 'Urbanist', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #111827;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.order-form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(143,188,143,0.2);
}

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

/* ─── Section headings ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  background-color: var(--color-bg-alt);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

/* ─── Card hover states ─── */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(61,74,61,0.12);
}

/* ─── FAQ Accordion ─── */
.faq-answer {
  display: none;
  overflow: hidden;
}

.faq-answer.open {
  display: block;
}

/* ─── Progress bar animation ─── */
@keyframes progressFill {
  from { width: 0%; }
  to { width: var(--progress-width); }
}

.progress-bar-animated {
  animation: progressFill 1.2s ease-out forwards;
}

/* ─── Pulse animation for CTA ─── */
@keyframes pulse-accent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(143,188,143,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(143,188,143,0); }
}

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

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

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

/* ─── Ingredient card ─── */
.ingredient-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid rgba(143,188,143,0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ingredient-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(61,74,61,0.1);
}

/* ─── Hero overlay ─── */
.hero-overlay {
  background: linear-gradient(135deg, rgba(61,74,61,0.92) 0%, rgba(86,101,86,0.75) 60%, rgba(143,188,143,0.4) 100%);
}

/* ─── Toast notification ─── */
#form-toast {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ─── Number input — hide arrows ─── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}