/* Base styles and custom utilities */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF9F3;
}
::-webkit-scrollbar-thumb {
  background: #C1694F;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8553f;
}

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

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

/* Scroll reveal animations */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Mobile menu transitions */
#mobile-menu {
  transition: transform 0.3s ease-in-out;
}

#mobile-menu.open {
  transform: translateX(0);
}

#mobile-menu.closed {
  transform: translateX(100%);
}

/* Navbar transitions */
#navbar.scrolled {
  background: rgba(253, 249, 243, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled #logo-text {
  color: #2a211a;
}

#navbar.scrolled .nav-link {
  color: #5e4e40;
}

#navbar.scrolled .nav-link:hover {
  color: #C1694F;
}

#navbar.scrolled .menu-line {
  background: #5e4e40;
}

/* Mobile nav links */
.mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

/* 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;
  }

  .animate-marquee {
    animation: none;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #C1694F;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Image hover container */
.rounded-3xl.overflow-hidden img {
  transition: transform 0.5s ease;
}

.rounded-3xl.overflow-hidden:hover img {
  transform: scale(1.05);
}
