/* Custom styles for A K Heart Centers */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F0FAF6;
}
::-webkit-scrollbar-thumb {
    background: #B3EAD4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7EDBB8;
}

/* Selection color */
::selection {
    background: #B3EAD4;
    color: #050D1A;
}

/* Header scroll state */
header.scrolled {
    box-shadow: 0 1px 20px rgba(5, 13, 26, 0.08);
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2AA87E;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Service card hover lift */
.service-card:hover {
    transform: translateY(-4px);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}
.btn-ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Decorative gradient border for cards */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 1rem;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(42, 168, 126, 0.2), rgba(5, 13, 26, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
