/* Latar belakang halaman */
body {
    background-color: #f3e3cd; /* Albescent White */
}

/* SECTION biru */
.custom-section {
    background-color: #00325f;
    height: calc(100vh - 2rem);
    margin: 1rem;
    display: flex;
    flex-direction: column;
    padding: 2rem 3rem;
    border-radius: 1.5rem;
    box-sizing: border-box;
}

/* Pastikan semua gambar proporsional */
.custom-section img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* HEADER */
.logo-main {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 0 auto;
}

.title {
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #b58531;
    letter-spacing: 0.5px;
}

/* Deretan logo */
.logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Kotak pembungkus logo */
.logo-box {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* opsional */
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1); /* opsional */
}

/* Gambar logo di dalam kotak */
.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* BRAND */
.brand-img,
.tagline-img {
    display: block;
    margin: 0 auto;
    height: auto;
}

.brand-img {
    max-width: 600px !important;
}

.tagline-img {
    max-width: 600px !important;
}

/* ======== BAGIAN BAWAH ======== */
.section-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    gap: 1rem;
    padding-top: 1rem;
    flex-wrap: wrap; /* biar responsif di layar kecil */
}

/* KIRI */
.bottom-left {
    display: flex;
    gap: 2.5rem;
    align-items: flex-end;
    flex: 1; /* seimbang dengan kanan */
}

.bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.2;
}

.bottom-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bottom-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* TENGAH */
.bottom-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1.5; /* sedikit lebih besar agar tetap di tengah secara visual */
}

.distributor-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.distributor-logo {
    width: 120px;
    height: auto;
    margin-bottom: 0.4rem;
}

.distributor-text {
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

/* KANAN */
.bottom-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1; /* biar proporsional, bukan fixed width */
}

.kepmen-number {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap; /* cegah teks turun ke bawah */
}

/* RESPONSIF */
@media (max-width: 768px) {
    .section-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .bottom-right {
        display: none;
    }

    .bottom-logo {
        width: 60px;
        height: 60px;
    }

    .distributor-logo {
        width: 100px;
    }

    .distributor-text {
        font-size: 1.3rem;
    }
}


/* ==================== RESPONSIVE DESIGN ==================== */

/* ====== Tablet (max-width: 992px) ====== */
@media (max-width: 992px) {

    .custom-section {
        height: auto;
        padding: 1.5rem 2rem;
        margin: 1rem;
    }

    .logo-main {
        width: 120px;
        height: 120px;
    }

    .title {
        font-size: 1.4rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .logos {
        gap: 1.5rem;
    }

    .logo-small {
        width: 70px;
        height: 70px;
    }

    .brand-img,
    .tagline-img {
        max-width: 450px !important;
    }

    .section-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .bottom-left {
        justify-content: center;
        gap: 2rem;
    }

    .bottom-center {
        font-size: 1.3rem;
    }

    .bottom-right {
        text-align: center;
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* ====== Mobile (max-width: 576px) ====== */
@media (max-width: 576px) {

    .custom-section {
        height: auto;
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 1rem;
    }

    /* Header */
    .logo-main {
        width: 90px;
        height: 90px;
        margin-bottom: 0.75rem;
    }

    .title {
        font-size: 1.1rem;
        text-align: center;
    }

    .subtitle {
        font-size: 0.9rem;
        text-align: center;
    }

    /* Logo deretan diubah ke kolom */
    .logos {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .logo-small {
        width: 65px;
        height: 65px;
        object-fit: contain;
    }

    /* Brand & tagline */
    .brand-img {
        max-width: 230px !important;
        margin-bottom: 1rem;
    }

    .tagline-img {
        max-width: 230px !important;
        margin-bottom: 1.5rem;
    }

    /* Bagian bawah jadi vertikal */
    .section-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.2rem;
        margin-top: 2rem;
        font-size: 0.9rem;
    }

    .bottom-left {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .bottom-logo {
        width: 55px;
        height: 55px;
    }

    .bottom-center {
        font-size: 1rem;
        font-weight: 600;
    }

    .bottom-right {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* ========== PRIMA SECTION ========== */
.prima-section {
    background-color: #00325f;
    height: calc(100vh - 2rem);
    margin: 1rem;
    display: flex;
    flex-direction: column;
    padding: 2rem 3rem;
    border-radius: 1.5rem;
    box-sizing: border-box;
}

/* Logo Baris Atas */
.logo-top {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.section-title {
    font-size: 1rem;
    line-height: 1.3;
    text-align: left;
}

/* Kiri */
.brand-gravira {
    max-width: 250px;
    height: auto;
}

.tagline-img {
    max-width: 250px;
    height: auto;
    margin-bottom: 1.5rem;
}

/* Logo PRIMA besar */
.laurel-icon-large {
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Icon bawah PRIMA */
.icon-bottom {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.small div {
    font-size: 0.9rem;
    color: white;
}

/* Kanan (teks) */
.prima-item h2 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.prima-item p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* =================== RESPONSIVE =================== */

/* Tablet */
@media (max-width: 992px) {
    .prima-section {
        height: auto;
        padding: 1.5rem 2rem;
        margin: 1rem;
    }

    .logo-top {
        width: 70px;
        height: 70px;
    }

    .section-title {
        font-size: 0.95rem;
        text-align: center;
    }

    .brand-gravira,
    .tagline-img {
        max-width: 200px;
    }

    .laurel-icon-large {
        width: 200px;
    }

    .prima-item h2 {
        font-size: 1.2rem;
    }

    .prima-item p {
        font-size: 0.95rem;
    }

    .prima-section .row {
        flex-direction: column;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .prima-section {
        height: auto;
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 1rem;
    }

    /* Header */
    .d-flex.align-items-center.gap-3.mb-4 {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }

    .section-title {
        font-size: 0.9rem;
        text-align: center;
        margin-top: 0.5rem;
    }

    /* Logo atas jadi dua baris */
    .logo-top {
        width: 60px;
        height: 60px;
    }

    /* Gravira dan tagline */
    .brand-gravira,
    .tagline-img {
        max-width: 180px;
        margin-bottom: 1rem;
    }

    /* PRIMA logo */
    .laurel-icon-large {
        width: 150px;
        margin: 0 auto;
    }

    /* Icon bawah PRIMA */
    .icon-bottom {
        width: 45px;
        height: 45px;
    }

    /* Teks kanan */
    .prima-item h2 {
        font-size: 1.1rem;
        text-align: center;
    }

    .prima-item p {
        font-size: 0.9rem;
        text-align: justify;
    }

    .prima-right {
        text-align: center;
    }

    /* Susunan bawah flex-wrap */
    .d-flex.justify-content-center.gap-5.mt-4.flex-wrap.small {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Biar stack di bawah logo */
    .prima-section .d-flex.align-items-center {
        flex-direction: column;
        text-align: center;
    }

    /* Biar logo tetap di tengah */
    .prima-section .d-flex.align-items-center .d-flex {
        justify-content: center;
    }

    /* Biar teks di tengah */
    .prima-section .section-title {
        text-align: center;
        font-size: 0.9rem; /* opsional: sedikit kecil di HP */
    }
}

/* === SECTION UTAMA === */
.gravira-section {
    background-color: #00325f;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === WRAPPER KOTAK DALAM === */
.gravira-box {
    display: flex;
    width: 95%;
    height: 85vh;
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
}

/* === SIDEBAR === */
.gravira-sidebar {
    background-color: #00325f;
    width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gravira-logo-vertical {
    transform: rotate(-90deg);
    width: 400px;
    height: auto;
}

/* === KONTEN === */
.gravira-content {
    background-color: #f8f1e5;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.tech-logo {
    max-height: 80px;
    object-fit: contain;
    margin: 0 10px;
}

.gravira-content h6 {
    color: #083c6c;
    font-weight: bold;
}

.gravira-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}


/* === RESPONSIVE === */
@media (max-width: 992px) {
    .gravira-box {
        flex-direction: column; /* ubah jadi vertikal */
        height: auto;
    }

    .gravira-sidebar {
        width: 100%;
        height: 120px;
    }

    .gravira-logo-vertical {
        transform: rotate(0); /* tidak diputar */
        width: 220px;
        height: auto;
    }

    .gravira-content {
        padding: 2rem 1.5rem;
    }

    .tech-logo {
        max-height: 60px;
        margin: 0 5px;
    }

    .gravira-content h6 {
        font-size: 0.95rem;
    }

    .gravira-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .gravira-content {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }

    .gravira-logo-vertical {
        width: 180px;
    }

    .tech-logo {
        max-height: 50px;
    }

    .gravira-content h6 {
        font-size: 0.9rem;
    }

    .gravira-content p {
        font-size: 0.8rem;
    }
}

/* === CERTIFICATE SECTION === */
.certificate-section {
    background-color: #f8f1e5; /* krem luar */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* penuh layar (desktop) */
    padding: 0.5rem;
}

/* Kotak Biru Tengah */
.certificate-box {
    background-color: #00325f;
    width: 98%;
    height: 97%;
    border-radius: 20px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Logo Garuda / Instansi */
.instansi-logo {
    max-height: 180px;
    height: auto;
}

.instansi-logo-sm {
    max-height: 100px;
    height: auto;
}

/* Gravira Logo */
.gravira-main-img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

/* Logo SNI & BBI */
.cert-logo {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

/* Typography */
.gravira-main-title {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.certificate-box h5 {
    letter-spacing: 1px;
}

.certificate-box p {
    font-size: 0.9rem;
    line-height: 1.5;
}


/* === RESPONSIVE === */
@media (max-width: 992px) {
    .certificate-section {
        height: auto; /* biar tidak terlalu panjang di tablet */
        padding: 2rem 1rem;
    }

    .certificate-box {
        width: 100%;
        height: auto;
        padding: 2rem 1.5rem;
    }

    .instansi-logo {
        max-height: 140px;
    }

    .instansi-logo-sm {
        max-height: 80px;
    }

    .gravira-main-img {
        max-height: 100px;
    }

    .cert-logo {
        max-height: 80px;
    }

    .gravira-main-title {
        font-size: 2.2rem;
    }

    .certificate-box h5 {
        font-size: 1rem;
    }

    .certificate-box p {
        font-size: 0.85rem;
    }
}


@media (max-width: 576px) {
    .certificate-section {
        height: auto;
        padding: 1rem;
    }

    .certificate-box {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }

    .instansi-logo {
        max-height: 100px;
    }

    .instansi-logo-sm {
        max-height: 60px;
    }

    .gravira-main-img {
        max-height: 40px !important; /* perkecil di HP */
        margin-bottom: 0.5rem !important; /* rapatkan jarak bawah */
        margin-top: 0.5rem !important; /* rapatkan jarak atas */
    }

    .cert-logo {
        max-height: 60px;
    }

    .gravira-main-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .certificate-box h5 {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .certificate-box p {
        font-size: 0.75rem;
    }

    .d-flex.gap-5 {
        gap: 1.5rem !important; /* kurangi jarak antar logo sertifikat */
    }
}

/* ======== FLOATING WHATSAPP BUTTON ======== */
.whatsapp-float {
    position: fixed;
    bottom: 50px;
    right: 25px;
    background-color: #d9c4a4;
    color: #00325f;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Hover effect */
.whatsapp-float:hover {
    background-color: #e3d3b8;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* ======== RESPONSIVE SIZE ======== */

/* Untuk layar besar (desktop) */
@media (min-width: 992px) {
    .whatsapp-float {
        padding: 16px 28px;
        font-size: 1.1rem;
        bottom: 60px;
        right: 35px;
    }
}

/* Untuk layar kecil (mobile) */
@media (max-width: 576px) {
    .whatsapp-float {
        padding: 10px 16px;
        font-size: 0.9rem;
        bottom: 30px;
        right: 15px;
    }
}

/* ======== END FLOATING WHATSAPP BUTTON ======== */

/* ======== INLINE WHATSAPP BUTTON ======== */
.whatsapp-inline {
    display: inline-block;
    background-color: #d9c4a4;
    color: #00325f;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Hover effect */
.whatsapp-inline:hover {
    background-color: #e3d3b8;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Responsif */
@media (min-width: 992px) {
    .whatsapp-inline {
        padding: 16px 28px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .whatsapp-inline {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* ======== END INLINE WHATSAPP BUTTON ======== */


