
/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {
    .nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 20px;
        background: var(--white);
        border-bottom: 1px solid var(--border);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 13px 0;
    }

    .nav a.active::after {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .two-column,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .potential-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 620px) {
    .container {
        width: calc(100% - 28px);
    }

    .topbar {
        display: none;
    }

    .nav-wrap {
        min-height: 68px;
    }

    .nav {
        top: 68px;
    }

    .brand-logo {
        width: 39px;
        height: 39px;
    }

    .brand-name {
        font-size: 14px;
    }

    .brand-subtitle {
        font-size: 10px;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        padding: 70px 0;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

    .info-grid,
    .card-grid,
    .potential-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        height: 160px;
    }

    .cta {
        padding: 30px 25px;
        flex-direction: column;
        align-items: flex-start;
    }

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

/* =========================================================
   HERO - RESPONSIVE LAYOUT
   Menyesuaikan tinggi, posisi foto, dan ukuran teks tanpa
   mengubah tampilan desktop yang sudah ada.
   ========================================================= */

/* Laptop kecil / tablet landscape */
@media (max-width: 1100px) {
    .hero {
        min-height: 580px;
        background-position: 58% center;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }

    .hero-content {
        max-width: 680px;
    }
}

/* Tablet portrait / HP landscape */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        background-position: 55% center;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }

    .hero-content {
        max-width: 680px;
        padding: 55px 0 50px;
    }

    .hero h1 {
        font-size: clamp(36px, 8vw, 52px);
        line-height: 1.08;
        letter-spacing: -1.2px;
    }

    .hero p {
        max-width: 620px;
        margin: 18px 0 25px;
        font-size: 16px;
        line-height: 1.65;
    }
}

/* HP portrait */
@media (max-width: 480px) {
    .hero {
        /*
         * Tinggi dibuat lebih proporsional terhadap layar HP.
         * Foto tetap memakai cover agar tidak gepeng/terdistorsi.
         */
        min-height: 455px;
        background-position: 53% center;
        background-size: cover;
    }

    .hero-content {
        padding: 48px 0 42px;
    }

    .hero .kicker {
        font-size: 10.5px;
        letter-spacing: 1.45px;
        line-height: 1.5;
        margin-bottom: 9px;
    }

    .hero h1 {
        font-size: clamp(32px, 9.2vw, 40px);
        line-height: 1.08;
        letter-spacing: -1px;
        max-width: 100%;
    }

    .hero p {
        max-width: 100%;
        margin: 17px 0 23px;
        font-size: 15px;
        line-height: 1.6;
    }

    .hero .button-row {
        gap: 9px;
    }

    .hero .button-row .btn {
        min-height: 48px;
        padding: 0 14px;
        font-size: 13px;
        flex: 1 1 0;
        min-width: 0;
        white-space: nowrap;
    }
}

/* HP sangat kecil */
@media (max-width: 360px) {
    .hero {
        min-height: 430px;
        background-position: 52% center;
    }

    .hero-content {
        padding: 42px 0 36px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero .button-row .btn {
        font-size: 12px;
        padding: 0 10px;
    }
}
