/* Dearborn Auto — Custom Styles */

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

/* Selection color */
::selection {
    background: #b82d4a;
    color: #ffffff;
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #0f080c;
    color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

/* Nav scroll state */
.nav-scrolled {
    background: rgba(15, 8, 12, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(184, 45, 74, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #e6a800 0%, #ffcc00 50%, #c47f00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Service card hover glow */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(ellipse at center, rgba(230, 168, 0, 0.05) 0%, transparent 70%);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card {
    position: relative;
}

/* Button focus states */
.cta-button:focus,
.cta-button-outline:focus {
    outline: 2px solid #e6a800;
    outline-offset: 2px;
}

/* Form select arrow */
select.form-input {
    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='rgba(255,255,255,0.4)' 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;
}

/* Mobile menu overlay */
body.menu-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    section[id] {
        scroll-margin-top: 70px;
    }
}

/* Print styles */
@media print {
    body { background: #fff; color: #000; }
    .cta-button, .cta-button-outline { display: none; }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-color: rgba(255, 255, 255, 0.3);
    }
    .text-white/40 {
        color: rgba(255, 255, 255, 0.7);
    }
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e6a800;
    outline-offset: 2px;
}
