/* =========================================================
   BRAND AMBASSADOR PAGE
   NasiKotak
========================================================= */

:root {
    --ba-orange-dark: var(--primary-dark);
    --ba-orange: var(--primary);
    --ba-orange-light: var(--secondary);

    --ba-red: var(--dark);
    --ba-yellow: var(--accent);

    --ba-cream: var(--cream);
    --ba-orange-soft: var(--light);

    --ba-white: var(--white);

    --ba-text: #5c2a13;
    --ba-muted: #8b6855;

    --ba-blue-light: #ffd936;
    --ba-blue-dark: #7a1a0a;
    --ba-bg: #fffaf0;
    --accent-rgb: 255, 217, 54;
    --ba-muted: #7a4a30;
}


/* =========================================================
   PAGE
========================================================= */

.brand-ambassador-page {
    overflow: hidden;
    background: transparent;
    color: var(--ba-text);
}


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

.ba-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background:
        radial-gradient(circle at 10% 20%,
            rgba(var(--primary-rgb), 0.12),
            transparent 30%),
        radial-gradient(circle at 90% 80%,
            rgba(var(--accent-rgb), 0.20),
            transparent 32%),
        linear-gradient(135deg,
            var(--light) 0%,
            var(--cream) 100%);
}


/* decorative circles */

.ba-hero::before,
.ba-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ba-hero::before {
    width: 420px;
    height: 420px;
    top: -220px;
    right: -100px;
    border: 70px solid rgba(22, 152, 246, 0.08);
}

.ba-hero::after {
    width: 260px;
    height: 260px;
    bottom: -160px;
    left: -100px;
    border: 50px solid rgba(12, 54, 133, 0.06);
}


/* hero content */

.ba-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 100px 0;
}

.ba-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 15px;

    border-radius: 999px;

    background: rgba(var(--primary-rgb), 0.10);
    border: 1px solid rgba(var(--primary-rgb), 0.20);

    color: var(--ba-orange-dark);

    font-size: 14px;
    font-weight: 700;

    margin-bottom: 22px;
}

.ba-eyebrow span {
    font-size: 16px;
}


.ba-hero h1 {
    margin: 0;

    color: var(--ba-red);

    font-size: clamp(48px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -3px;
    font-weight: 800;
}

.ba-hero h1 span {
    display: block;
    color: var(--ba-orange);
}


.ba-hero p {
    max-width: 590px;

    margin: 28px 0 32px;

    color: var(--ba-muted);

    font-size: 18px;
    line-height: 1.7;
}


.ba-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 14px 22px;

    border-radius: 14px;

    background: var(--ba-orange);
    color: white;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.20);

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

.ba-hero-button:hover {
    color: white;
    background: var(--ba-red);
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(11, 100, 212, 0.25);
}

/* ponytail: flex wrapper + ghost variant, replaces inline margin/style so buttons wrap with real gap */
.ba-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ba-hero-button--ghost {
    background: #fff;
    color: var(--dark);
    border: 2px solid #fff;
}

.ba-hero-button--ghost:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}


/* floating decorations */

.ba-hero-decoration {
    position: absolute;
    z-index: 1;

    color: var(--ba-orange);

    font-size: 40px;

    pointer-events: none;
}

.ba-decoration-one {
    top: 25%;
    right: 13%;
    animation: baFloat 4s ease-in-out infinite;
}

.ba-decoration-two {
    bottom: 20%;
    right: 25%;
    color: #ff7ab8;
    font-size: 55px;
    animation: baFloat 5s ease-in-out infinite reverse;
}

.ba-decoration-three {
    top: 18%;
    right: 32%;
    color: var(--ba-yellow);
    font-size: 28px;
    animation: baFloat 3.5s ease-in-out infinite;
}


@keyframes baFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-14px) rotate(8deg);
    }
}


/* =========================================================
   BA LIST SECTION
========================================================= */

.ba-list-section {
    position: relative;
    padding: 100px 0 120px;

    background: var(--ba-white);
}


.ba-section-heading {
    max-width: 700px;
    margin-bottom: 55px;
}


.ba-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 15px;

    color: var(--ba-orange);

    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.ba-section-heading h2 {
    margin: 0;

    color: var(--ba-red);

    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -2px;
    font-weight: 800;
}


.ba-section-heading h2 span {
    color: var(--ba-orange);
}


.ba-section-heading p {
    max-width: 620px;

    margin: 20px 0 0;

    color: var(--ba-muted);

    font-size: 16px;
    line-height: 1.7;
}


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

.ba-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 24px;
}


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

.ba-card {
    position: relative;

    min-height: 410px;

    overflow: hidden;

    padding: 30px 24px 25px;

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

    text-align: center;

    border: 2px solid rgba(var(--primary-rgb), 0.10);
    border-radius: 28px;

    background: var(--white);

    box-shadow:
        0 10px 35px rgba(var(--dark-rgb), 0.08);

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

.ba-card:hover {
    transform: translateY(-8px);

    border-color: rgba(var(--primary-rgb), 0.25);

    box-shadow:
        0 20px 50px rgba(var(--dark-rgb), 0.16);
}


/* card decorative background */

.ba-card::before {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    top: -90px;
    right: -70px;

    border-radius: 50%;

    background: rgba(22, 152, 246, 0.08);
}

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

    position: absolute;

    width: 120px;
    height: 120px;

    bottom: -70px;
    left: -50px;

    border-radius: 50%;

    background: rgba(120, 165, 214, 0.10);
}


.ba-card-shape {
    position: absolute;

    width: 8px;
    height: 8px;

    top: 25px;
    right: 28px;

    border-radius: 50%;

    background: var(--ba-blue-light);

    box-shadow:
        -18px 8px 0 rgba(22, 152, 246, 0.25),
        -8px 25px 0 rgba(120, 165, 214, 0.35);
}


/* =========================================================
   PROFILE
========================================================= */

.ba-profile-wrapper {
    position: relative;

    margin-top: 10px;

    z-index: 2;
}


.ba-profile-ring {
    width: 170px;
    height: 170px;

    padding: 6px;

    border-radius: 50%;

    background:
        linear-gradient(135deg,
            var(--ba-orange),
            var(--ba-red));

    box-shadow:
        0 15px 35px rgba(var(--primary-rgb), 0.22);
}


.ba-profile-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    background: #edf5ff;

    border: 4px solid white;
}


.ba-profile-star {
    position: absolute;

    right: -7px;
    bottom: 4px;

    width: 38px;
    height: 38px;

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

    border-radius: 50%;

    background: var(--accent);

    color: var(--ba-blue-dark);

    font-size: 18px;

    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.10);
}


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

.ba-card-content {
    position: relative;
    z-index: 2;

    width: 100%;

    margin-top: 22px;
}


.ba-card-content h3 {
    margin: 0 0 9px;

    color: var(--ba-red);

    font-size: 21px;
    font-weight: 800;
}


.ba-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    color: var(--ba-muted);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

.ba-instagram:hover {
    color: var(--ba-orange);
}


.ba-instagram-button {
    width: 100%;

    margin-top: 18px;

    padding: 11px 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border-radius: 12px;

    background: var(--ba-orange-soft);
    color: var(--ba-orange-dark);

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

    text-decoration: none;

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

.ba-instagram-button:hover {
    background: var(--ba-orange);
    color: white;

    transform: translateY(-2px);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.ba-empty-state {
    max-width: 650px;

    margin: 0 auto;

    padding: 65px 30px;

    text-align: center;

    border-radius: 28px;

    background: var(--ba-bg);

    border: 1px dashed rgba(11, 100, 212, 0.20);
}


.ba-empty-icon {
    width: 75px;
    height: 75px;

    margin: 0 auto 20px;

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

    border-radius: 24px;

    background: white;

    font-size: 34px;

    box-shadow: 0 10px 30px rgba(12, 54, 133, 0.08);
}


.ba-empty-state h3 {
    margin-bottom: 10px;

    color: var(--ba-blue-dark);

    font-size: 24px;
    font-weight: 800;
}


.ba-empty-state p {
    margin: 0;

    color: var(--ba-muted);
}


/* =========================================================
   BOTTOM SECTION
========================================================= */

.ba-bottom-section {
    padding: 0 0 100px;

    background: var(--ba-white);
}


.ba-bottom-card {
    position: relative;

    overflow: hidden;

    padding: 75px 60px;

    border-radius: 35px;

    background:
        radial-gradient(circle at 90% 10%,
            rgba(var(--accent-rgb), 0.35),
            transparent 25%),
        linear-gradient(135deg,
            var(--ba-red),
            var(--ba-orange));

    color: white;

    box-shadow:
        0 25px 60px rgba(12, 54, 133, 0.20);
}


.ba-bottom-content {
    position: relative;
    z-index: 2;

    max-width: 650px;
}


.ba-bottom-label {
    display: inline-block;

    margin-bottom: 18px;

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

    letter-spacing: 1.5px;

    text-transform: uppercase;

    opacity: 0.8;
}


.ba-bottom-content h2 {
    margin: 0;

    font-size: clamp(40px, 6vw, 70px);
    line-height: 0.98;
    letter-spacing: -2px;
    font-weight: 800;
}


.ba-bottom-content h2 span {
    color: #bfe3ff;
}


.ba-bottom-content p {
    max-width: 500px;

    margin: 25px 0 0;

    font-size: 16px;
    line-height: 1.7;

    opacity: 0.82;
}


.ba-bottom-decoration {
    position: absolute;

    z-index: 1;

    pointer-events: none;
}


.ba-bottom-one {
    right: 10%;
    top: 18%;

    font-size: 75px;

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

    animation: baFloat 4s ease-in-out infinite;
}


.ba-bottom-two {
    right: 22%;
    bottom: 10%;

    font-size: 100px;

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

    animation: baFloat 5s ease-in-out infinite reverse;
}


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

@media (max-width: 1199px) {

    .ba-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ba-card {
        min-height: 400px;
    }

}


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

@media (max-width: 767px) {

    .ba-hero {
        min-height: 560px;
    }

    .ba-hero-content {
        padding: 80px 0;
    }

    .ba-hero h1 {
        font-size: 52px;
        letter-spacing: -2px;
    }

    .ba-hero p {
        font-size: 16px;
    }

    .ba-hero-decoration {
        opacity: 0.65;
    }

    .ba-decoration-one {
        right: 10%;
        top: 13%;
    }

    .ba-decoration-two {
        right: 8%;
        bottom: 12%;
    }

    .ba-decoration-three {
        right: 35%;
        top: 11%;
    }


    .ba-list-section {
        padding: 75px 0 80px;
    }

    .ba-section-heading {
        margin-bottom: 35px;
    }

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


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

    .ba-card {
        min-height: 365px;

        padding: 22px 15px 18px;

        border-radius: 22px;
    }

    .ba-profile-ring {
        width: 125px;
        height: 125px;
    }

    .ba-profile-star {
        width: 32px;
        height: 32px;

        right: -3px;
        bottom: 2px;

        font-size: 14px;
    }

    .ba-card-content {
        margin-top: 15px;
    }

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

    .ba-instagram {
        font-size: 12px;
    }

    .ba-instagram-button {
        padding: 10px 8px;
        font-size: 11px;
    }


    .ba-bottom-section {
        padding-bottom: 70px;
    }

    .ba-bottom-card {
        padding: 55px 30px;

        border-radius: 28px;
    }

    .ba-bottom-content h2 {
        font-size: 47px;
    }

}


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

/* ponytail: card 1 kolom terlalu tinggi/ring kebesaran di layar mini, override khusus mini */
@media (max-width: 420px) {

    .ba-hero h1 {
        font-size: 45px;
        line-height: 1;
    }

    .ba-list-section {
        padding: 60px 0 70px;
    }

    .ba-section-heading {
        padding: 20px 16px;
        margin-bottom: 24px;
    }

    .ba-section-heading h2 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .ba-section-heading p {
        font-size: 14px;
        margin-top: 12px;
    }

    .ba-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ba-card {
        min-height: auto;
        width: 100%;
        padding: 22px 16px 18px;
    }

    .ba-profile-wrapper {
        margin-top: 4px;
    }

    .ba-profile-ring {
        width: 120px;
        height: 120px;
        padding: 5px;
    }

    .ba-profile-star {
        width: 28px;
        height: 28px;
        right: -2px;
        bottom: 2px;
        font-size: 13px;
    }

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

    .ba-card-content h3 {
        font-size: 18px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .ba-instagram {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .ba-instagram-button {
        font-size: 13px;
        padding: 11px 12px;
    }

}

@media (max-width: 360px) {

    .ba-section-heading {
        padding: 16px 12px;
    }

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

    .ba-profile-ring {
        width: 110px;
        height: 110px;
    }

    .ba-card {
        padding: 20px 14px 16px;
        border-radius: 20px;
    }

}

/* ponytail: stack hero buttons full-width on narrow screens */
@media (max-width: 480px) {

    .ba-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ba-hero-actions .ba-hero-button {
        width: 100%;
        justify-content: center;
    }

}

/* =====================================================
   BACKGROUND BATIK (tambahan)
===================================================== */

/* 1. Biarkan batik terlihat di belakang section */
.ba-hero,
.ba-list-section,
.ba-bottom-section {
    background: transparent;
}

/* 2. Sembunyikan lingkaran dekoratif biru di hero (tidak cocok di atas batik) */
.ba-hero::before,
.ba-hero::after {
    display: none;
}

/* 3. Beri jarak atas agar tidak tertutup navbar */
.ba-hero {
    padding-top: 76px;
}

/* 4. Teks hero ditaruh di kotak putih agar terbaca */
.ba-hero-content {
    background: #ffffff;
    padding: 45px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 5. Judul "The BA Family" ditaruh di kotak putih */
.ba-section-heading {
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 6. Kotak "coming soon" (variabel warnanya belum terdefinisi) */
.ba-empty-state {
    background: #ffffff;
}

/* =====================================================
   PENYESUAIAN DESAIN (tambahan)
===================================================== */

/* Hero */
.ba-hero-content {
    background: var(--panel, #fffaf0);
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 14px 34px rgba(90, 20, 0, 0.28);
}

.ba-hero h1 {
    color: var(--dark);
}

.ba-hero h1 span {
    color: var(--primary);
}

/* Dekorasi hero: kuning & putih agar kontras dengan batik */
.ba-decoration-one {
    color: var(--accent);
}

.ba-decoration-two {
    color: #ffffff;
}

.ba-decoration-three {
    color: #ffffff;
}

/* Judul "The BA Family" */
.ba-section-heading {
    background: var(--panel, #fffaf0);
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 30px rgba(90, 20, 0, 0.25);
}

.ba-section-heading h2 {
    color: var(--dark);
}

.ba-section-heading h2 span {
    color: var(--primary);
}

/* Kartu profil: hapus sisa lingkaran biru, ganti tone hangat */
.ba-card {
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 25px rgba(90, 20, 0, 0.22);
}

.ba-card:hover {
    border-color: var(--accent);
    box-shadow: 0 18px 40px rgba(90, 20, 0, 0.32);
}

.ba-card::before {
    background: rgba(255, 217, 54, 0.22);
}

.ba-card::after {
    background: rgba(217, 67, 10, 0.10);
}

.ba-card-shape {
    box-shadow:
        -18px 8px 0 rgba(255, 217, 54, 0.6),
        -8px 25px 0 rgba(217, 67, 10, 0.35);
}

.ba-profile-image {
    background: #fff4d6;
}

.ba-profile-star {
    color: var(--dark);
}

/* Tombol Instagram */
.ba-instagram-button {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-dark);
}

.ba-instagram-button:hover {
    background: var(--primary);
    color: #ffffff;
}

/* Kotak "coming soon" */
.ba-empty-state {
    background: var(--panel, #fffaf0);
    border: 2px dashed var(--primary);
}

.ba-empty-state h3 {
    color: var(--dark);
}

/* Kartu bawah "Good Food. Good People." */
.ba-bottom-card {
    background:
        radial-gradient(circle at 90% 10%,
            rgba(255, 217, 54, 0.4),
            transparent 25%),
        linear-gradient(135deg, #b91c1c 0%, #7a1a0a 100%);
    border: 4px solid var(--accent);
    box-shadow: 0 20px 50px rgba(60, 10, 0, 0.4);
}

.ba-bottom-content h2 span {
    color: var(--accent);
}

.ba-bottom-label {
    opacity: 1;
    color: var(--accent);
}

/* =====================================================
   TURUNKAN CARD HERO (seperti halaman Bantuan)
===================================================== */

.ba-hero {
    padding-top: 48px;
    padding-bottom: 90px;
    min-height: auto;
    align-items: flex-start;
}

.ba-hero-content {
    padding: 45px 40px;
}

@media (max-width: 767px) {
    .ba-hero {
        padding-top: 32px;
        padding-bottom: 60px;
    }
}