/* ==========================================================================
   RIFKI YAMAHA OFFICIAL — tampilan baru
   Palet : ink #0E1526 · navy #0A1F5C · blue #1F4FD8 · mist #F3F5F9 · wa #1A9E4F
   Huruf : Archivo (judul, lebar variabel) + Hanken Grotesk (isi)
   ========================================================================== */

:root {
    --ink: #0E1526;
    --text: #2B3347;
    --muted: #66708A;
    --faint: #98A1B5;

    --white: #FFFFFF;
    --mist: #F3F5F9;
    --line: #E3E7EF;
    --line-strong: #CDD3E0;

    --navy: #0A1F5C;
    --navy-soft: #16307F;
    --blue: #1F4FD8;
    --blue-deep: #1740B0;
    --blue-tint: #E8EEFD;

    --wa: #1A9E4F;
    --wa-deep: #148040;
    --danger: #C8321F;

    --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
    --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-full: 999px;

    --header-h: 68px;
    --max: 1180px;
    --pad: clamp(20px, 4vw, 40px);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: clip; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---- Tipografi bersama ---- */
.section-header { margin-bottom: clamp(24px, 4vw, 40px); }
.section-title {
    font-family: var(--font-display);
    font-stretch: 112%;
    font-weight: 800;
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-wrap: balance;
}
.section-sub {
    margin-top: 12px;
    max-width: 56ch;
    font-size: 1.05rem;
    color: var(--muted);
}
.section-title--light { color: var(--white); }
.section-sub--light { color: rgba(255, 255, 255, 0.72); }

/* ---- Tombol ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-deep); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--blue-tint); }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.4); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: var(--wa-deep); }
.btn--large { min-height: 54px; width: 100%; font-size: 1.02rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.header__container {
    max-width: var(--max);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.header__logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header__logo-img { height: 26px; width: auto; }
.header__logo-sep { width: 1px; height: 26px; background: var(--line-strong); }
.header__logo-text {
    display: block;
    margin-left: 4px;
    font-family: var(--font-display);
    font-stretch: 112%;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.header__nav-list { display: flex; align-items: center; gap: 4px; }
.header__nav-link {
    display: block;
    padding: 8px 14px;
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.header__nav-link:hover { background: var(--mist); color: var(--ink); }
.header__nav-link.active { background: var(--blue-tint); color: var(--blue-deep); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.header__cta-btn {
    display: none;
    align-items: center;
    height: 42px;
    padding: 0 20px;
    border-radius: var(--r-md);
    background: var(--wa);
    color: var(--white);
    font-weight: 700;
    font-size: 0.92rem;
    transition: background-color 0.2s var(--ease);
}
.header__cta-btn:hover { background: var(--wa-deep); }
.header__toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-md); align-items: center; justify-content: center; color: var(--ink); }
.header__toggle:hover { background: var(--mist); }
.header__toggle-icon { width: 24px; height: 24px; }

.header__logo-text { font-size: 0.82rem; line-height: 1.15; }
@media (min-width: 900px) and (max-width: 1099px) { .header__logo-text { display: none; } }
@media (min-width: 1100px) { .header__logo-text { font-size: 1rem; } }
@media (max-width: 359px) { .header__logo-text { display: none; } }
@media (min-width: 768px) { .header__cta-btn { display: inline-flex; } }

@media (max-width: 899px) {
    .header__toggle { display: inline-flex; }
    .header__nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        padding: 8px var(--pad) 16px;
        display: none;
    }
    .header__nav.active { display: block; }
    .header__nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .header__nav-link { padding: 14px 12px; border-radius: var(--r-md); font-size: 1rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { background: var(--navy); color: var(--white); overflow: hidden; }
.hero__container {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(40px, 7vw, 88px) var(--pad);
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.hero__lead { font-weight: 600; font-size: 0.98rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 18px; }
.hero__title {
    font-family: var(--font-display);
    font-stretch: 118%;
    font-weight: 800;
    font-size: clamp(2.1rem, 5.4vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.hero__desc { margin-top: 22px; max-width: 46ch; font-size: 1.08rem; color: rgba(255, 255, 255, 0.78); }
.hero__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stage { position: relative; display: grid; place-items: center; min-height: 260px; }
.hero__disc {
    position: absolute;
    width: min(88%, 460px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--navy-soft);
}
.hero__img {
    position: relative;
    width: min(100%, 560px);
    max-height: 360px;
    object-fit: contain;
    filter: drop-shadow(0 24px 24px rgba(3, 10, 40, 0.35));
}
.hero__chip {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 22px;
    border-radius: var(--r-full);
    background: var(--white);
    color: var(--ink);
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(3, 10, 40, 0.28);
    transition: transform 0.2s var(--ease);
}
.hero__chip:hover { transform: translateX(-50%) translateY(-2px); }
.hero__chip-name { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.hero__chip-price { font-size: 0.82rem; color: var(--muted); line-height: 1.2; }

/* carousel hero: ganti motor tiap 5 detik */
.hero__disc { transition: transform 0.6s var(--ease); }
.hero__dots { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); display: flex; gap: 6px; }
.hero__dots[hidden] { display: none; }
.hero__dot { height: 20px; padding: 0; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.hero__dot i { display: block; width: 10px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.3); position: relative; overflow: hidden; transition: width 0.35s var(--ease); }
.hero__dot.is-active i { width: 34px; }
.hero__dot.is-active i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; }

@media (prefers-reduced-motion: no-preference) {
    .hero__img { animation: hero-in 0.9s var(--ease) both; }
    .hero__stage:not(.is-out):not(.is-in) .hero__img { animation: hero-float 5s ease-in-out infinite; }
    .hero__stage.is-out .hero__img { animation: hero-out 0.35s var(--ease) forwards; }
    .hero__stage.is-in .hero__img { animation: hero-in 0.75s var(--ease) both; }
    .hero__stage.is-out .hero__disc { transform: scale(0.9); }
    .hero__stage.is-out .hero__chip-name, .hero__stage.is-out .hero__chip-price { opacity: 0; transform: translateY(6px); }
    .hero__chip-name, .hero__chip-price { transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
    .hero__stage.is-in .hero__chip-name { animation: hero-text 0.5s var(--ease) 0.15s both; }
    .hero__stage.is-in .hero__chip-price { animation: hero-text 0.5s var(--ease) 0.25s both; }
    .hero__dot.is-active i::after { animation: hero-progress 5s linear forwards; }
    .hero__stage.is-paused .hero__dot.is-active i::after { animation-play-state: paused; }
    @keyframes hero-in { from { opacity: 0; transform: translateX(64px) scale(0.96); } to { opacity: 1; transform: none; } }
    @keyframes hero-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-64px) scale(0.96); } }
    @keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
    @keyframes hero-text { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
    @keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

@media (min-width: 900px) {
    .hero__container { grid-template-columns: 1.05fr 1fr; gap: 56px; }
    .hero__stage { min-height: 420px; }
    .hero__img { max-height: 400px; }
}

/* ==========================================================================
   KEUNGGULAN
   ========================================================================== */
.about { background: var(--white); }
.about__container {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(56px, 8vw, 104px) var(--pad);
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}
.about__list { display: grid; }
.benefit { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.benefit:last-child { border-bottom: 1px solid var(--line); }
.benefit__icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: var(--r-md);
    background: var(--blue-tint);
    color: var(--blue);
    display: grid;
    place-items: center;
}
.benefit__icon svg { width: 22px; height: 22px; }
.benefit__title { font-family: var(--font-display); font-stretch: 105%; font-weight: 700; font-size: 1.12rem; color: var(--ink); line-height: 1.3; }
.benefit__desc { margin-top: 4px; color: var(--muted); font-size: 0.98rem; }

@media (min-width: 900px) {
    .about__container { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
    .about__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ==========================================================================
   PROMO
   ========================================================================== */
.ads-section { background: var(--mist); }
.ads-section__container { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--pad); }
.ads-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.ads-card { display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.ads-card__img { width: 100%; height: auto; }
.ads-card__caption { display: block; padding: 14px 18px; font-weight: 600; color: var(--ink); }

/* ==========================================================================
   KATALOG
   ========================================================================== */
.catalogue { background: var(--mist); }
.catalogue__container { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--pad); }

.catalogue__controls { display: grid; gap: 14px; margin-bottom: 28px; }
.catalogue__search-box { position: relative; max-width: 460px; }
.catalogue__search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--faint); pointer-events: none; }
.catalogue__search-input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 46px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--r-md);
    background: var(--white);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.catalogue__search-input::placeholder { color: var(--faint); }
.catalogue__search-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }

.catalogue__filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--pad) 6px; margin: 0 calc(var(--pad) * -1); scrollbar-width: none; }
.catalogue__filters::-webkit-scrollbar { display: none; }
.filter-btn {
    flex-shrink: 0;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--r-full);
    border: 1.5px solid var(--line-strong);
    background: var(--white);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue-deep); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

@media (min-width: 900px) {
    .catalogue__filters { flex-wrap: wrap; overflow: visible; padding: 0; margin: 0; }
}

.catalogue__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 640px) { .catalogue__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .catalogue__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    transition: border-color 0.2s var(--ease);
}
.product-card:hover { border-color: var(--line-strong); }
.product-card__img-container {
    position: relative;
    height: 240px;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: 24px 20px 16px;
    background: var(--mist);
}
.product-card__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 7px 14px;
    border-radius: var(--r-full);
    background: var(--white);
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.2;
    color: var(--blue-deep);
}
.product-card__img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.product-card__content { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.product-card__title { font-family: var(--font-display); font-stretch: 100%; font-weight: 700; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.product-card__price-cash { margin-top: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.3; color: var(--blue-deep); }
.product-card__btn {
    margin-top: auto;
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    border: 2px solid var(--line-strong);
    border-radius: 16px;
    background: var(--white);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.product-card__btn:hover { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-deep); }
.product-card__price-cash + .product-card__btn { margin-top: 20px; }

.loading-state, .empty-state { grid-column: 1 / -1; text-align: center; padding: 56px 16px; color: var(--muted); }
.empty-state-icon { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--faint); }
.empty-state h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin-bottom: 4px; }

/* ==========================================================================
   TESTIMONI
   ========================================================================== */
.testimonials { background: var(--white); }
.testimonials__container { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--pad); }
.testimonials__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .testimonials__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .testimonials__grid { grid-template-columns: repeat(4, 1fr); } }

.testimonial-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--mist); }
.testimonial-card__image-container { aspect-ratio: 2 / 3; overflow: hidden; background: var(--line); }
.testimonial-card__img { width: 100%; height: 100%; object-fit: contain; }
.testimonial-card__content { padding: 14px 16px 18px; }
.testimonial-card__content--empty { padding: 12px 16px; }
.testimonial-card__caption { font-size: 0.85rem; color: var(--muted); }
.testimonial-card__stars { display: flex; gap: 2px; margin-bottom: 8px; }
.testimonial-card__star-icon { width: 16px; height: 16px; fill: #F5A524; }
.testimonial-card__text { font-size: 0.95rem; color: var(--ink); line-height: 1.55; }
.testimonial-card__user { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.testimonial-card__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; }
.testimonial-card__name { font-weight: 700; font-size: 0.9rem; color: var(--ink); }

/* ==========================================================================
   LOKASI & KONTAK
   ========================================================================== */
.contact { background: var(--navy); color: var(--white); }
.contact__container {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(56px, 8vw, 104px) var(--pad);
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.contact__list { margin-top: 32px; display: grid; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item__icon-wrapper { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; }
.contact-item__icon { width: 20px; height: 20px; }
.contact-item__details { display: flex; flex-direction: column; }
.contact-item__label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.62); }
.contact-item__link { font-weight: 700; font-size: 1.15rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.35); }
.contact-item__link:hover { text-decoration-color: var(--white); }
.contact-item__text { font-weight: 600; }

.branches { display: grid; gap: 14px; align-content: start; }
.branch {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border-radius: var(--r-lg);
    background: var(--white);
    color: var(--ink);
    transition: background-color 0.2s var(--ease);
}
.branch:hover { background: var(--blue-tint); }
.branch__pin { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.branch:hover .branch__pin { background: var(--white); }
.branch__pin svg { width: 24px; height: 24px; }
.branch__body { display: flex; flex-direction: column; min-width: 0; }
.branch__name { font-family: var(--font-display); font-stretch: 108%; font-weight: 800; font-size: 1.2rem; line-height: 1.25; }
.branch__action { margin-top: 2px; font-size: 0.92rem; color: var(--blue-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 900px) {
    .contact__container { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
}

/* ==========================================================================
   SOSIAL MEDIA
   ========================================================================== */
.socials { background: var(--white); border-bottom: 1px solid var(--line); }
.socials__container { max-width: var(--max); margin: 0 auto; padding: clamp(44px, 6vw, 72px) var(--pad); }
.socials__title { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--ink); letter-spacing: -0.015em; margin-bottom: 22px; }
.socials__grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .socials__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.social-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.social-btn:hover { border-color: var(--blue); background: var(--blue-tint); }
.social-btn__icon { flex-shrink: 0; width: 26px; height: 26px; color: var(--navy); }
.social-btn__text { display: flex; flex-direction: column; min-width: 0; }
.social-btn__name { font-weight: 700; color: var(--ink); line-height: 1.3; }
.social-btn__handle { font-size: 0.9rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); }
.footer__container {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(44px, 6vw, 72px) var(--pad);
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}
@media (min-width: 800px) { .footer__container { grid-template-columns: 1.6fr 1fr 1fr; gap: 56px; } }
.footer__logo { display: inline-flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--white); border-radius: var(--r-md); }
.footer__logo-img { height: 24px; width: auto; }
.footer__desc { margin-top: 18px; max-width: 42ch; font-size: 0.95rem; }
.footer__title { font-family: var(--font-display); font-stretch: 105%; font-weight: 700; font-size: 1rem; color: var(--white); margin-bottom: 14px; }
.footer__links { display: grid; gap: 8px; }
.footer__links a { font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--white); }
.footer__social-icons { display: flex; gap: 10px; }
.footer__social-icons a { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.22); display: grid; place-items: center; color: var(--white); transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease); }
.footer__social-icons a:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.footer__social-icons svg { width: 20px; height: 20px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer__bottom-container { max-width: var(--max); margin: 0 auto; padding: 22px var(--pad); display: grid; gap: 6px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }
@media (min-width: 800px) { .footer__bottom-container { grid-template-columns: auto 1fr; gap: 32px; } .footer__note { text-align: right; } }

/* ==========================================================================
   MODAL (umum)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 16, 46, 0.6);
}
.modal-overlay.active { display: flex; }

.modal-card {
    position: relative;
    width: 100%;
    max-width: 980px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--r-lg);
    overscroll-behavior: contain;
}
.modal-card__drag-handle { display: none; }
.modal-card__close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--ink);
    transition: background-color 0.2s var(--ease);
}
.modal-card__close-btn:hover { background: var(--mist); }
.modal-card__close-icon { width: 20px; height: 20px; }

.modal-card__body { display: grid; grid-template-columns: minmax(0, 1fr); }
.modal-card__gallery, .modal-card__details { min-width: 0; }
.modal-card__gallery { background: var(--mist); padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.modal-card__main-img-container { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.modal-card__main-img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.modal-card__thumbnails { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.modal-card__thumbnails:empty { display: none; }
.thumbnail-btn { flex-shrink: 0; width: 64px; height: 52px; padding: 4px; border-radius: var(--r-sm); background: var(--white); border: 1.5px solid transparent; }
.thumbnail-btn img { width: 100%; height: 100%; object-fit: contain; }
.thumbnail-btn.active { border-color: var(--blue); }

.modal-card__section-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.variant-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch-btn { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1.5px var(--line-strong); transition: box-shadow 0.15s var(--ease); }
.swatch-btn.active { box-shadow: 0 0 0 3px var(--blue); }
.variant-active-name { display: block; margin-top: 10px; font-weight: 700; color: var(--ink); font-size: 0.95rem; }

.modal-card__details { padding: 24px; padding-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.modal-card__brand-header { padding-right: 48px; }
.modal-card__category { font-size: 0.88rem; color: var(--muted); }
.modal-card__title { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }

.sim-otr-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: var(--r-md); background: var(--blue-tint); }
.sim-otr-label { font-weight: 600; color: var(--blue-deep); }
.sim-otr-price { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--navy); }

.modal-card__desc { font-size: 0.98rem; color: var(--muted); }

.sim-credit-table-block.is-empty { display: none; }
.sim-credit-table-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.sim-credit-table-note { font-weight: 500; font-size: 0.8rem; color: var(--muted); }
.sim-credit-table-wrapper { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.sim-credit-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.sim-credit-table th, .sim-credit-table td { padding: 11px 14px; text-align: right; white-space: nowrap; }
.sim-credit-table th:first-child, .sim-credit-table td:first-child { text-align: left; }
.sim-credit-table thead th { background: var(--mist); font-weight: 700; color: var(--ink); font-size: 0.85rem; }
.sim-credit-table tbody tr + tr td { border-top: 1px solid var(--line); }
.sim-credit-table tbody td:first-child { font-weight: 700; color: var(--ink); }

.custom-dp-calc { padding: 18px; border-radius: var(--r-md); background: var(--mist); }
.custom-dp-calc__label { display: block; font-size: 0.92rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.custom-dp-calc__row { display: flex; gap: 10px; }
.custom-dp-calc__input-wrapper { position: relative; flex: 1; min-width: 0; }
.custom-dp-calc__prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.custom-dp-calc__input { width: 100%; height: 48px; padding: 0 14px 0 42px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--white); }
.custom-dp-calc__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.custom-dp-calc__btn { padding: 0 22px; }
.custom-dp-calc__hint { display: block; min-height: 0; margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
.custom-dp-calc__hint:empty { display: none; }
.custom-dp-calc__hint.is-error { color: var(--danger); font-weight: 600; }

.modal-card__cta { margin-top: 4px; }
.modal-card__btn-icon { width: 22px; height: 22px; }

@media (min-width: 860px) {
    .modal-card__body { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
    .modal-card__gallery { padding: 32px; position: sticky; top: 0; align-self: start; min-height: 100%; }
    .modal-card__details { padding: 36px 36px 32px; }
}

/* mobile: modal jadi bottom sheet */
@media (max-width: 859px) {
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal-card { max-width: none; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; }
    .modal-card__drag-handle { display: block; position: sticky; top: 0; z-index: 4; width: 40px; height: 4px; margin: 10px auto -14px; border-radius: 4px; background: var(--line-strong); }
    .modal-card__close-btn { top: 16px; right: 14px; }
    .modal-card__cta { position: sticky; bottom: 0; margin: 0 -24px -24px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: no-preference) {
    .modal-overlay.active .modal-card { animation: sheet-in 0.28s var(--ease) both; }
    @keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* ---- Hasil kalkulator DP ---- */
.dp-result-card { position: relative; width: 100%; max-width: 440px; padding: 28px; border-radius: var(--r-lg); background: var(--white); max-height: 92vh; overflow-y: auto; }
.dp-result-card__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.dp-result-card__close:hover { background: var(--mist); }
.dp-result-card__close svg { width: 20px; height: 20px; }
.dp-result-card__eyebrow { display: block; font-size: 0.88rem; color: var(--muted); padding-right: 40px; }
.dp-result-card__title { font-family: var(--font-display); font-stretch: 108%; font-weight: 800; font-size: 1.4rem; line-height: 1.2; color: var(--ink); margin: 4px 0 18px; padding-right: 40px; }
.dp-result-card__dp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--blue-tint); color: var(--blue-deep); font-weight: 600; }
.dp-result-card__dp-row strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); }
.dp-result-card__table-wrapper { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.dp-result-card__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dp-result-card__table th, .dp-result-card__table td { padding: 12px 16px; text-align: left; }
.dp-result-card__table th:last-child, .dp-result-card__table td:last-child { text-align: right; }
.dp-result-card__table thead th { background: var(--mist); font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.dp-result-card__table tbody tr + tr td { border-top: 1px solid var(--line); }
.dp-result-card__table tbody td:last-child { font-weight: 700; color: var(--ink); }
.dp-result-card__note { margin-top: 14px; font-size: 0.82rem; color: var(--muted); }
.dp-result-card__wa-btn { width: 100%; margin-top: 18px; }

/* ==========================================================================
   POPUP PROMO
   ========================================================================== */
.ads-popup-overlay { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(8, 16, 46, 0.7); }
.ads-popup-overlay.active { display: flex; }
.ads-popup-card { position: relative; width: 100%; max-width: 460px; }
.ads-popup__close { position: absolute; top: -14px; right: -6px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.ads-popup__close svg { width: 20px; height: 20px; }
.ads-popup__viewport { overflow: hidden; border-radius: var(--r-lg); background: var(--white); }
.ads-popup__track { display: flex; transition: transform 0.35s var(--ease); }
.ads-popup__slide { min-width: 100%; }
.ads-popup__slide img { width: 100%; max-height: 72vh; object-fit: contain; }
.ads-popup__title { padding: 14px 18px; font-weight: 700; color: var(--ink); text-align: center; }
.ads-popup__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.ads-popup__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.ads-popup__dot.active { background: var(--white); width: 24px; border-radius: var(--r-full); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.img-lightbox { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(6, 12, 34, 0.94); }
.img-lightbox.active { display: flex; }
.img-lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.img-lightbox__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: var(--white); display: grid; place-items: center; }
.img-lightbox__close:hover { background: rgba(255, 255, 255, 0.24); }
.img-lightbox__close svg { width: 22px; height: 22px; }

/* ==========================================================================
   NAVIGASI BAWAH (MOBILE)
   ========================================================================== */
.mobile-bottom-nav { display: none; }
@media (max-width: 767px) {
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: end;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        background: var(--white);
        border-top: 1px solid var(--line);
    }
    .mobile-bottom-nav__item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--muted); }
    .mobile-bottom-nav__icon { width: 22px; height: 22px; }
    .mobile-bottom-nav__label { font-size: 0.7rem; font-weight: 600; line-height: 1.2; }
    .mobile-bottom-nav__item.active { color: var(--blue); }
    .mobile-bottom-nav__item--cta { color: var(--wa-deep); }
    .mobile-bottom-nav__cta-bubble { width: 50px; height: 50px; margin-top: -24px; border-radius: 50%; background: var(--wa); color: var(--white); display: grid; place-items: center; border: 4px solid var(--white); box-shadow: 0 6px 16px rgba(26, 158, 79, 0.35); }
    .mobile-bottom-nav__cta-bubble svg { width: 24px; height: 24px; }
}

/* ---- Hormati preferensi kurangi gerakan ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ==========================================================================
   PERBAIKAN MOBILE-FIRST + PENYEMPURNAAN DESKTOP
   ========================================================================== */

/* Header: satu logo + nama dealer; boleh menyusut supaya halaman tidak lebih lebar dari layar HP */
.header__container { gap: 12px; }
.header__logo { flex: 1 1 auto; min-width: 0; gap: 10px; }
.header__logo-img { flex-shrink: 0; height: 46px; width: auto; max-width: none; object-fit: contain; }
.header__logo-text { min-width: 0; margin-left: 0; font-size: 0.74rem; line-height: 1.15; }
.header__actions { flex-shrink: 0; }
@media (min-width: 480px) {
    .header__logo { gap: 12px; }
    .header__logo-text { font-size: 0.84rem; }
}
@media (min-width: 1100px) {
    .header__logo-img { height: 54px; }
}

/* Logo di footer tampil langsung di atas latar gelap (logo sudah berpinggir putih) */
.footer__logo { padding: 0; background: none; border-radius: 0; }
.footer__logo-img { height: 92px; width: auto; }

/* Pemilih admin WhatsApp */
.wa-picker { position: relative; width: 100%; max-width: 420px; padding: 28px 24px 24px; border-radius: var(--r-lg); background: var(--white); }
.wa-picker__title { font-family: var(--font-display); font-stretch: 108%; font-weight: 800; font-size: 1.3rem; line-height: 1.2; color: var(--ink); padding-right: 44px; }
.wa-picker__sub { margin-top: 6px; font-size: 0.95rem; color: var(--muted); }
.wa-picker__list { display: grid; gap: 10px; margin-top: 20px; }
.wa-picker__btn { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--wa); color: var(--white); transition: background-color .2s var(--ease), transform .15s var(--ease); }
.wa-picker__btn:hover { background: var(--wa-deep); }
.wa-picker__btn:active { transform: scale(.985); }
.wa-picker__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.wa-picker__icon svg { width: 22px; height: 22px; }
.wa-picker__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.wa-picker__name { font-weight: 700; font-size: 1.05rem; }
.wa-picker__num { font-size: 0.95rem; opacity: .92; font-variant-numeric: tabular-nums; }
#js-wa-picker { z-index: 450; }
@media (max-width: 859px) {
    #js-wa-picker { align-items: flex-end; padding: 0; }
    .wa-picker { max-width: none; border-radius: 22px 22px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: no-preference) {
    #js-wa-picker.active .wa-picker { animation: sheet-in 0.25s var(--ease) both; }
}

/* Gambar: skeleton saat memuat, tampil halus setelah selesai (tidak ada kotak kosong) */
.product-card__img, .modal-card__main-img, .thumbnail-btn img, .testimonial-card__img, .hero__img {
    background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%) 0 0 / 200% 100%;
}
.img-loading { opacity: 0; }
.img-ready { opacity: 1; background: none; transition: opacity .35s var(--ease); }
.thumbnail-btn { position: relative; background: var(--white); overflow: hidden; }
.thumbnail-btn img { display: block; }
.modal-card__main-img-container { position: relative; min-width: 0; overflow: hidden; }
.modal-card__main-img { position: absolute; inset: 0; }
.modal-card__thumbnails { -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.modal-card__thumbnails::-webkit-scrollbar { display: none; }
.thumbnail-btn { width: 72px; height: 58px; }

/* Kartu motor: sentuhan lebih rapi di semua layar */
.product-card { border-radius: 20px; }
.product-card__img-container { height: clamp(200px, 56vw, 260px); }
.product-card__title { font-size: 1.15rem; }
.product-card__price-cash { font-size: 1.15rem; }

/* Bottom sheet di HP: tombol WhatsApp menempel, konten tidak tertutup */
@media (max-width: 859px) {
    .modal-card__gallery { padding: 20px 20px 16px; }
    .modal-card__details { padding: 20px; }
    .sim-otr-row { flex-wrap: wrap; }
    .sim-otr-price { font-size: 1.35rem; white-space: nowrap; }
    .modal-card__cta { margin: 0 -20px -20px; padding-left: 20px; padding-right: 20px; }
}

/* Tablet */
@media (min-width: 640px) {
    .hero__ctas .btn { min-width: 168px; }
}

/* Laptop & desktop */
@media (min-width: 1100px) {
    :root { --max: 1240px; --header-h: 76px; }
    .hero__container { min-height: 620px; grid-template-columns: 1fr 1.05fr; gap: 72px; }
    .hero__desc { font-size: 1.15rem; }
    .hero__img { max-height: 460px; }
    .hero__disc { width: min(92%, 540px); }
    .catalogue__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
    .product-card { transition: border-color .2s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
    .product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(10, 31, 92, .35); }
    .product-card__img-container { height: 260px; }
}
@media (min-width: 1360px) {
    .catalogue__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (hover: none) { .product-card:hover { transform: none; box-shadow: none; } }


/* ---- Alamat di kartu cabang + FAQ (SEO) ---- */
.branch__addr { display: block; font-size: 0.86rem; line-height: 1.45; opacity: 0.85; margin: 2px 0 4px; font-weight: 400; }
.faq { padding: 64px 0; background: var(--mist); }
.faq__container { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.faq__list { margin-top: 24px; display: grid; gap: 10px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq__item summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blue); flex-shrink: 0; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding: 0 0 16px; color: var(--text); line-height: 1.65; }

.modal-card__pagelink { display: block; text-align: center; margin-top: 12px; font-weight: 600; color: var(--blue); font-size: 0.92rem; }


/* ---- FAQ disembunyikan (markup tetap ada) ---- */
.faq[hidden] { display: none !important; }

/* ---- Kartu lokasi ala Google Maps ---- */
.gmap { background: var(--white); color: var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22); }
.gmap__map { position: relative; height: 180px; background: var(--mist); }
.gmap__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gmap__info { padding: 18px 20px 20px; }
.gmap__name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.25; color: var(--ink); }
.gmap__cat { margin-top: 2px; font-size: 0.9rem; color: var(--muted); }
.gmap__rows { margin: 14px 0 16px; display: grid; gap: 12px; list-style: none; padding: 0; }
.gmap__row { display: flex; gap: 14px; align-items: flex-start; font-size: 0.95rem; line-height: 1.5; color: var(--text); }
.gmap__ico { flex-shrink: 0; width: 20px; height: 20px; color: var(--blue); margin-top: 1px; }
.gmap__ico svg { width: 20px; height: 20px; display: block; }
.gmap__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gmap__btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-full); border: 1.5px solid var(--line-strong); font-weight: 700; font-size: 0.92rem; color: var(--blue-deep); background: var(--white); transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease); }
.gmap__btn svg { width: 18px; height: 18px; }
.gmap__btn:hover { background: var(--blue-tint); border-color: var(--blue); }
.gmap__btn--primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.gmap__btn--primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
@media (min-width: 900px) { .gmap__map { height: 160px; } }
