/* Custom styles for Rapscallions Barbershop */

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

/* Navbar transition */
#navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

#navbar.scrolled .nav-text {
    color: #0c0a09;
}

#navbar.scrolled .nav-link {
    color: #44403c;
}

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

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

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal[data-reveal="visible"] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero gradient animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

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

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

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

/* Selection color */
::selection {
    background: #d96030;
    color: #fefdfb;
}

/* Mobile menu button active state */
#mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Service card image hover */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

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

/* Map container */
iframe {
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: grayscale(0%) contrast(1);
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}
