/* Custom styles for Ismael with Rosen Auto Belleville */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom selection color */
::selection {
    background-color: #C0623C;
    color: white;
}

/* Subtle pattern overlay for hero section */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(192, 98, 60, 0.04) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(30, 58, 95, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Image hover effect */
.group:hover img {
    transform: scale(1.05);
}

/* Button focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #C0623C;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .group:hover img {
        transform: none;
    }
    #mobile-menu {
        animation: none;
    }
}
