/* Insights home — combined design: centered hero with lens dock (idea B) + sticky lens story (idea A) */

:root {
    --ins-gold: #bda477;
    --ins-gold-dark: #a28050;
    --ins-navy: #2f3652;
    --ins-navy-2: #495275;
    --ins-ink: #212529;
    --ins-line: #dee2e6;
}

/* position: sticky breaks when html/body clip overflow with "hidden" (it makes body a scroll
   container that never scrolls). clip hides overflow without that side effect. */
body {
    overflow-x: clip;
    overflow-y: visible;
}

/* shared with the JakBizHub page; kept here so this page does not load jakbizhub.css */
.btn_carousel {
    border-radius: 30px;
}

.img_gedung img {
    height: auto;
    width: 100%;
}

/* hero */
.insh-hero {
    position: relative;
    height: 88vh;
    min-height: 600px;
}

.insh-hero .carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.insh-hero-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 110px 16px 120px;
    color: #fff;
}

/* sizes grow with the viewport (63px title at 1440px, capped at 72px) so the block stays balanced on wide screens */
.insh-title {
    font-size: clamp(40px, 4.4vw, 72px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 22px;
    text-wrap: balance;
}

.insh-lead {
    font-size: clamp(22px, 2.2vw, 36px);
    line-height: 1.45;
    margin-bottom: 16px;
}

.ins-rotator {
    display: inline-block;
    color: var(--ins-gold);
    font-weight: 700;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.ins-rotator.is-leaving {
    opacity: 0;
    transform: translateY(8px);
}

.insh-desc {
    font-size: clamp(16px, 1.35vw, 21px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    max-width: 820px;
    margin: 0 auto 36px;
    text-wrap: balance;
}

.insh-hero .btn_carousel {
    width: auto !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    background-color: var(--ins-gold);
    color: #fff;
    font-weight: 600;
    font-size: clamp(17px, 1.35vw, 21px);
    transition: background-color 0.15s ease-in-out;
}

.insh-hero .btn_carousel:hover,
.insh-hero .btn_carousel:focus-visible {
    background-color: var(--ins-gold-dark);
    color: #fff;
}

.insh-hero .btn_carousel img {
    height: 22px;
}

/* lens dock: overlaps the bottom edge of the hero */
.insh-dock {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 20;
    transform: translate(-50%, 50%);
    width: min(1080px, calc(100% - 32px));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.insh-dock a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
    text-decoration: none;
    color: var(--ins-navy);
    border-right: 1px solid var(--ins-line);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.insh-dock a:last-child {
    border-right: 0;
}

.insh-dock a:hover,
.insh-dock a:focus-visible {
    background: var(--ins-navy);
    color: #fff;
}

.insh-dock-icon {
    flex: none;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(189, 164, 119, 0.15);
    color: var(--ins-gold-dark);
    font-size: 18px;
}

.insh-dock a:hover .insh-dock-icon,
.insh-dock a:focus-visible .insh-dock-icon {
    background: var(--ins-gold);
    color: #fff;
}

.insh-dock small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ins-gold-dark);
}

.insh-dock a:hover small,
.insh-dock a:focus-visible small {
    color: #e7d7b6;
}

.insh-dock strong {
    display: block;
    font-size: 15px;
    line-height: 1.3;
}

.insl-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    padding: 13px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.insl-btn-primary {
    background: var(--ins-gold);
    color: #fff;
    border: 1.5px solid var(--ins-gold);
}

.insl-btn-primary:hover,
.insl-btn-primary:focus-visible {
    background: var(--ins-gold-dark);
    border-color: var(--ins-gold-dark);
    color: #fff;
}

.insl-btn img {
    height: 18px;
}

/* four lenses: sticky media + scrolling steps */
.insl-lenses {
    position: relative;
    overflow: clip; /* not hidden: hidden would break position: sticky */
    padding-top: 90px; /* room for the lens dock */
}

.insl-lenses .titik {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 800px;
    pointer-events: none;
}

.insl-head {
    position: relative;
    z-index: 3;
    max-width: 760px;
    margin: 0 auto;
    padding-top: 48px;
    text-align: center;
    color: var(--ins-navy);
}

.insl-head p {
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.6;
    color: #495057;
    text-wrap: balance;
}

.insl-story {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 56px;
    padding-top: 48px;
}

.insl-stage {
    position: sticky;
    top: 110px;
    align-self: start;
}

.insl-stage-frame {
    position: relative;
    border: 1.5px solid var(--ins-gold);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.ins-lens-media {
    position: relative;
    aspect-ratio: 800 / 541;
    overflow: hidden;
}

.ins-lens-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* the live panel is laid out at 800 × 541 (its native size) and scaled to fit */
.ins-lens-media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 800px;
    height: 541px;
    border: 0;
    transform: scale(var(--lens-scale, 1));
    transform-origin: 0 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.ins-lens-media iframe.is-ready {
    opacity: 1;
}

.insl-stage-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.insl-stage-bar button {
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: var(--ins-line);
    transition: background-color 0.3s ease;
}

.insl-stage-bar button.is-active {
    background: var(--ins-gold);
}

.insl-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insl-step {
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0 24px 28px;
    border-left: 2px solid var(--ins-line);
    opacity: 0.4;
    transition: opacity 0.35s ease, border-color 0.35s ease;
}

.insl-step.is-active {
    opacity: 1;
    border-left-color: var(--ins-gold);
}

.insl-step-num {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ins-navy);
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
}

.insl-step.is-active .insl-step-num {
    background: var(--ins-gold);
}

.insl-step-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ins-gold-dark);
    margin-bottom: 6px;
}

.insl-step h3 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ins-navy);
    margin-bottom: 12px;
}

.insl-step > p {
    font-size: 15px;
    line-height: 1.65;
    color: #495057;
    margin-bottom: 16px;
}

.insl-step .ins-lens-media {
    display: none; /* shown inline on small screens only */
}

.ins-lens-outputs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ins-lens-outputs li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    line-height: 21px;
    color: var(--ins-ink);
    margin-bottom: 8px;
}

/* CSS-only check: the site's Font Awesome kit swaps <i> icons for SVGs */
.ins-lens-outputs li::before {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--ins-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* how it works */
.insl-flow {
    position: relative;
    z-index: 3;
    margin-top: 64px;
    padding: 40px;
    border-radius: 12px;
    background: var(--ins-navy);
    color: #fff;
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    align-items: center;
    gap: 32px;
}

.insl-flow-step {
    display: flex;
    gap: 14px;
}

.insl-flow-icon {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid var(--ins-gold);
    color: var(--ins-gold);
}

.insl-flow-step strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.insl-flow-step span {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

.insl-lenses .img_gedung {
    margin-top: -40px;
}


/* the dock marks the lens currently in the story */
.insh-dock a.is-active {
    box-shadow: inset 0 -3px 0 var(--ins-gold);
}

@media (max-width: 991.98px) {
    .insh-dock {
        grid-template-columns: repeat(2, 1fr);
    }

    .insh-dock a:nth-child(2) {
        border-right: 0;
    }

    .insh-dock a:nth-child(-n + 2) {
        border-bottom: 1px solid var(--ins-line);
    }

    .insl-lenses {
        padding-top: 150px;
    }

    .insl-story {
        grid-template-columns: 1fr;
    }

    .insl-stage {
        display: none;
    }

    .insl-step {
        min-height: 0;
        opacity: 1;
        border-left-color: var(--ins-gold);
    }

    .insl-step .ins-lens-media {
        display: block;
        border: 1.5px solid var(--ins-gold);
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .insl-flow {
        grid-template-columns: 1fr;
        padding: 28px;
    }
}

@media (max-width: 767.98px) {
    .insh-title {
        font-size: 32px;
    }

    .insh-lead {
        font-size: 20px;
    }

    .insh-desc {
        font-size: 15px;
    }

    .insh-hero .btn_carousel {
        padding: 12px 28px;
        font-size: 15px !important;
    }

    .insh-hero .btn_carousel img {
        height: 18px;
    }

    .insh-dock a {
        padding: 14px 12px;
        gap: 10px;
    }

    .insh-dock-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .insh-dock strong {
        font-size: 13px;
    }

    .insl-step h3 {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ins-rotator,
    .insl-step {
        transition: none;
    }
}
