/* =============================================
   Manchester Motel Lock & Storage — Custom Styles
   ============================================= */

/* --- Base / Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(232, 168, 36, 0.25);
    color: #0a1628;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #e8a824;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d48810;
}

/* --- Navbar transition states --- */
.nav-scrolled #navbar {
    background: rgba(4, 13, 26, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(232, 168, 36, 0.1);
}

.nav-scrolled .nav-logo-text {
    color: #ffffff !important;
}

.nav-scrolled .nav-link-text {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* --- Mobile menu --- */
.mobile-menu-open #mobile-menu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-open .nav-mobile-line-1 {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-open .nav-mobile-line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-open .nav-mobile-line-3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 24px;
}

/* --- Scroll reveal animations (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Service card hover glow --- */
.group:hover .group-hover\:shadow-navy-900\/5 {
    box-shadow: 0 25px 50px -12px rgba(10, 22, 40, 0.06);
}

/* --- Hero image parallax feel --- */
#hero .lg\:col-span-5 {
    display: flex;
    align-items: stretch;
}

#hero .lg\:col-span-5 > div {
    flex: 1;
}

/* --- Gold shimmer on CTA --- */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

/* --- Map container --- */
#location iframe {
    filter: saturate(0.7) contrast(1.05);
    transition: filter 0.4s ease;
}

#location iframe:hover {
    filter: saturate(1) contrast(1);
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
    #hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    #hero h1 {
        font-size: 2.75rem;
        line-height: 1.15;
    }

    #hero .lg\:col-span-5 {
        min-height: 400px;
        margin-top: 2rem;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* --- Print styles --- */
@media print {
    nav, #mobile-menu, .reveal { display: none; }
    body { color: #000; background: #fff; }
    a[href]::after { content: none; }
}
