/*--------------------------------------------------------------
# Homepage gateway — Mobilya / Elektronik split with sub-category shortcuts
--------------------------------------------------------------*/

.home-gate {
    padding: 30px 0 34px;
}

/* The gateway runs almost edge to edge (a slim margin on each side) instead
   of using the site's centred content width. */
.home-gate > .container {
    max-width: 1840px;
    padding-left: 28px;
    padding-right: 28px;
}

/* Two divisions side by side, with a clear gap between them */
.home-gate__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.home-gate__col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/*------------------------- division banner -------------------------*/

.home-gate__banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /* grows with the screen so the wider banners keep their proportions */
    height: clamp(340px, 23vw, 440px);
    border-radius: 18px;
    overflow: hidden;
    text-align: center;
    isolation: isolate;
    transition: transform .45s ease, box-shadow .45s ease;
}

/* Hover = focus: the card lifts and the photo comes forward (brighter, a
   touch closer). No colour wash is added. */
.home-gate__banner:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px rgba(11, 18, 32, .28);
}

/* Photo stack. With several category images they cross-fade in turn
   (site.js); with one image it simply stays. */
.home-gate__slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #0b1220;
    transition: transform 1s cubic-bezier(.2, .6, .2, 1), filter .6s ease;
}

.home-gate__banner:hover .home-gate__slides {
    transform: scale(1.05);
    filter: brightness(1.08) saturate(1.08);
}

.home-gate__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.4s ease, transform 7s linear;
}

.home-gate__bg.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Light veil: 10% dark over the whole photo, plus a soft neutral shade only
   along the bottom edge where the title and button sit, so the white text
   reads on bright photos too. On hover the veil lifts. */
.home-gate__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .32) 100%),
        rgba(0, 0, 0, .10);
    transition: opacity .5s ease;
}

.home-gate__banner:hover .home-gate__overlay {
    opacity: .55;
}

.home-gate__content {
    position: relative;
    z-index: 2;
    padding: 30px 34px 34px;
    max-width: 620px;
}

.home-gate__title {
    font-size: 46px;
    line-height: 1.1;
    font-weight: 700;
    font-family: var(--fixpro-font-two, "Titillium Web", sans-serif);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .45), 0 4px 24px rgba(0, 0, 0, .45);
}

.home-gate__text {
    font-size: 15px;
    line-height: 26px;
    color: #ffffff;
    margin: 0 0 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6), 0 2px 14px rgba(0, 0, 0, .5);
}

.home-gate__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 8px;
    background-color: #ffffff;
    color: #0060aa;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--fixpro-font-two, "Titillium Web", sans-serif);
    letter-spacing: .03em;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    transition: background-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.home-gate__banner:hover .home-gate__btn {
    background-color: #0060aa;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}

.home-gate__btn .icon-arrow-right {
    font-size: 12px;
    transition: transform .3s ease;
}

.home-gate__banner:hover .home-gate__btn .icon-arrow-right {
    transform: translateX(5px);
}

/* Small dots showing which photo is up (only when there are several) */
.home-gate__dots {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 3;
    display: flex;
    gap: 6px;
}

.home-gate__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .55);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    transition: width .4s ease, background-color .4s ease;
}

.home-gate__dots span.is-active {
    width: 22px;
    border-radius: 6px;
    background-color: #ffffff;
}

/*------------------------- sub-category shortcut boxes -------------------------*/

.home-gate__subs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.gate-sub {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 128px;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    isolation: isolate;
    text-decoration: none;
    transition: transform .4s ease, box-shadow .4s ease;
}

.gate-sub:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(11, 18, 32, .24);
}

.gate-sub__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Shown when the sub-category has no photo yet: brand blue, not black. */
    background: linear-gradient(135deg, #0a6fbf 0%, #004a85 100%);
    background-size: cover;
    background-position: center;
    transition: transform .6s ease, filter .5s ease;
}

.gate-sub:hover .gate-sub__bg {
    transform: scale(1.08);
    filter: brightness(1.08) saturate(1.08);
}

/* 10% dark veil over the photo; it lifts on hover. */
.gate-sub__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, .10);
    transition: opacity .4s ease;
}

.gate-sub:hover .gate-sub__overlay {
    opacity: 0;
}

/* Title label along the bottom edge */
.gate-sub__title {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 8px 14px;
    background-color: rgba(0, 96, 170, .92);
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
    font-family: var(--fixpro-font-two, "Titillium Web", sans-serif);
    color: #ffffff;
    transition: background-color .4s ease;
}

.gate-sub:hover .gate-sub__title {
    background-color: #004a85;
}

@media (prefers-reduced-motion: reduce) {
    .home-gate__bg {
        transition: opacity .6s ease;
        transform: none;
    }
}

/*------------------------- responsive -------------------------*/

@media only screen and (max-width: 991px) {
    .home-gate > .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .home-gate__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Stacked layout: let a long description grow the banner instead of
       pushing the title out of its top edge. */
    .home-gate__banner {
        height: auto;
        min-height: 300px;
    }

    .home-gate__content {
        padding-top: 90px;
    }

    .home-gate__title {
        font-size: 36px;
    }
}

@media only screen and (max-width: 575px) {
    .home-gate {
        padding: 22px 0 40px;
    }

    .home-gate__banner {
        min-height: 240px;
    }

    .home-gate__content {
        padding: 80px 20px 26px;
    }

    .home-gate__title {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .home-gate__text {
        margin-bottom: 18px;
    }

    .gate-sub {
        height: 104px;
    }

    .gate-sub__title {
        font-size: 14px;
    }
}
