/* Base & Utilities */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf3e8;
}
::-webkit-scrollbar-thumb {
  background: #d4d0cb;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9c948a;
}

/* Header */
#header {
  background: rgba(255, 251, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#header.scrolled {
  background: rgba(255, 251, 247, 0.95);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Navigation Links */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #a01536;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.menu-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menuBtn.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 24px;
  margin-right: 0;
}

#menuBtn.active .menu-line:nth-child(4) {
  width: 24px;
  margin-right: 0;
}

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

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

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

/* Marquee */
.marquee-track {
  overflow: hidden;
}

.marquee-content {
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Menu Tabs */
.menu-tab {
  background: transparent;
  color: #5e564e;
  border: 1.5px solid #e8e6e3;
}

.menu-tab.active {
  background: #6c1830;
  color: #fffbf7;
  border-color: #6c1830;
}

.menu-tab:not(.active):hover {
  border-color: #a01536;
  color: #a01536;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Back to top */
#backToTop.visible {
  opacity: 1;
  pointer-events: all;
}

/* Selection */
::selection {
  background: #fce7eb;
  color: #6c1830;
}

/* Image hover container */
.overflow-hidden {
  will-change: transform;
}

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

/* Print */
@media print {
  #header, #backToTop, .marquee-track { display: none; }
  body { background: white; }
}
