:root {
  --color-primary: #2D3A2D;
  --color-secondary: #4A5D4A;
  --color-accent: #9C27B0;
  --color-bg-light: #FAF5FF;
  --color-bg-alt: #F3E8FF;
}

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

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

/* =====================
   HEADER BEHAVIOR
   ===================== */
#site-header {
  background: transparent;
}

#site-header.scrolled {
  background: rgba(45, 58, 45, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}

#site-header.scrolled .nav-link {
  color: rgba(255,255,255,0.75);
}

#site-header.scrolled .nav-link:hover {
  color: #ffffff;
}

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

/* =====================
   ANIMATIONS
   ===================== */
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);
}

/* =====================
   DECORATIVE ELEMENTS
   ===================== */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(156,39,176,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(156,39,176,0.05) 0px,
    rgba(156,39,176,0.05) 1px,
    transparent 1px,
    transparent 20px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(at 40% 20%, rgba(156,39,176,0.12) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(74,93,74,0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(45,58,45,0.08) 0px, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156,39,176,0.18) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, rgba(156,39,176,0.15), transparent 70%);
  pointer-events: none;
}

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

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156,39,176,0.2) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

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

/* =====================
   HERO SECTION
   ===================== */
.hero-gradient {
  background: linear-gradient(135deg, #2D3A2D 0%, #1a2a1a 40%, #3a1a4a 100%);
}

/* =====================
   STAR RATING
   ===================== */
.stars {
  display: inline-flex;
  gap: 2px;
}

.star-filled { color: #F59E0B; }
.star-empty  { color: #D1D5DB; }

/* =====================
   ORDER FORM
   ===================== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.75rem;
  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: #9C27B0;
  box-shadow: 0 0 0 3px rgba(156,39,176,0.12);
}

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

.form-error-msg {
  font-size: 0.75rem;
  color: #EF4444;
  margin-top: 0.25rem;
  display: none;
}

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

/* =====================
   TESTIMONIAL – MINIMAL
   ===================== */
.testimonial-minimal {
  border-left: 4px solid #9C27B0;
  padding-left: 1.5rem;
}

/* =====================
   FAQ – TWO COLUMNS
   ===================== */
.faq-item h3 {
  font-weight: 600;
  color: #2D3A2D;
}

.faq-item p {
  color: #4B5563;
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

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

/* =====================
   BADGE
   ===================== */
.badge-accent {
  background: rgba(156,39,176,0.12);
  color: #9C27B0;
  border: 1px solid rgba(156,39,176,0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

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

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

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

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

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

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

/* =====================
   PRICE DISPLAY
   ===================== */
.price-old {
  text-decoration: line-through;
  color: #9CA3AF;
}

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

.price-per-day {
  font-size: 0.8125rem;
  color: #6B7280;
}

/* =====================
   INGREDIENT CARD
   ===================== */
.ingredient-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(156,39,176,0.12);
}

/* =====================
   SECTION BACKGROUNDS
   ===================== */
.bg-light { background-color: var(--color-bg-light); }
.bg-alt   { background-color: var(--color-bg-alt); }

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

/* =====================
   RESPONSIVE IMAGE FIT
   ===================== */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================
   SCROLLBAR (subtle)
   ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #9C27B0; border-radius: 3px; }