/* index.html > style.css */

/* header style */
header {
    min-height: 90vh;
    padding-top: 7rem;
    display: flex;
    align-items: center;
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

.header-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: #4a2c40;
}

.header-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.1;
}

.header-text h1 span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #dd3aa7;
}

.header-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #6d4c62;
    margin-bottom: 10px;
}

.header-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-radius: 20px;
}

.header-img .slide img {
    border-radius: 0px;
}

.slider-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    border-radius: 20px;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-hubungi {
    display: flex;
    gap: 30px;
    padding-top: 20px;
}

.header-produk {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 20px;
    padding: 15px 40px;
    background-color: #dd3aa7;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
    width: fit-content;
}

.header-produk img {
    width: 25px;
    height: 25px;
    margin-right: 1px;
    filter: invert(100%) sepia(100%) grayscale(100%) brightness(200%);
    color: white;
}

.header-whatsapp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 20px;
    padding: 15px 40px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
    width: fit-content;
}

.header-whatsapp img {
    width: 25px;
    height: 25px;
    margin-right: 1px;
}

.header-img img {
    border-radius: 20px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* Main content stye */
main {
    padding: 0 20px;
}

/* 1. Keunggulan */
.keunggulan-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.keunggulan-header {
    text-align: center;
    margin-bottom: 60px;
}

.keunggulan-header h2 {
    font-size: 32px;
    color: #4a2c40;
    margin-bottom: 15px;
}

.keunggulan-header p {
    font-size: 16px;
    color: #6d4c62;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.keunggulan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.keunggulan-card {
    position: relative;
    background-color: white;
    padding: 40px 25px;
    border-radius: 12px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.keunggulan-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #dd3aa7;
    transition: all 0.4s ease;
}

.keunggulan-icon {
    font-size: 35px;
    margin-bottom: 20px;
    background-color: rgba(221, 58, 167, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.4s ease;
}

.keunggulan-card h3 {
    font-size: 18px;
    color: #4a2c40;
    margin-bottom: 10px;
    transition: color 0.4s ease;
}

.keunggulan-card p {
    font-size: 14px;
    color: #6d4c62;
    line-height: 1.6;
    transition: color 0.4s ease;
}

.keunggulan-card:hover {
    background-color: #dd3aa7;
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(221, 58, 167, 0.3);
}

.keunggulan-card:hover .keunggulan-bar {
    width: 100%;
    background-color: white;
}

.keunggulan-card:hover .keunggulan-icon {
    background-color: white;
    transform: scale(1.1);
}

.keunggulan-card:hover h3 {
    color: white;
}

.keunggulan-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* 2. Produk Terlaris */
.produk-terlaris {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 80px auto;
}

.produk-terlaris h2 {
    font-size: 28px;
    color: #4a2c40;
    margin-bottom: 10px;
}

.produk-terlaris>p {
    font-size: 15px;
    color: #6d4c62;
    margin-bottom: 40px;
}

.grid-terlaris {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.card-terlaris {
    background-color: white;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    transition: transform 0.2s ease;
}

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

.card-terlaris .card-img {
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.card-terlaris .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-terlaris .card-info {
    padding: 15px 10px;
}

.card-terlaris .card-info h3 {
    font-size: 15px;
    color: #4a2c40;
    margin-bottom: 5px;
}

.card-terlaris .card-info p {
    font-size: 14px;
    font-weight: bold;
    color: #dd3aa7;
}

.btn-lihat-semua {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #dd3aa7;
    color: #dd3aa7;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-lihat-semua:hover {
    background-color: #dd3aa7;
    color: white;
}

/* Responsive Mobile */
@media (max-width: 767px) {
    header {
        padding: 100px 15px 40px 15px;
    }

    .slider-container {
        max-width: 280px;
    }

    .header-hubungi {
        padding: 0;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .header-produk,
    .header-whatsapp {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .keunggulan-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }

    .keunggulan-section {
        padding: 50px 15px;
    }

    .keunggulan-header h2 {
        font-size: 24px;
    }

    .keunggulan-card {
        padding: 30px 15px;
    }

    .keunggulan-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .produk-terlaris h2 {
        font-size: 22px;
    }

    .grid-terlaris {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Responsive tablet */
@media (min-width: 768px) {
    .header-grid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .header-text h1 {
        font-size: 3rem;
    }

    .header-text p {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    header {
        padding-top: 5rem;
    }

    .header-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        max-width: 1600px;
    }

    .header-text h1 {
        font-size: 3.75rem;
    }
}