/* ============================================
   JG Roofing & Building — Global Styles
   ============================================ */

/* --- Utility --- */
.hero-gradient {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.red-accent {
    border-bottom: 4px solid #E82C2A;
    padding-bottom: 2px;
}

/* --- Service Cards --- */
.service-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: #E82C2A;
}

/* ============================================
   Before / After Comparison Slider
   ============================================ */
.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1.25rem;
    user-select: none;
}
.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 3px solid #E82C2A;
}
.before-wrapper img {
    width: calc(100% * (100 / var(--split, 50)));
    max-width: none;
}
.slider-control {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: ew-resize;
}
.slider-handle-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: #E82C2A;
    border-radius: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}
.label-tag {
    position: absolute;
    bottom: 10px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 3px;
    z-index: 3;
}

/* ============================================
   Footer — Racing Stripe Layout
   ============================================ */
.footer-stripe {
    background: linear-gradient(
        115deg,
        #fff 45%,
        #000 46%, #000 49%,
        #E82C2A 50%, #E82C2A 55%,
        #000 56%, #000 59%,
        #1B4F91 60%
    );
}

/* Footer container — horizontal on desktop, stacked on mobile */
.footer-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 8px solid #E82C2A;
}
@media (min-width: 1024px) {
    .footer-container { flex-direction: row; }
}

/* Logo panel — fire gradient background */
.footer-fire-logo {
    background: #1B4F91;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    width: 100%;
}
@media (min-width: 1024px) {
    .footer-fire-logo { width: 22%; flex-shrink: 0; }
}

/* Racing diagonal stripes divider */
.footer-stripes {
    width: 100%;
    height: 50px;
    background: linear-gradient(
        175deg,
        #fff 40%, #000 40.5%, #000 42%,
        #E82C2A 42.5%, #E82C2A 50%,
        #000 50.5%, #000 52%,
        #1B4F91 52.5%, #1B4F91 60%,
        #fff 60.5%, #fff 63%,
        #1B4F91 63.5%
    );
    flex-shrink: 0;
}
@media (min-width: 1024px) {
    .footer-stripes {
        width: 80px;
        height: auto;
        background: linear-gradient(
            115deg,
            #fff 40%, #000 40.5%, #000 42%,
            #E82C2A 42.5%, #E82C2A 50%,
            #000 50.5%, #000 52%,
            #1B4F91 52.5%, #1B4F91 60%,
            #fff 60.5%, #fff 63%,
            #1B4F91 63.5%
        );
    }
}

/* Main footer content grid */
.footer-main {
    background-color: #1B4F91;
    flex: 1;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
}

/* Footer columns */
.footer-col {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}
@media (max-width: 1023px) {
    .footer-col {
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
        padding-left: 0;
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
    transition: transform 0.4s ease;
    transform: translateX(100%);
}
#mobile-menu.active {
    transform: translateX(0);
}