/* =========================
   APSAGAM GLOBAL CSS
   ========================= */

/* ROOT COLOR SYSTEM */
:root{
    --primary:#2f7f7b;
    --primary-light:#5fb3a5;
    --bg:#f4f8f7;
    --white:#ffffff;
    --text:#222;
    --text-light:#666;
    --radius:15px;
}

/* RESET */
*{
    box-sizing:border-box;
}

html,body{
    margin:0;
    padding:0;
    font-family:'Segoe UI', sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
}

/* TOP NAV */
.top-nav{
    display:none;
}

@media(min-width:768px){
    .top-nav{
        display:flex;
        justify-content:space-between;
        padding:15px 30px;
        background:white;
        border-bottom:1px solid #eee;
    }

    .top-nav a{
        margin-left:20px;
        text-decoration:none;
        color:#333;
    }
    
    .top-nav i{
        margin-right:6px;
        font-size:14px;
    }
}

/* CONTAINER */
.container{
    width:100%;
    max-width:100%;
    margin:auto;
    min-height:100vh;
    padding-bottom:80px;
}

/* DESKTOP WRAP */
@media(min-width:768px){
    .container{
        max-width:1200px;
        margin:20px auto;
        border-radius:20px;
        box-shadow:0 20px 50px rgba(0,0,0,0.1);
    }
}

/* =========================
   HEADER / HERO
   ========================= */
.hero{
    background:linear-gradient(135deg,var(--primary),var(--primary-light));
    padding:15px;
    border-bottom-left-radius:20px;
    border-bottom-right-radius:20px;
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
}

.maskot{
    width:45px; /* ðŸ”¥ diperkecil */
}

.header-flex{
    display:flex;
    align-items:center;
    gap:15px;
}

.title h1{
    margin:0;
    font-size:16px;
    color:white;
}

.title p{
    margin:0;
    font-size:11px;
    color:white;
}

/* DEFAULT (MOBILE FIRST) */
.mobile-hero{
    display:block;
    background:linear-gradient(135deg,var(--primary),var(--primary-light));
    padding:15px;
    margin-top:0;
    border-radius:0 0 20px 20px;
}

.desktop-hero{
    display:none;
}

/* MOBILE ONLY */
@media(max-width:767px){
    .mobile-hero{
        display:block;
    }
    
    .desktop-hero{
        display:none;
    }
}

/* DESKTOP MODE */
@media(min-width:768px){

    .mobile-hero{
        display:none;
    }

    .desktop-hero{
        display:block;
        height:350px;
        background:url('../img/banner/desa.png') center/cover no-repeat;
        border-radius:20px;
        margin:20px;
        position:relative;
        overflow:hidden;
        box-shadow:0 20px 50px rgba(0,0,0,0.15);
    }
    
    .overlay{
        background:rgba(255,255,255,0.75);
        backdrop-filter:blur(6px);
        height:100%;
    }

    .hero-content{
        display:flex;
        align-items:center;
        justify-content:space-between;
        padding:0 40px;
        height:100%;
        max-width:1000px;   /* 🔥 KUNCI UTAMA */
        margin:0 auto;      /* 🔥 CENTER */
    }

    .maskot-full{
        width:240px;
        margin-left:20px;
        transform:translateY(20px);
    }
    
    .hero-text{
        max-width:500px;
        text-align:left;
        transform:translateY(-10px);
    }

    .hero-text h1{
        font-size:20px;
        font-weight:600;
    }
    
    .hero-text h2{
        font-size:36px; /* 🔥 lebih besar */
        line-height:1.2;
        font-weight:800;
    }
    
    .hero-text p{
        margin:10px 0;
        color:#444;
    }
}

/* 🔥 FORCE DESKTOP HERO OVERRIDE */
@media(min-width:768px){
    .desktop-hero{
        background:url('../img/banner/desa.png') center/cover no-repeat !important;
    }

    .hero{
        background:none !important;
    }
}

/* CAROUSEL */
.carousel{
    overflow:hidden;
    margin:15px;
    border-radius:20px 20px 0 0;
}

.carousel-track{
    display:flex;
    transition:0.5s;
}

.carousel-item{
    min-width:100%;
    position:relative;
}

.carousel img{
    width:100%;
    height:200px;
    object-fit:contain;
    background:#fff;
}

/* DESKTOP FIX CAROUSEL */
@media (min-width: 768px){
    .carousel{
        width:100%;
        max-width:100%;
    }

    .carousel-item img{
        width:100%;
        height:300px;
        object-fit:cover;
    }
}

/* =========================
   CARD
   ========================= */
.card{
    background:var(--white);
    margin:15px;
    padding:15px;
    border-radius:20px;
    box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

/* GRID */
.menu-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin-top:15px;
}

/* ITEM = TOMBOL */
.menu-item{
    background:linear-gradient(135deg,#4fa39a,#3b8d85);
    border-radius:15px;
    padding:12px 8px;
    text-align:center;
    text-decoration:none;
    color:white;
    font-size:12px;
    font-weight:500;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    transition:0.2s;
}

/* ICON */
.menu-item i{
    font-size:20px;
    margin-bottom:4px;
}

/* HOVER (desktop) */
.menu-item:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 20px rgba(0,0,0,0.15);
}

.menu-item:hover i{
    transform:scale(1.2);
}

/* TAP (mobile feel) */
.menu-item:active{
    transform:scale(0.95);
}

/* HP */
@media(max-width:768px){
    .menu-grid{
        grid-template-columns:repeat(4,1fr);
    }
}

/* Desktop */
@media(min-width:768px){
    .menu-grid{
        grid-template-columns:repeat(6,1fr);
        display:flex;
        justify-content:center;
        gap:20px;
        flex-wrap:wrap;
    }
    
    .menu-item{
        width:150px;
    }
}

/* =========================
   TEXT
   ========================= */
.section-title{
    font-weight:bold;
    font-size:14px;
    margin-bottom:10px;
}

.price{
    color:var(--primary);
    font-weight:bold;
}

/* =========================
   BUTTON
   ========================= */
.btn{
    padding:12px;
    border:none;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
    transition:0.2s;
}

.btn-primary{
    background:var(--primary);
    color:white;
}

.btn-primary:hover{
    transform:translateY(-1px);
}

.btn-primary:active{
    transform:scale(0.97);
}

/* =========================
   PRODUCT GRID
   ========================= */
.product-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.product{
    background:white;
    border-radius:15px;
    padding:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.05);
    text-decoration:none;
    color:inherit;
    transition:0.2s;
}

.product:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
}

.product img{
    width:100%;
    height:120px;
    object-fit:cover;
    border-radius:10px;
}

/* =========================
   FORM
   ========================= */
input,select{
    width:100%;
    padding:10px;
    border-radius:10px;
    border:1px solid #ddd;
}

/* =========================
   NAVBAR BOTTOM
   ========================= */
.bottom-nav{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    height:60px;
    background:white;
    display:flex;
    justify-content:space-around;
    align-items:center;
    border-top:1px solid #ddd;
    z-index:999;
}

.nav-item{
    text-align:center;
    font-size:12px;
}

.bottom-nav a{
    display:flex;
    flex-direction:column;
    align-items:center;
    font-size:11px;
    color:#666;
}

.bottom-nav i{
    font-size:18px;
    margin-bottom:3px;
}

/* aktif */
.bottom-nav a.active{
    color:var(--primary);
}

/* DESKTOP */
@media(min-width:768px){
    .bottom-nav{
        display:none;
    }
}

/* =========================
   FLOATING BUTTON (AGAM)
   ========================= */
.fab-container{
    position:fixed;
    right:15px;
    bottom:80px;
    display:flex;
    flex-direction:column;
    align-items:center;
    z-index:999;
}

.fab-btn{
    width:65px;
    height:65px;
    background:white;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 8px 20px rgba(0,0,0,0.25);
    animation:float 3s ease-in-out infinite;
    cursor:pointer;
}

.fab-btn img{
    width:80%;
}

.fab-text{
    margin-top:5px;
    font-size:11px;
    color:var(--primary);
    font-weight:600;
}

@keyframes float{
    0%,100%{transform:translateY(0);}
    50%{transform:translateY(-6px);}
}

/* =========================
   SEARCH
   ========================= */
.search-box input{
    width:100%;
    padding:10px;
    border-radius:12px;
    border:1px solid #ddd;
}

/* =========================
   UTILITIES
   ========================= */
.text-center{ text-align:center; }
.mt-10{ margin-top:10px; }
.mb-10{ margin-bottom:10px; }

/* TOAST */
.toast{
    position:fixed;
    bottom:100px;
    left:50%;
    transform:translateX(-50%) translateY(20px);
    background:#333;
    color:white;
    padding:12px 20px;
    border-radius:20px;
    opacity:0;
    transition:0.3s;
    z-index:9999;
}

.toast.show{
    opacity:1;
    transform:translateX(-50%) translateY(0);
}

.toast.success{ background:#27ae60; }
.toast.error{ background:#e74c3c; }