/* ===== Custom Styles for Alexander Inn ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf8f5;
}
::-webkit-scrollbar-thumb {
  background: #841d31;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6e1a2b;
}

/* Selection color */
::selection {
  background: #841d31;
  color: #faf8f5;
}

/* ===== Navbar transitions ===== */
#navbar.scrolled {
  background: rgba(250, 248, 245, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(44, 40, 37, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-charcoal {
  color: #2c2825 !important;
}

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

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* ===== Menu button animation ===== */
.menu-btn-active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn-active .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-btn-active .menu-line:nth-child(3) {
  width: 1.25rem;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Scroll reveal animations ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== Form focus styles ===== */
input:focus,
textarea:focus {
  outline: none;
  border-color: #841d31 !important;
  box-shadow: 0 0 0 3px rgba(132, 29, 49, 0.1);
}

/* ===== Image loading placeholder ===== */
img {
  background: linear-gradient(135deg, #f5f0e8 0%, #faf8f5 100%);
}

/* ===== Button ripple effect ===== */
button::after,
a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

/* ===== Card hover lift ===== */
.group:hover {
  transform: translateY(-4px);
}

.group {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Decorative line animation ===== */
.w-12.h-px.bg-burgundy-700 {
  transition: width 0.4s ease;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
  .font-serif.text-5xl {
    font-size: 2.5rem;
  }
}

/* ===== Print styles ===== */
@media print {
  #navbar,
  #mobile-menu,
  .reveal {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}
