/* ============================================
   SF Health Facilities — 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(217, 154, 30, 0.2);
    color: #102a43;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #102a43;
}
::-webkit-scrollbar-thumb {
    background: #d99a1e;
    border-radius: 3px;
}

/* ---- Navigation ---- */
.nav-logo-text {
    color: #ffffff;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d99a1e;
    transition: width 0.3s ease;
}

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

/* ---- Hero ---- */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ---- Service Cards ---- */
.service-card {
    transition: background 0.3s ease;
}

.service-card:hover {
    background: #fafafa;
}

/* ---- About Section Stats ---- */
/* Stats overlay already styled inline */

/* ---- Contact Form ---- */
select option {
    background: #102a43;
    color: #ffffff;
}

/* ---- Mobile Menu ---- */
.mobile-nav-link {
    position: relative;
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover {
    transform: translateX(8px);
}

/* ---- Utility Animations (Progressive Enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .fade-in-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .fade-in-left.visible {
        opacity: 1;
        transform: translateX(0);
    }
    
    .fade-in-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .fade-in-right.visible {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}
