/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Montserrat',sans-serif;
    background:#EFF8FF;
    color:#3F3F3F;
    overflow-x:hidden;
    scroll-behavior:smooth;
}

/* =========================
   CONTAINER
========================= */

.container{
    max-width:390px;
    margin:auto;
}

/* =========================
   HEADER
========================= */

.hero{
    width:100%;
}

.hero-image{
    width:100%;
    display:block;
}

/* =========================
   MENU
========================= */

.menu-card{
    width:88%;
    margin:-40px auto 20px;

    background:#fff;
    border-radius:18px;

    padding:10px 12px;

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px 10px;

    position:relative;
    z-index:10;

    box-shadow:0 6px 18px rgba(0,0,0,.05);
}

.menu-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;

    transform:translateY(-3px);

    text-decoration:none;
    color:#3F3F3F;
}

.menu-item span{
    font-size:9px;
    font-weight:600;
    text-align:center;
    line-height:1.1;
    margin-top:4px;
}

.menu-item:hover{
    transform:translateY(-2px);
}

.menu-item img{
    width:55px;
    height:55px;
    object-fit:contain;
    display:block;
}

.dot{
    color:#1E6BD6;
    margin-right:6px;
}

.menu-item{
    transition:0.15s ease;
}

.menu-item:hover{
    transform:translateY(-1px) scale(1.02);
}

/* =========================
   SECTION UMUM
========================= */

section{
    width:100%;
}

h2{
    font-size:16px;
    font-weight:700;
}

/* =========================
   AGENDA TERDEKAT
========================= */

.agenda-terdekat{
    background:#fff;
    padding:25px 0;
}

.agenda-terdekat h2{
    text-align:center;
    margin-bottom:16px;
}

.agenda-card{
    width:100%;
}

.agenda-card img{
    width:100%;
    display:block;
}

/* =========================
   AGENDA RUTIN
========================= */

.agenda-rutin{
    padding:28px 20px;
}

.agenda-rutin h2{
    margin-bottom:18px;
}

.pill{
    background:#fff;
    border-radius:999px;
    padding:12px 18px;
    margin-bottom:12px;
    font-weight:500;
    box-shadow:0 2px 6px rgba(0,0,0,.04);
}

/* =========================
   FASILITAS
========================= */

.fasilitas{
    padding:0 20px 30px;
}

.fasilitas h2{
    margin-bottom:18px;
}

.facility-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px 18px;
}

.facility-pill{
    background:#fff;
    border-radius:999px;
    padding:12px 18px;
    font-weight:500;
    box-shadow:0 2px 6px rgba(0,0,0,.04);
}

/* =========================
   NOMOR PENTING
========================= */

.nomor-penting{
    margin-top:10px;
    background:#1E6BD6;
    padding:25px 0;
}

.nomor-title{
    text-align:center;
    color:white;
    margin-bottom:20px;
}

.nomor-penting img{
    width:75%;
    display:block;
    margin:auto;
}

/* =========================
   TAGLINE
========================= */

.tagline{
    background:#fff;
    text-align:center;
    padding:28px 20px;
    margin-top:20px;
}

.tagline h2{
    font-size:15px;
    margin-bottom:6px;
}

.tagline p{
    font-size:14px;
    color:#666;
}

/* =========================
   FOOTER
========================= */

footer{
    margin-top:20px;

    background:linear-gradient(
        to bottom,
        #FE7D42 0%,
        #FE7D42 75%,
        #D95F26 75%,
        #D95F26 100%
    );

    padding:20px 0 30px 0;

    border-top-left-radius:15px;
    border-top-right-radius:15px;
}

footer img{
    width:90%;
    display:block;
    margin: -5px auto 10px auto;
}

/* =========================
   MOBILE KECIL
========================= */

@media(max-width:360px){

    .menu-card{
        padding:18px 14px;
        gap:14px 8px;
    }

    .menu-item img{
        max-width:64px;
    }

    .facility-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

html{
    scroll-behavior:smooth;
}

/* =========================
   FLOATING POPUP PORTAL
========================= */

.portal-popup{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 90%;
    max-width: 420px;

    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);

    display: none;
    z-index: 9999;

    overflow: hidden;
}

.portal-popup img{
    width: 100%;
    height: auto;
    display: block;
}

body.modal-active .container{
    filter: blur(4px);
    transition: 0.2s ease;
}

.close-btn{
    position: absolute;
    top: 6px;
    right: 6px;

    width: 26px;
    height: 26px;

    border: none;
    border-radius: 50%;
    background: #ff3b3b;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

@keyframes pop{
    from{
        transform: scale(.8);
        opacity: 0;
    }
    to{
        transform: scale(1);
        opacity: 1;
    }
}

.agenda-rutin{
    border-bottom:2px solid rgba(255,255,255,0.85);
    padding-bottom:12px; /* ini yang bikin garis naik */
    margin-bottom:20px;
}

section{
    scroll-margin-top: 20px;
}

/* =========================
   SUBMENU DATA PENGHUNI
========================= */

.submenu-content{
    padding:30px 20px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.submenu-content button{
    border:none;
    border-radius:12px;
    background:#1E6BD6;
    color:white;
    font-size:15px;
    font-weight:600;
    padding:14px;
    cursor:pointer;
    font-family:'Montserrat',sans-serif;
}

.submenu-close{
    background:#e74c3c !important;
    color:white;
    font-weight:600;
}

.close-btn-bottom{
    position: static;
    display: block;
    margin: 0 auto 20px auto;
}