/* ===== 6. Infrastructure slider: looping tall photo cards ===== */
.hm-infra { --hm-infra-gap: 0; position: relative; overflow: hidden; }

/* Heading row (Editorial) / arrows over the slider (Classic) */
.hm-infra__top {
    position: absolute;
    inset: 50% 0 auto;
    z-index: 3;
    transform: translateY(-50%);
    pointer-events: none;
}
.hm-infra__head { display: none; }
.hm-infra__nav { display: flex; justify-content: space-between; padding-inline: clamp(12px, 1.6vw, 24px); }
.hm-infra__nav .hm-nav-btn { --_size: 42px; pointer-events: auto; }
.hm-infra--static .hm-infra__nav { display: none; }

/* Cards */
.hm-infra__card {
    position: relative;
    height: clamp(380px, 31vw, 520px);
    overflow: hidden;
    background: #1d1c1a;
    color: #fff;
    isolation: isolate;
}
.hm-infra__img {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus, 50% 50%);
    transition: transform .9s var(--hm-ease), filter .6s var(--hm-ease);
}
.hm-infra__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .18) 42%, rgba(0, 0, 0, .2) 100%);
}
.hm-infra__card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(32, 32, 30, .55);
    opacity: 0;
    transition: opacity .5s var(--hm-ease);
}
.hm-infra__body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(28px, 3vw, 48px) clamp(24px, 2.6vw, 40px);
}
.hm-infra__eyebrow { margin: 0; font-size: 12px; font-weight: 400; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; }
.hm-infra__title {
    margin: 6px 0 0;
    font-family: var(--hm-font-head);
    font-size: clamp(20px, 1.7vw, 26px);
    font-weight: var(--hm-head-weight);
    line-height: 1.15;
    transition: font-size .45s var(--hm-ease);
}
.hm-infra__more {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .5s var(--hm-ease), opacity .4s var(--hm-ease);
}
.hm-infra__more-inner { min-height: 0; overflow: hidden; }
.hm-infra__text { max-width: 320px; margin: 28px 0 0; font-size: 14px; line-height: 1.5; }
.hm-infra__btn { min-width: 150px; margin: 30px 0 4px; }

/* Reveal: hover on pointer devices, focus for keyboard */
.hm-infra__card:focus-within .hm-infra__more { grid-template-rows: 1fr; opacity: 1; }
.hm-infra__card:focus-within::after { opacity: 1; }
@media (hover: hover) and (min-width: 768px) {
    .hm-infra__card:hover .hm-infra__more { grid-template-rows: 1fr; opacity: 1; }
    .hm-infra__card:hover::after { opacity: 1; }
    .hm-infra__card:hover .hm-infra__img, .hm-infra__card:focus-within .hm-infra__img { filter: blur(9px); transform: scale(1.1); }
    .hm-infra__card:hover .hm-infra__title, .hm-infra__card:focus-within .hm-infra__title { font-size: clamp(26px, 2.4vw, 38px); }
}

/* Touch / phones: the description is always visible at the bottom of the card */
@media (hover: none), (max-width: 767px) {
    .hm-infra__more { grid-template-rows: 1fr; opacity: 1; margin-top: auto; }
    .hm-infra__card::after { opacity: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .7) 100%); }
    .hm-infra__text {
        display: -webkit-box;
        margin-top: 0;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
    .hm-infra__btn { min-height: 40px; margin-top: 16px; }
}
@media (max-width: 767px) {
    .hm-infra__card { height: 440px; }
    .hm-infra__nav { display: none; }
}

/* Without Swiper: native horizontal scroll-snap */
.hm-infra__slider:not(.swiper-initialized) .swiper-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.hm-infra__slider:not(.swiper-initialized) .hm-infra__card { flex: 0 0 min(85%, 380px); scroll-snap-align: start; }
