/* Custom styles for McLeod Cottage of Charlevoix */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf9f7;
}
::-webkit-scrollbar-thumb {
  background: #b5a48a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9d8b70;
}

/* Selection color */
::selection {
  background: #b84545;
  color: #fdf8f6;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(250, 249, 247, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .font-display {
  color: #6a2626 !important;
}

.navbar-scrolled a:not(.bg-burgundy-700) {
  color: #53473a !important;
}

/* Fade-in animation for scroll reveal */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; }
  .group:hover img { transform: none; }
}

/* Image hover zoom container */
img {
  max-width: 100%;
  height: auto;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #b84545;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Button press effect */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Active nav link */
.nav-link-active {
  color: #b84545 !important;
}

/* Print styles */
@media print {
  nav, #contact-form, #form-success { display: none; }
  body { color: #000; background: #fff; }
}
