/* ── Base ── */
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; }

/* ── Nav scroll state ── */
#nav.scrolled {
  background: rgba(254, 253, 251, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(107, 27, 42, 0.08);
}

/* ── Floating cards ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.floating-card-1 { animation: float 4s ease-in-out infinite; }
.floating-card-2 { animation: float-delayed 5s ease-in-out infinite; }
.floating-card-3 { animation: float 4.5s ease-in-out infinite 0.5s; }

/* ── Scroll reveal ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.12s; }
.service-card:nth-child(3) { transition-delay: 0.19s; }
.service-card:nth-child(4) { transition-delay: 0.26s; }
.service-card:nth-child(5) { transition-delay: 0.33s; }
.service-card:nth-child(6) { transition-delay: 0.40s; }

.testimonial-card:nth-child(1) { transition-delay: 0.05s; }
.testimonial-card:nth-child(2) { transition-delay: 0.15s; }
.testimonial-card:nth-child(3) { transition-delay: 0.25s; }

/* ── Mobile menu ── */
#mobileMenu.open .absolute.right-0 { transform: translateX(0); }
#mobileMenu .absolute.right-0 { transform: translateX(100%); transition: transform 0.3s ease; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf9f4; }
::-webkit-scrollbar-thumb { background: #e8c4cc; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #c99aa8; }

/* ── Selection ── */
::selection { background: #f9dfe5; color: #6B1B2A; }
