/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f7f8f5;
    color: #18352b;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    width: 100%;
    min-height: 72px;

    background: #0b6b43;

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

    padding: 0 7%;

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-text h2 {
    color: white;
    font-family: "Playfair Display", serif;
    font-size: 19px;
    line-height: 1.1;
}

.logo-text span {
    color: #d5eadf;
    font-size: 10px;
}


/* MENU */

.menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu li a {
    color: white;
    font-size: 13px;
    font-weight: 600;

    padding: 9px 13px;

    border-radius: 8px;

    transition: .3s ease;
}

.menu li a:hover,
.menu li a.active {
    background: rgba(255, 255, 255, .14);
}


/* LOGIN */

.menu .login-btn {
    background: #ffd54f;
    color: #174d37;

    margin-left: 7px;

    padding: 10px 15px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, .12);
}

.menu .login-btn:hover {
    background: #ffe27b;
    transform: translateY(-2px);
}

/* =====================================================
   HERO PRODUK
===================================================== */

.produk-hero {
    min-height: 350px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    background:
        linear-gradient(110deg,
            rgba(5, 49, 31, .97),
            rgba(11, 107, 67, .90),
            rgba(27, 137, 87, .75));
}


/* DEKORASI */

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

    position: absolute;

    width: 300px;
    height: 300px;

    border: 1px solid rgba(255, 255, 255, .12);

    border-radius: 50%;

    right: -100px;
    top: -130px;
}

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

    position: absolute;

    width: 190px;
    height: 190px;

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

    border-radius: 50%;

    left: -80px;
    bottom: -100px;
}


/* HERO CONTENT */

.hero-content {
    width: 86%;
    max-width: 1200px;

    margin: auto;

    position: relative;
    z-index: 2;

    color: white;
}


/* LABEL */

.hero-label {
    display: inline-flex;

    align-items: center;
    gap: 6px;

    padding: 6px 11px;

    background: rgba(255, 255, 255, .12);

    border: 1px solid rgba(255, 255, 255, .17);

    border-radius: 50px;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.2px;

    margin-bottom: 12px;
}


/* JUDUL */

.hero-content h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(32px, 5vw, 52px);

    line-height: 1.08;

    font-weight: 800;

    max-width: 650px;

    margin-bottom: 12px;
}

.hero-content h1 span {
    color: #ffd54f;
}


/* DESKRIPSI */

.hero-content>p {
    max-width: 570px;

    color: #e5f2ec;

    font-size: 12px;

    line-height: 1.7;
}


/* =====================================================
   HERO STAT
===================================================== */

.hero-stat {
    display: flex;

    align-items: center;

    margin-top: 22px;

    gap: 20px;
}

.hero-stat-item {
    display: flex;

    flex-direction: column;
}

.hero-stat-item strong {
    font-size: 23px;

    line-height: 1;

    color: #ffd54f;
}

.hero-stat-item span {
    font-size: 9px;

    margin-top: 4px;

    color: #d7e9df;
}

.hero-divider {
    width: 1px;
    height: 32px;

    background: rgba(255, 255, 255, .3);
}


/* =====================================================
   CONTAINER
===================================================== */

.produk-container {
    width: 86%;
    max-width: 1200px;

    margin: auto;
}


/* =====================================================
   ETALASE SECTION
===================================================== */

.etalase-section {
    padding: 55px 0 45px;
}


/* HEADING */

.section-heading {
    display: flex;

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

    margin-bottom: 28px;
}

.section-label {
    display: inline-flex;

    align-items: center;
    gap: 6px;

    color: #0b6b43;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.3px;

    margin-bottom: 5px;
}

.section-heading h2 {
    font-family: "Playfair Display", serif;

    color: #173d2e;

    font-size: 30px;

    line-height: 1.15;

    margin-bottom: 7px;
}

.section-heading p {
    max-width: 570px;

    color: #6c7d75;

    font-size: 11px;
}


/* =====================================================
   KATEGORI GRID
===================================================== */

.kategori-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 16px;
}


/* =====================================================
   KATEGORI CARD
===================================================== */

.kategori-card {
    position: relative;

    min-height: 245px;

    padding: 20px;

    border-radius: 17px;

    overflow: hidden;

    background: #fff;

    border: 1px solid #e8eee9;

    box-shadow: 0 8px 25px rgba(23, 61, 46, .06);

    transition: .3s ease;
}

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

    box-shadow: 0 15px 30px rgba(23, 61, 46, .11);
}


/* DEKORASI CARD */

.kategori-card::after {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    border-radius: 50%;

    right: -45px;
    bottom: -50px;

    opacity: .07;
}


/* WARNA */

.pertanian::after {
    background: #d49a00;
}

.perkebunan::after {
    background: #0b6b43;
}

.peternakan::after {
    background: #9a633e;
}

.umkm::after {
    background: #8754a1;
}


/* =====================================================
   CARD TOP
===================================================== */

.card-top {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;
}


/* ICON */

.kategori-icon {
    width: 50px;
    height: 50px;

    border-radius: 14px;

    display: flex;

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

    font-size: 21px;

    transition: .3s ease;
}

.kategori-card:hover .kategori-icon {
    transform: rotate(-4deg) scale(1.05);
}


/* ICON COLORS */

.pertanian .kategori-icon {
    background: #fff5d6;
    color: #d39a00;
}

.perkebunan .kategori-icon {
    background: #e2f3e9;
    color: #0b6b43;
}

.peternakan .kategori-icon {
    background: #f6e8df;
    color: #9a633e;
}

.umkm .kategori-icon {
    background: #f0e5f6;
    color: #8754a1;
}


/* NUMBER */

.kategori-number {
    font-family: "Playfair Display", serif;

    font-size: 25px;

    font-weight: 800;

    color: #e4ebe7;
}


/* =====================================================
   CARD CONTENT
===================================================== */

.card-content {
    margin-top: 18px;
}

.small-title {
    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.2px;

    color: #8a9992;
}

.card-content h3 {
    font-family: "Playfair Display", serif;

    font-size: 23px;

    color: #193e30;

    margin: 2px 0 5px;
}

.card-content p {
    max-width: 400px;

    color: #718078;

    font-size: 11px;

    line-height: 1.6;
}


/* =====================================================
   CARD FOOTER
===================================================== */

.card-footer {
    margin-top: 17px;

    padding-top: 12px;

    border-top: 1px solid #edf1ee;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;
}

.product-count {
    color: #607068;

    font-size: 10px;

    font-weight: 700;
}

.product-count i {
    margin-right: 4px;

    color: #0b6b43;
}


/* =====================================================
   BUTTON
===================================================== */

.btn-lihat {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 8px 12px;

    border-radius: 8px;

    background: #0b6b43;

    color: white;

    font-size: 10px;

    font-weight: 800;

    transition: .3s ease;
}

.btn-lihat i {
    transition: .3s ease;
}

.btn-lihat:hover {
    background: #075334;

    transform: translateX(2px);
}

.btn-lihat:hover i {
    transform: translateX(3px);
}


/* =====================================================
   INFO SECTION
===================================================== */

.produk-info {
    margin: 10px 0 55px;

    padding: 25px 28px;

    display: flex;

    align-items: center;

    gap: 18px;

    border-radius: 18px;

    background:
        linear-gradient(120deg,
            #0b6b43,
            #104e38);

    color: white;

    position: relative;

    overflow: hidden;
}

.produk-info::after {
    content: "";

    position: absolute;

    width: 160px;
    height: 160px;

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

    border-radius: 50%;

    right: -65px;
    top: -75px;
}


/* INFO ICON */

.info-icon {
    min-width: 50px;

    height: 50px;

    display: flex;

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

    border-radius: 14px;

    background: rgba(255, 255, 255, .12);

    font-size: 20px;

    color: #ffd54f;
}


/* INFO TEXT */

.info-text {
    flex: 1;

    position: relative;

    z-index: 2;
}

.info-text>span {
    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.2px;

    color: #ffd54f;
}

.info-text h2 {
    font-family: "Playfair Display", serif;

    font-size: 20px;

    margin: 2px 0 4px;
}

.info-text p {
    color: #d6e9df;

    font-size: 10px;

    max-width: 580px;
}


/* INFO BUTTON */

.info-button {
    position: relative;

    z-index: 2;

    white-space: nowrap;

    padding: 9px 14px;

    background: #ffd54f;

    color: #164a35;

    border-radius: 8px;

    font-size: 10px;

    font-weight: 800;

    transition: .3s ease;
}

.info-button:hover {
    background: #ffe58a;

    transform: translateY(-2px);
}


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

footer {
    background: #123c2d;

    color: white;
}

.footer-container {
    width: 86%;

    max-width: 1200px;

    margin: auto;

    padding: 40px 0 30px;

    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    gap: 35px;
}

.footer-column h3 {
    font-family: "Playfair Display", serif;

    font-size: 16px;

    margin-bottom: 12px;
}

.footer-column ul {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.footer-column ul li a {
    color: #c5d9d0;

    font-size: 10px;

    transition: .3s ease;
}

.footer-column ul li a:hover {
    color: #ffd54f;

    padding-left: 3px;
}

.footer-column p {
    color: #c5d9d0;

    font-size: 10px;

    margin-bottom: 6px;
}

.footer-column p i {
    width: 16px;

    color: #ffd54f;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);

    text-align: center;

    padding: 13px;
}

.footer-bottom p {
    color: #9fb9ad;

    font-size: 9px;
}

footer span {

    color: #FFD54F;

    font-weight: 600;
}

/* =====================================================
   RESPONSIVE TABLET
===================================================== */

@media (max-width: 900px) {

    .navbar {
        padding: 0 4%;
    }

    .menu {
        gap: 1px;
    }

    .menu li a {
        padding: 7px 7px;

        font-size: 10px;
    }

    .produk-container,
    .hero-content,
    .footer-container {
        width: 90%;
    }

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

    .produk-info {
        gap: 14px;
    }

    .info-button {
        padding: 8px 11px;
    }
}


/* =====================================================
   RESPONSIVE HP
===================================================== */

@media (max-width: 650px) {

    .navbar {
        height: auto;

        min-height: 70px;

        padding: 9px 5%;

        flex-direction: column;

        gap: 8px;
    }

    .logo img {
        width: 36px;
        height: 36px;
    }

    .logo-text h2 {
        font-size: 16px;
    }

    .logo-text span {
        font-size: 8px;
    }

    .menu {
        flex-wrap: wrap;

        justify-content: center;

        gap: 1px;
    }

    .menu li a {
        font-size: 9px;

        padding: 6px 6px;
    }

    .menu .login-btn {
        margin-left: 0;
    }


    /* HERO */

    .produk-hero {
        min-height: 320px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content>p {
        font-size: 11px;
    }

    .hero-stat {
        margin-top: 18px;

        gap: 13px;
    }

    .hero-stat-item strong {
        font-size: 19px;
    }

    .hero-stat-item span {
        font-size: 8px;
    }


    /* ETALASE */

    .etalase-section {
        padding: 45px 0 35px;
    }

    .section-heading {
        margin-bottom: 22px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .section-heading p {
        font-size: 10px;
    }


    /* CARD */

    .kategori-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .kategori-card {
        min-height: auto;

        padding: 17px;

        border-radius: 14px;
    }

    .kategori-icon {
        width: 45px;
        height: 45px;

        border-radius: 12px;

        font-size: 18px;
    }

    .kategori-number {
        font-size: 21px;
    }

    .card-content {
        margin-top: 14px;
    }

    .card-content h3 {
        font-size: 21px;
    }

    .card-content p {
        font-size: 10px;
    }

    .card-footer {
        margin-top: 14px;

        padding-top: 10px;
    }

    .product-count {
        font-size: 9px;
    }

    .btn-lihat {
        padding: 7px 10px;

        font-size: 9px;
    }


    /* INFO */

    .produk-info {
        padding: 20px;

        border-radius: 15px;

        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }

    .info-icon {
        width: 45px;
        height: 45px;

        min-width: 45px;
    }

    .info-text h2 {
        font-size: 18px;
    }

    .info-text p {
        font-size: 9px;
    }

    .info-button {
        width: 100%;

        text-align: center;
    }


    /* FOOTER */

    .footer-container {
        grid-template-columns: 1fr;

        gap: 22px;

        padding: 35px 0 25px;
    }

    .footer-column h3 {
        font-size: 15px;
    }

    .footer-column ul li a,
    .footer-column p {
        font-size: 9px;
    }
}

/* =====================================================
   MENU HAMBURGER MOBILE
===================================================== */

.menu-toggle {
    display: none;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 8px;

    background: transparent;

    color: #087443;

    font-size: 21px;

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

    cursor: pointer;

    transition: 0.2s ease;
}

.menu-toggle:hover {
    background: #e8f5ec;
}


/* =====================================================
   RESPONSIVE NAVBAR
===================================================== */

@media (max-width: 768px) {

    .navbar {
        position: relative;

        min-height: 70px;

        padding: 10px 18px;

        display: flex;
        align-items: center;

        z-index: 9999;
    }


    /* LOGO */

    .navbar .logo {
        display: flex;
        align-items: center;

        gap: 9px;
    }

    .navbar .logo img {
        width: 42px;
        height: 42px;

        object-fit: contain;
    }

    .navbar .logo-text h2 {
        font-size: 16px;

        margin: 0;
    }

    .navbar .logo-text span {
        font-size: 8px;
    }


    /* TOMBOL HAMBURGER */

    .menu-toggle {
        display: flex;

        margin-left: auto;

        flex-shrink: 0;
    }


    /* NAVIGASI */

    .navbar nav {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        background: #ffffff;

        box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.10);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }


    /* MENU AKTIF */

    .navbar nav.active {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    /* LIST MENU */

    .navbar nav .menu {

        display: flex;

        flex-direction: column;

        width: 100%;

        padding: 7px 0;

        margin: 0;

        gap: 0;
    }


    .navbar nav .menu li {

        width: 100%;

        list-style: none;
    }


    /* LINK */

    .navbar nav .menu li a {

        display: flex;

        align-items: center;

        width: 100%;

        min-height: 44px;

        padding: 10px 20px;

        box-sizing: border-box;

        color: #123c2d;

        font-size: 12px;

        font-weight: 600;

        text-decoration: none;

        transition: 0.2s ease;
    }


    .navbar nav .menu li a:hover,
    .navbar nav .menu li a.active {

        background: #e8f5ec;

        color: #087443;
    }


    /* LOGIN ADMIN */

    .navbar nav .menu li .login-btn {

        width: calc(100% - 36px);

        min-height: 40px;

        margin: 8px 18px;

        justify-content: center;

        background: #ffd54f;

        color: #123c2d;

        border-radius: 8px;
    }


    .navbar nav .menu li .login-btn:hover {

        background: #f5c933;

        color: #123c2d;
    }


    .navbar nav .menu li .login-btn i {

        margin-right: 7px;
    }

}


/* =====================================================
   HP KECIL
===================================================== */

@media (max-width: 480px) {

    .navbar {

        min-height: 65px;

        padding: 8px 14px;
    }


    .navbar .logo img {

        width: 39px;
        height: 39px;
    }


    .navbar .logo-text h2 {

        font-size: 15px;
    }


    .navbar .logo-text span {

        font-size: 7px;
    }


    .menu-toggle {

        width: 38px;
        height: 38px;

        font-size: 20px;
    }


    .navbar nav {

        top: 65px;
    }


    .navbar nav .menu li a {

        min-height: 42px;

        padding: 9px 17px;

        font-size: 12px;
    }

}