:root {
  --color-primary: #2C3E50;
  --color-secondary: #3D5266;
  --color-accent: #48C9B0;
  --color-bg-light: #F0FDFA;
  --color-bg-alt: #CCFBF1;
}

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

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* =====================
   HEADER SCROLL BEHAVIOR
   ===================== */
#site-header.scrolled {
  background-color: rgba(44, 62, 80, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

#site-header.scrolled .header-logo-text {
  color: #ffffff;
}

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

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

/* =====================
   BUTTON STYLES
   ===================== */
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: 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-delay="100"] { transition-delay: 0.1s; }
html.js-anim [data-animate-delay="200"] { transition-delay: 0.2s; }
html.js-anim [data-animate-delay="300"] { transition-delay: 0.3s; }
html.js-anim [data-animate-delay="400"] { transition-delay: 0.4s; }
html.js-anim [data-animate-delay="500"] { transition-delay: 0.5s; }
html.js-anim [data-animate-delay="600"] { transition-delay: 0.6s; }

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

/* =====================
   DECORATIVE ELEMENTS
   ===================== */

/* Pattern backgrounds */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(72, 201, 176, 0.3) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

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

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(72, 201, 176, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(44, 62, 80, 0.1) 0%, transparent 50%);
}

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

/* Gradient blobs */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(72, 201, 176, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(44, 62, 80, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

/* Corner accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, rgba(72, 201, 176, 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(72, 201, 176, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(72, 201, 176, 0.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* =====================
   CARD STYLES
   ===================== */
.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.1);
}

/* =====================
   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.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-color: #fff;
  color: #111827;
}

.form-input:focus {
  outline: none;
  border-color: #48C9B0;
  box-shadow: 0 0 0 3px rgba(72, 201, 176, 0.15);
}

.form-input.error {
  border-color: #ef4444;
}

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

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

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

/* =====================
   HERO SECTION
   ===================== */
.hero-gradient {
  background: linear-gradient(135deg, #2C3E50 0%, #3D5266 50%, #1a2d3d 100%);
}

/* =====================
   ACCENT COLOR UTILITIES
   ===================== */
.bg-accent { background-color: #48C9B0; }
.text-accent { color: #48C9B0; }
.border-accent { border-color: #48C9B0; }
.hover\:bg-accent\/90:hover { background-color: rgba(72, 201, 176, 0.9); }
.bg-accent\/10 { background-color: rgba(72, 201, 176, 0.1); }
.bg-accent\/20 { background-color: rgba(72, 201, 176, 0.2); }
.text-accent\/80 { color: rgba(72, 201, 176, 0.8); }
.ring-accent { --tw-ring-color: #48C9B0; }

/* =====================
   MOBILE MENU TRANSITION
   ===================== */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

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

/* =====================
   ORDER FORM
   ===================== */
.order-form-wrapper {
  background: linear-gradient(135deg, #F0FDFA 0%, #CCFBF1 100%);
}

/* =====================
   PROGRESS / STEP INDICATORS
   ===================== */
.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d1d5db;
  display: inline-block;
}

.step-dot.active {
  background-color: #48C9B0;
}

/* =====================
   INGREDIENT CARDS
   ===================== */
.ingredient-card {
  border: 1.5px solid #CCFBF1;
  background: linear-gradient(135deg, #ffffff 0%, #F0FDFA 100%);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ingredient-card:hover {
  border-color: #48C9B0;
  box-shadow: 0 8px 24px rgba(72, 201, 176, 0.15);
}

/* =====================
   TESTIMONIAL CARDS
   ===================== */
.testimonial-card {
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s;
}

.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* =====================
   FAQ STYLES
   ===================== */
.faq-question {
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* =====================
   SCROLL TO TOP
   ===================== */
#scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 44px;
  height: 44px;
  background-color: #48C9B0;
  color: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(72, 201, 176, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
}

#scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(72, 201, 176, 0.5);
}

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

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

/* =====================
   PRINT STYLES
   ===================== */
@media print {
  #site-header,
  #cookie-consent,
  #scroll-top-btn {
    display: none !important;
  }
}