/* Homepage promotional slider.
   The sf-page-shell section owns the centered site width. Swiper's root,
   wrapper, slides, and pagination remain the carousel's functional elements;
   only Swiper's breakpoints control slide widths and inter-slide spacing. */
.home-promo-section {
    position: relative;
}

.market-hero-carousel {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: .5rem 0 1.75rem;
}

.market-hero-carousel .swiper-wrapper {
    align-items: stretch;
}

.market-hero-carousel .swiper-slide {
    box-sizing: border-box;
    height: auto;
    min-width: 0;
}

.promo-card {
    position: relative;
    display: block;
    width: 100%;
    height: 16.25rem;
    min-width: 0;
    overflow: hidden;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 1.5rem;
    background: var(--banner-bg, #14221a);
    color: var(--banner-color, #fff);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .14);
    text-decoration: none;
    isolation: isolate;
    transition: transform .2s ease, box-shadow .2s ease;
}

.promo-card:focus-visible {
    outline: 3px solid var(--sf-brand-500, #2f8f4e);
    outline-offset: 3px;
}

.promo-background-image,
.promo-image-scrim {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
}

.promo-background-image {
    display: block;
    object-fit: cover;
}

.promo-image-scrim {
    background: linear-gradient(90deg, rgba(8, 14, 13, .66), rgba(8, 14, 13, .08) 100%);
}

.promo-copy {
    position: relative;
    z-index: 3;
    display: flex;
    width: min(58%, 17.5rem);
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    margin-left: clamp(1rem, 4%, 2rem);
    margin-right: auto;
    text-align: left;
}

.promo-card-title {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    color: var(--banner-accent, inherit);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 900;
    line-height: 1.06;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.promo-subtitle {
    max-width: 16rem;
    margin-top: .5rem;
    margin-right: auto;
    margin-left: 0;
    overflow: hidden;
    font-size: .875rem;
    font-weight: 800;
    line-height: 1.4;
    opacity: .92;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
}

.promo-action {
    margin-top: 1rem;
}

.promo-side-image {
    position: absolute;
    z-index: 1;
    bottom: 0;
    width: 26%;
    max-width: 8.25rem;
    height: 85%;
    object-fit: contain;
    opacity: .72;
    pointer-events: none;
}

.promo-side-image--left {
    left: 0;
    object-position: left bottom;
}

.promo-side-image--right {
    right: 0;
    object-position: right bottom;
}

/* Category previews have a reserved right column, separate from the copy. */
.sf-promo-connected .promo-copy {
    width: min(58%, 17.5rem);
}

.sf-hero-network {
    position: absolute;
    z-index: 1;
    top: .5rem;
    right: 1rem;
    bottom: .5rem;
    display: none;
    width: min(36%, 15rem);
    pointer-events: none;
}

.sf-hero-network > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .24;
}

.sf-hero-scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .45rem;
}

.sf-hero-scene-card {
    display: flex;
    min-width: 0;
    min-height: 2.7rem;
    align-items: center;
    gap: .5rem;
    overflow: hidden;
    padding: .3rem .45rem;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .94);
    color: #18251d;
    box-shadow: 0 7px 18px rgba(3, 12, 7, .15);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.sf-hero-scene-card--2 { transform: translateX(-.4rem); }
.sf-hero-scene-card--3 { transform: translateX(.2rem); }

.sf-hero-scene-image {
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    flex: 0 0 2.1rem;
    place-items: center;
    overflow: hidden;
    border-radius: .55rem;
    background: #edf5ef;
    color: #1d5f35;
    font-size: .85rem;
    font-weight: 900;
}

.sf-hero-scene-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-hero-scene-label {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    color: #24352a;
    font-size: clamp(.58rem, .8vw, .72rem);
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.market-hero-carousel .swiper-pagination {
    position: absolute;
    right: 0;
    bottom: .25rem;
    left: 0;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}

.market-hero-carousel .swiper-pagination-bullet {
    width: .4rem;
    height: .4rem;
    margin: 0 !important;
    border-radius: 999px;
    background: #94a3b8;
    opacity: .65;
    transition: width .18s ease, background-color .18s ease, opacity .18s ease;
}

.market-hero-carousel .swiper-pagination-bullet-active {
    width: 1.75rem;
    border-radius: 999px;
    background: var(--sf-brand-600, #247640);
    opacity: 1;
}

@media (min-width: 640px) {
    .sf-hero-network { display: block; }
}

@media (max-width: 767px) and (min-width: 640px) {
    .promo-card { height: 15rem; padding: 1.25rem; }
    .promo-copy { width: min(58%, 17.5rem); margin-left: .75rem; }
    .sf-hero-network { right: .75rem; width: 36%; }
    .sf-hero-scene-card { min-height: 2.4rem; gap: .35rem; padding: .25rem .35rem; }
    .sf-hero-scene-image { width: 1.8rem; height: 1.8rem; flex-basis: 1.8rem; }
    .sf-promo-connected .promo-card-title { font-size: clamp(1.35rem, 3vw, 1.75rem); }
}

@media (max-width: 639px) {
    .market-hero-carousel { padding-top: .25rem; }
    .promo-card { height: 14.5rem; padding: 1.25rem; border-radius: 1.25rem; }
    .promo-copy,
    .sf-promo-connected .promo-copy {
        width: min(92%, 22rem);
        margin-left: 0;
    }
    .promo-card-title { font-size: clamp(1.4rem, 6vw, 1.8rem); }
    .promo-subtitle { max-width: 17rem; font-size: .8rem; }
    .promo-side-image { width: 24%; max-width: 6rem; opacity: .5; }
}

@media (hover: hover) and (pointer: fine) {
    .promo-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 30px rgba(15, 23, 42, .2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-card,
    .market-hero-carousel .swiper-pagination-bullet { transition: none; }
}
