/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #a8304a;
  color: #fff;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* ── Hero Animations ── */
.hero-subtitle {
  animation: fadeDown 0.8s 0.2s both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-title {
  animation: fadeUp 0.9s 0.4s both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-desc {
  animation: fadeUp 0.9s 0.6s both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cta {
  animation: fadeUp 0.9s 0.8s both cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* ── Navbar ── */
#navbar {
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(52, 11, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  padding-top: 0;
  padding-bottom: 0;
}

#navbar .max-w-7xl {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* ── Mobile Menu ── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-link {
  animation: fadeUp 0.5s both;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(6) { animation-delay: 0.35s; }

/* ── Card Hover ── */
.card {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(168, 48, 74, 0.12);
}

/* ── Smooth Image Loading ── */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

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

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

::-webkit-scrollbar-thumb {
  background: #c94b68;
  border-radius: 9999px;
}

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

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