/* ============================================
   OCCUPATIONAL HEALTH TESTING SERVICES
   Premium Dark Luxury Theme
   Teal + Slate Grey + Gold Accents
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #f8fafc;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #d4a853, #c9952e);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 60%;
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* --- Mobile Menu --- */
#mobile-menu-overlay {
    animation: fadeIn 0.3s ease forwards;
}

#mobile-menu-overlay.hidden {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.mobile-nav-link {
    position: relative;
    padding: 0.75rem 0;
}

/* --- Form Styles --- */
select option {
    background: #1e293b;
    color: #f1f5f9;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(212, 168, 83, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1) !important;
}

/* --- Selection highlight on gold elements --- */
button, a[href^="tel:"], a[href^="mailto:"] {
    cursor: pointer;
}

/* --- 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;
    }
}

/* --- Focus visible for accessibility --- */
:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    #navbar .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
