/* ===========================================================
   Homepage Fire Rebuilds Carousel
   =========================================================== */
.home-fire-rebuilds {
    background: #1C3E60;
    color: #fff;
    padding: 90px 0 100px;
    position: relative;
    overflow: hidden;
}

.home-fire-rebuilds__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

.home-fire-rebuilds__header {
    max-width: 880px;
    margin: 0 auto 48px;
    text-align: center;
}

.home-fire-rebuilds__header .section-label {
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.home-fire-rebuilds__title {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 2.85rem);
    line-height: 1.15;
    color: #fff;
    margin: 0 0 22px;
    letter-spacing: -0.01em;
}

.home-fire-rebuilds__lede {
    font-size: 1.06rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
    margin: 0 0 28px;
}

.home-fire-rebuilds__cta {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 4px;
    transition: border-color 180ms ease, transform 180ms ease;
}

.home-fire-rebuilds__cta:hover {
    border-bottom-color: #fff;
    transform: translateX(2px);
}

/* Carousel mechanics */
.home-fire-rebuilds__carousel {
    position: relative;
    margin: 0 -32px; /* bleed slightly past container so cards can edge-fade */
}

.home-fire-rebuilds__track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 8px 32px 28px;
    -webkit-overflow-scrolling: touch;
    /* hide scrollbar */
    scrollbar-width: none;
}
.home-fire-rebuilds__track::-webkit-scrollbar { display: none; }

.home-fire-rebuilds__card {
    flex: 0 0 auto;
    width: 360px;
    aspect-ratio: 16 / 11;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    scroll-snap-align: start;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.home-fire-rebuilds__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.home-fire-rebuilds__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 480ms ease;
}

.home-fire-rebuilds__card:hover img {
    transform: scale(1.04);
}

.home-fire-rebuilds__card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 22px 18px;
    background: linear-gradient(180deg, rgba(28, 62, 96, 0) 0%, rgba(28, 62, 96, 0.55) 45%, rgba(28, 62, 96, 0.92) 100%);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-fire-rebuilds__card-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #fff;
    line-height: 1.2;
}

.home-fire-rebuilds__card-city {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.04em;
}

/* Nav arrows */
.home-fire-rebuilds__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(28, 62, 96, 0.85);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background 160ms ease, border-color 160ms ease;
    backdrop-filter: blur(6px);
}

.home-fire-rebuilds__nav:hover {
    background: #fff;
    color: #1C3E60;
    border-color: #fff;
}

.home-fire-rebuilds__nav:disabled {
    opacity: 0.35;
    cursor: default;
}
.home-fire-rebuilds__nav:disabled:hover {
    background: rgba(28, 62, 96, 0.85);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.home-fire-rebuilds__nav--prev { left: 12px; }
.home-fire-rebuilds__nav--next { right: 12px; }

/* Desktop/mobile copy split */
.home-fire-rebuilds__lede--mobile { display: none; }
.home-fire-rebuilds__lede--desktop { display: block; }

/* Swipe hint (mobile only) */
.home-fire-rebuilds__swipe-hint {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    .home-fire-rebuilds {
        padding: 56px 0 64px;
    }
    .home-fire-rebuilds__inner {
        padding: 0 20px;
    }
    .home-fire-rebuilds__header {
        margin-bottom: 24px;
    }
    .home-fire-rebuilds__header .section-label {
        font-size: 0.72rem;
        margin-bottom: 10px;
    }
    .home-fire-rebuilds__title {
        font-size: 1.65rem;
        margin-bottom: 16px;
    }
    .home-fire-rebuilds__lede {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 20px;
    }
    .home-fire-rebuilds__lede--desktop { display: none; }
    .home-fire-rebuilds__lede--mobile { display: block; }
    .home-fire-rebuilds__cta {
        font-size: 0.9rem;
    }
    .home-fire-rebuilds__carousel {
        margin: 0 -20px;
    }
    .home-fire-rebuilds__track {
        gap: 14px;
        padding: 8px 20px 20px;
    }
    .home-fire-rebuilds__card {
        width: 82vw;
        max-width: 340px;
        border-radius: 10px;
    }
    .home-fire-rebuilds__card-overlay {
        padding: 18px 18px 14px;
    }
    .home-fire-rebuilds__card-name {
        font-size: 1.15rem;
    }
    .home-fire-rebuilds__card-city {
        font-size: 0.8rem;
    }
    /* Active tap state for touch feedback */
    .home-fire-rebuilds__card:active {
        transform: scale(0.98);
    }
    /* Hide arrow buttons on mobile — use swipe */
    .home-fire-rebuilds__nav { display: none; }
    /* Show swipe hint */
    .home-fire-rebuilds__swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 14px;
        font-size: 0.78rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.55);
        font-weight: 500;
    }
    .home-fire-rebuilds__swipe-hint::before,
    .home-fire-rebuilds__swipe-hint::after {
        content: "";
        width: 24px;
        height: 1px;
        background: rgba(255, 255, 255, 0.3);
    }
}

/* Very small phones (≤360px) */
@media (max-width: 360px) {
    .home-fire-rebuilds {
        padding: 48px 0 56px;
    }
    .home-fire-rebuilds__inner {
        padding: 0 16px;
    }
    .home-fire-rebuilds__title {
        font-size: 1.5rem;
    }
    .home-fire-rebuilds__lede {
        font-size: 0.92rem;
    }
    .home-fire-rebuilds__carousel {
        margin: 0 -16px;
    }
    .home-fire-rebuilds__track {
        padding: 8px 16px 18px;
        gap: 12px;
    }
    .home-fire-rebuilds__card {
        width: 84vw;
    }
}
