/* =========================================================
   PT Indo Bintang Mandiri — stylesheet utama
   Mobile-first, font sistem (tanpa unduhan font = LCP cepat)
   ========================================================= */
:root {
  /* Warna diambil dari logo Indo Bintang Mandiri */
  --c-primary: #225dd3;
  --c-primary-dark: #17429c;
  --c-accent: #36a529;
  --c-accent-text: #237a19;
  --c-red: #e01010;
  --c-heading: #222223;
  --c-text: #2b2c30;
  --c-muted: #5d6068;
  --c-bg: #ffffff;
  --c-bg-alt: #f3f5f8;
  --c-border: #dde1e8;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(34, 34, 35, .08);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--c-text); background: var(--c-bg); }
img, iframe { max-width: 100%; height: auto; display: block; }
iframe { border: 0; width: 100%; aspect-ratio: 4 / 3; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3 { line-height: 1.25; color: var(--c-heading); margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
/* Cegah item grid melebar melebihi layar (gambar besar / teks panjang) */
.hero-inner > *, .two-col > *, .service > *, .footer-grid > *, .card-grid > * { min-width: 0; }
.hero-inner, .two-col, .service, .footer-grid { grid-template-columns: minmax(0, 1fr); }
h1, h2, h3, p { overflow-wrap: anywhere; }
.narrow { max-width: 780px; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--c-primary); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Tombol ---------- */
.btn { display: inline-block; background: var(--c-primary); color: #fff; padding: .75rem 1.4rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; border: 2px solid var(--c-primary); transition: background .2s; }
.btn:hover { background: var(--c-primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-light { background: #fff; color: var(--c-primary); border-color: #fff; }
.btn-light:hover { background: var(--c-bg-alt); border-color: var(--c-bg-alt); color: var(--c-primary-dark); }
.btn-small { padding: .45rem 1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--c-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand img { width: 237px; height: 40px; max-width: 60vw; }
.nav-toggle { background: none; border: 1px solid var(--c-border); border-radius: 8px; padding: .45rem .9rem; font: inherit; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--c-text); font-weight: 500; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--c-primary); text-decoration: underline; }

/* Menu mobile */
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--c-border); }
.site-nav.is-open { display: block; }
.site-nav li { border-top: 1px solid var(--c-border); }
.site-nav li a { display: block; padding: .85rem 16px; }
.site-nav li a.btn { margin: .6rem 16px; text-align: center; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; border: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 1.6rem; }
  .site-nav li { border: 0; }
  .site-nav li a { padding: 0; }
  .site-nav li a.btn { margin: 0; padding: .45rem 1rem; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 1rem 0 0; margin: 0 auto; font-size: .9rem; color: var(--c-muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--c-bg-alt), #fff); padding: 2.5rem 0 3rem; }
.hero-inner { display: grid; gap: 2rem; align-items: center; }
.eyebrow { color: var(--c-accent-text); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.lead { font-size: 1.15rem; color: var(--c-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero-media { margin: 0; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; background: var(--c-border); }
@media (min-width: 860px) { .hero-inner { grid-template-columns: 1.1fr 1fr; } .hero { padding: 4rem 0; } }

/* ---------- Section ---------- */
.section { padding: 3rem 0; }
.section-alt { background: var(--c-bg-alt); }
.section-intro { color: var(--c-muted); max-width: 680px; }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 860px) { .section { padding: 4.5rem 0; } .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- Kartu ---------- */
.card-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.5rem; }
.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.card img { border-radius: 8px; margin-bottom: 1rem; aspect-ratio: 3 / 2; object-fit: cover; background: var(--c-border); }
.card a { font-weight: 600; }

.feature-list { list-style: none; padding: 0; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 1.5rem; }
.feature-list li { background: #fff; border-left: 4px solid var(--c-accent); padding: 1.1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; }
.stats div { background: var(--c-bg-alt); border-radius: var(--radius); padding: 1rem; text-align: center; }
.stats dt { font-size: .85rem; color: var(--c-muted); }
.stats dd { margin: .3rem 0 0; font-size: 1.6rem; font-weight: 700; color: var(--c-primary); }

.quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.quote p { font-style: italic; }
.quote footer { color: var(--c-muted); font-size: .95rem; }

.person { margin: 0; text-align: center; }
.person img { border-radius: 50%; width: 160px; height: 160px; object-fit: cover; margin: 0 auto .6rem; background: var(--c-border); }

/* ---------- Layanan ---------- */
.service-list { display: grid; gap: 2rem; margin-top: 2rem; }
.service { display: grid; gap: 1.2rem; align-items: center; scroll-margin-top: 90px; }
.service img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; background: var(--c-border); }
@media (min-width: 760px) { .service { grid-template-columns: 1fr 1.3fr; } }
.note { margin-top: 2rem; font-size: .92rem; color: var(--c-muted); }

/* ---------- FAQ ---------- */
details { border: 1px solid var(--c-border); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: .8rem; background: #fff; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: .6rem; }

/* ---------- Kontak ---------- */
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: .6rem 0; border-bottom: 1px solid var(--c-border); }
.map iframe { border-radius: var(--radius); }

/* ---------- CTA ---------- */
.cta { background: var(--c-primary); color: #fff; padding: 3rem 0; text-align: center; }
.cta h2 { color: #fff; }
.cta-inline { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: #1b1c1f; color: #c9d2e0; padding: 3rem 0 1rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.15rem; }
.footer-title { color: #fff; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; }

/* ---------- Tombol WhatsApp ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; background: #1fa855; color: #fff; padding: .7rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.2); z-index: 60; }
.wa-float:hover { background: #178a45; color: #fff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* =========================================================
   Komponen tambahan: produk, artikel, tabel, pita distributor
   ========================================================= */
.card { display: flex; flex-direction: column; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--c-primary); text-decoration: underline; }
.card p { flex: 1; color: var(--c-muted); font-size: .98rem; }
.card .more { font-weight: 600; }
.card-media img { transition: transform .25s; }
.card:hover .card-media img { transform: scale(1.02); }
@media (min-width: 1000px) { .card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 700px) { .card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; }

.band { background: #eef7ec; border-block: 1px solid #cfe8ca; padding: 2.5rem 0; }
.band-inner { display: grid; gap: 1.5rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
.band-inner img { border-radius: var(--radius); max-width: 420px; width: 100%; }
@media (min-width: 760px) { .band-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.template { background: #fff; border: 1px dashed var(--c-accent-text); border-radius: 8px; padding: .7rem 1rem; font-size: .95rem; }

.prose figure { margin: 1.5rem 0 2rem; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.prose h2 { margin-top: 2.2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.article-meta { color: var(--c-muted); font-size: .92rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--c-border); border-radius: var(--radius); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.spec-table th, .spec-table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.spec-table thead th { background: var(--c-bg-alt); color: var(--c-primary-dark); font-weight: 600; }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--c-bg-alt); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-top: 2.5rem; }
.inline-cta p { margin: 0; }
.other { margin-top: 1.5rem; color: var(--c-muted); font-size: .95rem; }
.center-actions { justify-content: center; }
.site-footer address { margin-top: .6rem; }

/* =========================================================
   v5: komponen situs asli
   ========================================================= */
.hero-media img { aspect-ratio: 4 / 3; }
.strip { background: var(--c-heading); color: #fff; padding-block: 1.2rem; }
.strip-list { list-style: none; margin: 0 auto; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.strip-list li { display: flex; flex-direction: column; gap: .15rem; border-left: 3px solid var(--c-accent); padding-left: .8rem; }
.strip-list strong { font-size: 1rem; }
.strip-list span { color: #c8ccd4; font-size: .9rem; }

.card-tag { margin: 0 0 .3rem; font-size: .82rem; font-weight: 600; color: var(--c-accent-text); text-transform: uppercase; letter-spacing: .04em; }
.card-tag time { text-transform: none; letter-spacing: 0; color: var(--c-muted); font-weight: 500; }
.card-count { color: var(--c-muted); font-size: .9rem; margin: 0; flex: 0; }
.card-product { padding: .9rem; }
.card-product img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.card-product h3 { font-size: 1.02rem; margin: 0; }
.card-grid-products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.section-head-2 { margin-top: 2.5rem; }
.mt { margin-top: 2.5rem; }
.h3 { font-size: 1.2rem; }
.cat-block + .cat-block { margin-top: 3rem; }

.framed { margin: 0; }
.framed img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.cat-hero { display: grid; gap: 1.5rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .cat-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }

.product-detail { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) { .product-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.product-figure { margin: 0; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1rem; }
.product-figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.spec-table th[scope="row"] { width: 34%; background: var(--c-bg-alt); color: var(--c-heading); font-weight: 600; }

.article-body img { border-radius: var(--radius); margin: 1rem auto; }
.article-body figure { margin: 1.2rem 0; }
.prose figcaption { font-size: .9rem; color: var(--c-muted); margin-top: .5rem; }

.gallery-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.gallery-grid figure { margin: 0; }
.gallery-grid img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--c-border); }
.gallery-grid figcaption { font-size: .85rem; color: var(--c-muted); margin-top: .3rem; }
.gallery-full { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gallery-grid li { scroll-margin-top: 90px; }

.video-thumb { position: relative; display: block; }
.video-thumb img { aspect-ratio: 4 / 3; object-fit: cover; }
.play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(224, 16, 16, .9); }
.play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.card-media img { width: 100%; }
.card .card-tag, .card .card-count { flex: 0 0 auto; }

/* ---------- Popup layar penuh "Website dalam perbaikan" (beranda) ---------- */
html.popup-aktif, html.popup-aktif body { overflow: hidden; }
.popup { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; z-index: 1000;
  background: linear-gradient(160deg, #ffffff 0%, #eef3fc 55%, #e6f3e3 100%); color: var(--c-text); }
.popup[open] { display: flex; align-items: center; justify-content: center; }
.popup::backdrop { background: #ffffff; }
.popup-inner { width: 100%; max-width: 620px; text-align: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.popup-logo { width: min(320px, 80%); height: auto; margin: 0 auto 2rem; }
.popup-badge { display: inline-block; margin: 0 0 1rem; padding: .3rem .9rem; border-radius: 999px; background: #e3f1df; color: var(--c-accent-text);
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.popup h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 1rem; }
.popup p { color: var(--c-muted); font-size: 1.08rem; max-width: 52ch; margin-left: auto; margin-right: auto; }
.popup-thanks { font-weight: 600; color: var(--c-heading) !important; margin-top: 1.5rem; }
.popup-inner::after { content: ""; display: block; width: 72px; height: 4px; margin: 2rem auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--c-primary) 0 33%, var(--c-accent) 33% 66%, var(--c-red) 66%); }
.popup .popup-badge { color: var(--c-accent-text); font-size: .82rem; }
