/* =========================================================
   SILAKOM
   Home Page Stylesheet
   File: home.css
   ========================================================= */


/* =========================================================
   HERO SECTION
   ========================================================= */

.hero-section {
    position: relative;

    background: linear-gradient(
        120deg,
        #07573f 0%,
        #0a6b4f 62%,
        #927817 100%
    );

    overflow: hidden;
}


/* Decorative glow kanan atas */

.hero-section::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    top: -280px;
    right: -140px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);

    pointer-events: none;
}


/* Decorative glow kiri bawah */

.hero-section::after {
    content: "";

    position: absolute;

    width: 440px;
    height: 440px;

    left: -240px;
    bottom: -270px;

    border-radius: 50%;

    background: rgba(201, 162, 39, 0.12);

    pointer-events: none;
}


/* Pastikan isi hero di atas decoration */

.hero-section > .container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   HERO SPACING
   ========================================================= */

.py-lg-6 {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
}


/* =========================================================
   HERO TITLE
   ========================================================= */

.hero-section h1 {
    font-size: clamp(2.8rem, 6vw, 5.3rem);

    line-height: 0.98;

    letter-spacing: -0.055em;

    font-weight: 820;

    max-width: 900px;

    color: #ffffff;
}

.hero-section h1 span {
    color: #f0d36c;
}


/* =========================================================
   HERO LEAD
   ========================================================= */

.hero-lead {
    font-size: 1.14rem;

    line-height: 1.75;

    color: rgba(255, 255, 255, 0.8);

    max-width: 760px;

    margin: 1.5rem 0;
}


/* =========================================================
   HERO SEARCH
   ========================================================= */

.hero-search {
    display: flex;
    align-items: center;

    background: #ffffff;

    border-radius: 18px;

    padding: 7px;

    max-width: 720px;

    border: 1px solid rgba(255, 255, 255, 0.16);

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.hero-search i {
    font-size: 1.2rem;
    margin-left: 14px;
    color: #81908b;
}

.hero-search input {
    border: 0;
    outline: 0;

    flex: 1;

    padding: 13px 12px;

    min-width: 0;

    background: transparent;
}

.hero-search input:focus {
    outline: 0;
    box-shadow: none;
}

.hero-search button {
    border: 0;

    background: var(--silakom-primary);

    color: #ffffff;

    font-weight: 700;

    padding: 13px 22px;

    border-radius: 13px;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.hero-search button:hover {
    background: var(--silakom-primary-dark);
}

.hero-search button:active {
    transform: scale(0.98);
}


/* =========================================================
   HERO TRUST
   ========================================================= */

.hero-trust {
    display: flex;
    flex-wrap: wrap;

    gap: 18px;

    margin-top: 1.3rem;

    color: rgba(255, 255, 255, 0.8);

    font-size: 0.86rem;
    font-weight: 600;
}

.hero-trust i {
    color: #f0d36c;
    margin-right: 4px;
}


/* =========================================================
   HERO VISUAL
   ========================================================= */

.hero-visual {
    position: relative;
    max-width: 520px;
    margin: auto;
}

.hero-visual > img {
    width: 100%;

    filter:
        drop-shadow(
            0 24px 30px rgba(0, 0, 0, 0.18)
        );
}


/* =========================================================
   FLOATING STAT
   ========================================================= */

.floating-stat {
    position: absolute;

    background: #ffffff;

    border-radius: 16px;

    padding: 12px 15px;

    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);

    display: flex;
    flex-direction: column;

    min-width: 105px;
}

.floating-stat strong {
    font-size: 1.4rem;
    color: var(--silakom-primary);
}

.floating-stat span {
    font-size: 0.72rem;
    color: #768680;
}

.stat-one {
    left: 2%;
    bottom: 16%;
}

.stat-two {
    right: 0;
    top: 15%;
}


/* =========================================================
   CATEGORY CARD
   ========================================================= */

.category-card {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 13px;

    border: 1px solid var(--silakom-border);

    padding: 17px;

    border-radius: 18px;

    color: var(--silakom-ink);

    background: #ffffff;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);

    box-shadow: 0 16px 35px rgba(12, 53, 42, 0.08);

    border-color: #bbd3c9;
}

.category-icon {
    width: 48px;
    height: 48px;

    border-radius: 14px;

    background: var(--silakom-soft);

    color: var(--silakom-primary);

    display: grid;
    place-items: center;

    font-size: 1.35rem;

    flex: 0 0 auto;
}

.category-card h3 {
    font-size: 1rem;
    margin: 0 0 3px;
    font-weight: 750;
}

.category-card span {
    font-size: 0.78rem;
    color: var(--silakom-muted);
}


/* =========================================================
   PRODUCTS SECTION
   ========================================================= */

.products-section {
    background: #fbfcfb;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {
    border: 1px solid var(--silakom-border);

    border-radius: 20px;

    overflow: hidden;

    background: #ffffff;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 18px 42px rgba(18, 54, 43, 0.09);
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.product-image-wrap {
    position: relative;

    display: block;

    overflow: hidden;

    aspect-ratio: 4 / 3;

    background: #eef4f1;
}

.product-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.product-card:hover .product-image {
    transform: scale(1.035);
}


/* =========================================================
   PRODUCT BADGES
   ========================================================= */

.product-category,
.sale-type {
    position: absolute;

    top: 12px;

    border-radius: 999px;

    padding: 6px 9px;

    font-size: 0.66rem;
    font-weight: 800;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.product-category {
    left: 12px;

    background: rgba(255, 255, 255, 0.92);

    color: #26433a;
}

.sale-type {
    right: 12px;

    background: #dff3e8;

    color: #087144;
}

.sale-type.preorder {
    background: #fff2cf;
    color: #8b6000;
}


/* =========================================================
   PRODUCT BODY
   ========================================================= */

.product-body {
    padding: 17px;

    display: flex;
    flex-direction: column;

    flex: 1;
}

.researcher {
    font-size: 0.72rem;

    color: #75847f;

    display: flex;
    align-items: center;

    gap: 5px;
}

.product-body h3 {
    font-size: 1.05rem;

    line-height: 1.35;

    margin: 0.55rem 0;
}

.product-body h3 a {
    color: var(--silakom-ink);
}

.product-body h3 a:hover {
    color: var(--silakom-primary);
}

.product-body p {
    font-size: 0.82rem;

    color: #687873;

    line-height: 1.55;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   PRODUCT FOOTER
   ========================================================= */

.product-footer {
    display: flex;

    align-items: end;
    justify-content: space-between;

    margin-top: auto;

    padding-top: 12px;
}

.product-footer small {
    display: block;
    color: #8a9893;
    font-size: 0.68rem;
}

.product-footer strong {
    font-size: 1rem;
}

.round-arrow {
    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: var(--silakom-soft);

    display: grid;
    place-items: center;
}


/* =========================================================
   HOW SECTION
   ========================================================= */

.how-section {
    background: #ffffff;
}


/* =========================================================
   STEPS
   ========================================================= */

.steps-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;
}

.step-card {
    border: 1px solid var(--silakom-border);

    border-radius: 20px;

    padding: 22px;

    position: relative;

    background: #ffffff;
}

.step-card > span {
    position: absolute;

    right: 15px;
    top: 12px;

    color: #cdd8d4;

    font-weight: 800;
}

.step-card > i {
    font-size: 1.7rem;
    color: var(--silakom-primary);
}

.step-card h3 {
    font-size: 1rem;
    margin: 14px 0 6px;
}

.step-card p {
    font-size: 0.82rem;
    color: var(--silakom-muted);
    margin: 0;
}


/* =========================================================
   CTA BOX
   ========================================================= */

.cta-box {
    position: relative;

    background: linear-gradient(
        120deg,
        #07573f 0%,
        #0a6b4f 62%,
        #927817 100%
    );

    border-radius: 28px;

    padding: 40px;

    color: #ffffff;

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 30px;

    overflow: hidden;
}

.cta-box h2 {
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    font-weight: 780;
    max-width: 780px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0;
    max-width: 740px;
}


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

@media (max-width: 767.98px) {

    .hero-section h1 {
        font-size: 2.65rem;
        line-height: 1.02;
    }

    .hero-lead {
        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-search {
        border-radius: 16px;
    }

    .hero-search button {
        padding: 12px 15px;
    }

    .hero-trust {
        gap: 10px;
        font-size: 0.76rem;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 28px 22px;
        align-items: flex-start;
        flex-direction: column;
    }

    .category-card {
        padding: 14px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .category-card > .bi-arrow-up-right {
        display: none;
    }
}


/* =========================================================
   RESPONSIVE SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .hero-section h1 {
        font-size: 2.25rem;
        letter-spacing: -0.04em;
    }

    .hero-section::before {
        width: 350px;
        height: 350px;

        top: -190px;
        right: -180px;
    }

    .hero-section::after {
        width: 300px;
        height: 300px;

        left: -190px;
        bottom: -200px;
    }

    .hero-search {
        padding: 6px;
    }

    .hero-search i {
        margin-left: 10px;
    }

    .hero-search input {
        padding: 11px 8px;
    }

    .hero-search button {
        padding: 11px 13px;
        font-size: 0.85rem;
    }

    .floating-stat {
        padding: 9px 12px;
        min-width: 90px;
    }

    .floating-stat strong {
        font-size: 1.15rem;
    }

    .floating-stat span {
        font-size: 0.65rem;
    }
}