/* Custom styles for Cox and Associates LLC */

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

/* Navbar scroll effect */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(10, 19, 38, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled span {
    color: #0a1f3e !important;
}

#navbar.scrolled a:not(.bg-navy-900):not(.bg-gold-500) {
    color: #1e519b !important;
}

#navbar.scrolled a:not(.bg-navy-900):not(.bg-gold-500):hover {
    color: #d4a017 !important;
}

#navbar.scrolled .mobile-link {
    color: #1e519b !important;
}

/* Service card hover animation */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

/* Gold line animation on section headers */
.inline-flex.items-center.gap-2::before,
.inline-flex.items-center.gap-2::after {
    content: '';
    transition: width 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8fb8e2;
}

/* Selection color */
::selection {
    background-color: #d4a017;
    color: #0a1f3e;
}

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

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

button:active, a:active {
    transform: scale(0.98);
}
