/* -------------------------
   homepage.css (responsive)
   Ganti file css/homepage.css kamu dengan isi ini
------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.section-title,
.footer-heading {
    font-family: "Poppins", sans-serif;
}

body {
    background: #f9f9f9;
    color: #333;
}

/* HERO */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
    /* default desktop height */
    height: 100vh;
}

/* background image wrapper */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-background img,
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(70%);
}

/* hero content */
.hero-content {
    padding: 20px;
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 1100px;
    width: 92%;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: bold;
    line-height: 1.05;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 35px;
}

/* BUTTONS */
.hero-btn-primary,
.hero-btn-outline,
.btn-jelajahi {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

/* primary */
.hero-btn-primary {
    background: #E4947D;
    color: #ffffff;
    padding: 10px 30px;
    border-radius: 10px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    margin-right: 10px;
}

.hero-btn-primary:hover {
    background: #f0baab;
    transform: scale(1.03);
}

/* outline */
.hero-btn-outline {
    background: transparent;
    color: #ffffff;
    padding: 8px 25px;
    border-radius: 10px;
    border: 2px solid #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.hero-btn-outline:hover {
    background: #ffffff;
    color: #2d2a26;
    transform: scale(1.03);
}

/* produk buttons */
.produk-btn {
    background: #e7d7b5;
    color: #2c2b28;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.produk-btn:hover {
    background: #d9c7a3;
    transform: translateY(-3px);
}

/* rekomendasi button */
.rekom-btn {
    background: #f3e3c1;
    color: #2e2c28;
    padding: 10px 22px;
    border-radius: 10px;
    border: none;
    width: 100%;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(210, 185, 140, 0.5);
    cursor: pointer;
    transition: 0.3s ease;
}

.rekom-btn:hover {
    background: #e6d3ad;
    box-shadow: 0 6px 16px rgba(210, 185, 140, 0.7);
    transform: translateY(-3px);
}

.harga {
    font-size: 18px;
    font-weight: 700;
    color: #2c7efb;
    margin: 10px 0 15px;
}

.btn-jelajahi {
    background: #E4947D;
    color: #ffffff;
    padding: 10px 30px;
    border-radius: 10px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    text-decoration: none;
}

.btn-jelajahi:hover {
    background: #f0baab;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* ============================
   PRODUK KAMI
   ========================== */

.produk-kami {
    padding: 40px 50px;
    text-align: center;
}

/* Judul */
.produk-kami h2 {
    display: inline-block;
    position: relative;
    font-weight: 700;
    margin-bottom: 35px;
}

.produk-kami h2::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 4px;
    background: #E4947D;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

/* Grid */
.produk-kami .produk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 0 10px;
}

/* Card */
.produk-kami .produk-card {
    background: #FAF3D6;
    border: 1.5px solid #eee;
    border-radius: 12px;
    padding: 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: .25s ease;
}

.produk-kami .produk-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Gambar */
.produk-kami .produk-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f3f3f3;
    border-radius: 8px;
}

/* Text */
.produk-kami .produk-card h3 {
    margin: 15px 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.produk-kami .produk-card p {
    color: #444;
    font-size: 15px;
    margin-bottom: 18px;
    flex-grow: 1;
}

/* produk button */
.produk-kami .produk-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1.5px solid #D46A6A;
    background: transparent;
    color: #D46A6A;
    font-weight: 600;
    transition: .25s ease;
}

.produk-kami .produk-btn:hover {
    background: #D46A6A;
    color: white;
}

/* REKOMENDASI */
.rekomendasi {
    padding: 60px 20px;
    text-align: center;
}

.rekomendasi h2 {
    display: inline-block;
    position: relative;
    font-weight: 700;
    margin-bottom: 30px;
}

.rekomendasi h2::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 4px;
    background: #E4947D;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

/* GRID baru */
.produk-reko-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* CARD Rekomendasi */
.reko-card {
    background: #FAF3D6;
    border: 1.5px solid #eee; 
    border-radius: 12px;
    padding: 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: 0.25s ease;
}

.reko-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
}

.reko-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    background: #f5f5f5;
}

.reko-card h3 {
    margin: 15px 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.reko-card p {
    color: #444;
    font-size: 15px;
    flex-grow: 1;
    margin-bottom: 15px;
}

.reko-card .harga {
    font-weight: 700;
    font-size: 16px;
    display: block;
    margin-bottom: 15px;
    color: #000000;
}

/* .btn-reko {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1.5px solid #D46A6A;
    background: transparent;
    color: #D46A6A;
    font-weight: 600;
    transition: 0.25s ease;
}

.btn-reko:hover {
    background: #D46A6A;
    color: white;
} */

.btn-reko {
        color: #000000;
        padding: 5px 40px;
        border-radius: 5px;
        border: 1.5px solid #E4947D;
        font-size: 1.1rem;
        font-weight: 400;
        cursor: pointer;
        transition: 0.25s ease;
        margin-right: 5px;
        text-decoration: none;
    }

    .btn-reko:hover {
        background: #E4947D;
        transform: scale(1.05);
        color: #fff;
        font-weight: 600;
    }

/* SECTION RASA TERBAIK */
.best {
    padding: 80px 0;
    background: linear-gradient(180deg, #faf5e9 0%, #fff8e9 100%);
}

.best-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TEXT AREA */
.best-content h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #2d2a26;
    line-height: 1.2;
    position: relative;
}

.best-content h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background: #E4947D;
    display: block;
    margin-top: 10px;
    border-radius: 10px;
}

.best-content p {
    font-size: 18px;
    color: #4f4b46;
    max-width: 380px;
    line-height: 1.75;
}

/* IMAGE SLIDER STYLE */
.best-images {
    display: flex;
    gap: 20px;
}

.best-images img {
    width: 200px;
    height: 160px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: 0.3s ease;
    border: 3px solid #f2e6cf;
}

.best-images img:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 24px rgba(228,148,125,0.4);
    border-color: #E4947D;
}

/* small layout tweaks for containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* -------------------------------------------------
   RESPONSIVE RULES
   (tablet / mobile)
   ------------------------------------------------- */

/* Medium devices / small laptops */
@media (max-width: 900px) {
    .produk-kami { padding: 30px 30px; }
    .produk-kami .produk-grid,
    .produk-reko-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

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

    .best-content {
        flex-direction: column;
        text-align: center;
    }

    .best-images {
        justify-content: center;
        flex-wrap: wrap;
    }

    .best-images img {
        width: 48%;
        height: 160px;
    }
}

/* Small devices / large phones */
@media (max-width: 600px) {

    /* HERO */
    .hero-section {
        height: 55vh; /* reduce hero height on phones */
        margin-top: 0; /* jika sebelumnya menggunakan offset navbar */
        margin-bottom: 25px;
    }

    .hero-content {
        width: 94%;
        padding: 18px;
    }

    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 18px;
    }

    /* tombol hero: jadi vertikal & lebar penuh */
    .hero-btn-primary,
    .hero-btn-outline {
        display: block;
        width: 100%;
        padding: 12px;
        margin: 8px 0;
        box-sizing: border-box;
        border-radius: 12px;
        font-size: 16px;
    }

    /* Produk grid -> 1 kolom */
    .produk-kami {
        padding: 20px 16px;
    }

    .produk-kami .produk-grid,
    .produk-reko-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .produk-kami .produk-card,
    .reko-card {
        padding: 14px;
    }

    .produk-kami .produk-card img,
    .reko-card img {
        height: 160px;
    }

    .produk-kami .produk-card h3,
    .reko-card h3 {
        font-size: 18px;
    }

    .produk-kami .produk-card p,
    .reko-card p {
        font-size: 14px;
    }

    /* rekomendasi card button dan harga */
    .reko-card .harga { font-size: 16px; }
    .btn-reko { 
        padding: 10px 40px; 
    }

    /* Best section stack */
    .best {
        padding: 40px 0;
    }

    .best-content h2 { font-size: 28px; }
    .best-content p { font-size: 15px; max-width: 100%; }

    .best-images {
        gap: 12px;
        justify-content: center;
    }

    .best-images img {
        width: 48%;
        height: 140px;
    }

    /* footer spacing (jika ada) */
    footer { padding: 20px 16px; }

}

/* Extra small / very small phones */
@media (max-width: 420px) {

    .hero-section { height: 62vh; }

    .hero-content h1 { font-size: 22px; }
    .hero-content p { font-size: 13px; }

    .produk-kami { padding: 16px 12px; }
    .rekomendasi { padding: 30px 10px; }

    .best-images img { width: 100%; height: 120px; }

    .produk-kami .produk-card img,
    .reko-card img { height: 140px; }

    .hero-btn-primary,
    .hero-btn-outline,
    .btn-jelajahi {
        font-size: 15px;
        padding: 10px;
    }

    .produk-kami .produk-card p,
    .reko-card p { font-size: 13px; }

    .harga { font-size: 15px; }
}

/* Utility: make images fluid in case other components add images */
img { max-width: 100%; height: auto; display: block; }
