/* Custom styles — overrides and enhancements beyond Tailwind */

html {
  scroll-behavior: smooth;
}

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

/* Navbar scroll state */
header.scrolled {
  background: rgba(255, 248, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(168, 41, 67, 0.08);
}

header.scrolled .logo-text {
  color: #a82943;
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.25s ease-out;
}

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

/* Scroll reveal — progressive enhancement, only when JS runs & reduced motion not preferred */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal[data-reveal="left"] {
    transform: translateX(-24px);
  }

  .reveal[data-reveal="right"] {
    transform: translateX(24px);
  }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #a82943;
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

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

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