/* ========== BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: #FDF8F0;
}

/* ========== HERO ANIMATIONS ========== */
.hero-anim {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.2s; }
.hero-anim:nth-child(2) { animation-delay: 0.4s; }
.hero-anim:nth-child(3) { animation-delay: 0.6s; }
.hero-anim:nth-child(4) { animation-delay: 0.8s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes scrollDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ========== REVEAL ANIMATIONS (below-fold only) ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-anim {
    opacity: 1;
    transform: none;
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .scroll-indicator {
    animation: none;
  }
  .scroll-dot {
    animation: none;
    opacity: 1;
  }
}

/* ========== NAVBAR SCROLL STATE ========== */
#site-header.scrolled {
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* ========== CARD STAGGER ========== */
#services .reveal:nth-child(1) { transition-delay: 0.05s; }
#services .reveal:nth-child(2) { transition-delay: 0.1s; }
#services .reveal:nth-child(3) { transition-delay: 0.15s; }
#services .reveal:nth-child(4) { transition-delay: 0.2s; }
#services .reveal:nth-child(5) { transition-delay: 0.25s; }
#services .reveal:nth-child(6) { transition-delay: 0.3s; }

#testimonials .reveal:nth-child(1) { transition-delay: 0.05s; }
#testimonials .reveal:nth-child(2) { transition-delay: 0.15s; }
#testimonials .reveal:nth-child(3) { transition-delay: 0.25s; }

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #e05028;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== SELECTION ========== */
::selection {
  background-color: #f9c4b0;
  color: #6b2517;
}
</script>
