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

body {
  overflow-x: hidden;
}

::selection {
  background: #D4A574;
  color: #2D0F28;
}

/* ─── Hero Gradient ─── */
.hero-gradient {
  background: linear-gradient(
    135deg,
    #4A1942 0%,
    #7A2050 25%,
    #9B2A64 50%,
    #C04182 70%,
    #E89A0C 100%
  );
}

.hero-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ─── Event Pattern ─── */
.events-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

/* ─── Nav ─── */
#nav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#nav.scrolled {
  background: rgba(253, 240, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(74, 25, 66, 0.08);
}

/* ─── Hero Animations ─── */
.hero-eyebrow {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-title {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.hero-ctas {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

.hero-stats {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1s;
}

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

/* ─── Hero Buttons ─── */
.hero-btn-primary {
  box-shadow: 0 4px 24px rgba(74, 25, 66, 0.3);
}

.hero-btn-secondary {
  box-shadow: 0 4px 16px rgba(74, 25, 66, 0.1);
}

/* ─── Reveal Animations (below fold only) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal[data-reveal="hidden"] {
    opacity: 0;
    transform: translateY(32px);
  }

  .reveal[data-reveal="hidden"].revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal[data-reveal="hidden"].revealed-delay-1 {
    transition-delay: 0.1s;
  }

  .reveal[data-reveal="hidden"].revealed-delay-2 {
    transition-delay: 0.2s;
  }

  .reveal[data-reveal="hidden"].revealed-delay-3 {
    transition-delay: 0.3s;
  }
}

/* ─── Mobile Menu ─── */
.mobile-link {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

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

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAE0EF;
}
::-webkit-scrollbar-thumb {
  background: #9B2A64;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7A2050;
}

/* ─── Focus Styles ─── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #E89A0C;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Utility ─── */
.reveal-tag {
  display: block;
}

.reveal-title {
  display: block;
}

.reveal-subtitle {
  display: block;
}

.reveal-body {
  display: block;
}

.reveal-cta {
  display: block;
}

.reveal-tags {
  display: flex;
}
