/* Custom styles for JD & JL Lockshop & Safes */

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

/* Base font adjustments */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
    background: #0f766e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #115e59;
}

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

/* Navbar scroll effect */
.nav-scrolled #nav-bg {
    opacity: 1;
}

/* Hero image parallax-like effect */
@media (min-width: 1024px) {
    .hero-image {
        transition: transform 0.3s ease;
    }
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-2px);
}
.group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .scroll-indicator {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}

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

/* Mobile menu animations */
#mobile-menu {
    max-height: 0;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

/* Subtle gradient overlay for text readability */
.text-overlay-gradient {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, transparent 50%);
}

/* Editorial serif emphasis */
.font-serif em {
    font-style: italic;
}

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