/* Custom styles for All-Embracing Barber & Beauty Shop */

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

/* Focus styles */
:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal animated - only applied via JS */
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile menu transitions */
#mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Menu button animations */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Active nav link */
.nav-link.active {
  color: #0d9488;
  background: #f0fdfa;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Selection color */
::selection {
  background: #99f6e4;
  color: #134e4a;
}

/* Image aspect ratio fallbacks */
img {
  max-width: 100%;
  height: auto;
}

/* Print styles */
@media print {
  header, footer, #contact-form, .scroll-reveal {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
