/* Custom styles for Fisher Communications */

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

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.04);
}

#navbar.scrolled .font-heading {
    color: #1e293b;
}

/* Nav link active state */
.nav-link.active {
    color: #d4542a;
    background-color: #fdf0ec;
}

/* Selection color */
::selection {
    background-color: #f6c4b0;
    color: #7a2816;
}

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

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

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

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

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #d4542a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.2s ease-out;
}

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

/* Back to top button animation */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
}

/* Service card image hover */
.group:hover .service-icon {
    transform: scale(1.05);
}

.service-icon {
    transition: transform 0.3s ease;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

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