/* ===== Custom Styles for Atlanta Rehabilitation & Performance Center ===== */

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

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

body {
    overflow-x: hidden;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    color: white;
}

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

#navbar.scrolled .nav-logo-text,
#navbar.scrolled .nav-logo-sub {
    color: white;
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

#navbar.scrolled .nav-link:hover {
    color: #c8a45e;
}

#navbar.scrolled .nav-cta-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #c8a45e;
}

.nav-logo-text {
    color: white;
}

.nav-logo-sub {
    color: rgba(255, 255, 255, 0.5);
}

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

.mobile-menu-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-link:hover {
    color: #c8a45e;
    transform: translateX(4px);
}

/* Mobile menu button states */
#menuBtn.active span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active span:nth-child(2) {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* ===== Service Cards ===== */
.service-icon {
    color: #c8a45e;
    transition: color 0.5s ease;
}

.service-card:hover .service-icon {
    color: #e0ca8e;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .service-card {
        transition: none;
    }
    
    img {
        transition: none;
    }
}

/* ===== Selection ===== */
::selection {
    background: rgba(200, 164, 94, 0.3);
    color: #0a1628;
}

/* ===== Form Styles ===== */
select option {
    background: #0a1628;
    color: white;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(200, 164, 94, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 164, 94, 0.6);
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}
