/* ============================================
   Bexar Collision Inc. — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #c44e30;
    color: #faf8f5;
}

/* --- Navbar --- */
.navbar-scrolled #navbar {
    background-color: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .nav-text-color {
    color: #1c1917;
}

.navbar-scrolled .nav-text-subtle {
    color: #78716c;
}

/* --- Mobile Menu --- */
.mobile-menu-open #mobile-menu {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
}

.mobile-nav-link {
    font-size: 1.125rem;
    font-family: 'Playfair Display', Georgia, serif;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e7e5e4;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* --- Service Cards --- */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.service-card:not(.revealed) {
    opacity: 0;
    transform: translateY(24px);
}

/* --- Gallery Items --- */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(196, 78, 48, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* --- Button Hover Effects --- */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f0e8;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 2px solid #c44e30;
    outline-offset: 2px;
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    #hero h1 {
        font-size: 2.75rem;
        line-height: 1.1;
    }
    
    .service-card {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 4rem;
    }
}
