/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ===== NAV SCROLL STATE ===== */
#nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(128, 24, 48, 0.08);
}

/* ===== MOBILE NAV LINKS ===== */
.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(128, 24, 48, 0.08);
}
.mobile-nav-link:last-child { border-bottom: none; }

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  /* Stagger children */
  #services .scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
  #services .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
  #services .scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
  #services .scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
  #services .scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
  #services .scroll-reveal:nth-child(6) { transition-delay: 0.3s; }
}

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

/* ===== SELECTION ===== */
::selection { background: #fce7eb; color: #6b172e; }

/* ===== SUBTLE ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
