/* Custom styles for The Kinney Team website */

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

/* Prevent scroll-reveal flash — default visible state */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal {
        transform: translateY(20px);
    }
}

/* Navbar scroll behavior */
.nav-scrolled {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(20, 196, 161, 0.1);
    transition: box-shadow 0.3s ease;
}

.nav-scrolled.scrolled {
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
}

/* Nav links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #14c4a1;
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* Mobile nav links */
.mobile-nav-link {
    display: block;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: #14c4a1;
}

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

.service-card:hover {
    transform: translateY(-4px);
}

/* Hero section */
.hero-section {
    position: relative;
}

/* Button focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #14c4a1;
    outline-offset: 2px;
}

/* Custom selection color */
::selection {
    background: rgba(20, 196, 161, 0.2);
    color: #0f2140;
}
