/* ESG Mowilex — gaya situs (pengganti kitecx + Elementor + WPBakery). Mobile-first, tanpa framework. */
:root {
  --green-900: #0f3b0c;
  --green-800: #154d12;
  --green-600: #2e7d32;
  --green-100: #e8f1e6;
  --ink: #0f3b0c;
  --muted: #5d6f5b;
  --line: #dbe5d8;
  --bg-soft: #f4f4f4;
  --white: #fff;
  --radius: 14px;
  --wrap: 1200px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--green-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.6em 0 .6em; font-weight: 700; color: var(--green-900); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
.icon { display: inline-block; vertical-align: middle; flex: none; }
:focus-visible { outline: 3px solid #8bc34a; outline-offset: 2px; }

/* Tombol */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--green-900); background: var(--green-900); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; font: 600 .95rem/1.2 var(--font); }
.btn:hover { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.btn--outline { background: transparent; color: var(--green-900); }
.btn--outline:hover { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-more { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1100; background: var(--green-900); color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo img { width: 64px; height: 64px; object-fit: contain; }
.menu-btn { background: none; border: 0; color: #fff; padding: 10px; cursor: pointer; }
.nav { display: none; position: absolute; inset: 72px 0 auto 0; background: var(--green-900); padding: 8px 16px 20px; max-height: calc(100vh - 72px); overflow: auto; }
.nav.is-open { display: block; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; align-items: center; }
.nav__item > a { flex: 1; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .02em; padding: 12px 0; }
.nav__item.is-active > a { text-decoration: underline; text-underline-offset: 6px; }
.nav__toggle { background: none; border: 0; color: #fff; padding: 10px; cursor: pointer; }
.nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__sub { display: none; list-style: none; margin: 0 0 8px; padding: 0 0 0 14px; width: 100%; }
.nav__sub.is-open { display: block; }
.nav__sub a { display: block; color: #dfeedd; text-decoration: none; padding: 7px 0; font-size: .9rem; }
.nav__sub a:hover, .nav__item > a:hover { color: #b9e6a8; }
.nav__lang a { display: inline-flex; align-items: center; gap: 8px; text-transform: none; }
.flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); }
.nav__search { display: flex; margin-top: 14px; }
.nav__search input { flex: 1; border: 0; border-radius: 999px 0 0 999px; padding: 10px 14px; font: inherit; }
.nav__search button { border: 0; border-radius: 0 999px 999px 0; padding: 0 14px; background: #fff; color: var(--green-900); cursor: pointer; }
@media (min-width: 1080px) {
  .menu-btn { display: none; }
  .nav { display: flex !important; position: static; padding: 0; background: none; max-height: none; overflow: visible; align-items: center; gap: 18px; }
  .nav__list { display: flex; gap: 6px; align-items: center; }
  .nav__item { border: 0; flex-wrap: nowrap; }
  .nav__item > a { padding: 24px 10px; font-size: .8rem; }
  .nav__toggle { padding: 0 6px 0 0; margin-left: -6px; }
  .nav__sub { display: block; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; padding: 10px 0; border-radius: 0 0 10px 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
  .nav__item.has-sub:hover .nav__sub, .nav__item.has-sub:focus-within .nav__sub, .nav__sub.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__sub a { color: var(--green-900); padding: 8px 20px; }
  .nav__sub a:hover { background: var(--green-100); color: var(--green-900); }
  .nav__search { margin: 0; }
  .nav__search input { width: 140px; padding: 8px 12px; font-size: .85rem; }
}

/* Header halaman (hero) */
.hero { position: relative; background: var(--green-900) var(--bg) center / cover no-repeat; color: #fff; text-align: center; padding: clamp(70px, 12vw, 140px) 0 clamp(40px, 7vw, 70px); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .55)); }
.hero .wrap { position: relative; }
.hero__title { color: #fff; margin: 0 0 .4em; text-transform: none; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; font-size: .9rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .7; }
.crumbs a { color: #fff; }

/* Isi */
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section__title { margin-top: 0; text-transform: uppercase; }
.section__title.center, .kicker.center { text-align: center; }
.section__title small { display: block; font-size: .65em; font-weight: 600; margin-top: .2em; }
.section__title a { color: inherit; text-decoration: none; }
.kicker { margin: 0 0 .2em; font-weight: 500; }
.entry { max-width: 100%; }
.entry--narrow { max-width: 900px; }
.entry > :first-child { margin-top: 0; }
.entry img { border-radius: 10px; margin: 1em 0; }
.entry h2 { text-transform: uppercase; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry blockquote { margin: 1.5em 0; padding: 1em 1.4em; border-left: 4px solid var(--green-600); background: var(--green-100); border-radius: 0 10px 10px 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.entry td, .entry th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.entry .esg-anchor { display: block; position: relative; top: -90px; }
.meta { color: var(--muted); font-size: .9rem; }
.tag { display: inline-block; background: var(--green-100); color: var(--green-900); border-radius: 999px; padding: 3px 12px; font-size: .8rem; font-weight: 600; text-decoration: none; }
.lead { font-size: 1.05rem; margin-bottom: 2rem; }

/* Baris & kolom hasil migrasi */
.esg-row { display: grid; gap: clamp(16px, 3vw, 36px); margin: 1.5em 0; align-items: start; }
.esg-col > :first-child { margin-top: 0; }
.esg-col > :last-child { margin-bottom: 0; }
.has-bg { background: var(--bg) center / cover no-repeat; padding: clamp(20px, 4vw, 48px); border-radius: var(--radius); }
@media (min-width: 720px) {
  .esg-row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .esg-row > * { grid-column: span 12; }
  .esg-row > .esg-col { grid-column: span var(--span, 12); }
  .esg-row:not(:has(> [style*="--span"])) { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .esg-row:not(:has(> [style*="--span"])) > * { grid-column: auto; }
}
.esg-col img[width="180"], .esg-col img[width="150"], .esg-col img[width="120"] { width: 110px; margin-inline: auto; border-radius: 0; }
.esg-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 1.5em 0; }
.esg-gallery img { margin: 0; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.esg-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.5em 0; }
.esg-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.esg-counter { text-align: center; }
.esg-counter strong { display: block; font-size: 2.4rem; color: var(--green-600); }
details { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 10px; background: #fff; }
details > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 1.4rem; color: var(--green-600); }
details[open] > summary::after { content: "–"; }
details > :not(summary) { padding: 0 18px; }
details > :last-child { padding-bottom: 14px; }

/* Kartu portfolio */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px; margin: 1.5em 0 2.5em; }
.pf-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(15, 59, 12, .08); display: flex; flex-direction: column; }
.pf-card__media { display: block; aspect-ratio: 1; background: var(--green-100); }
.pf-card__media img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; transition: transform .35s; }
.pf-card:hover .pf-card__media img { transform: scale(1.04); }
.pf-card__body { padding: 14px 18px 18px; }
.pf-card__cat { font-size: .75rem; text-transform: uppercase; font-weight: 600; letter-spacing: .04em; color: var(--green-600); text-decoration: none; }
.pf-card__title { font-size: 1rem; margin: .3em 0 0; }
.pf-card__title a { color: var(--green-900); text-decoration: none; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.pager a { text-decoration: none; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; max-width: 48%; }
.pager__next { margin-left: auto; text-align: right; }

/* Beranda */
.home-hero { position: relative; background: var(--green-900) var(--bg) center / cover no-repeat; color: #fff; padding: 40px 0 60px; }
.home-hero__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .home-hero__grid { grid-template-columns: 1.6fr 1fr; } .home-hero { padding: 70px 0 90px; } }
.home-hero__words { margin: 0; font-weight: 700; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.05; }
.home-hero__words span { display: block; }
.home-hero__quote { margin-top: 48px; text-align: center; font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 500; max-width: 900px; }
.home-hero__quote footer { font-size: .85rem; margin-top: 10px; }
.slider { position: relative; overflow: hidden; border-radius: 6px; }
.slider__track { display: flex; transition: transform .6s ease; }
.slider__slide { flex: 0 0 100%; }
.slider__slide img { width: 100%; aspect-ratio: 760 / 422; object-fit: cover; }
.slider__btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, .45); color: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.slider__btn--prev { left: 10px; }
.slider__btn--next { right: 10px; }
.pillars { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar img { width: 100%; border-radius: var(--radius); transition: transform .3s, box-shadow .3s; }
.pillar:hover img { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 59, 12, .2); }
.cards { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 820px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { text-align: center; }
.card__icon { width: 150px; height: 150px; object-fit: contain; margin: 0 auto 12px; }
.card__title { margin: .4em 0; font-size: 1.25rem; }
.logos { display: grid; gap: 20px; align-items: center; justify-items: center; margin-top: 20px; }
.logos--products { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.logos--products img { width: 100%; max-width: 200px; aspect-ratio: 1; object-fit: contain; transition: transform .3s; }
.logos--products a:hover img { transform: scale(1.05); }
.home-awards__band { background: var(--bg-soft); padding: 30px 0; }
.logos--awards { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0 auto; }
.logos--awards img { width: 100%; max-width: 200px; object-fit: contain; }
.home-awards { padding-bottom: 0; }

/* Kalkulator */
.calc { display: grid; gap: 20px; margin: 1.5em 0 2.5em; align-items: start; }
@media (min-width: 820px) { .calc--paint { grid-template-columns: 1fr 1fr; } .calc--carbon { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.calc__inputs { display: grid; gap: 12px; }
.calc__inputs label { display: grid; gap: 4px; }
.calc input, .calc select { width: 100%; padding: 10px 12px; border: 1px solid #c9d6c6; border-radius: 8px; font: inherit; color: inherit; background: #fff; }
.calc__out { background: #efefef; border-radius: 15px; padding: 24px; }
.calc__out p { margin: 0 0 12px; }
.calc__out output { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--green-900); text-align: center; margin-top: 6px; }
.calc__unit { color: #c62828; }

/* Kontak, daftar, form */
.contact-box { margin-top: 3rem; padding: clamp(20px, 4vw, 36px); background: var(--green-100); border-radius: var(--radius); }
.contact-box h2 { margin-top: 0; }
.post-list { list-style: none; padding: 0; margin: 1.5em 0; }
.post-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.post-list p { margin: .3em 0 0; color: var(--muted); }
.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form input { flex: 1; padding: 10px 14px; border: 1px solid #c9d6c6; border-radius: 999px; font: inherit; }
.nav-links { display: flex; gap: 8px; }

/* Footer */
.site-footer { background: #000; color: #fff; margin-top: 0; }
.site-footer__cols { display: grid; gap: 28px; padding: 48px 0; }
@media (min-width: 820px) { .site-footer__cols { grid-template-columns: repeat(4, 1fr); } }
.site-footer__title { color: #fff; font-size: 1rem; text-transform: uppercase; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid #fff; display: inline-block; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: #ddd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__brand img { max-width: 120px; }
.site-footer__certs { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.site-footer__certs img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 6px; padding: 4px; }
.site-footer__social { display: inline-flex; color: #fff !important; }
.site-footer__bottom { border-top: 1px solid #222; padding: 16px 0; font-size: .85rem; color: #aaa; text-align: center; }
.to-top { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--green-900); color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .slider__track, .pf-card__media img, .pillar img { transition: none; } }

/* Logo berjalan (pengganti Elfsight logo showcase) */
.marquee { overflow: hidden; display: flex; margin: 24px 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__list { display: flex; flex: none; gap: 40px; padding: 0 20px; margin: 0; list-style: none; animation: marquee var(--dur, 24s) linear infinite; align-items: center; }
.marquee:hover .marquee__list { animation-play-state: paused; }
.marquee__item img { width: 180px; height: 180px; object-fit: contain; margin: 0; border-radius: 0; transition: transform .3s; }
.marquee--awards .marquee__item img { width: 200px; height: 160px; }
.marquee__item a:hover img { transform: scale(1.05); }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee__list { animation: none; } .marquee__list[aria-hidden] { display: none; } }

/* Peta dampak (pengganti Elfsight Google Maps) */
.impact-map { margin: 1.5em 0 2.5em; }
.impact-map__canvas { position: relative; z-index: 0; isolation: isolate; height: clamp(360px, 55vw, 560px); border-radius: var(--radius); overflow: hidden; background: var(--green-100); }
.impact-map .leaflet-popup-content { font: 14px/1.5 var(--font); max-width: 280px; }
.impact-map .leaflet-popup-content b { display: block; margin-bottom: 4px; color: var(--green-900); }
.impact-map .leaflet-popup-content img { max-width: 100%; height: auto; border-radius: 6px; }

/* Kolom bergambar latar (dari CSS Elementor/WPBakery lama) */
.esg-col.has-bg { min-height: 320px; padding: 0; }
.esg-row.has-bg { color: #fff; }
.esg-row.has-bg h2, .esg-row.has-bg h3 { color: #fff; }
.esg-card { background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .1); padding: clamp(20px, 4vw, 44px) !important; }
.esg-counter { text-align: left; }
.esg-counter strong { font-weight: 500; color: var(--green-900); }
.esg-counter span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* Menu samping halaman "How We Make a Difference" */
.esg-sidenav { list-style: none; padding: 0 !important; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.esg-sidenav li + li { border-top: 1px solid var(--line); }
.esg-sidenav a { display: block; padding: 12px 16px; text-decoration: none; color: var(--green-900); font-weight: 500; }
.esg-sidenav a:hover, .esg-sidenav a[aria-current] { background: var(--green-100); }

/* Galeri bertautan (Press Release) */
.esg-gallery > a { display: block; border-radius: 10px; overflow: hidden; }
.esg-gallery > a img { aspect-ratio: auto; transition: transform .3s; }
.esg-gallery > a:hover img { transform: scale(1.03); }

/* Daftar siaran pers: tanggal | judul + ringkasan */
.entry:has(.pr-item) { max-width: 820px; margin-inline: auto; }
.pr-item { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pr-item__date { text-align: center; color: var(--green-900); font-size: .85rem; }
.pr-item__date b { display: block; font-size: 1.6rem; line-height: 1.2; }
.pr-item__date span { display: block; }
.pr-item__date span + span { margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--green-600); width: 40px; margin-inline: auto; }
.pr-item__body h3 { margin: 0 0 .5em; font-size: 1.05rem; }
.pr-item__body p { font-size: .9rem; margin-bottom: .6em; }

/* Footer: alamat */
.site-footer__addr { font-size: .9rem; color: #ccc; margin: 12px 0 0; line-height: 1.6; }
.site-footer__addr b { color: #fff; }
.entry h2:has(+ .impact-map), .entry h2:has(+ .pf-grid), .entry h2:has(+ .marquee) { text-align: center; font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* Kemiripan dengan tema lama: judul bagian rata tengah, kolom ikon (≥3 kolom) rata tengah dengan ikon kecil */
.entry > h2, .entry > .esg-row > .esg-col > h2:only-child { text-align: center; text-transform: none; font-weight: 600; }
.esg-row:has(> .esg-col:nth-child(3)) > .esg-col { text-align: center; }
.esg-row:has(> .esg-col:nth-child(3)) > .esg-col > img,
.esg-row:has(> .esg-col:nth-child(3)) > .esg-col > a > img,
.esg-row:has(> .esg-col:nth-child(3)) > .esg-col > p > img { max-width: 140px; margin-inline: auto; border-radius: 0; }
.esg-row:has(> .esg-col:nth-child(3)) > .esg-col > h2,
.esg-row:has(> .esg-col:nth-child(3)) > .esg-col > h3 { font-size: 1.05rem; text-transform: none; margin-top: .6em; }
/* Gambar tunggal di isi halaman rata tengah (seperti tema lama) */
.entry > img, .entry > p > img:only-child, .entry > a > img:only-child { margin-inline: auto; }
