/* 
 * HLC Tire & Oil — Custom Styles
 * Additional styles beyond Tailwind CDN
 */

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

/* Selection color */
::selection {
    background: rgba(161, 31, 54, 0.4);
    color: #f5f0ed;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a1d23 0%, #1f2328 100%);
}

/* Custom select arrow */
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='%23a11f36' 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;
}

/* Prevent content flash on scroll */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    .navbar, .mobile-menu, #backToTop, .cta-btn { display: none !important; }
    body { background: white; color: black; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-image-top, .hero-image-bottom { display: none; }
}

/* Tablet adjustments */
@media (max-width: 1023px) {
    .hero-text-panel {
        padding: 6rem 6vw 4rem;
    }
}

/* Small phone adjustments */
@media (max-width: 389px) {
    .hero-text-panel {
        padding: 5rem 5vw 3rem;
    }
    h1 {
        font-size: 2.25rem;
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .hero-text-panel {
        padding: 4rem 6vw;
    }
}

/* Nav scroll state */
.navbar.scrolled {
    background: rgba(15, 17, 21, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Subtle gradient overlay on service cards */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(161, 31, 54, 0.03) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card:hover::before {
    opacity: 1;
}
.service-card {
    position: relative;
    overflow: hidden;
}
