/* Base & Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Accessibility: sr-only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Scroll Animations - progressive enhancement */
.scroll-anim {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .scroll-anim.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  box-shadow: 0 1px 3px rgba(123, 45, 59, 0.08), 0 4px 16px rgba(0,0,0,0.04);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fef8f7; }
::-webkit-scrollbar-thumb { background: #c2344c; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a12237; }

/* Focus visible */
:focus-visible { outline: 2px solid #c2344c; outline-offset: 2px; border-radius: 4px; }

/* Mobile menu transitions */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open {
  max-height: 400px;
}

/* Smooth image loading */
img { image-rendering: auto; }

/* Selection color */
::selection { background: #fce4e8; color: #7B2D3B; }
