/* Custom styles for Empowered Health */

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

/* Navbar transition */
.nav-scrolled {
    background: rgba(63, 7, 31, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

.nav-scrolled a:not(.bg-amber-500) {
    color: rgba(255, 255, 255, 0.85) !important;
}

.nav-scrolled a:not(.bg-amber-500):hover {
    color: #fbbf24 !important;
}

/* Mobile menu link animation */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

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

/* Service card hover glow */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a71647, #fbbf24);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Hero text reveal animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero > .relative > div > div > * {
    animation: fadeUp 0.8s ease forwards;
}

#hero > .relative > div > div > :nth-child(1) { animation-delay: 0.1s; }
#hero > .relative > div > div > :nth-child(2) { animation-delay: 0.25s; }
#hero > .relative > div > div > :nth-child(3) { animation-delay: 0.4s; }
#hero > .relative > div > div > :nth-child(4) { animation-delay: 0.55s; }
#hero > .relative > div > div > :nth-child(5) { animation-delay: 0.7s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .service-card::before,
    button,
    a {
        transition: none;
    }
    
    #hero > .relative > div > div > * {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

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

::-webkit-scrollbar-track {
    background: #fdf4f6;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #871542;
}
