/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Skip Link ──────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: #7B2D3B;
  color: #FFFBF5;
  border-radius: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 1rem;
}

/* ── Navbar ─────────────────────────────────────── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
  background: rgba(253, 251, 245, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}
#navbar.scrolled .nav-link {
  color: #7B2D3B;
}
#navbar.scrolled .font-serif.font-bold.text-burgundy-900 {
  color: #7B2D3B;
}

/* ── Hero Background Pattern ────────────────────── */
.hero-bg-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(217, 79, 116, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(199, 109, 82, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(123, 45, 59, 0.25) 0%, transparent 50%);
}

/* ── Hero Badge Animation ───────────────────────── */
.hero-badge {
  animation: fadeSlideDown 0.8s ease both;
}

/* ── Hero Title Animation ───────────────────────── */
.hero-badge ~ h1 {
  animation: fadeSlideUp 0.8s 0.15s ease both;
}

.hero-badge ~ p {
  animation: fadeSlideUp 0.8s 0.3s ease both;
}

.hero-badge ~ div {
  animation: fadeSlideUp 0.8s 0.45s ease both;
}

/* ── Scroll Indicator ───────────────────────────── */
.scroll-dot {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ── Keyframes ──────────────────────────────────── */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

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

/* ── Mobile Menu ────────────────────────────────── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
#mobile-menu.open .mobile-link {
  animation: menuOpen 0.4s ease both;
}
#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

/* ── Menu Button Animation ──────────────────────── */
.menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 5rem;
}

/* ── Scroll Reveal ──────────────────────────────── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(40px);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
  }
  .reveal-up.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    opacity: 1;
    transform: none;
  }
}

/* ── Focus Styles ───────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #d94f74;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* ── Custom Scrollbar ───────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FFFBF5; }
::-webkit-scrollbar-thumb { background: #e8b8a8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c23458; }

/* ── Form Focus Transitions ─────────────────────── */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(217, 79, 116, 0.15);
}

/* ── Image Loading ──────────────────────────────── */
img {
  display: block;
  max-width: 100%;
}

/* ── Reduced Motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
  }
}
