/* Custom styles for Brown's Lock & Key Service */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #485a76;
}

/* Selection color */
::selection {
    background-color: #3db37a;
    color: white;
}

/* Hero parallax effect */
#hero {
    min-height: 100vh;
}

/* Service card hover effects */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-0.25rem);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 179, 122, 0.15);
}

/* Button press effect */
button, a {
    transition: all 0.2s ease;
}

button:active, a:active {
    transform: scale(0.98);
}

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

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

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 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;
    }
}

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

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Improve tap targets on mobile */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}
