/* Ratvasky Auto Service — Custom Styles */
/* Base overrides and fine-tuning */

/* Ensure hero image doesn't cause layout shift */
.hero-bg {
    background-attachment: fixed;
}

@media (max-width: 767px) {
    .hero-bg {
        background-attachment: scroll;
    }
}

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

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.3);
    color: #F1F5F9;
}

/* Focus visible outlines */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid #14B8A6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Remove default select arrow and add custom */
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='%2394A3B8' 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 12px center;
    padding-right: 36px;
}

/* Subtle pattern overlay on section backgrounds */
.bg-brand-slate-deep::before,
.bg-brand-slate-mid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Image lazy-load fade */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}

/* Mobile menu animation */
@media (max-width: 1023px) {
    .mobile-menu {
        box-shadow: -20px 0 60px rgba(0,0,0,0.5);
    }
}

/* Reduced motion: disable all custom animations */
@media (prefers-reduced-motion: reduce) {
    .float-slow, .float-medium, .float-fast {
        animation: none;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}
