/* ============================================================
   HALAMAN UTAMA — hero video, header overlay, dan section baru.
   Dimuat SETELAH redesign.css, hanya di index.html, sehingga
   halaman berita tetap memakai header putih biasa.
   ============================================================ */

/* ------------------------------------------------------------
   HEADER OVERLAY (transparan di atas video)
   ------------------------------------------------------------ */
.site-header--overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    transition: background .35s, border-color .35s, box-shadow .35s;
}

/* Bar informasi di atas menu */
.topbar {
    max-height: 44px;
    overflow: hidden;
    background: rgba(3, 141, 64, .88);
    color: rgba(255, 255, 255, .92);
    font-size: .84rem;
    transition: max-height .35s, opacity .35s;
}

.topbar-inner {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 26px;
}

.topbar a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color .25s;
}

.topbar a:hover {
    color: var(--yellow);
}

.topbar-social {
    display: flex;
    gap: 16px;
}

/* Logo diberi alas putih agar warna hijaunya tetap terbaca di atas video */
.site-header--overlay .brand img {
    background: rgba(255, 255, 255, .94);
    padding: 6px 12px;
    border-radius: 12px;
    height: 48px;
    transition: background .35s, padding .35s;
}

.site-header--overlay .nav-toggle {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
}

@media (min-width: 861px) {
    .site-header--overlay nav a {
        color: #fff;
    }

    .site-header--overlay nav a:hover {
        color: #fff;
        background: rgba(255, 255, 255, .14);
    }
}

/* Setelah di-scroll: header berubah putih solid */
.site-header--overlay.is-stuck,
.site-header--overlay.nav-open {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(3, 141, 64, .08);
}

.site-header--overlay.is-stuck .topbar {
    max-height: 0;
    opacity: 0;
}

.site-header--overlay.is-stuck .brand img,
.site-header--overlay.nav-open .brand img {
    background: transparent;
    padding: 0;
    height: 44px;
}

.site-header--overlay.is-stuck nav a {
    color: var(--ink);
}

.site-header--overlay.is-stuck nav a:hover {
    color: var(--green-700);
    background: var(--green-50);
}

.site-header--overlay.is-stuck .nav-toggle,
.site-header--overlay.nav-open .nav-toggle {
    background: var(--white);
    border-color: var(--line);
    color: var(--green-700);
}

/* ------------------------------------------------------------
   HERO VIDEO
   ------------------------------------------------------------ */
.vhero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: var(--green-900) url('../img/hero.jpg') center / cover no-repeat;
    isolation: isolate;
}

.vhero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Lapisan gelap kehijauan agar teks selalu terbaca */
.vhero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(4, 51, 26, .75) 0%, rgba(4, 51, 26, .45) 38%, rgba(4, 51, 26, .55) 65%, rgba(4, 51, 26, .9) 100%),
        radial-gradient(ellipse at center, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .35) 100%);
}

.vhero-content {
    position: relative;
    padding-top: 150px;
    padding-bottom: 150px;
    max-width: 920px;
}

.vhero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 26px;
}

.vhero-eyebrow i {
    color: var(--yellow);
}

.vhero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 7vw, 5rem);
    letter-spacing: -.035em;
    line-height: 1.06;
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}

.vhero h1 .accent {
    color: var(--yellow);
}

.vhero .lead {
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, .9);
    max-width: 40rem;
    margin: 0 auto 38px;
}

/* Konten hero langsung tampil saat dimuat (tidak menunggu scroll) */
.vhero-content > * {
    animation: heroIn .9s cubic-bezier(.2, .8, .2, 1) both;
}

.vhero-content > :nth-child(2) { animation-delay: .12s; }
.vhero-content > :nth-child(3) { animation-delay: .24s; }
.vhero-content > :nth-child(4) { animation-delay: .36s; }

@keyframes heroIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

.vhero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* Baris bawah hero: indikator gulir + kontrol video */
.vhero-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 96px;
    z-index: 2;
}

.vhero-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.scroll-cue .mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, .75);
    border-radius: 14px;
    position: relative;
}

.scroll-cue .mouse::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 7px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--yellow);
    animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}

.video-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px 9px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(0, 0, 0, .25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font: inherit;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s, border-color .25s;
}

.video-toggle:hover {
    background: rgba(0, 0, 0, .45);
    border-color: rgba(255, 255, 255, .6);
}

.video-toggle i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--yellow);
    color: var(--green-900);
    font-size: .75rem;
}

/* ------------------------------------------------------------
   PITA FAKTA (menumpuk di bawah hero)
   ------------------------------------------------------------ */
.facts-band {
    position: relative;
    z-index: 5;
    margin-top: -64px;
}

.facts-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    overflow: hidden;
}

.facts-card .fact-item {
    padding: 30px 32px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.facts-card .fact-item + .fact-item {
    border-left: 1px solid var(--line);
}

.facts-card b {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--green-600);
    line-height: 1;
    flex-shrink: 0;
}

.facts-card span {
    font-size: .92rem;
    line-height: 1.5;
    color: var(--body);
}

/* ------------------------------------------------------------
   MENGAPA KAMI — fitur bernomor
   ------------------------------------------------------------ */
.why-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 56px;
}

.why-head h2 {
    font-size: clamp(2rem, 4vw, 2.9rem);
}

.why-head h2 small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 10px;
}

.why-head p {
    color: var(--muted);
    font-size: 1.05rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.why-item {
    position: relative;
    padding: 30px 26px 32px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    transition: transform .35s cubic-bezier(.34, 1.2, .64, 1), box-shadow .35s, border-color .35s;
}

.why-item::before {
    content: "";
    position: absolute;
    left: 26px;
    right: 26px;
    top: 0;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--green-600), var(--yellow));
    transform: scaleX(.25);
    transform-origin: left;
    transition: transform .4s;
}

.why-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.why-item:hover::before {
    transform: scaleX(1);
}

.why-num {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.why-num span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--green-400);
}

.why-num i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--green-50);
    color: var(--green-600);
    font-size: 1.1rem;
    transition: background .3s, color .3s;
}

.why-item:hover .why-num i {
    background: var(--green-600);
    color: #fff;
}

.why-item h3 {
    font-size: 1.22rem;
    margin-bottom: 10px;
}

.why-item p {
    font-size: .95rem;
    color: var(--muted);
}

/* Profil tidak lagi berisi kartu nilai, jadi tidak perlu jarak bawah */
.profil-grid {
    margin-bottom: 0;
}

/* Footer: 4 kolom di halaman utama */
.footer-grid--4 {
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 12px;
    font-size: .93rem;
}

.footer-links a {
    text-decoration: none;
    transition: color .25s, padding .25s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

/* ------------------------------------------------------------
   RESPONSIF
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid--4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .topbar {
        display: none;
    }

    .why-head {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .facts-card {
        grid-template-columns: 1fr;
    }

    .facts-card .fact-item + .fact-item {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .facts-card .fact-item {
        padding: 22px 24px;
    }
}

@media (max-width: 720px) {
    .site-header--overlay .brand img {
        height: 42px;
        padding: 5px 10px;
    }

    .vhero-content {
        padding-top: 120px;
        padding-bottom: 170px;
    }

    .vhero-cta {
        flex-direction: column;
    }

    .vhero-eyebrow {
        font-size: .7rem;
        letter-spacing: .08em;
        padding: 7px 14px;
    }

    .vhero-bottom {
        bottom: 84px;
    }

    .scroll-cue span {
        display: none;
    }

    .video-toggle {
        padding: 8px;
    }

    .video-toggle .label {
        display: none;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid--4 {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue .mouse::after {
        animation: none;
        opacity: 1;
    }
}
