/* ========================================
   The Ives Inn — Custom Styles
   ======================================== */

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

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

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

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

::-webkit-scrollbar-track {
  background: #1f1d1a;
}

::-webkit-scrollbar-thumb {
  background: #b5523a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #963f2c;
}

/* Selection color */
::selection {
  background: #b5523a;
  color: #fdfbf7;
}

/* Nav scroll state */
.nav-scrolled {
  background: rgba(31, 29, 26, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-scrolled .font-serif {
  color: #fdfbf7 !important;
}

.nav-scrolled .menu-line {
  background: #fdfbf7 !important;
}

.nav-scrolled a:not(.bg-terra) {
  color: #f5f4f0 !important;
}

/* Mobile menu transitions */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Hamburger animation */
.menu-open .menu-line:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:last-child {
  transform: rotate(-45deg) translate(0px, 0px);
}

/* Image hover parallax-lite */
.group img {
  will-change: transform;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #b5523a;
  outline-offset: 2px;
}

/* Prevent flash of unstyled content */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
  .font-serif {
    line-height: 1.1;
  }
}

/* Print styles */
@media print {
  header, footer, #contact-form, .animate-marquee {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
