/* Banner landing animated (Mask element banner_landing_animated)
   Colors are sampled from the design PDF; adjust the variables below if needed. */

.kloc-hero {
    --kloc-bg: #f8faf9;            /* must match the baked-in edge color of the slideshow images */
    --kloc-values-bg: #e7f2ea;
    --kloc-mint: #9bcdb9;
    --kloc-mint-soft: #cfe6da;
    --kloc-text: #0d0d0d;
    --kloc-radius: 12px;

    font-family: 'Poppins', sans-serif;
    color: var(--kloc-text);
    background: var(--kloc-bg);
}

.kloc-hero *,
.kloc-hero *::before,
.kloc-hero *::after { box-sizing: border-box; }

/* ---------- Top row with logo ---------- */
.kloc-hero__top {
    position: relative;
    z-index: 4;                    /* logo hand overlaps the top of the stage, as in the design */
    height: 11.4vw;
    background: #fff;
    padding: 1.9vw 2vw 0;
}
.kloc-hero__logo img {
    display: block;
    width: clamp(180px, 20.2vw, 520px);
    height: auto;
}

/* ---------- Stage: slideshow + content ---------- */
.kloc-hero__stage {
    position: relative;
    background: var(--kloc-bg);
    aspect-ratio: 1920 / 563;      /* same ratio as the slideshow images */
}

.kloc-hero__slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.kloc-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.6s ease;
}
.kloc-hero__slide:first-child {
    opacity: 1;                                        /* no-JS fallback */
    animation: kloc-slide-in 2s ease backwards;        /* photo 1 fades in slowly with the text */
}
.kloc-hero.is-js .kloc-hero__slide:first-child { opacity: 0; }
.kloc-hero.is-js .kloc-hero__slide.is-active { opacity: 1; }
.kloc-hero__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.kloc-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 2vw 0 2vw 10.7vw;
    max-width: 62%;
}

.kloc-hero__eyebrow {
    margin: 0 0 1.1vw;
    font-size: clamp(1.25rem, 2.2vw, 3.4rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--kloc-mint);
}
.kloc-hero__heading {
    margin: 0 0 3vw;
    max-width: 46vw;
    font-size: clamp(1.5rem, 2.6vw, 4rem);
    font-weight: 500;
    line-height: 1.25;
    color: var(--kloc-text);
}

/* ---------- Location cards ---------- */
.kloc-hero__locations {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 3.6vw;
}
.kloc-loc {
    --kloc-loc-pad: 2rem;       /* inner left padding of the card */
    --kloc-loc-gap: 1.75rem;       /* gap between pin and text */
    --kloc-pin-w: 26px;

    position: relative;
    width: clamp(15rem, 17.4vw, 26rem);
    /* one shadow for card + opened panel, so they look like a single box */
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .12));
}
.kloc-loc__card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: var(--kloc-radius);
}
.kloc-loc__link {
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.kloc-loc__main {
    display: flex;
    align-items: center;
    gap: var(--kloc-loc-gap);
    padding: 1.75rem var(--kloc-loc-pad);
    color: var(--kloc-text);
}
.kloc-loc__pin { flex: none; width: var(--kloc-pin-w); height: auto; color: var(--kloc-mint); }
.kloc-loc__arrow { flex: none; color: var(--kloc-mint); transition: transform .2s ease; }
.kloc-loc__text { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.4; letter-spacing: normal; }
.kloc-loc__label { font-size: 1rem; font-weight: 400; }
.kloc-loc__title { font-size: 1.2rem; font-weight: 600; }
.kloc-loc__link:hover .kloc-loc__arrow,
.kloc-loc__link:focus-visible .kloc-loc__arrow,
.kloc-loc__toggle:hover .kloc-loc__arrow { transform: translateX(3px); }

.kloc-loc__toggle {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--kloc-loc-pad) 0 .25rem;
    border: 0;
    background: transparent;
    color: var(--kloc-mint);
    cursor: pointer;
    border-radius: 0 var(--kloc-radius) var(--kloc-radius) 0;
}

.kloc-hero a:focus-visible,
.kloc-hero button:focus-visible {
    outline: 3px solid #4a9c80;
    outline-offset: 2px;
}

/* Details panel: continues the white card downwards (aligned with the label text) */
.kloc-loc__panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    margin-top: -1rem;
    padding: 0 var(--kloc-loc-pad) 1.5rem calc(var(--kloc-loc-pad) + var(--kloc-pin-w) + var(--kloc-loc-gap));
    background: #fff;
    border-radius: 0 0 var(--kloc-radius) var(--kloc-radius);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: normal;
    color: var(--kloc-text);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.kloc-loc__panel p {
    margin: 0 0 .6rem;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
}
.kloc-loc__panel p:last-child { margin-bottom: 0; }
.kloc-loc__panel strong,
.kloc-loc__panel b { font-weight: 600; }

.kloc-loc.is-open .kloc-loc__panel {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.kloc-loc.is-open .kloc-loc__card { border-radius: var(--kloc-radius) var(--kloc-radius) 0 0; }

@media (hover: hover) {
    .kloc-loc:hover .kloc-loc__panel {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .kloc-loc:hover .kloc-loc__card { border-radius: var(--kloc-radius) var(--kloc-radius) 0 0; }
}

/* ---------- Pause button for the slideshow ---------- */
.kloc-hero__pause {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 3;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
    cursor: pointer;
}
.kloc-hero__pause-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: .8rem;
    height: .9rem;
    transform: translate(-50%, -50%);
    border-left: 3px solid #333;
    border-right: 3px solid #333;
}
.kloc-hero__pause[aria-pressed="true"] .kloc-hero__pause-icon {
    width: 0;
    height: 0;
    border-left: .8rem solid #333;
    border-right: 0;
    border-top: .5rem solid transparent;
    border-bottom: .5rem solid transparent;
    transform: translate(-35%, -50%);
}

/* ---------- Value cards ---------- */
.kloc-hero__values {
    background: var(--kloc-values-bg);
    padding: 5.2vw 4.8vw 5.2vw;
}
.kloc-values {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5vw;
}
.kloc-value {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}
.kloc-value__icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(3.5rem, 5.1vw, 6.5rem);
    height: clamp(3.5rem, 5.1vw, 6.5rem);
    border-radius: 50%;
    background: var(--kloc-mint-soft);
}
.kloc-value__icon img { width: 48%; height: auto; }
.kloc-value__body { max-width: 24rem; }
.kloc-value__title { margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 600; }
.kloc-value__text { margin: 0; font-size: .9rem; line-height: 1.5; }

/* ---------- Intro animation (staggered) ---------- */
@keyframes kloc-slide-in {
    from { opacity: 0; }
}
@keyframes kloc-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
.kloc-anim {
    animation: kloc-in 2.2s ease both;
    animation-delay: var(--kloc-d, 0s);
}
.kloc-hero__eyebrow { --kloc-d: .5s; }
.kloc-hero__heading { --kloc-d: 1.6s; }
.kloc-loc:nth-child(1) { --kloc-d: 3s; }
.kloc-loc:nth-child(2) { --kloc-d: 3.8s; }
.kloc-loc:nth-child(3) { --kloc-d: 4.6s; }

/* Value cards without JavaScript: simple timed fade-in */
.kloc-value:nth-child(1) { --kloc-d: 5s; }
.kloc-value:nth-child(2) { --kloc-d: 8s; }
.kloc-value:nth-child(3) { --kloc-d: 11s; }

/* With JavaScript: each value card appears together with its photo (see kloc-hero.js) */
.kloc-hero.is-js .kloc-value {
    animation: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1.4s ease, transform 1.4s ease;
}
.kloc-hero.is-js .kloc-value.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .kloc-anim,
    .kloc-hero__slide:first-child { animation: none; }
    .kloc-hero.is-js .kloc-value { opacity: 1; transform: none; transition: none; }
    .kloc-hero__slide,
    .kloc-loc__panel,
    .kloc-loc__arrow { transition: none; }
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 991px) {
    .kloc-hero__top { height: auto; padding: 20px 15px; }
    .kloc-hero__logo img { width: 220px; }

    .kloc-hero__stage {
        display: flex;
        flex-direction: column;
        aspect-ratio: auto;
    }
    .kloc-hero__slides {
        position: relative;
        order: -1;
        height: clamp(170px, 46vw, 320px);
    }
    .kloc-hero__pause { bottom: auto; top: calc(clamp(170px, 46vw, 320px) - 3.6rem); }
    .kloc-hero__content {
        height: auto;
        max-width: none;
        padding: 28px 20px 36px;
    }
    .kloc-hero__eyebrow { font-size: 1.25rem; margin-bottom: .6rem; }
    .kloc-hero__heading { max-width: none; font-size: 1.6rem; margin-bottom: 1.6rem; }
    .kloc-hero__heading br { display: none; }   /* manual line breaks apply on desktop only */
    .kloc-hero__heading { text-wrap: balance; }
    .kloc-hero__locations { flex-direction: column; gap: 14px; }
    .kloc-loc { width: 100%; max-width: 26rem; }

    /* details open in the page flow and push the next card down */
    .kloc-loc__panel {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        display: none;
        transform: none;
    }
    .kloc-loc.is-open .kloc-loc__panel { display: block; }
    @media (hover: hover) {
        .kloc-loc:hover .kloc-loc__panel { display: block; }
    }

    .kloc-hero__values { padding: 32px 20px 36px; }
    .kloc-values { grid-template-columns: 1fr; gap: 28px; }
    .kloc-value { align-items: flex-start; gap: 1.25rem; }
    .kloc-value__body { max-width: none; }
}
