
/* =========================================
   ALOHA INDONESIA
   RESPONSIVE CSS - FINAL
========================================= */

/* PENGAMAN LAYOUT */
*, *::before, *::after {
    box-sizing: border-box;
}

img, video, iframe {
    max-width: 100%;
}

.hero-container,
.hero-content,
.hero-visual,
.program-layout,
.program-intro,
.program-cards,
.center-box,
.news-grid,
.footer-grid {
    min-width: 0;
}

/* =========================================
   TABLET / SMALL DESKTOP
========================================= */

@media (max-width: 1100px) {

    .nav-menu {
        gap: 16px;
    }

    .nav-menu a {
        font-size: 12px;
    }

    .navbar-cta {
        display: none;
    }

    .hero-benefit-card {
        right: 0;
    }

    .benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .center-box {
        grid-template-columns: 1fr 1fr;
    }

    .center-map {
        grid-column: 1 / -1;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 850px) {

    .section {
        padding: 75px 0;
    }

    /* NAVBAR */

    .nav-menu {
        position: absolute;
        left: 0;
        top: 82px;
        width: 100%;
        max-width: 100%;
        background: white;
        padding: 25px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow);
        z-index: 1000;
    }

    .nav-menu.show {
        display: flex;
    }

    .mobile-menu-button {
        display: block;
    }

    /* HERO */

    .hero {
        padding-top: 55px;
    }

    .hero-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .hero-content {
        text-align: center;
        min-width: 0;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        min-height: 460px;
        min-width: 0;
        max-width: 100%;
    }

    .hero-image-wrapper {
        width: 80%;
        max-width: 100%;
        height: 450px;
    }

    /* STATISTICS */

    .statistic-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .stat-divider {
        display: none;
    }

    /* PROGRAM */

    .program-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .program-intro {
        text-align: center;
    }

    .program-intro p {
        margin-inline: auto;
        margin-bottom: 25px;
    }

    /* CENTER */

    .center-box {
        grid-template-columns: minmax(0, 1fr);
    }

    .center-map {
        grid-column: auto;
    }

    /* NEWS */

    .news-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* CTA */

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    /* GENERAL */

    .container {
        width: 90%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .section {
        padding: 55px 0;
    }

    /* NAVBAR */

    .brand img {
        width: 125px;
        max-width: 100%;
    }

    .nav-menu {
        padding: 20px;
        max-width: 100%;
    }

    /* HERO */

    .hero {
        padding-top: 35px;
    }

    .hero-container {
        width: 90%;
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .hero-content {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: clamp(30px, 8.5vw, 43px);
        letter-spacing: -1px;
        line-height: 1.2;
        overflow-wrap: break-word;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.8;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .hero-trust {
        align-items: flex-start;
        justify-content: flex-start;
        max-width: 100%;
    }

    /* HERO IMAGE */

    .hero-visual {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        position: relative;
    }

    .hero-image-wrapper {
        width: 100%;
        max-width: 100%;
        height: 340px;
        position: relative;
    }

    .hero-slide {
        max-width: 100%;
    }

    /* FLOATING BENEFIT CARD */

    .hero-benefit-card {
        width: 150px;
        max-width: 48%;
        top: 15px;
        right: 0;
        padding: 12px;
    }

    /* STATISTICS */

    .statistic-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 25px 12px;
        gap: 20px 12px;
    }

    .stat-item {
        min-width: 0;
    }

    .stat-item h3 {
        font-size: 22px;
    }

    /* BENEFITS */

    .benefit-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* PROGRAM */

    .program-layout,
    .program-cards {
        width: 100%;
        min-width: 0;
    }

    .program-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .program-card {
        min-width: 0;
        max-width: 100%;
    }

    .program-card img {
        max-width: 100%;
    }

    /* CENTER */

    .center-box {
        grid-template-columns: minmax(0, 1fr);
        padding: 30px 20px;
        max-width: 100%;
    }

    .center-search,
    .center-map {
        min-width: 0;
        max-width: 100%;
    }

    .center-search select,
    .center-search button {
        max-width: 100%;
    }

    /* NEWS */

    .news-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* CTA */

    .cta-box {
        padding: 35px 25px;
    }

    .cta-box h2 {
        font-size: 28px;
        overflow-wrap: break-word;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* FOOTER */

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* =========================================
   EXTRA SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-image-wrapper {
        height: 290px;
    }

    .hero-benefit-card {
        width: 135px;
        padding: 9px;
    }

    .center-box {
        padding: 25px 15px;
    }
}
