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

/* =========================================
   HEADER — Transparent → Solid on scroll
   ========================================= */
#site-header {
  background: transparent;
}

#site-header.scrolled {
  background: rgba(44, 62, 80, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

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

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

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

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

/* =========================================
   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: 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
   ========================================= */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(72,201,176,0.25) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(72,201,176,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, 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(at 40% 20%, rgba(72,201,176,0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(44,62,80,0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(72,201,176,0.1) 0px, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72,201,176,0.2) 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: 50%;
  background: radial-gradient(circle, rgba(44,62,80,0.15) 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(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(315deg, rgba(72,201,176,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.decor-glow-element {
  filter: drop-shadow(0 0 40px rgba(72,201,176,0.3));
}

.decor-rings-svg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Ccircle cx='200' cy='200' r='80' fill='none' stroke='%2348C9B0' stroke-width='1' opacity='0.1'/%3E%3Ccircle cx='200' cy='200' r='130' fill='none' stroke='%2348C9B0' stroke-width='1' opacity='0.07'/%3E%3Ccircle cx='200' cy='200' r='180' fill='none' stroke='%2348C9B0' stroke-width='1' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

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

/* =========================================
   TESTIMONIAL SLIDER
   ========================================= */
.testimonial-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 33.333%;
  }
}

/* =========================================
   ORDER FORM
   ========================================= */
.order-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

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

.order-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;
}

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

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

/* =========================================
   ACCENT COLORS UTILITY
   ========================================= */
.text-accent { color: #48C9B0; }
.bg-accent { background-color: #48C9B0; }
.border-accent { border-color: #48C9B0; }
.bg-primary { background-color: #2C3E50; }
.bg-secondary { background-color: #3D5266; }
.text-primary { color: #2C3E50; }
.bg-bg-light { background-color: #F0FDFA; }
.bg-bg-alt { background-color: #CCFBF1; }

/* =========================================
   MOBILE MENU OPEN STATE
   ========================================= */
#mobile-menu.open {
  display: block;
}

/* =========================================
   FAQ CARDS
   ========================================= */
.faq-card {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.faq-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* =========================================
   SECTION TRANSITIONS
   ========================================= */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(72,201,176,0.3), transparent);
}

/* =========================================
   GUARANTEE BADGE
   ========================================= */
.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(72,201,176,0.1);
  border: 1px solid rgba(72,201,176,0.3);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #2C3E50;
  font-weight: 600;
}

/* =========================================
   NOTIFICATION / TOAST
   ========================================= */
#form-notification {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  max-width: 320px;
}

#form-notification.show {
  transform: translateX(0);
}

#form-notification.success {
  background: #10b981;
  color: #ffffff;
}

#form-notification.error {
  background: #ef4444;
  color: #ffffff;
}

/* =========================================
   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.8s linear infinite;
  display: inline-block;
}

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

/* =========================================
   RESPONSIVE FIXES
   ========================================= */
@media (max-width: 640px) {
  .hero-gradient {
    min-height: 100vh;
  }
}