/* ============================================================
   Location Hub — How It Works
   File: assets/css/hub/hub-how.css
   Scope: .hub-how__* classes only
   Figma: "How Block" node 2115:391 — navy bg, Swiper row of 4
   numbered step cards.
   ============================================================ */

.hub-how {
    background: var(--hub-navy);
    color: var(--hub-cream);
    padding: var(--hub-section-pad) 0;
    overflow: hidden;
}

.hub-how__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.hub-how__heading {
    font-family: var(--hub-font-serif);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: var(--hub-cream);
    margin: 0;
}

.hub-how__swiper {
    position: relative; /* contains the absolutely-positioned nav arrows */
    margin-bottom: 48px;
}

/* Carousel nav arrows — same treatment as .hub-wws__cities: Swiper's
   default button restyled as a solid blue circle. Hidden on mobile,
   where the row relies on touch/swipe only. */
.hub-how__swiper .swiper-button-next,
.hub-how__swiper .swiper-button-prev {
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    background: var(--hub-blue);
    border-radius: 50%;
    --swiper-navigation-color: var(--hub-white);
    --swiper-navigation-size: 16px;
    transition: opacity 0.15s;
}

.hub-how__swiper .swiper-button-next {
    right: 0;
}

.hub-how__swiper .swiper-button-prev {
    left: 0;
}

.hub-how__swiper .swiper-button-next:hover,
.hub-how__swiper .swiper-button-prev:hover {
    opacity: 0.88;
}

.hub-how__swiper .swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.hub-how__swiper .swiper-slide {
    width: 386px;
    flex-shrink: 0;
    height: auto;
}

.hub-how__card {
    box-sizing: border-box;
    width: 386px;
    height: 316px;
    background: var(--hub-white);
    border-radius: 30px;
    /* Top-anchored, not vertically centered: step_body copy varies in
       line-count between steps, and centering the whole block made the
       icon/label/title sit at a different height on every card. Anchoring
       from the top keeps the icon row identical across all cards; only
       the body's bottom whitespace varies. */
    padding: 22px 18px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    text-align: center;
}

.hub-how__step-icon {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    object-fit: contain;
}

.hub-how__step-label {
    width: 100%;
    font-family: var(--hub-font-sans);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.0112em;
    color: var(--hub-blue);
    margin: 0;
}

.hub-how__step-title {
    width: 100%;
    font-family: var(--hub-font-serif);
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--hub-navy);
    margin: 0;
}

.hub-how__step-body {
    width: 100%;
    font-family: var(--hub-font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 22.5px;
    letter-spacing: -0.04em;
    color: var(--hub-navy);
    margin: 0;
}

.hub-how__cta {
    text-align: center;
}

.hub-how__cta-intro {
    font-family: var(--hub-font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 22.5px;
    letter-spacing: -0.04em;
    text-align: center;
    color: var(--hub-cream);
    margin: 0 0 20px;
}


/* ============================
   RESPONSIVE — HOW IT WORKS
   ============================ */

@media (max-width: 768px) {
    .hub-how__heading {
        font-size: 32px;
    }

    /* Mobile relies on touch/swipe scrolling, not the arrow controls */
    .hub-how__swiper .swiper-button-next,
    .hub-how__swiper .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 480px) {
    .hub-how__swiper .swiper-slide,
    .hub-how__card {
        width: 300px;
    }

    .hub-how__step-title {
        font-size: 28px;
    }
}
