/* Custom styles for Dayton Auto Group */

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

/* Gold gradient accent line */
.gold-accent {
    background: linear-gradient(90deg, transparent, #c49a3c, transparent);
    height: 1px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #090d09;
}
::-webkit-scrollbar-thumb {
    background: #1c4d1c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #236123;
}

/* Selection color */
::selection {
    background: rgba(196, 154, 60, 0.3);
    color: #faf8f4;
}

/* Mobile menu transitions */
#mobile-menu.open {
    max-height: 500px;
}

.hamburger-line.active:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.hamburger-line.active:nth-child(2) {
    opacity: 0;
}
.hamburger-line.active:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* Mobile link hover */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-link:last-child {
    border-bottom: none;
}

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c49a3c' 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 1rem center;
    padding-right: 2.5rem;
}

/* Image placeholder fallback */
img {
    image-rendering: -webkit-optimize-contrast;
}

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

/* Tablet */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Small phones */
@media (max-width: 360px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
