/* Custom styles for Summerglen HOA */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
  background: #e8a078;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e84a1e;
}

/* Selection color */
::selection {
  background: #f47045;
  color: white;
}

/* Mobile menu animations */
.menu-line {
  display: block;
}

#mobileMenu.open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#mobileMenu.open .menu-line:nth-child(2) {
  opacity: 0;
}
#mobileMenu.open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.25rem;
}

/* Navbar scroll state */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(42, 36, 32, 0.08);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* Form focus ring on all browsers */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 74, 30, 0.15);
}
