/* Custom styles for Kathryn Benson Medical Practice */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f7f4;
}
::-webkit-scrollbar-thumb {
    background: #8ac5a3;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5aa378;
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-8px);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

/* Geometric decorations */
.geo-shape-1 {
    animation: float 6s ease-in-out infinite;
}
.geo-shape-2 {
    animation: float-delayed 8s ease-in-out infinite;
}

/* Pulse animation for status indicator */
@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* Fade in animation for scroll reveals */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar scroll state */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.1);
}

/* Button press effect */
button:active, a:active {
    transform: scale(0.98);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 3px solid #5aa378;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #dcefe6 0%, #f0f7f4 100%);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .fade-in-section {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #064e3b, #358054);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #faf8f2 inset !important;
    -webkit-text-fill-color: #0f3d27 !important;
}

/* Custom selection color */
::selection {
    background: #b9dfc9;
    color: #064e3b;
}
