/* Custom styles for LMH Imaging Services */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: rgba(247, 87, 35, 0.2);
    color: #1f2227;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #f75723;
    outline-offset: 2px;
}

/* Mobile menu animations */
.menu-line {
    display: block;
}

#mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #3d4249 !important;
}

.nav-scrolled .font-display.font-bold {
    color: #1f2227 !important;
}

.nav-scrolled .font-display.font-light {
    color: #767f8e !important;
}

.nav-scrolled .w-10 {
    background: #f75723 !important;
}

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

    html {
        scroll-behavior: auto;
    }

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

/* Print styles */
@media print {
    nav, .geometric-shape-1, .geometric-shape-2, .geometric-shape-3,
    .geometric-shape-4, .geometric-shape-5, #mobile-menu-btn {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero-gradient {
        background: #2d3137 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
