/* Custom styles for York Ridge Agency */

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

/* Navigation link styles */
.nav-link {
    color: inherit;
}

.nav-link:hover {
    color: #d4943a;
}

/* Mobile menu link styles */
.mobile-menu-link {
    display: block;
    color: #6b3a7d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #d4943a;
}

/* Reveal animation styles - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

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

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

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4943a;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #d6bfdc;
    color: #381f41;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
img {
    object-fit: cover;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #f5f0f7 inset;
    transition: background-color 0.5s ease;
}
