/* Custom styles — Rylie Switch Motors */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfcfa;
}
::-webkit-scrollbar-thumb {
    background: #d08a66;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b55636;
}

/* Selection */
::selection {
    background: #c46e48;
    color: #fdfcfa;
}

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

/* Subtle entrance for nav items */
nav a {
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #c46e48;
    transition: width 0.3s ease, left 0.3s ease;
}
nav a:hover::after {
    width: 100%;
    left: 0;
}

/* Image hover zoom */
.card-hover img {
    transition: transform 0.6s ease;
}
.card-hover:hover img {
    transform: scale(1.05);
}

/* Thin line animation */
.thin-line {
    background: linear-gradient(90deg, transparent, #d08a66, transparent);
    height: 1px;
    width: 80px;
    margin: 0 auto;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Prevent FOUC on hero */
.hero-gradient {
    background: linear-gradient(135deg, #38160e 0%, #97432c 35%, #c46e48 60%, #d4ad6a 100%);
}
