/* ==========================================================================
   AirFrezz — Design System Modern
   Lapisan penulisan ulang: menata ulang tema lama agar tampil modern & responsif
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
    /* Warna inti: biru air minum + aksen cyan */
    --af-primary: #0a6ebd;
    --af-primary-dark: #075496;
    --af-primary-darker: #043c6e;
    --af-primary-light: #e8f4fd;
    --af-accent: #00c2e0;
    --af-accent-dark: #009db5;

    /* Netral */
    --af-ink: #0d2137;
    --af-body: #4a5b6e;
    --af-muted: #8496a9;
    --af-line: #e3ebf2;
    --af-bg: #ffffff;
    --af-bg-soft: #f6fafd;
    --af-white: #ffffff;

    /* Status */
    --af-success: #12b76a;
    --af-warning: #f79009;
    --af-danger: #e5484d;

    /* Typography
       Font fallback dipilih dengan metrics yang mirip agar saat Google Fonts
       belum termuat, lebar teks tidak melompat dan Horizontal overflow. */
    --af-font-head: "Plus Jakarta Sans", "Spartan", "Segoe UI", Roboto, Arial, sans-serif;
    --af-font-body: "Inter", "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;

    /* Radius */
    --af-r-sm: 8px;
    --af-r-md: 14px;
    --af-r-lg: 20px;
    --af-r-xl: 28px;
    --af-r-full: 999px;

    /* Shadow */
    --af-sh-sm: 0 1px 2px rgba(13, 33, 55, .06);
    --af-sh-md: 0 4px 16px rgba(13, 33, 55, .08);
    --af-sh-lg: 0 12px 40px rgba(13, 33, 55, .12);
    --af-sh-blue: 0 8px 24px rgba(10, 110, 189, .28);

    /* Layout */
    --af-wrap: 1200px;
    --af-wrap-narrow: 900px;
    --af-nav-h: 76px;

    /* Transisi */
    --af-ease: cubic-bezier(.4, 0, .2, 1);
    --af-fast: .18s var(--af-ease);
    --af-base: .32s var(--af-ease);
}

/* ---------- 2. Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Cegah halaman bisa digeser ke samping di layar kecil */
    overflow-x: clip;
    max-width: 100vw;
}

body {
    /* Reset margin bawaan browser (8px) yang menyebabkan gap di semua sisi */
    margin: 0;
    padding: 0;
    font-family: var(--af-font-body);
    color: var(--af-body);
    font-size: 16px;
    line-height: 1.7;
    background: var(--af-bg);
    overflow-x: clip;
    max-width: 100vw;
    /* Teks panjang dipatah agar tidak memaksa container melebar */
    overflow-wrap: break-word;
}

/* Pastikan tidak ada elemen yang keluar dari lebar layar */
img, svg, video, canvas, table {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--af-font-head);
    color: var(--af-ink);
    line-height: 1.22;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1rem; overflow-wrap: break-word; }

a { color: var(--af-primary); text-decoration: none; transition: color var(--af-fast); }
a:hover { color: var(--af-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--af-accent); color: #fff; }

/* Fokus keyboard — penting untuk aksesibilitas */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--af-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- 3. Layout ---------- */
.auto-container,
.af-container {
    width: 100%;
    max-width: var(--af-wrap);
    margin-inline: auto;
    padding-inline: 24px;
    /* Penting: cegah isi memaksa container melebar di layar sempit */
    min-width: 0;
}

@media (max-width: 640px) {
    .auto-container, .af-container { padding-inline: 18px; }
}

section { position: relative; }

/* Beri jarak antar section yang konsisten */
.bd-section { padding-block: clamp(64px, 8vw, 110px); }
.bd-section--soft { background: var(--af-bg-soft); }
.bd-section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* Judul section */
.bd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--af-font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--af-accent-dark);
    background: var(--af-primary-light);
    padding: 6px 14px;
    border-radius: var(--af-r-full);
    margin-bottom: 18px;
}

.bd-title { margin-bottom: 14px; }
.bd-title span { color: var(--af-primary); }

.bd-lead {
    font-size: 1.06rem;
    color: var(--af-body);
    max-width: 640px;
    margin-bottom: 0;
}

.bd-head { margin-bottom: clamp(36px, 5vw, 60px); }
.bd-head--center { text-align: center; }
.bd-head--center .bd-lead { margin-inline: auto; }

/* ---------- 4. Tombol ---------- */
.bd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--af-font-head);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 15px 28px;
    border-radius: var(--af-r-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--af-fast), box-shadow var(--af-base),
                background-color var(--af-base), color var(--af-base), border-color var(--af-base);
    max-width: 100%;
    text-align: center;
}

.bd-btn:hover { transform: translateY(-2px); }
.bd-btn:active { transform: translateY(0); }

.bd-btn--primary {
    background: linear-gradient(135deg, var(--af-primary) 0%, var(--af-accent-dark) 100%);
    color: #fff;
    box-shadow: var(--af-sh-blue);
}
.bd-btn--primary:hover { color: #fff; box-shadow: 0 12px 30px rgba(10, 110, 189, .36); }

.bd-btn--ghost {
    background: transparent;
    color: var(--af-primary);
    border-color: var(--af-primary);
}
.bd-btn--ghost:hover { background: var(--af-primary); color: #fff; }

.bd-btn--white {
    background: #fff;
    color: var(--af-primary);
    box-shadow: var(--af-sh-md);
}
.bd-btn--white:hover { color: var(--af-primary-dark); }

.bd-btn--outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .65);
}
.bd-btn--outline-white:hover { background: #fff; color: var(--af-primary); border-color: #fff; }

/* ---------- 5. Header ---------- */
.bd-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--af-line);
    transition: box-shadow var(--af-base), background-color var(--af-base);
}

.bd-header.is-stuck { box-shadow: var(--af-sh-md); }

.bd-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--af-nav-h);
    min-width: 0;
}

.bd-logo { flex: 0 1 auto; min-width: 0; display: flex; }

.bd-logo img {
    height: 46px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

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

.bd-menu a {
    position: relative;
    display: block;
    padding: 10px 16px;
    font-family: var(--af-font-head);
    font-size: .95rem;
    font-weight: 600;
    color: var(--af-ink);
    border-radius: var(--af-r-full);
    transition: color var(--af-fast), background-color var(--af-fast);
}

.bd-menu a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    background: var(--af-accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--af-base);
}

.bd-menu a:hover { color: var(--af-primary); }
.bd-menu a:hover::after,
.bd-menu a.is-active::after { transform: scaleX(1); }
.bd-menu a.is-active { color: var(--af-primary); }

.bd-nav-actions { display: flex; align-items: center; gap: 12px; }

/* Tombol hamburger
   Memakai flex + gap eksplisit (bukan grid) agar jarak antar garis pasti
   7px dan transformasi X menyatu tepat di tengah tombol. */
.bd-burger {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--af-line);
    border-radius: var(--af-r-sm);
    background: #fff;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    overflow: hidden;
}

.bd-burger span {
    display: block;
    width: 18px;
    height: 2px;
    flex: 0 0 auto;
    background: var(--af-ink);
    border-radius: 2px;
    transition: transform var(--af-base), opacity var(--af-fast);
}

/* Garis 1 dan 3 bertemu di tengah -> tanda X */
.bd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.bd-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Menu mobile ---------- */
.bd-mobile-nav {
    position: fixed;
    inset: var(--af-nav-h) 0 0 0;
    background: #fff;
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--af-base), visibility var(--af-base);
    z-index: 890;
}

.bd-mobile-nav.is-open { transform: translateX(0); visibility: visible; }

.bd-mobile-nav a {
    display: block;
    padding: 16px 4px;
    font-family: var(--af-font-head);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--af-ink);
    border-bottom: 1px solid var(--af-line);
}

body.nav-open { overflow: hidden; }

/* ---------- 7. Hero ---------- */
.bd-hero {
    position: relative;
    background:
        radial-gradient(1100px 520px at 88% -8%, rgba(0, 194, 224, .22), transparent 60%),
        linear-gradient(160deg, #f2fbff 0%, #ffffff 55%);
    overflow: hidden;
    padding-block: clamp(56px, 8vw, 96px);
}

.bd-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(28px, 5vw, 60px);
    align-items: center;
    min-width: 0;
}

.bd-hero__grid > * { min-width: 0; }

.bd-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--af-line);
    color: var(--af-primary-dark);
    font-size: .85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--af-r-full);
    box-shadow: var(--af-sh-sm);
    margin-bottom: 22px;
}

.bd-hero__badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--af-success);
    box-shadow: 0 0 0 4px rgba(18, 183, 106, .16);
}

.bd-hero h1 { margin-bottom: 20px; }
.bd-hero h1 em { font-style: normal; color: var(--af-primary); }

.bd-hero__text { font-size: 1.1rem; max-width: 540px; margin-bottom: 30px; }

.bd-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.bd-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--af-line);
    min-width: 0;
}

.bd-hero__stats > div { min-width: 0; }

.bd-hero__stats b {
    display: block;
    font-family: var(--af-font-head);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--af-ink);
    line-height: 1.1;
}

.bd-hero__stats small { color: var(--af-muted); font-size: .86rem; }

/* Slider hero */
.bd-hero-slider { position: relative; }

.bd-slide {
    display: none;
    background: #fff;
    border-radius: var(--af-r-xl);
    padding: 28px;
    box-shadow: var(--af-sh-lg);
    border: 1px solid var(--af-line);
}

.bd-slide.is-active { display: block; animation: bdFadeUp .5s var(--af-ease) both; }
.bd-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: var(--af-r-lg);
    margin-bottom: 18px;
    background: linear-gradient(180deg, #f2fbff 0%, #ffffff 100%);
}
.bd-slide h3 { margin-bottom: 6px; }
.bd-slide p { margin: 0; color: var(--af-body); font-size: .95rem; }

@keyframes bdFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.bd-slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
}

.bd-slider-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--af-line);
    cursor: pointer;
    transition: width var(--af-base), background-color var(--af-base);
}

.bd-slider-dots button.is-active { width: 26px; border-radius: var(--af-r-full); background: var(--af-primary); }

/* ---------- 8. Grid ---------- */
.bd-grid { display: grid; gap: 24px; min-width: 0; }
.bd-grid > * { min-width: 0; }
.bd-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bd-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bd-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 9. Card ---------- */
.bd-card {
    background: #fff;
    border: 1px solid var(--af-line);
    border-radius: var(--af-r-lg);
    padding: 30px;
    box-shadow: var(--af-sh-sm);
    transition: transform var(--af-base), box-shadow var(--af-base), border-color var(--af-base);
    height: 100%;
}

.bd-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--af-sh-lg);
    border-color: rgba(10, 110, 189, .25);
}

.bd-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--af-r-md);
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--af-primary-light), #d9f0fb);
    color: var(--af-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: transform var(--af-base);
}

.bd-card:hover .bd-card__icon { transform: scale(1.06) rotate(-4deg); }
.bd-card h3 { margin-bottom: 8px; }
.bd-card p { margin: 0; font-size: .96rem; }

/* ---------- 10. Produk ---------- */
.bd-product { display: flex; flex-direction: column; overflow: hidden; padding: 0; }

.bd-product__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--af-bg-soft);
}

.bd-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s var(--af-ease);
}

.bd-product:hover .bd-product__media img { transform: scale(1.07); }

.bd-product__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--af-primary);
    color: #fff;
    font-family: var(--af-font-head);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--af-r-full);
    box-shadow: var(--af-sh-sm);
}

.bd-product__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.bd-product__body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.bd-product__size { color: var(--af-muted); font-size: .85rem; margin-bottom: 12px; }
.bd-product__desc { font-size: .92rem; flex: 1; margin-bottom: 18px; }

.bd-product__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--af-line);
}

.bd-price {
    font-family: var(--af-font-head);
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--af-primary);
    line-height: 1;
}

.bd-price small { display: block; font-size: .7rem; font-weight: 600; color: var(--af-muted); margin-bottom: 3px; }

/* ---------- 11. Split (gambar + teks) ---------- */
.bd-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 70px);
    align-items: center;
    min-width: 0;
}

.bd-split > * { min-width: 0; }

.bd-split--flip .bd-split__media { order: 2; }

.bd-split__media img {
    width: 100%;
    border-radius: var(--af-r-xl);
    box-shadow: var(--af-sh-lg);
}

.bd-checklist { display: grid; gap: 12px; margin: 24px 0 0; }

.bd-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .97rem;
}

.bd-checklist li::before {
    content: "";
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(18, 183, 106, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312b76a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- 12. Statistik ---------- */
.bd-stat {
    background: #fff;
    border: 1px solid var(--af-line);
    border-radius: var(--af-r-lg);
    padding: 26px;
    text-align: center;
    transition: transform var(--af-base), box-shadow var(--af-base);
}

.bd-stat:hover { transform: translateY(-4px); box-shadow: var(--af-sh-md); }

.bd-stat b {
    display: block;
    font-family: var(--af-font-head);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--af-primary);
    line-height: 1.1;
}

.bd-stat span { color: var(--af-muted); font-size: .9rem; }

/* ---------- 13. Testimoni ---------- */
.bd-quote {
    background: #fff;
    border: 1px solid var(--af-line);
    border-radius: var(--af-r-lg);
    padding: 30px;
    box-shadow: var(--af-sh-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bd-quote__stars { color: #f5a623; font-size: .95rem; letter-spacing: 2px; margin-bottom: 14px; }
.bd-quote p { flex: 1; font-style: italic; margin-bottom: 20px; }

.bd-quote__who { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--af-line); }

.bd-quote__who img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bd-quote__who b { display: block; font-family: var(--af-font-head); color: var(--af-ink); font-size: .95rem; }
.bd-quote__who small { color: var(--af-muted); font-size: .82rem; }

/* ---------- 14. CTA ---------- */
.bd-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--af-r-xl);
    background: linear-gradient(135deg, var(--af-primary-darker) 0%, var(--af-primary) 55%, var(--af-accent-dark) 130%);
    color: #fff;
    padding: clamp(38px, 6vw, 70px);
    text-align: center;
    box-shadow: var(--af-sh-lg);
}

.bd-cta::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -140px;
    top: -170px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
}

.bd-cta h2 { color: #fff; margin-bottom: 14px; }
.bd-cta p { color: rgba(255, 255, 255, .9); max-width: 640px; margin-inline: auto; margin-bottom: 30px; }
.bd-cta .bd-btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; z-index: 1; }

/* ---------- 15. Artikel ---------- */
.bd-post { display: flex; flex-direction: column; overflow: hidden; padding: 0; }

.bd-post__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--af-bg-soft); }
.bd-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--af-ease); }
.bd-post:hover .bd-post__media img { transform: scale(1.06); }

.bd-post__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.bd-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: .8rem;
    color: var(--af-muted);
    margin-bottom: 12px;
}

.bd-post__cat {
    background: var(--af-primary-light);
    color: var(--af-primary-dark);
    font-weight: 700;
    padding: 4px 11px;
    border-radius: var(--af-r-full);
}

.bd-post h3 { font-size: 1.1rem; margin-bottom: 10px; }
.bd-post p { font-size: .92rem; flex: 1; }

.bd-more {
    margin-top: 14px;
    font-family: var(--af-font-head);
    font-weight: 700;
    font-size: .9rem;
    color: var(--af-primary);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.bd-more::after { content: "→"; transition: transform var(--af-fast); }
.bd-more:hover::after { transform: translateX(4px); }

/* ---------- 16. Tim ---------- */
.bd-team { text-align: center; }

.bd-team__media {
    width: 128px;
    height: 128px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: var(--af-sh-md);
}

.bd-team__media img { width: 100%; height: 100%; object-fit: cover; }
.bd-team h4 { margin-bottom: 2px; }
.bd-team span { color: var(--af-muted); font-size: .88rem; }

/* ---------- 17. Footer ---------- */
.bd-footer {
    background: var(--af-ink);
    color: rgba(255, 255, 255, .68);
    padding-block: clamp(52px, 7vw, 84px) 0;
    width: 100%;
    margin: 0;
}

.bd-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: .01em;
}

.bd-footer a { color: rgba(255, 255, 255, .68); }
.bd-footer a:hover { color: var(--af-accent); }

.bd-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 48px;
}

.bd-footer__brand img { height: 48px; margin-bottom: 18px; }
.bd-footer__brand p { font-size: .93rem; }

.bd-footer__links li { margin-bottom: 11px; }
.bd-footer__links a { font-size: .93rem; }

.bd-footer__contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: .93rem;
}

.bd-footer__contact i { color: var(--af-accent); margin-top: 5px; flex-shrink: 0; }

.bd-footer__social { display: flex; gap: 10px; margin-top: 20px; }

.bd-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
    transition: background-color var(--af-fast), transform var(--af-fast);
}

.bd-footer__social a:hover { background: var(--af-accent); color: #fff; transform: translateY(-3px); }

.bd-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-block: 24px;
    padding-bottom: 26px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: .88rem;
    margin: 0;
}

/* ---------- 17b. Tombol kembali ke atas (floating) ---------- */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--af-primary);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: var(--af-sh-blue);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--af-base), transform var(--af-fast), background-color var(--af-fast);
    z-index: 950;
}

.scroll-top:hover { background: var(--af-primary-dark); transform: translateY(-3px); }
.scroll-top:focus-visible { outline: 3px solid var(--af-accent); outline-offset: 3px; }

@media (max-width: 560px) {
    .scroll-top { width: 42px; height: 42px; right: 14px; bottom: 14px; }
}

/* ---------- 18. Form ---------- */
.bd-input,
.bd-select,
.bd-textarea {
    width: 100%;
    font-family: var(--af-font-body);
    font-size: .97rem;
    color: var(--af-ink);
    background: #fff;
    border: 1.5px solid var(--af-line);
    border-radius: var(--af-r-md);
    padding: 13px 16px;
    transition: border-color var(--af-fast), box-shadow var(--af-fast);
}

.bd-input:focus,
.bd-select:focus,
.bd-textarea:focus {
    outline: none;
    border-color: var(--af-primary);
    box-shadow: 0 0 0 4px rgba(10, 110, 189, .12);
}

.bd-textarea { min-height: 130px; resize: vertical; }
.bd-field { margin-bottom: 18px; }
.bd-field label { display: block; font-size: .88rem; font-weight: 600; color: var(--af-ink); margin-bottom: 7px; }

/* ---------- 19. Animasi scroll ---------- */
.bd-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--af-ease), transform .7s var(--af-ease); }
.bd-reveal.is-in { opacity: 1; transform: none; }

/* Hormati preferensi pengguna yang mengurangi animasi */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .bd-reveal { opacity: 1; transform: none; }
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 1024px) {
    .bd-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .bd-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}

@media (max-width: 900px) {
    .bd-hero__grid { grid-template-columns: 1fr; }
    .bd-hero-slider { order: -1; max-width: 480px; margin-inline: auto; }
    .bd-split { grid-template-columns: 1fr; }
    .bd-split--flip .bd-split__media { order: 0; }
    .bd-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .bd-menu, .bd-nav-actions .bd-btn { display: none; }
    .bd-burger { display: flex; }
    .bd-nav-actions { gap: 8px; }
}

@media (max-width: 560px) {
    .bd-grid--2, .bd-grid--3, .bd-grid--4 { grid-template-columns: 1fr; }
    .bd-footer__grid { grid-template-columns: 1fr; }
    .bd-card { padding: 24px; }
    .bd-hero__stats { gap: 22px; }
    .bd-hero__stats b { font-size: 1.55rem; }

    /* Tombol memanjang penuh dan boleh membungkus teksnya */
    .bd-btn {
        width: 100%;
        max-width: 100%;
        padding-inline: 20px;
        white-space: normal;
    }

    .bd-hero__cta { flex-direction: column; align-items: stretch; }
    .bd-hero__cta .bd-btn { width: 100%; }
    .bd-footer__bottom { flex-direction: column; text-align: center; }

    /* Logo dikecilkan agar muat bersama tombol menu */
    .bd-logo img { height: 38px; }

    /* Kurangi padding container di layar sangat kecil */
    .auto-container, .af-container { padding-inline: 16px; }

    /* Cegah tabel/teks panjang keluar layar */
    .bd-quote, .bd-card, .bd-product__body, .bd-post__body { padding-inline: 18px; }
}

/* ---------- 21. Kompatibilitas tema lama ---------- */
/*_netralisasi decorasi theme lama yang tidak lagi dipakai */
.main-header .shape,
.pattern-layer,
.banner-section .pattern-box,
.bg-color-1 { background-color: var(--af-bg-soft); }
.bg-color-2 { background: linear-gradient(135deg, var(--af-primary-darker), var(--af-primary)); }

/* Tombol theme lama diarahkan ke gaya baru */
.theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--af-font-head);
    font-weight: 700;
    font-size: .95rem;
    padding: 14px 26px;
    border-radius: var(--af-r-full);
    transition: transform var(--af-fast), box-shadow var(--af-base), background-color var(--af-base), color var(--af-base);
}

.theme-btn.btn-one {
    background: linear-gradient(135deg, var(--af-primary), var(--af-accent-dark));
    color: #fff;
    border: 0;
}

.theme-btn.btn-one:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--af-sh-blue); }

.theme-btn.banner-btn { background: transparent; color: var(--af-primary); border: 2px solid var(--af-primary); }
.theme-btn.banner-btn:hover { background: var(--af-primary); color: #fff; }

/* ---------- 22. Utilitas ---------- */
.bd-text-center { text-align: center; }
.bd-mt-0 { margin-top: 0; }
.bd-mb-0 { margin-bottom: 0; }
.bd-mt-4 { margin-top: 40px; }

.bd-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Lompat ke konten */
.bd-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--af-primary);
    color: #fff;
    padding: 12px 20px;
    z-index: 999;
    border-radius: 0 0 var(--af-r-sm) 0;
}

.bd-skip:focus { left: 0; color: #fff; }
