/* ============================================
   Talihina Rural Health Clinic
   Custom Styles — Classic & Elegant
   ============================================ */

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

/* --- Selection Color --- */
::selection {
    background-color: #c9a84c;
    color: #0a1628;
}

/* --- Hero Animations --- */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-image {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Service Cards --- */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- About Images --- */
.about-images {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-images.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Navbar Scroll State --- */
nav.scrolled {
    background-color: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

nav.scrolled .font-serif {
    color: #0a1628 !important;
}

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* --- Back to Top --- */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* --- Image Hover Effects --- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* --- Focus Styles --- */
input:focus,
textarea:focus {
    outline: none;
}

/* --- Print Styles --- */
@media print {
    nav, #back-to-top, .service-card {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
