/* =========================
   HOME PAGE RESPONSIVE CSS
========================= */

html,
body{
    width:100%;
    max-width:100%;
    margin:0;
    overflow-x:hidden !important;
}

body{
    background:var(--body-bg, var(--bg, #f8fafc));
}

img,
svg{
    max-width:100%;
}

#mainContent,
.container{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    overflow-x:hidden;
}

.home-wrap{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:0 8px 100px;
    box-sizing:border-box;
    overflow:hidden;
}

/* COMMON CARD */
.card,
.inquiry-section{
    position:relative;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    overflow:hidden;
    background:#ffffff;
    border-radius:24px;
    padding:16px;
    margin:14px 0;
    border:1px solid rgba(226,232,240,.95);
    box-shadow:0 12px 32px rgba(15,23,42,.07);
}

/* HERO */
.hero{
    background:
        linear-gradient(135deg, rgba(255,255,255,.97), rgba(255,247,237,.96)),
        radial-gradient(circle at right top, color-mix(in srgb, var(--brand) 14%, transparent), transparent 36%);
    border:1px solid color-mix(in srgb, var(--brand) 16%, #e5e7eb 84%);
}

.hero::before{
    display:none !important;
}

.hero-title-row{
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
    min-width:0;
}

.hero-logo-small{
    width:46px;
    height:46px;
    min-width:46px;
    object-fit:contain;
    border-radius:15px;
    background:#fff;
    padding:6px;
    border:1px solid rgba(226,232,240,.9);
    box-shadow:0 8px 18px rgba(15,23,42,.08);
    box-sizing:border-box;
}

.hero h1{
    margin:0;
    color:#111827;
    font-size:24px;
    font-weight:1000;
    line-height:1.15;
    letter-spacing:-.02em;
    min-width:0;
    word-break:break-word;
}

.hero h1::first-letter{
    color:var(--brand);
}

.hero p{
    position:relative;
    z-index:2;
    margin:0;
    color:#475569;
    line-height:1.65;
    font-size:14.5px;
    font-weight:700;
    word-break:break-word;
}

/* SECTION TITLE */
.section-title{
    margin:0 0 14px;
    font-size:22px;
    font-weight:1000;
    color:#111827;
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.section-title-icon{
    width:42px;
    height:42px;
    min-width:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:15px;
    background:color-mix(in srgb, var(--brand) 10%, #fff 90%);
    color:var(--brand);
}

.section-title-icon .svg-icon{
    width:21px;
    height:21px;
}

/* CATEGORY GRID - 3 UP + 3 DOWN */
.grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    margin:0;
    overflow:hidden;
}

.grid a{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:9px;
    min-width:0;
    min-height:96px;
    padding:10px 7px;
    border-radius:20px;
    color:#111827;
    text-decoration:none;
    background:linear-gradient(180deg,#ffffff,#fbfcff);
    border:1px solid rgba(226,232,240,.95);
    box-shadow:0 10px 24px rgba(15,23,42,.06);
    box-sizing:border-box;
    overflow:hidden;
}

.grid a:active{
    transform:scale(.97);
}

.grid-icon{
    width:42px;
    height:42px;
    min-width:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:color-mix(in srgb, var(--brand) 10%, #fff 90%);
    color:var(--brand);
}

.grid-icon .svg-icon{
    width:20px;
    height:20px;
    stroke-width:2.4;
}

.grid-label{
    display:block;
    width:100%;
    color:#111827;
    font-size:11.5px;
    line-height:1.25;
    font-weight:1000;
    text-align:center;
    word-break:break-word;
}

/* INQUIRY */
.inquiry-btns{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    margin:0;
    overflow:hidden;
}

.inquiry-card{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:9px;
    min-width:0;
    min-height:96px;
    padding:10px;
    border-radius:20px;
    color:#111827;
    text-decoration:none;
    background:linear-gradient(180deg,#ffffff,#fbfcff);
    border:1px solid rgba(226,232,240,.95);
    box-shadow:0 10px 24px rgba(15,23,42,.06);
    box-sizing:border-box;
    overflow:hidden;
}

.inquiry-card .grid-icon{
    width:44px;
    height:44px;
    min-width:44px;
}

.inquiry-card .grid-label{
    font-size:12.5px;
}

.inquiry-badge{
    position:absolute;
    top:8px;
    right:8px;
    min-width:26px;
    height:26px;
    padding:0 8px;
    border-radius:999px;
    background:#22c55e;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:1000;
    box-shadow:0 8px 16px rgba(34,197,94,.25);
}

/* FEATURED */
.home-featured-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    margin:0;
    overflow:hidden;
}

.home-featured-card{
    display:block;
    min-width:0;
    background:#fff;
    border:1px solid rgba(226,232,240,.95);
    border-radius:20px;
    overflow:hidden;
    text-decoration:none;
    color:inherit;
    box-shadow:0 10px 24px rgba(15,23,42,.07);
    box-sizing:border-box;
}

.home-featured-img{
    position:relative;
    height:130px;
    background:#f2f4f7;
    overflow:hidden;
}

.home-featured-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.home-featured-img span{
    position:absolute;
    top:8px;
    left:8px;
    background:linear-gradient(135deg,var(--brand),var(--brand-dark));
    color:#fff;
    padding:5px 9px;
    border-radius:999px;
    font-size:11px;
    font-weight:1000;
}

.home-featured-info{
    padding:10px;
    overflow:hidden;
}

.home-featured-info h3{
    margin:0;
    font-size:13.5px;
    font-weight:1000;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.home-featured-info p{
    margin:6px 0 4px;
    color:var(--brand);
    font-weight:1000;
}

.home-featured-info small{
    color:#667085;
    font-weight:800;
}

.home-view-all{
    text-align:center;
    margin-top:14px;
}

.home-view-all a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:0 16px;
    border-radius:999px;
    font-weight:1000;
    color:var(--brand);
    background:color-mix(in srgb, var(--brand) 8%, #fff 92%);
    text-decoration:none;
}

/* WHATSAPP */
.wa-btn{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100%;
    max-width:100%;
    padding:16px;
    border-radius:22px;
    background:linear-gradient(135deg,#22c55e,#0f766e);
    color:#fff;
    font-weight:1000;
    text-align:left;
    text-decoration:none;
    margin:14px 0 0;
    box-shadow:0 14px 30px rgba(20,184,166,.20);
    box-sizing:border-box;
    overflow:hidden;
}

.wa-btn::after{
    content:"›";
    width:32px;
    height:32px;
    min-width:32px;
    border-radius:999px;
    background:rgba(255,255,255,.22);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    line-height:1;
}

.wa-btn-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:26px;
    height:26px;
    min-width:26px;
}

.wa-btn-icon .svg-icon{
    width:24px;
    height:24px;
}

.footer-note{
    font-size:13px;
    color:#64748b;
    text-align:center;
    margin-top:12px;
    font-weight:800;
}

/* HOME FOOTER FIX */
.home-wrap + .site-footer,
.home-wrap + .site-footer + .footer-links-row{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
}

/* 320px - 360px */
@media(max-width:360px){
    .home-wrap{
        padding:0 6px 100px;
    }

    .card,
    .inquiry-section{
        padding:12px;
        border-radius:20px;
        margin:12px 0;
    }

    .hero-logo-small{
        width:40px;
        height:40px;
        min-width:40px;
    }

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

    .hero p{
        font-size:13px;
        line-height:1.55;
    }

    .section-title{
        font-size:18px;
        gap:8px;
    }

    .section-title-icon{
        width:36px;
        height:36px;
        min-width:36px;
        border-radius:13px;
    }

    .grid{
        gap:7px;
    }

    .grid a{
        min-height:86px;
        padding:7px 5px;
        border-radius:17px;
    }

    .grid-icon{
        width:34px;
        height:34px;
        min-width:34px;
    }

    .grid-icon .svg-icon{
        width:17px;
        height:17px;
    }

    .grid-label{
        font-size:10px;
    }

    .inquiry-card{
        min-height:90px;
        padding:8px;
    }

    .inquiry-card .grid-icon{
        width:38px;
        height:38px;
        min-width:38px;
    }

    .inquiry-card .grid-label{
        font-size:11.5px;
    }
}

/* 481px - 768px */
@media(min-width:481px) and (max-width:768px){
    .home-wrap{
        max-width:720px;
        padding:6px 14px 110px;
    }

    .grid a{
        min-height:105px;
    }

    .grid-label{
        font-size:12.5px;
    }
}

/* TABLET */
@media(min-width:769px) and (max-width:1024px){
    .home-wrap{
        max-width:920px;
        padding:10px 18px 120px;
    }

    .grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .home-featured-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

/* DESKTOP */
@media(min-width:1025px){
    .home-wrap{
        max-width:1120px;
        padding:14px 20px 120px;
    }

    .grid{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }

    .home-featured-grid{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
}