/* ============================================
   Children Healthcare of Brevard — Custom Styles
   Premium Dark Luxury | Emerald + Cream
   ============================================ */

/* Base reset & smooth scrolling */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    background-color: #060E0A;
    color: #FFF8E7;
}

/* Selection color */
::selection {
    background-color: rgba(16, 185, 129, 0.3);
    color: #FFF8E7;
}

/* ============================================
   Floating animation for hero stat cards
   ============================================ */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 2s;
}

/* ============================================
   Scroll reveal — progressive enhancement
   Default state: visible (works without JS)
   Enhanced state: animated on scroll
   ============================================ */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Navbar scroll state
   ============================================ */
.navbar-scrolled {
    background: rgba(6, 14, 10, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(26, 58, 42, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Mobile menu transitions
   ============================================ */
#mobile-menu.menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu.menu-closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ============================================
   Gold accent line decoration
   ============================================ */
.gold-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #D4A017, #F0C040);
    border-radius: 2px;
}

/* ============================================
   Button focus states for accessibility
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 2px;
    border-radius: 4px;
}

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

::-webkit-scrollbar-track {
    background: #060E0A;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #10B981;
}

/* ============================================
   Image optimization
   ============================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    body {
        background: white;
        color: black;
    }

    .fixed, #mobile-menu {
        display: none !important;
    }
}
