/* Custom styles for Mary's Sewing */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal — progressive enhancement, hidden by default via JS */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(255, 250, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(108, 27, 48, 0.08);
}

#navbar.scrolled .navbar-link {
  color: #6c1b30;
}

#navbar.scrolled .navbar-logo {
  color: #6c1b30;
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button hover glow */
a:hover {
  transition: all 0.2s ease;
}

/* Selection color */
::selection {
  background: #f9d0d9;
  color: #6c1b30;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FFFAF7;
}

::-webkit-scrollbar-thumb {
  background: #f4a8b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d94f6e;
}
