/* ========================================
   To Her Heart's Content — Custom Styles
   ======================================== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
  background: #c22852;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a11d43;
}

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

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

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

/* Navigation active state */
#nav.scrolled {
  box-shadow: 0 4px 20px rgba(109, 26, 56, 0.08);
}

/* Reveal animations — progressive enhancement */
/* Default: content is visible (no JS needed) */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* When JS adds the .is-active class, animate */
.reveal.is-active {
  animation: revealIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger children */
.reveal.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.stagger.is-active > *:nth-child(1) { animation-delay: 0s; }
.reveal.stagger.is-active > *:nth-child(2) { animation-delay: 0.1s; }
.reveal.stagger.is-active > *:nth-child(3) { animation-delay: 0.2s; }
.reveal.stagger.is-active > *:nth-child(4) { animation-delay: 0.3s; }
.reveal.stagger.is-active > *:nth-child(5) { animation-delay: 0.4s; }
.reveal.stagger.is-active > *:nth-child(6) { animation-delay: 0.5s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal.is-active,
  .reveal.stagger.is-active > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .aspect-\[4\/3\] img,
  .aspect-\[3\/4\] img,
  .aspect-square img,
  .aspect-\[4\/5\] img {
    transition: none;
  }
  .group:hover .aspect-\[4\/3\] img {
    transform: none;
  }
}

/* Mobile menu transition */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

#mobile-menu.open {
  max-height: 400px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Header shrink on scroll */
#nav.shrunk {
  padding-top: 0;
  padding-bottom: 0;
}

/* Button ripple effect on hover */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Image lazy load placeholder */
img {
  background-color: #fce7eb;
}

/* Print styles */
@media print {
  #nav, #menu-btn, .reveal {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
