/* =========================================================
   KARABULUT HOMEPAGE — 01 HERO
   Container-based copy + portrait Vimeo video card.
   ========================================================= */
.kb-hero {
    position: relative;
    width: 100%;
    min-height: 680px;
    height: calc(100vh - var(--kb-header-height));
    max-height: 820px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--kb-white);
}

.kb-hero__inner {
    width: min(calc(100% - (var(--kb-gutter) * 2)), var(--kb-container));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(28px, 2.8vw, 42px);
    align-items: center;
}

.kb-hero__copy {
    min-width: 0;
    display: flex;
    align-items: center;
}

.kb-hero__content {
    width: 100%;
    max-width: 830px;
    padding: 48px 0 54px;
}

.kb-hero__signature-wrap {
    min-height: 150px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 22px;
}

.kb-hero__signature {
    width: auto;
    height: auto;
    max-width: 292px;
    max-height: 225px;
    object-fit: contain;
    object-position: left bottom;
}

.kb-hero__title {
    max-width: 760px;
    margin: 0;
    color: #262626;
    font-family: var(--kb-font);
    font-size: clamp(35px, 2.25vw, 44px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.022em;
    text-transform: uppercase;
}

.kb-hero__actions {
    width: max-content;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    margin-top: 34px;
}

.kb-hero__button {
    min-width: 222px;
    min-height: var(--kb-home-cta-height);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 11px 7px;
    color: var(--kb-white);
    font-family: var(--kb-font);
    font-size: var(--kb-home-cta-font-size);
    font-weight: var(--kb-home-cta-font-weight);
    line-height: 1;
    text-transform: uppercase;
    transition: background-color var(--kb-transition), color var(--kb-transition);
}

.kb-hero__button:hover,
.kb-hero__button:focus-visible {
    color: var(--kb-white);
}

.kb-hero__button--primary {
    background: var(--kb-primary);
}

.kb-hero__button--primary:hover,
.kb-hero__button--primary:focus-visible {
    background: var(--kb-primary-dark);
}

.kb-hero__button--accent {
    background: var(--kb-accent);
}

.kb-hero__button--accent:hover,
.kb-hero__button--accent:focus-visible {
    background: var(--kb-accent-dark);
}

.kb-hero__button-arrow {
    flex: 0 0 auto;
    font-size: 19px;
    font-weight: 400;
    line-height: .7;
    transform: translateY(-1px);
    transition: transform var(--kb-transition);
}

.kb-hero__button:hover .kb-hero__button-arrow,
.kb-hero__button:focus-visible .kb-hero__button-arrow {
    transform: translate(3px, -1px);
}

/* Portrait / Reels video card kept inside the same 1250px container. */
.kb-hero__media {
    position: relative;
    justify-self: end;
    width: min(100%, 360px);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #ececec;
}

.kb-hero__media-poster,
.kb-hero__media-image,
.kb-hero__media-placeholder {
    width: 100%;
    height: 100%;
}

.kb-hero__media-image {
    object-fit: cover;
    object-position: center center;
}

.kb-hero__media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ededed;
    color: var(--kb-primary);
    font-family: var(--kb-font);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .02em;
}

.kb-hero__media-placeholder-logo {
    width: auto;
    height: auto;
    max-width: 58%;
    max-height: 150px;
    object-fit: contain;
    opacity: .6;
}

.kb-hero-video__trigger {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    color: var(--kb-white);
    background: transparent;
    font-family: var(--kb-font);
    text-align: center;
}

.kb-hero-video__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 23, 44, .08) 0%, rgba(18, 23, 44, .16) 42%, rgba(18, 23, 44, .58) 100%);
    transition: background-color var(--kb-transition), opacity var(--kb-transition);
}

.kb-hero-video__content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: clamp(42px, 7vh, 74px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.kb-hero-video__caption {
    display: block;
    max-width: 310px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.15;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .28);
}

.kb-hero-video__play {
    width: 64px;
    height: 64px;
    display: block;
    transition: transform var(--kb-transition);
}

.kb-hero-video__play svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.kb-hero-video__play circle {
    fill: rgba(255, 255, 255, .94);
    stroke: rgba(255, 255, 255, .45);
    stroke-width: 1;
}

.kb-hero-video__play path {
    fill: var(--kb-accent);
}

.kb-hero-video__trigger:hover .kb-hero-video__play,
.kb-hero-video__trigger:focus-visible .kb-hero-video__play {
    transform: scale(1.07);
}

.kb-hero-video__trigger:focus-visible {
    outline: 2px solid var(--kb-accent);
    outline-offset: -4px;
}

.kb-hero-video__iframe {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.kb-hero__media.is-playing .kb-hero-video__trigger {
    opacity: 0;
    pointer-events: none;
}


/* Custom playback control: Vimeo chrome stays hidden; only Karabulut UI is shown. */
.kb-hero-video__playback {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 6;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--kb-accent);
    background: transparent;
    cursor: pointer;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .24));
    transition: transform var(--kb-transition), opacity var(--kb-transition);
}

.kb-hero-video__playback[hidden] {
    display: none !important;
}

.kb-hero-video__playback:hover,
.kb-hero-video__playback:focus-visible {
    transform: scale(1.06);
}

.kb-hero-video__playback:focus-visible {
    outline: 2px solid var(--kb-accent);
    outline-offset: 3px;
}

.kb-hero-video__playback-icon,
.kb-hero-video__playback-icon svg {
    width: 48px;
    height: 48px;
    display: block;
}

.kb-hero-video__playback-icon circle {
    fill: rgba(255, 255, 255, .94);
    stroke: rgba(255, 255, 255, .55);
    stroke-width: 1;
}

.kb-hero-video__playback-icon path {
    fill: var(--kb-accent);
}

.kb-hero-video__playback-icon--play {
    display: none;
}

.kb-hero-video__playback.is-paused .kb-hero-video__playback-icon--pause {
    display: none;
}

.kb-hero-video__playback.is-paused .kb-hero-video__playback-icon--play {
    display: block;
}

@media (max-width: 1180px) {
    .kb-hero {
        min-height: 620px;
        height: auto;
        max-height: none;
        padding: 34px 0;
    }

    .kb-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(285px, 350px);
        gap: clamp(36px, 5vw, 64px);
    }

    .kb-hero__title {
        font-size: clamp(31px, 3.4vw, 39px);
    }

    .kb-hero__signature {
        max-width: 245px;
        max-height: 188px;
    }

    .kb-hero__media {
        width: min(100%, 330px);
    }
}

@media (max-width: 820px) {
    .kb-hero {
        min-height: 0;
        height: auto;
        padding: 0;
    }

    .kb-hero__inner {
        width: min(calc(100% - (var(--kb-gutter) * 2)), var(--kb-container));
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .kb-hero__copy {
        order: 1;
    }

    .kb-hero__content {
        max-width: 100%;
        padding: 48px 0 44px;
    }

    .kb-hero__signature-wrap {
        min-height: 0;
        margin-bottom: 24px;
    }

    .kb-hero__signature {
        max-width: min(220px, 62vw);
        max-height: 170px;
    }

    .kb-hero__title {
        max-width: 640px;
        font-size: clamp(30px, 7vw, 42px);
        line-height: 1.07;
    }

    .kb-hero__actions {
        width: min(100%, 280px);
        margin-top: 28px;
    }

    .kb-hero__button {
        width: 100%;
    }

    .kb-hero__media {
        order: 2;
        justify-self: auto;
        align-self: stretch;
        width: 100%;
        max-width: none;
        max-height: none;
        margin: 0 0 44px;
    }

    .kb-hero-video__content {
        bottom: 44px;
    }
}

@media (max-width: 480px) {
    .kb-hero__content {
        padding: 38px 0 36px;
    }

    .kb-hero__title {
        font-size: clamp(27px, 8.6vw, 36px);
    }

    .kb-hero__button {
        min-height: 40px;
        font-size: var(--kb-home-cta-font-size);
    }

    .kb-hero__media {
        width: 100%;
        max-width: none;
        margin-bottom: 38px;
    }

    .kb-hero-video__caption {
        font-size: 16px;
    }

    .kb-hero-video__play {
        width: 58px;
        height: 58px;
    }
}

/* English desktop hero: keep the long message on the intended lines. */
@media (min-width: 821px) {
    .kb-lang-en .kb-hero__title {
        font-size: clamp(30px, 2.25vw, 30px);
    }
}
