/* Custom styles for Harbortown Inc. */

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

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

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

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-menu.open {
  max-height: 400px;
}

/* Navbar scroll effect */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(74, 44, 90, 0.1);
}

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

::-webkit-scrollbar-track {
  background: #F9F5FC;
}

::-webkit-scrollbar-thumb {
  background: #D4B3EC;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #BA7DD9;
}

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

/* Button hover effects */
button, a {
  transition: all 0.2s ease;
}

/* Image loading optimization */
img {
  max-width: 100%;
  height: auto;
}

/* Print styles */
@media print {
  #navbar,
  #mobile-menu-btn,
  .scroll-reveal {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}

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