/* === Custom styles for GP Auto Styling === */

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

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

/* === Scroll reveal animations === */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu link hover */
.mobile-link {
    display: block;
}

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

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

/* Header scrolled state */
.header-scrolled {
    background: rgba(252, 253, 251, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08), 0 4px 24px rgba(27, 67, 50, 0.06);
}

/* Hero gradient animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    caret-color: #1B4332;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f7faf5;
}
::-webkit-scrollbar-thumb {
    background: #b7dfc5;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8ec99f;
}

/* Focus visible outlines */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5fb074;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Selection color */
::selection {
    background: #d8efe3;
    color: #1B4332;
}
