/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Base font settings */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal base — visible by default (no JS progressive enhancement) */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal with JS enhancement — hidden initially, animated in */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Navbar active state */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(139, 35, 47, 0.1);
}

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

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

/* Back to top button */
.back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:not(.visible) {
  transform: translateY(10px);
}

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

/* Image hover effects */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Selection color */
::selection {
  background-color: #fce4e7;
  color: #5e1821;
}
