/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #b8324e;
  color: #FDF6F0;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ── Navbar scroll state ── */
#nav.scrolled {
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF6F0;
}
::-webkit-scrollbar-thumb {
  background: #d94f6e;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7B2D3B;
}

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

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

/* ── Image placeholder fallback ── */
img {
  background: linear-gradient(135deg, #fce7eb 0%, #f5a8b8 100%);
}

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

/* ── Form focus ring tweak ── */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(184, 50, 78, 0.15);
}
