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

:root {
  --color-plum-50: #faf5f7;
  --color-plum-950: #2a1219;
}

html {
  scroll-behavior: smooth;
}

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

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(250, 245, 247, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 1px 20px rgba(111, 48, 69, 0.08);
}

.nav-scrolled .nav-link {
  color: #6f3045 !important;
}

.nav-scrolled .nav-subtext {
  color: #a35570 !important;
}

.nav-scrolled .font-serif {
  color: #2a1219 !important;
}

/* Mobile menu transitions */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

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

/* Scroll reveal animations (below-the-fold only) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Select arrow customization */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236f3045' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  appearance: none;
  -webkit-appearance: none;
}

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

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

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

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

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #f5a623;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  nav, #contact-form, button {
    display: none;
  }
}
