/*
Theme Name: LAI Cleaning & Sanitation
Theme URI: https://sanvex.co.id
Author: PT Lautan Air Indonesia
Description: Tema custom untuk LAI Cleaning & Sanitation — satu master brand dengan tiga segmen: Industrial (CIP/COP/OPC), Professional (SANVEX) dan Household (SANILAIQ). Mendukung dwibahasa (Polylang) dan formulir inquiry (Contact Form 7).
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: lai
*/

:root {
	--navy: #123e72;
	--navy-dark: #0b2b52;
	--blue: #1687c7;
	--pale: #edf5fb;
	--pale-2: #f5f9fc;
	--ink: #24384b;
	--muted: #5f7488;
	--line: #dce6ef;
	--industrial: #2f78bf;
	--professional: #c63d47;
	--household: #23806f;
	--accent: var(--blue);
	--radius: 12px;
	--shadow: 0 10px 30px rgba(18, 62, 114, .08);
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; border-radius: 6px; }
:focus-visible { outline: 3px solid #80bce1; outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--pale { background: var(--pale-2); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 20px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand small { font-size: 12px; font-weight: 600; color: var(--muted); padding-left: 10px; border-left: 1px solid #b3ccdc; }
.brand .custom-logo { max-height: 44px; width: auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: #405972; font-size: 14px; font-weight: 600; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current_page_item > a { background: var(--pale); color: var(--navy); text-decoration: none; }
.lang-switch { display: flex; gap: 2px; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line); }
.lang-switch a { padding: 6px 8px; font-size: 12px; font-weight: 800; color: var(--muted); border-radius: 6px; }
.lang-switch a.is-current { color: var(--navy); background: var(--pale); }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px; color: var(--navy); }
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--navy); border-radius: 8px; padding: 12px 20px; font-size: 14px; font-weight: 700; line-height: 1.2; background: var(--navy); color: #fff; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { text-decoration: none; background: var(--navy-dark); border-color: var(--navy-dark); }
.btn--ghost { background: #fff; color: var(--navy); }
.btn--ghost:hover { background: var(--pale); color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--pale); border-color: var(--pale); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn svg { width: 16px; height: 16px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.link-arrow { font-size: 14px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

/* Hero */
.hero { background: linear-gradient(115deg, #0b2f57 0%, #164f86 60%, #1d6aa8 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); }
.hero .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 80px; position: relative; z-index: 1; }
.hero .eyebrow { color: #9fd3f5; }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; }
.hero p { color: #dcebf8; font-size: 18px; max-width: 560px; }
.hero-segments { display: grid; gap: 12px; }
.hero-segment { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 16px 18px; color: #fff; }
.hero-segment:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.hero-segment .icon-badge { background: rgba(255,255,255,.95); }
.hero-segment strong { display: block; font-size: 15px; }
.hero-segment div span { font-size: 13px; color: #cfe2f3; }

.page-hero { background: var(--pale); border-bottom: 1px solid var(--line); }
.page-hero .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; margin: 0 0 14px; }
.page-hero p { color: #4c6378; font-size: 17px; max-width: 600px; }
.page-hero .art { aspect-ratio: 4/3; border-radius: 16px; background: linear-gradient(140deg, #d7eaf7, #eef6fc); display: grid; place-items: center; color: var(--accent); overflow: hidden; }
.page-hero .art svg { width: 38%; height: auto; stroke-width: 1.2; }
.page-hero .art img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--industrial { --accent: var(--industrial); }
.page-hero--professional { --accent: var(--professional); }
.page-hero--household { --accent: var(--household); }
.crumbs { font-size: 13px; color: var(--muted); padding: 14px 0; border-bottom: 1px solid var(--line); background: #fff; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.card p { color: var(--muted); font-size: 15px; }
.card h3 { margin-top: 14px; }
a.card:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .link-arrow { margin-top: auto; }
.card--segment { border-top: 4px solid var(--accent); }
.seg-industrial { --accent: var(--industrial); }
.seg-professional { --accent: var(--professional); }
.seg-household { --accent: var(--household); }
.card .tag { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.step-num { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .08em; }

.icon-badge { width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); display: grid; place-items: center; flex: none; }
.icon-badge svg { width: 26px; height: 26px; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item strong { display: block; color: var(--navy); }
.trust-item small { color: var(--muted); font-size: 14px; }

.banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--navy); color: #fff; border-radius: 16px; padding: 36px 40px; }
.banner h3 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.banner p { color: #cfe0f0; margin: 0; }

.info { background: var(--pale-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info h3 { margin-top: 0; }
.notice-small { font-size: 13px; color: var(--muted); }

/* Tabs / filter */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.tabs a { border: 1px solid #cddfeb; background: #fff; color: #41617e; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.tabs a:hover { text-decoration: none; border-color: var(--accent); }
.tabs a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Product cards */
.product-card { padding: 0; overflow: hidden; }
.product-card .thumb { aspect-ratio: 4/3; background: color-mix(in srgb, var(--accent) 8%, #f4f8fb); display: grid; place-items: center; color: var(--accent); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.product-card .thumb svg { width: 64px; height: 64px; stroke-width: 1.3; }
.product-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { margin: 4px 0 6px; }

/* Product detail */
.product-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.product-media { border-radius: 16px; background: color-mix(in srgb, var(--accent) 8%, #f4f8fb); aspect-ratio: 1; display: grid; place-items: center; color: var(--accent); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.product-media svg { width: 30%; height: auto; stroke-width: 1.1; }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-list li strong { min-width: 140px; color: var(--navy); font-size: 14px; }
.doc-list { display: grid; gap: 10px; }
.doc-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); font-weight: 700; background: #fff; }
.doc-link:hover { border-color: var(--accent); text-decoration: none; }
.doc-link svg { width: 22px; height: 22px; color: var(--accent); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip-list li { background: var(--pale); color: var(--navy); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.chem-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.chem-list li { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--navy); }
.chem-list li svg { color: var(--accent); width: 18px; height: 18px; }

/* Content (editor) */
.entry-content > *:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li { margin-bottom: .4em; }

/* Forms (Contact Form 7) */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.wpcf7 label { display: block; font-weight: 700; font-size: 14px; color: var(--navy); }
.wpcf7 .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.wpcf7 p { margin: 0 0 16px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea { width: 100%; margin-top: 6px; border: 1px solid #c9d8e5; border-radius: 8px; background: #fff; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink); }
.wpcf7 textarea { min-height: 130px; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,135,199,.15); }
.wpcf7 input[type=submit] { background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 13px 26px; font: inherit; font-weight: 700; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--navy-dark); }
.wpcf7 .wpcf7-not-valid-tip { font-size: 13px; font-weight: 600; }
.wpcf7 form .wpcf7-response-output { border-radius: 8px; margin: 16px 0 0; padding: 12px 16px; }
.contact-aside { display: grid; gap: 16px; align-content: start; }
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }

/* Channel cards */
.channel-card .btn { margin-top: auto; align-self: flex-start; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #c5d6e8; margin-top: 0; }
.site-footer .container { padding-top: 56px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #c5d6e8; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #9fb6cc; border-color: #3a5a80; }
.footer-tagline { font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer-segments { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.footer-segments span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #23466f; margin-top: 40px; padding-top: 20px; font-size: 13px; color: #8ea7c0; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.wa-float svg { width: 28px; height: 28px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Responsive */
@media (max-width: 1024px) {
	.grid-4, .trust { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 18px; display: none; }
	.main-nav.is-open { display: flex; }
	.main-nav ul { flex-direction: column; }
	.lang-switch { border-left: 0; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); }
	.hero .container, .page-hero .container, .product-layout, .contact-layout { grid-template-columns: 1fr; }
	.page-hero .art { display: none; }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.banner { flex-direction: column; align-items: flex-start; padding: 28px; }
}
@media (max-width: 640px) {
	.container { padding: 0 16px; }
	.section { padding: 44px 0; }
	.grid-2, .grid-3, .grid-4, .trust, .footer-grid, .wpcf7 .form-grid { grid-template-columns: 1fr; }
	.hero .container { padding-top: 48px; padding-bottom: 48px; }
	.brand small { display: none; }
	.form-card { padding: 22px; }
	.spec-list li { flex-direction: column; gap: 2px; }
}
