/* Mowilex Pro — CSS utama. Mobile-first, tanpa framework & tanpa font eksternal. Putih bersih, merah Mowilex, navy. */

:root {
    --red: #e4202a;
    --red-700: #c8141d;
    --red-50: #fdecec;
    --navy: #263348;
    --navy-900: #1b2434;
    --ink: #1d2330;
    --muted: #5e6675;
    --line: #e3e6eb;
    --paper: #f4f5f7;
    --white: #fff;
    --radius: 6px;
    --radius-lg: 12px;
    --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 10px 30px rgba(20, 30, 50, .08);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --wrap: 1200px;
    --gutter: 20px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--red-700); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
.h3, h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }
.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: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { left: 8px; }
.icon { flex: none; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.06rem; color: #3a4150; }
.lead p:last-child { margin-bottom: 0; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-700); margin: 0 0 .5em; font-weight: 600; }
.eyebrow a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
.wrap--text { max-width: 820px; }
.section { padding: 56px 0; }
.section--tight { padding: 28px 0 56px; }
.section--paper { background: var(--paper); }
.section__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.section__head .lead { margin: 0; }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); background: var(--red); color: #fff;
    text-decoration: none; font-weight: 600; font-size: .92rem; letter-spacing: .02em; border: 2px solid var(--red); transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: var(--red-700); border-color: var(--red-700); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--paper); border-color: #cfd4dc; color: var(--ink); }
.btn--ghost { background: transparent; border-color: #fff; color: #fff; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; padding: 14px 30px; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand img { width: 128px; height: auto; }
.burger { display: inline-flex; background: none; border: 0; padding: 8px; color: var(--ink); }
.burger .icon:last-child, .burger[aria-expanded="true"] .icon:first-of-type { display: none; }
.burger[aria-expanded="true"] .icon:last-child { display: block; }
.nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 12px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; visibility: hidden; }
.nav.is-open { transform: none; visibility: visible; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__link { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 6px; padding: 14px 4px; background: none; border: 0; border-bottom: 1px solid var(--line);
    color: var(--ink); text-decoration: none; font-size: 1.05rem; font-weight: 600; text-align: left; }
.nav__link[aria-current="page"] { color: var(--red); }
.nav__link .icon { width: 16px; height: 16px; transition: transform .2s; }
.has-sub.is-open > .nav__link .icon { transform: rotate(180deg); }
.sub { display: none; padding: 4px 0 10px 12px; }
.has-sub.is-open .sub { display: block; }
.sub ul { list-style: none; margin: 0; padding: 0; }
.sub a { display: block; padding: 9px 4px; color: var(--muted); text-decoration: none; }
.sub a:hover, .sub a[aria-current="page"] { color: var(--red); }
.nav__tools { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.site-search { display: flex; flex: 1; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.site-search input { flex: 1; min-width: 0; border: 0; padding: 9px 14px; font: inherit; background: transparent; }
.site-search button { border: 0; background: none; padding: 0 12px; color: var(--muted); }
.lang { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .85rem; }
.lang .icon { width: 18px; height: 18px; }

@media (min-width: 1040px) {
    .burger { display: none; }
    .nav { position: static; transform: none; visibility: visible; padding: 0; overflow: visible; display: flex; align-items: center; gap: 20px; background: none; }
    .nav__list { display: flex; gap: 2px; }
    .nav__item { position: relative; }
    .nav__link { border: 0; padding: 8px 12px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; width: auto; }
    .nav__link:hover { color: var(--red); }
    .nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
    .sub { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
    .sub a { padding: 8px 12px; border-radius: 4px; }
    .sub a:hover { background: var(--paper); }
    .nav__tools { margin: 0; }
    .site-search { width: 170px; flex: none; }
    .site-search input { padding: 6px 12px; font-size: .85rem; }
}

/* Hero beranda */
.hero { position: relative; display: grid; min-height: clamp(420px, 62vw, 720px); background: var(--navy-900); color: #fff; overflow: hidden; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 20, 30, .55) 0%, rgba(15, 20, 30, .15) 60%, transparent 100%); }
.hero__inner { position: relative; z-index: 1; align-self: center; padding-top: 48px; padding-bottom: 48px; }
.hero__title { color: #fff; font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem); line-height: 1.08; margin-bottom: .8em; max-width: 14ch; }
@media (max-width: 700px) {
    .hero { align-items: start; }
    .hero::after { background: linear-gradient(180deg, rgba(15, 20, 30, .6) 0%, rgba(15, 20, 30, .1) 55%, transparent 100%); }
    .hero__inner { align-self: start; text-align: center; padding-top: 40px; }
    .hero__title { margin-inline: auto; }
}

/* Ubin kategori di beranda: mosaik (Protective Coating tinggi di kiri) */
.tiles { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tiles a { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; height: 100%; }
.tiles a:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 30, 50, .14); }
.tiles img { width: 100%; height: 100%; object-fit: cover; }
.tiles__item--tall { grid-row: span 2; }
@media (min-width: 900px) {
    .tiles { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* Banner Project References di beranda */
.banners { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.banners a { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; color: #fff; text-decoration: none; aspect-ratio: 16 / 7; background: var(--navy); }
.banners img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.banners a:hover img { transform: scale(1.04); }
.banners a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 15, 25, .65), transparent 60%); }
.banners__label { position: absolute; left: 20px; bottom: 16px; z-index: 1; font-size: clamp(1.1rem, .9rem + 1vw, 1.6rem); font-weight: 700; }
@media (min-width: 800px) { .banners { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

/* Judul halaman */
.page-hero { padding: 56px 0 40px; background: var(--paper); }
.page-hero--small { padding: 40px 0 28px; }
.page-hero--dark { background: var(--navy); color: #fff; }
.page-hero--dark .page-hero__title { color: #fff; }
.page-hero--dark .page-hero__lead { color: #d6dbe4; }
.page-hero__title { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin: 0 0 .3em; }
.page-hero__lead { color: var(--muted); max-width: 70ch; margin: 0; font-size: 1.05rem; }
.page-hero .center, .page-hero .center .page-hero__lead { margin-inline: auto; }
.page-title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }

/* Banner kategori (gambar berisi judul & teks) */
.cat-hero { background: var(--paper); }
.cat-hero img { width: 100%; max-height: 560px; object-fit: cover; }

/* Strip kategori */
.catnav { margin: 0 0 32px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.catnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; white-space: nowrap; }
.catnav a { display: block; padding: 12px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; }
.catnav a:hover { color: var(--ink); }
.catnav a[aria-current="page"] { color: var(--red-700); border-bottom-color: var(--red); }
@media (min-width: 1040px) { .catnav ul { justify-content: center; flex-wrap: wrap; } }

/* Kartu & grid produk */
.pgrid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1100px) { .pgrid { grid-template-columns: repeat(4, 1fr); } }
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard__media { display: block; aspect-ratio: 1; background: #fff; padding: 12px; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; }
.pcard__ph { display: block; width: 100%; height: 100%; background: var(--paper); border-radius: var(--radius); }
.pcard__body { padding: 4px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.pcard__body .eyebrow { font-size: .7rem; }
.pcard__title { font-size: 1.02rem; margin: 0 0 12px; }
.pcard__title a { color: var(--ink); text-decoration: none; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; }
.pcard__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--red-700); text-decoration: none; }
.pcard__more .icon { width: 16px; height: 16px; }
.catalog-group { margin-bottom: 48px; }
.catalog-group__title { font-size: 1.35rem; padding-bottom: 10px; border-bottom: 2px solid var(--red); display: inline-block; }
.catalog-group__title a { color: inherit; text-decoration: none; }

/* Halaman produk */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red-700); }
.product__grid { display: grid; gap: 28px; align-items: start; }
.product__media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.product__media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.product__actions { margin-top: 24px; max-width: 420px; }
.product__docs-label { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.docs { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
@media (min-width: 900px) { .product__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Project References */
.tabs__list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 24px; }
.tabs__list [role="tab"] { border: 1px solid var(--line); background: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.tabs__list [role="tab"][aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.group-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; background: var(--navy); }
.group-banner img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; opacity: .9; }
.group-banner__title { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #fff; font-size: clamp(1.4rem, 1rem + 2vw, 2.6rem); text-transform: uppercase; letter-spacing: .08em; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .projects { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.projects figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.projects img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.projects figcaption { padding: 10px 14px; font-weight: 600; font-size: .95rem; }

/* Teks & pemberitahuan */
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
.prose img { border-radius: var(--radius); margin: 1.2em 0; height: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.notice-box { display: flex; gap: 12px; align-items: flex-start; background: var(--red-50); border: 1px solid #f6c5c7; color: #7a1015; border-radius: var(--radius); padding: 14px 16px; font-weight: 600; }
.notice-box .icon { margin-top: 3px; }

/* Footer */
.site-footer { background: var(--navy-900); color: #c3c9d4; padding: 56px 0 0; font-size: .92rem; }
.site-footer a { color: #e5e8ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
.site-footer__title { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 6px; }
.site-footer__company { grid-column: 1 / -1; }
.site-footer__logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; }
.site-footer__logo img { width: 120px; }
.certs { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.certs img { height: 44px; width: auto; background: #fff; border-radius: 4px; padding: 3px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 18px; padding-bottom: 18px; font-size: .82rem; }
.site-footer__bottom p { margin: 0; }
@media (min-width: 900px) {
    .site-footer__grid { grid-template-columns: repeat(4, 1fr) 1.5fr; }
    .site-footer__company { grid-column: auto; }
}

/* Tombol ke atas */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center;
    box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--red-700); color: #fff; }

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