/* ============================================
   Exodus Care Community — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

/* --- Selection --- */
::selection {
    background: rgba(123, 45, 59, 0.15);
    color: #7B2D3B;
}

/* --- Animation Keyframes --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Hero Animations --- */
.hero-content {
    animation: fadeInUp 0.9s ease-out forwards;
}

.hero-image {
    animation: scaleIn 1s ease-out 0.2s forwards;
    opacity: 0;
}

/* --- About Animations --- */
.about-images {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.about-content {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

/* --- Room Cards --- */
.room-card {
    opacity: 0;
    transform: translateY(30px);
}

.room-card.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.room-card:nth-child(2).visible {
    animation-delay: 0.15s;
}

.room-card:nth-child(3).visible {
    animation-delay: 0.3s;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

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

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .font-display {
    color: #7B2D3B !important;
}

/* --- Mobile Menu --- */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

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

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

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

/* --- Date Inputs --- */
input[type="date"] {
    color-scheme: light;
}

/* --- Focus Visible --- */
:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
}

/* --- Print --- */
@media print {
    #navbar, #mobileMenu { display: none; }
    body { color: #000; }
    .hero-content, .hero-image, .about-images, .about-content { opacity: 1; animation: none; }
}
