/* Homepage review modal (mobile sheet / desktop card) */
.review-modal-panel {
    transform: translate3d(0, 100%, 0);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
    opacity: 0;
}
.review-modal-panel.review-modal-panel--open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}
@media (min-width: 640px) {
    .review-modal-panel {
        transform: translate3d(0, 20px, 0) scale(0.94);
    }
    .review-modal-panel.review-modal-panel--open {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
    }
}

html { overflow-x: hidden; }
        body {
            font-family: 'Inter', sans-serif;
            color: #4b5563;
            background-color: #ffffff;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
        }

        /* 
           Using a lower specificity selector so Tailwind text colors 
           (like text-white) can override the default dark gray. 
        */
        :where(h1, h2, h3, h4, h5, h6) {
            color: #111111;
        }

        .transition-all-300 {
            transition: all 0.3s ease-in-out;
        }
        /* Header CTA phone – glowing shine */
        .header-cta-phone {
            border-radius: 9999px;
            padding: 0.25rem 0.5rem 0.25rem 0.25rem;
            margin: 0 -0.25rem 0 0;
            transition: box-shadow 0.35s ease, transform 0.2s ease;
            box-shadow: 0 0 18px rgba(197, 155, 39, 0.4);
        }
        .header-cta-phone:hover {
            box-shadow: 0 0 24px rgba(197, 155, 39, 0.6), 0 0 36px rgba(197, 155, 39, 0.3);
        }
        /* Service tabs: mobile horizontal scroll, active tab bottom border */
        @media (max-width: 1023px) {
            .service-tabs-scroll {
                overflow-y: hidden;
                overscroll-behavior-x: contain;
                overscroll-behavior-y: none;
                max-width: 100%;
            }
            .service-tab.active { border-bottom-color: rgba(255,255,255,0.9) !important; }
            .service-tabs-scroll::-webkit-scrollbar { height: 6px; }
            .service-tabs-scroll::-webkit-scrollbar-track { background: transparent; }
            .service-tabs-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
        }
        .modal-slide.active {
            opacity: 1 !important;
            pointer-events: auto !important;
            z-index: 1;
        }
        /* Swiper: modal slides fill height and width, content visible */
        .modal-swiper.modal-slides {
            height: 100%;
            min-height: 200px;
            width: 100%;
        }
        .modal-swiper.modal-slides .swiper-wrapper {
            height: 100%;
            align-items: stretch;
        }
        .modal-swiper.modal-slides .swiper-slide {
            height: 100%;
            width: 100%;
            flex-shrink: 0;
            box-sizing: border-box;
        }
        .modal-swiper.modal-slides .modal-slide-content {
            height: 100%;
            min-height: 100%;
            box-sizing: border-box;
            opacity: 1;
            visibility: visible;
        }

        /* Modal entrance: overlay fade + box slide up */
        #service-modal-overlay {
            opacity: 0;
            transition: opacity 0.35s ease-out;
        }
        #service-modal-overlay.modal-open {
            opacity: 1;
        }
        #service-modal {
            transform: translateY(28px) scale(0.97);
            opacity: 0;
            transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease-out;
        }
        #service-modal-overlay.modal-open #service-modal {
            transform: translateY(0) scale(1);
            opacity: 1;
        }

        /* Fallback for theme colors if Tailwind @theme isn't applied (e.g. script load order) */
        .bg-dark { background-color: #111111 !important; }
        .bg-dark-gray { background-color: #1a1a1a !important; }
        .bg-primary { background-color: #c59b27 !important; }
        .text-primary { color: #c59b27 !important; }

        /* Hero slider: ensure images/overlays stay behind text (stacking order) */
        #hero-slider-section .hero-slide > img.slide-bg {
            position: absolute;
            z-index: 0;
            inset: 0;
        }
        #hero-slider-section .hero-slide > div.absolute.inset-0 {
            z-index: 1;
        }
        #hero-slider-section .hero-slide > div.container {
            position: relative;
            z-index: 10;
        }
        #hero-slider-section .slide-content {
            position: relative;
            z-index: 2;
        }

        /* Hero slider: slide visibility (works even if Tailwind opacity utilities don't load) */
        #hero-slider-section .hero-slide {
            opacity: 0;
            transition: opacity 1s ease-in-out;
        }
        #hero-slider-section .hero-slide.opacity-100,
        #hero-slider-section .hero-slide.active-slide {
            opacity: 1;
        }
        /* Slide content: hidden by default, visible when active (Tailwind-independent) */
        #hero-slider-section .slide-content {
            opacity: 0;
            transform: translateY(2.5rem);
            transition: opacity 1s ease-in-out, transform 1s ease-in-out;
        }
        #hero-slider-section .hero-slide.active-slide .slide-content,
        #hero-slider-section .slide-content.translate-y-0 {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0);
        }

        /* Hero text/CTA fallbacks so content is readable on dark overlay if Tailwind fails */
        #hero-slider-section .slide-content h1 { color: #ffffff !important; }
        #hero-slider-section .slide-content h1 span[style*="c59b27"] { color: #c59b27 !important; }
        #hero-slider-section .slide-content h1 span.text-transparent { color: #ffffff !important; -webkit-background-clip: text; background-clip: text; }
        #hero-slider-section .slide-content h2 { color: #ffffff !important; }
        #hero-slider-section .slide-content h2 span[style*="c59b27"] { color: #c59b27 !important; }
        #hero-slider-section .slide-content h2 span.text-transparent { color: #ffffff !important; -webkit-background-clip: text; background-clip: text; }
        #hero-slider-section .slide-content h3 { color: #c59b27 !important; }
        #hero-slider-section .slide-content p { color: #d1d5db !important; }
        #hero-slider-section .slide-content a.bg-primary {
            background-color: #c59b27 !important;
            color: #ffffff !important;
        }
        #hero-slider-section .slide-content a[class*="border-white"] {
            border-color: rgba(255,255,255,0.9) !important;
            color: #ffffff !important;
        }
        @media (prefers-reduced-motion: reduce) {
            .animate-pulse-glow, .animate-spin-arc { animation: none; }
            .animate-pulse-glow { opacity: 1; filter: drop-shadow(0 0 12px rgba(197, 155, 39, 0.4)); }
        }

        /* Page loader: location pin + spinning dots + brand text */
        #page-loader .loader-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
        #page-loader .loader-pin-wrap { position: relative; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
        #page-loader .loader { width: 44.8px; height: 44.8px; position: relative; transform: rotate(45deg); }
        #page-loader .loader::before,
        #page-loader .loader::after { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 0 50%; background: transparent; background-image: radial-gradient(circle 11.2px at 50% 50%, transparent 94%, #c59b27); }
        #page-loader .loader::after { animation: loader-pin-pulse 1s infinite; transform: perspective(336px) translateZ(0); }
        @keyframes loader-pin-pulse { to { transform: perspective(336px) translateZ(168px); opacity: 0; } }
        #page-loader .loader-dots-ring { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); animation: loader-spin 1.2s linear infinite; }
        #page-loader .loader-dots-ring span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #c59b27; }
        #page-loader .loader-dots-ring span:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
        #page-loader .loader-dots-ring span:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
        #page-loader .loader-dots-ring span:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
        #page-loader .loader-dots-ring span:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }
        #page-loader .loader-dots-ring span:nth-child(5) { top: 12%; right: 12%; }
        #page-loader .loader-dots-ring span:nth-child(6) { bottom: 12%; right: 12%; }
        #page-loader .loader-dots-ring span:nth-child(7) { bottom: 12%; left: 12%; }
        #page-loader .loader-dots-ring span:nth-child(8) { top: 12%; left: 12%; }
        @keyframes loader-spin { to { transform: rotate(360deg); } }
        #page-loader .loader-brand { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 0.875rem; letter-spacing: 0.05em; color: #fff; text-transform: uppercase; margin: 0; }
        @media (prefers-reduced-motion: reduce) {
            #page-loader .loader::after { animation: none; opacity: 0; }
            #page-loader .loader-dots-ring { animation: none; }
        }

        /* Gallery bento grid: mobile-first, asymmetric layout */
        #gallery-bento {
            display: grid;
            gap: 0.75rem;
            grid-auto-rows: minmax(140px, auto);
        }
        @media (min-width: 640px) {
            #gallery-bento {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
                grid-auto-rows: minmax(160px, auto);
            }
        }
        @media (min-width: 1024px) {
            #gallery-bento {
                grid-template-columns: repeat(4, 1fr);
                grid-template-rows: repeat(3, minmax(180px, 1fr));
                gap: 1.25rem;
            }
            #gallery-bento .bento-lg {
                grid-column: 1 / 3;
                grid-row: 1 / 3;
            }
            #gallery-bento .bento-r1c3 { grid-column: 3; grid-row: 1; }
            #gallery-bento .bento-r1c4 { grid-column: 4; grid-row: 1; }
            #gallery-bento .bento-r2c3 { grid-column: 3; grid-row: 2; }
            #gallery-bento .bento-r2c4 { grid-column: 4; grid-row: 2; }
            #gallery-bento .bento-r3c1 { grid-column: 1; grid-row: 3; }
            #gallery-bento .bento-r3c2 { grid-column: 2; grid-row: 3; }
            #gallery-bento .bento-wide {
                grid-column: 3 / 5;
                grid-row: 3;
            }
        }
        .gallery-bento-item {
            position: relative;
            border-radius: 1rem;
            overflow: hidden;
            min-height: 160px;
            background: #1a1a1a;
        }
        @media (min-width: 640px) {
            .gallery-bento-item.bento-lg { min-height: 340px; }
        }
        @media (min-width: 1024px) {
            .gallery-bento-item { min-height: 0; }
        }
        .gallery-bento-item img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .gallery-bento-item:hover img {
            transform: scale(1.08);
        }
        .gallery-bento-item .bento-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(17,17,17,0.92) 0%, rgba(17,17,17,0.4) 45%, transparent 70%);
            opacity: 1;
            transition: opacity 0.35s ease, background 0.35s ease;
        }
        .gallery-bento-item:hover .bento-overlay {
            background: linear-gradient(to top, rgba(17,17,17,0.95) 0%, rgba(197,155,39,0.25) 50%, transparent 80%);
        }
        .gallery-bento-item .bento-label {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 1rem 1.25rem;
            color: #fff;
            transform: translateY(4px);
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .gallery-bento-item:hover .bento-label {
            transform: translateY(0);
        }
        .gallery-bento-item .bento-label span {
            display: block;
            font-family: Montserrat, sans-serif;
            font-weight: 700;
            font-size: 0.875rem;
            line-height: 1.2;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .gallery-bento-item .bento-label .bento-accent {
            width: 2.5rem;
            height: 3px;
            background: #c59b27;
            margin-top: 0.5rem;
            border-radius: 2px;
            transform-origin: left;
            transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .gallery-bento-item:hover .bento-label .bento-accent {
            width: 4rem;
        }
        .gallery-bento-item .bento-icon {
            position: absolute;
            top: 1rem;
            right: 1rem;
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 0.5rem;
            background: rgba(197,155,39,0.9);
            color: #111;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.9;
            transition: transform 0.35s ease, opacity 0.35s ease;
        }
        .gallery-bento-item:hover .bento-icon {
            transform: scale(1.1);
            opacity: 1;
        }
        .gallery-bento-item .bento-icon svg {
            width: 1.25rem;
            height: 1.25rem;
        }
        .gallery-bento-item {
            opacity: 1;
            transform: translateY(0);
        }
        .gallery-bento-item:not(.gallery-visible) {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease-out, transform 0.5s ease-out;
        }
        .gallery-bento-item.gallery-visible {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.5s ease-out, transform 0.5s ease-out;
        }
        @media (prefers-reduced-motion: reduce) {
            .gallery-bento-item img { transition: none; }
            .gallery-bento-item:hover img { transform: none; }
            .gallery-bento-item .bento-label,
            .gallery-bento-item .bento-label .bento-accent,
            .gallery-bento-item .bento-icon { transition: none; }
            .gallery-bento-item { opacity: 1; transform: none; transition: none; }
        }

        /* Testimonials: heavy-duty industrial */
        #testimonials {
            background-color: #1a1a1a;
        }
        #testimonials .testimonial-industrial-head {
            color: #c59b27;
            letter-spacing: 0.25em;
        }
        #testimonials .testimonial-industrial-title {
            color: #ffffff;
        }
        .testimonial-card-industrial {
            background: #252525;
            border: 2px solid #333;
            border-left: 4px solid #c59b27;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
        }
        .testimonial-card-industrial:hover {
            border-color: #444;
            border-left-color: #c59b27;
            box-shadow: 0 8px 28px rgba(0,0,0,0.5);
        }
        .testimonial-card-industrial .testimonial-stars {
            color: #c59b27;
        }
        .testimonial-card-industrial .testimonial-quote {
            color: #d4d4d4;
        }
        .testimonial-card-industrial .testimonial-author-name {
            color: #ffffff;
        }
        .testimonial-card-industrial .testimonial-author-role {
            color: #a3a3a3;
        }
        .testimonial-card-industrial .testimonial-avatar {
            background: #1a1a1a;
            border: 2px solid #c59b27;
            color: #c59b27;
        }
        #testimonials .testimonial-nav-btn {
            background: #252525;
            border: 2px solid #c59b27;
            color: #c59b27;
        }
        #testimonials .testimonial-nav-btn:hover {
            background: #c59b27;
            color: #111;
        }
        #testimonials .testimonial-dot {
            border-radius: 0;
            height: 0.25rem !important;
            min-width: 1.5rem;
        }
        #testimonials .testimonial-dot.bg-primary,
        #testimonials .testimonial-dot.w-3 {
            background-color: #c59b27 !important;
            width: 2rem !important;
        }
        #testimonials .testimonial-dot.bg-gray-300,
        #testimonials .testimonial-dot.w-2\.5 {
            background-color: #404040 !important;
            width: 1.5rem !important;
        }

        /* Weather / seasonal tip modals */
        #weather-modal-overlay {
            opacity: 0;
            transition: opacity 0.3s ease-out;
        }
        #weather-modal-overlay.weather-modal-open {
            opacity: 1;
        }
        #weather-modal {
            transform: translateY(20px) scale(0.98);
            opacity: 0;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease-out;
        }
        #weather-modal-overlay.weather-modal-open #weather-modal {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
        .weather-tip-trigger {
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s;
        }
        .weather-tip-trigger:hover {
            background: #fefce8;
            border-color: #e5d4a1;
        }

        /* About section */
        #about .about-story-accent {
            background: #1a1a1a;
            border-left: 4px solid #c59b27;
        }
        #about .about-image-wrap {
            position: relative;
            overflow: hidden;
            border-left: 4px solid #c59b27;
            box-shadow: 0 16px 40px rgba(0,0,0,0.15);
        }
        #about .about-image-wrap::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(17,17,17,0.45) 0%, transparent 50%);
            pointer-events: none;
        }
        #about .about-24-badge {
            position: absolute;
            bottom: 1rem;
            left: 1rem;
            z-index: 2;
            background: #c59b27;
            color: #111;
            font-weight: 800;
            padding: 0.5rem 0.875rem;
            font-size: 0.7rem;
            letter-spacing: 0.12em;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-family: Montserrat, sans-serif;
        }
        #about .about-proof-strip {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.5rem 1.25rem;
        }
        #about .about-proof-item {
            display: flex;
            align-items: flex-start;
            gap: 0.625rem;
            padding: 0.5rem 0;
            border-bottom: 1px solid #e5e7eb;
        }
        #about .about-proof-item:nth-child(3),
        #about .about-proof-item:nth-child(4) { border-bottom: none; }
        #about .about-proof-icon {
            width: 2rem;
            height: 2rem;
            flex-shrink: 0;
            background: #1a1a1a;
            color: #c59b27;
            border-radius: 0.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #about .about-proof-icon svg { width: 1rem; height: 1rem; }
        #about .about-ceo-block {
            padding-top: 1.25rem;
            margin-top: 1.25rem;
            border-top: 1px solid #e5e7eb;
        }
        @media (min-width: 1024px) {
            #about .about-proof-strip { grid-template-columns: repeat(4, 1fr); gap: 0 1rem; }
            #about .about-proof-item { border-bottom: none; padding: 0; }
        }
        #about .about-image-wrap.about-slider-left { position: relative; }
        #about .about-image-wrap.about-slider-left .swiper { position: absolute; inset: 0; width: 100%; height: 100%; }
        #about .about-image-wrap.about-slider-left .swiper-slide { height: 100%; }
        #about .about-image-wrap.about-slider-left .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
        #about .about-slider-right-wrap { position: relative; }
        #about .about-slider-right-wrap .about-slider-right { position: relative; width: 100%; height: 100%; }
        #about .about-slider-right-wrap .swiper-slide { height: 100%; }
        #about .about-grid .about-slider-right-wrap { height: 100%; min-height: 220px; }
        @media (min-width: 1024px) { #about .about-grid .about-slider-right-wrap { min-height: 280px; } }
        #about .about-cta-box { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
        #about .about-form-box .form-input:focus { outline: none; border-color: #c59b27; box-shadow: 0 0 0 1px #c59b27; }
        .tire-brand-slide { width: auto; min-width: 120px; max-width: 180px; flex-shrink: 0; }
        @media (min-width: 640px) { .tire-brand-slide { min-width: 140px; } }
        /* Tire carousel: ensure wrapper can translate for Swiper autoplay */
        @keyframes tire-carousel-scroll {
            0% { transform: translate3d(0, 0, 0); }
            100% { transform: translate3d(-50%, 0, 0); }
        }
        #tire-brands .tire-carousel-marquee { width: 100%; }
        #tire-brands .tire-carousel-marquee .tire-brands-track {
            display: flex;
            align-items: center;
            width: max-content;
            animation: tire-carousel-scroll 28s linear infinite;
        }
        @media (prefers-reduced-motion: reduce) {
            #tire-brands .tire-carousel-marquee .tire-brands-track { animation: none; }
        }

        /* Button hover consistency site-wide */
        .btn-hover-primary:hover { transform: scale(1.02); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
        .btn-hover-dark:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
        .btn-hover-control:hover { transform: scale(1.08); }

@keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(2rem);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .animate-fade-in-up {
            animation-name: fadeInUp;
            animation-duration: 0.8s;
            animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
        }
