/* Custom styles for Mason's on Main */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0f3f22;
}

/* Selection color */
::selection {
    background: #dcf0dc;
    color: #14532d;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger animation */
#mobile-menu-btn.active #menu-icon svg {
    transform: rotate(90deg);
}

#mobile-menu-btn.active #menu-icon svg line:first-child {
    transform: translateY(5px) rotate(45deg);
}

#mobile-menu-btn.active #menu-icon svg line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active #menu-icon svg line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img {
        transform: none;
    }
}

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