/*
Theme Name: Syahril Pajak
Theme URI: https://syahrilanwar.id
Author: syahrilanwar.id
Description: Block theme untuk konsultan pajak: hero, layanan, keunggulan, artikel, FAQ, CTA WhatsApp, dan disclaimer. Semua bagian bisa diedit lewat Tampilan > Editor.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.5.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: syahril-pajak
Tags: block-theme, full-site-editing, one-column, custom-colors, custom-logo, editor-style, blog, business
*/

/* Header */
.sa-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.admin-bar .sa-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sa-header { top: 46px; } }

/* Link di section gelap */
.has-primary-background-color a:not(.wp-element-button),
.has-contrast-background-color a:not(.wp-element-button) {
	color: inherit;
}

/* Kartu (Group > style "Kartu") */
.is-style-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	padding: var(--wp--preset--spacing--40);
	box-shadow: 0 6px 24px rgba(11, 58, 102, 0.06);
	transition: transform .2s ease, box-shadow .2s ease;
	height: 100%;
}
.is-style-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(11, 58, 102, 0.12);
}

/* Label kecil di atas judul */
.sa-eyebrow {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--secondary);
}

/* Ikon emoji pada kartu layanan */
.sa-icon {
	font-size: 2rem;
	line-height: 1;
	margin-bottom: .5rem;
}

/* Angka statistik */
.sa-stat {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--wp--preset--color--secondary);
	margin: 0;
}

/* FAQ */
.wp-block-details {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--base);
}
.wp-block-details + .wp-block-details { margin-top: .75rem; }
.wp-block-details summary {
	font-weight: 700;
	cursor: pointer;
	color: var(--wp--preset--color--primary);
}
.wp-block-details[open] summary { margin-bottom: .5rem; }

/* Kartu artikel */
.sa-post-card .wp-block-post-featured-image img {
	border-radius: 10px;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

/* Disclaimer */
.sa-disclaimer {
	font-size: var(--wp--preset--font-size--small);
	opacity: .8;
	border-top: 1px solid rgba(255, 255, 255, .15);
	padding-top: var(--wp--preset--spacing--30);
}

/* Tombol WhatsApp melayang */
.sa-wa-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: #25d366;
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	padding: .8rem 1.1rem;
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.sa-wa-float:hover { background: #1ebe5b; }
.sa-wa-float svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 600px) { .sa-wa-float span { display: none; } }

/* Teks di dalam kartu selalu gelap, termasuk di section berwarna */
.is-style-card { color: var(--wp--preset--color--contrast); }

/* ===== v1.2: hero dengan foto & elemen konversi ===== */
.sa-hero { overflow: hidden; position: relative; }
.sa-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
	background-size: 22px 22px;
}
.sa-hero-cols { position: relative; }
.sa-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.02em; line-height: 1.12; }
.sa-hero h1 mark { background: transparent; color: var(--wp--preset--color--secondary); }
.sa-hero-text { padding-bottom: var(--wp--preset--spacing--70); }
.sa-pill {
	display: inline-block; margin: 0; padding: .35rem .9rem; border-radius: 999px;
	background: rgba(201,162,39,.15); border: 1px solid rgba(201,162,39,.5);
	color: var(--wp--preset--color--secondary); font-weight: 700; font-size: .85rem; letter-spacing: .02em;
}
.sa-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #dbe5f0; max-width: 34em; }
.sa-hero .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.7); background: transparent; }
.sa-hero .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--primary); }
.sa-btn-wa .wp-block-button__link { background: #25d366; color: #fff; }
.sa-btn-wa .wp-block-button__link:hover { background: #1ebe5b; color: #fff; }
.sa-btn-wa .wp-block-button__link::before {
	content: ""; display: inline-block; width: 1.1em; height: 1.1em; margin-right: .5em; vertical-align: -.18em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3C8.8 3 3 8.7 3 15.8c0 2.5.7 4.9 2 7L3 29l6.4-2a13.2 13.2 0 0 0 6.6 1.7c7.2 0 13-5.7 13-12.8S23.2 3 16 3z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3C8.8 3 3 8.7 3 15.8c0 2.5.7 4.9 2 7L3 29l6.4-2a13.2 13.2 0 0 0 6.6 1.7c7.2 0 13-5.7 13-12.8S23.2 3 16 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sa-trust { list-style: none; padding: 0; margin-top: var(--wp--preset--spacing--40); display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .92rem; color: #dbe5f0; }
.sa-trust li::before { content: "✓"; color: var(--wp--preset--color--secondary); font-weight: 800; margin-right: .4rem; }

.sa-hero-visual { position: relative; align-self: flex-end; }
.sa-hero-visual::before {
	content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
	width: min(88%, 440px); aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle at 50% 40%, #e9d48a 0%, var(--wp--preset--color--secondary) 60%, #a8841a 100%);
	box-shadow: 0 0 0 18px rgba(201,162,39,.12);
}
.sa-portrait { position: relative; margin: 0 auto !important; max-width: 430px; }
.sa-portrait img { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.sa-float-card {
	position: absolute; left: 0; bottom: 18%;
	background: #fff; color: var(--wp--preset--color--contrast);
	border-radius: 12px; padding: .7rem 1rem !important; box-shadow: 0 12px 30px rgba(0,0,0,.25);
	border-left: 4px solid var(--wp--preset--color--secondary);
}
.sa-float-card > * { margin: 0 !important; }
.sa-float-name { font-weight: 800; color: var(--wp--preset--color--primary); }
.sa-float-role { font-size: .85rem; color: var(--wp--preset--color--muted); }
.sa-float-chip {
	position: absolute; right: 0; top: 18%; margin: 0;
	background: rgba(15,27,45,.85); color: #fff; font-size: .82rem; font-weight: 600;
	padding: .45rem .85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
}
.sa-float-chip::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #25d366; margin-right: .45rem; box-shadow: 0 0 0 3px rgba(37,211,102,.3); }
@media (max-width: 781px) {
	.sa-hero-text { padding-bottom: 0; }
	.sa-portrait { max-width: 300px; }
	.sa-hero-visual::before { width: 78%; }
	.sa-float-card { left: 4%; bottom: 10%; }
	.sa-float-chip { right: 2%; top: 10%; }
	.sa-header .wp-block-buttons { display: none; }
}

/* Masalah */
.sa-pain { border-top: 4px solid var(--wp--preset--color--secondary); }
.sa-pain h3 { font-size: 1.15rem; }

/* Tentang */
.sa-quote-card {
	background: var(--wp--preset--color--primary); color: #fff; border-radius: 18px;
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50) !important; position: relative; overflow: hidden;
}
.sa-quote-card::after { content: "”"; position: absolute; right: .2em; bottom: -.35em; font-family: Georgia, serif; font-size: 12rem; line-height: 1; color: rgba(201,162,39,.25); }
.sa-quote { font-family: var(--wp--preset--font-family--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.35; margin: 0; }
.sa-quote-by { color: var(--wp--preset--color--secondary); font-weight: 700; margin-top: 1rem; }
.sa-quote-by::before { content: "— "; }
.sa-checklist { list-style: none; padding: 0; }
.sa-checklist li { padding-left: 1.8rem; position: relative; margin-bottom: .6rem; }
.sa-checklist li::before {
	content: "✓"; position: absolute; left: 0; top: .1em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
	background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--contrast);
	font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.sa-cred { color: var(--wp--preset--color--muted); border-left: 3px solid var(--wp--preset--color--border); padding-left: .75rem; }
.sa-deadline { opacity: .85; margin-top: var(--wp--preset--spacing--40); }

/* ===== v1.3: grid kartu & UX ponsel ===== */
.sa-grid { display: grid; gap: 1.25rem; }
.sa-grid > * { margin: 0 !important; }
.sa-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sa-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .sa-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Bar aksi bawah (HP) */
.sa-mobile-bar { display: none; }

@media (max-width: 781px) {
	/* tipografi & ritme */
	body { font-size: 1rem; }
	h2.wp-block-heading { font-size: 1.55rem; line-height: 1.25; }
	.sa-eyebrow { font-size: .75rem; margin-bottom: .25rem; }

	/* semua tombol: lebar penuh, target sentuh ≥ 48px */
	.wp-block-buttons { flex-direction: column; align-items: stretch !important; gap: .6rem; }
	.wp-block-buttons > .wp-block-button { width: 100%; }
	.wp-block-buttons .wp-block-button__link { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 50px; text-align: center; font-size: 1rem; }
	.sa-header .wp-block-buttons { display: none; }

	/* hero */
	.sa-hero { padding-top: 1.75rem !important; }
	.sa-hero h1 { font-size: 2rem; margin-top: .75rem; }
	.sa-lead { font-size: 1rem; }
	.sa-pill { font-size: .75rem; }
	.sa-trust { display: grid; gap: .35rem; font-size: .88rem; margin-top: 1rem; }
	.sa-hero-cols { gap: 1.25rem !important; }
	.sa-hero-visual { margin-top: -.5rem; }
	.sa-portrait { max-width: 270px; }
	.sa-hero-visual::before { width: 250px; box-shadow: 0 0 0 12px rgba(201,162,39,.12); }
	.sa-float-card { left: 4%; transform: none; bottom: 12%; max-width: 62%; padding: .5rem .75rem !important; }
	.sa-float-name { font-size: .92rem; }
	.sa-float-role { font-size: .78rem; }
	.sa-float-chip { display: none; }
	.wp-block-columns > .wp-block-column { width: 100%; }

	/* kartu masalah: ringkas */
	.sa-grid-2 { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
	.sa-pain { padding: 1rem 1.1rem !important; }
	.sa-pain h3 { font-size: 1.02rem; margin-bottom: .25rem; }
	.sa-pain p { font-size: .9rem; margin: 0; }

	/* layanan: 2 kolom ringkas */
	.sa-services { gap: .65rem; }
	.sa-services .is-style-card { padding: .9rem !important; }
	.sa-services .sa-icon { font-size: 1.5rem; margin-bottom: .25rem; }
	.sa-services h3 { font-size: .95rem; line-height: 1.3; margin: 0 0 .3rem; }
	.sa-services p:not(.sa-icon) { font-size: .8rem; line-height: 1.45; margin: 0; color: var(--wp--preset--color--muted); }

	/* langkah kerja: 2 × 2 */
	.sa-steps { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem .9rem !important; }
	.sa-steps > .wp-block-column { margin: 0 !important; }
	.sa-steps .sa-stat { font-size: 1.8rem; }
	.sa-steps h3 { font-size: .98rem; margin: .1rem 0 .25rem; }
	.sa-steps p:not(.sa-stat) { font-size: .82rem; line-height: 1.45; margin: 0; }

	/* tentang */
	.sa-quote-card { padding: 1.5rem 1.25rem !important; }
	.sa-quote { font-size: 1.35rem; }

	/* teaser kalkulator */
	.sa-teaser .wp-block-columns { gap: 1rem !important; }
	.sa-teaser h2 { margin-top: 0; }

	/* artikel: kartu horizontal ringkas */
	.sa-post-card { display: grid !important; grid-template-columns: 96px minmax(0, 1fr); column-gap: .85rem; row-gap: .15rem; padding: .75rem !important; align-items: start; }
	.sa-post-card > * { margin: 0 !important; max-width: none !important; }
	.sa-post-card > :first-child { grid-column: 1; grid-row: 1 / span 4; aspect-ratio: 1; width: 96px; border-radius: 8px; overflow: hidden; }
	.sa-post-card > :first-child img { aspect-ratio: 1 !important; height: 100%; }
	.sa-post-card > :not(:first-child) { grid-column: 2; }
	.sa-post-card .wp-block-post-title, .sa-post-card h3 { font-size: .98rem !important; line-height: 1.3; }
	.sa-post-card .wp-block-post-excerpt, .sa-post-card > p:not(:first-of-type):not(:last-child) { display: none; }
	.sa-post-card .wp-block-post-terms, .sa-post-card .wp-block-post-date { font-size: .75rem; }

	/* FAQ */
	.wp-block-details { padding: .85rem 1rem; }
	.wp-block-details summary { font-size: .95rem; }

	/* bar aksi bawah */
	.sa-wa-float { display: none; }
	.sa-mobile-bar {
		display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
		padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
		background: rgba(255,255,255,.96); border-top: 1px solid var(--wp--preset--color--border);
		box-shadow: 0 -6px 20px rgba(11,58,102,.08);
		-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	}
	.sa-mobile-bar a {
		display: flex; align-items: center; justify-content: center; gap: .45rem;
		min-height: 48px; border-radius: 10px; font-weight: 700; font-size: .95rem; text-decoration: none !important;
	}
	.sa-mobile-bar svg { width: 20px; height: 20px; flex: none; }
	.sa-mobile-bar__main { flex: 1; background: #25d366; color: #fff !important; }
	.sa-mobile-bar__main svg { fill: currentColor; }
	.sa-mobile-bar__alt { flex: 0 0 auto; padding: 0 .9rem; border: 1px solid var(--wp--preset--color--border); color: var(--wp--preset--color--primary) !important; background: #fff; }
	body:has(.sa-mobile-bar) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ===== v1.4: fitur dari syahrilanwar.id ===== */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }
.sa-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .sa-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Top bar */
.sa-topbar p { margin: 0; }
.sa-topbar a { color: var(--wp--preset--color--secondary) !important; text-decoration: none; }
.sa-topbar a:hover { text-decoration: underline; }

/* Tag keahlian & sosial di hero */
.sa-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--wp--preset--spacing--40); }
.sa-tags span { font-size: .8rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); color: #dbe5f0; }
.sa-tags-light span { border-color: var(--wp--preset--color--border); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--primary); }
.sa-social { gap: .5rem !important; margin-top: var(--wp--preset--spacing--40) !important; }
.sa-social .wp-social-link { font-size: 22px; opacity: .85; }
.sa-social .wp-social-link:hover { opacity: 1; }

/* Strip kredensial */
.sa-stats-wrap { border-bottom: 1px solid var(--wp--preset--color--border); }
.sa-stats { text-align: center; }
.sa-stat-item { padding: .5rem; }
.sa-stat-item + .sa-stat-item { border-left: 1px solid var(--wp--preset--color--border); }
.sa-stat-item > * { margin: 0 !important; }
.sa-stat-num { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; color: var(--wp--preset--color--primary); line-height: 1.2; }
.sa-stat-label { font-size: .85rem; color: var(--wp--preset--color--muted); margin-top: .3rem !important; line-height: 1.4; }

/* Masalah + solusi */
.sa-pain-num { font-size: .85rem; font-weight: 800; color: var(--wp--preset--color--secondary); margin: 0 0 .2rem; letter-spacing: .08em; }
.sa-solution { background: var(--wp--preset--color--surface); border-radius: 8px; padding: .65rem .8rem; font-size: .92rem; margin-top: .75rem; }
.sa-solution strong { color: var(--wp--preset--color--primary); }

/* Layanan */
.sa-svc { display: flex; flex-direction: column; }
.sa-svc .sa-more { margin-top: auto !important; padding-top: .5rem; }
.sa-more a { font-weight: 700; text-decoration: none; color: var(--wp--preset--color--primary); }
.sa-more a:hover { color: var(--wp--preset--color--secondary); }

/* Alasan */
.sa-reason { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 1.25rem !important; }
.sa-reason h3 { font-size: 1.1rem; margin: .25rem 0 .4rem; }
.sa-reason p { color: #c9d4e2; margin: 0; font-size: .95rem; }
.sa-reason .sa-reason-icon { font-size: 1.75rem; color: inherit; }
.sa-midcta { margin-top: var(--wp--preset--spacing--60) !important; padding: var(--wp--preset--spacing--50) !important; border-radius: 16px; background: var(--wp--preset--color--primary); border: 1px solid rgba(201,162,39,.4); }
.sa-midcta h3 { margin-top: 0; }

/* Kredensial */
.sa-cred-card h3 { font-size: 1.1rem; }
.sa-timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--wp--preset--color--border); }
.sa-timeline li { position: relative; padding: 0 0 .9rem 1rem; font-size: .92rem; line-height: 1.5; color: var(--wp--preset--color--muted); }
.sa-timeline li strong { color: var(--wp--preset--color--contrast); }
.sa-timeline li::before { content: ""; position: absolute; left: -7px; top: .35em; width: 12px; height: 12px; border-radius: 50%; background: var(--wp--preset--color--secondary); border: 2px solid #fff; }
.sa-license { margin-top: 1rem !important; padding: .7rem .8rem; background: var(--wp--preset--color--surface); border-radius: 8px; }

/* Studi kasus */
.sa-case-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--primary); background: rgba(201,162,39,.2); padding: .2rem .6rem; border-radius: 6px; margin: 0; }
.sa-testi h3 { font-size: 1.1rem; margin: .6rem 0 .3rem; }
.sa-testi-text { font-size: .95rem; }
.sa-testi-by { font-size: .85rem; color: var(--wp--preset--color--muted); border-top: 1px solid var(--wp--preset--color--border); padding-top: .6rem; margin-top: auto !important; }
.sa-testi { display: flex; flex-direction: column; }

/* Kontak */
.sa-contact-list { list-style: none; padding: 0; }
.sa-contact-list li { display: flex; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; color: #dbe5f0; }
.sa-contact-list a { color: #fff; text-decoration: none; font-weight: 600; }
.sa-ci { flex: none; width: 1.5rem; }
.sa-form-card { background: #fff; color: var(--wp--preset--color--contrast); border-radius: 16px; padding: var(--wp--preset--spacing--50) !important; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.sa-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.sa-form-field { margin-bottom: .9rem; }
.sa-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.sa-form label span { color: #c0392b; }
.sa-form input, .sa-form select, .sa-form textarea {
	width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: inherit; min-height: 46px; box-sizing: border-box;
}
.sa-form textarea { resize: vertical; }
.sa-form input:focus, .sa-form select:focus, .sa-form textarea:focus { outline: 3px solid rgba(201,162,39,.5); border-color: var(--wp--preset--color--secondary); }
.sa-form [aria-invalid="true"] { border-color: #c0392b; }
.sa-form-error { color: #c0392b; font-size: .82rem; margin: .25rem 0 0; }
.sa-form-submit { width: 100%; min-height: 50px; border: 0; cursor: pointer; background: #25d366 !important; color: #fff !important; font-size: 1rem; }
.sa-form-submit:hover { background: #1ebe5b !important; }
.sa-form-note { font-size: .8rem; color: var(--wp--preset--color--muted); margin: .6rem 0 0; }

/* Footer */
.sa-foot-name { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: .4rem; }
.sa-foot-links { list-style: none; padding: 0; }
.sa-foot-links li { padding: .2rem 0; }
footer a { color: #dbe5f0; text-decoration: none; }
footer a:hover { color: var(--wp--preset--color--secondary); }

@media (max-width: 781px) {
	.sa-topbar p { font-size: .75rem; line-height: 1.4; }
	.sa-stats { gap: 1rem .5rem; }
	.sa-stat-item + .sa-stat-item { border-left: 0; }
	.sa-stat-item:nth-child(even) { border-left: 1px solid var(--wp--preset--color--border); }
	.sa-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
	.sa-reason { padding: .9rem !important; }
	.sa-reason h3 { font-size: .98rem; }
	.sa-reason p { font-size: .82rem; line-height: 1.45; }
	.sa-midcta { padding: 1.25rem !important; }
	.sa-midcta h3 { font-size: 1.15rem; }
	.sa-solution { font-size: .85rem; }
	.sa-svc .sa-more { font-size: .85rem; }
	.sa-cred-grid, .sa-grid-3:not(.sa-services) { grid-template-columns: minmax(0, 1fr); }
	.sa-form-row { grid-template-columns: 1fr; }
	.sa-form-card { padding: 1.1rem !important; }
	.sa-hero .sa-social { justify-content: flex-start; }
}

@media (max-width: 781px) {
	.sa-midcta .wp-block-button__link { font-size: .95rem; line-height: 1.35; padding: .75rem 1rem; }
	.sa-pain > p:not(.sa-pain-num):not(.sa-solution) { font-size: .88rem; }
}

/* ===== v1.5: header melayang ===== */
:root { --sa-hh: 68px; --sa-top: calc(12px + var(--wp-admin--admin-bar--height, 0px)); }
header.wp-block-template-part { display: contents; }
.sa-header {
	position: sticky !important; top: var(--sa-top); z-index: 1000;
	width: min(1200px, calc(100% - 24px)) !important; max-width: none !important;
	margin: 12px auto 0 !important; padding: .5rem 1rem !important; box-sizing: border-box;
	background: transparent !important; border: 0 !important; border-radius: 18px;
	transition: padding .25s ease, top .25s ease;
}
.sa-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: rgba(255, 255, 255, .86);
	-webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
	border: 1px solid rgba(255, 255, 255, .7);
	box-shadow: 0 8px 30px rgba(11, 58, 102, .12);
	transition: box-shadow .25s ease, background .25s ease;
}
.sa-scrolled .sa-header { padding-top: .35rem !important; padding-bottom: .35rem !important; }
.sa-scrolled .sa-header::before { box-shadow: 0 12px 36px rgba(11, 58, 102, .2); background: rgba(255, 255, 255, .94); }
.sa-header > .alignwide { max-width: none !important; }
.home .sa-header { margin-bottom: calc(-1 * var(--sa-hh) - 12px) !important; }
.home .sa-hero { padding-top: calc(var(--wp--preset--spacing--70) + var(--sa-hh) + 12px) !important; }
@media (max-width: 781px) {
	:root { --sa-hh: 60px; --sa-top: calc(8px + var(--wp-admin--admin-bar--height, 0px)); }
	.sa-header { width: calc(100% - 16px) !important; margin-top: 8px !important; border-radius: 14px; padding: .4rem .75rem !important; }
	.home .sa-header { margin-bottom: calc(-1 * var(--sa-hh) - 8px) !important; }
	.home .sa-hero { padding-top: calc(1.5rem + var(--sa-hh) + 8px) !important; }
}

/* Tombol mode siang/malam */
.sa-theme-toggle {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 40px; height: 40px; border-radius: 50%; cursor: pointer; padding: 0;
	border: 1px solid var(--wp--preset--color--border); background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary); transition: transform .2s ease, background .2s ease;
}
.sa-theme-toggle:hover { transform: rotate(-12deg); }
.sa-theme-toggle:focus-visible { outline: 3px solid var(--wp--preset--color--secondary); outline-offset: 2px; }
.sa-theme-toggle svg { width: 20px; height: 20px; }
.sa-icon-moon { fill: currentColor; }
.sa-icon-sun { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; display: none; }
.sa-icon-sun circle { fill: currentColor; stroke: none; }
[data-theme="dark"] .sa-icon-moon { display: none; }
[data-theme="dark"] .sa-icon-sun { display: block; }

/* ===== v1.5: mode malam ===== */
html[data-theme="dark"], html[data-theme="dark"] body {
	color-scheme: dark;
	--wp--preset--color--base: #0b1220;
	--wp--preset--color--surface: #101a2c;
	--wp--preset--color--border: #22324b;
	--wp--preset--color--contrast: #e5ecf6;
	--wp--preset--color--primary: #9cc3f0;
	--wp--preset--color--secondary: #d9b23a;
	--wp--preset--color--muted: #9aabc1;
	--sa-navy-bg: #0f2c4f;
	--sa-card: #111c2e;
	--sa-input: #0d1626;
	--sa-input-border: #2b3c58;
}
html[data-theme="dark"] body { background: #0b1220; color: #e5ecf6; }
html[data-theme="dark"] .has-primary-background-color { background-color: var(--sa-navy-bg) !important; }
html[data-theme="dark"] .has-contrast-background-color { background-color: #060b14 !important; }
html[data-theme="dark"] .has-base-color { color: #fff !important; }
html[data-theme="dark"] .has-base-background-color { background-color: #0b1220 !important; }
html[data-theme="dark"] .sa-header::before { background: rgba(13, 22, 38, .82); border-color: rgba(255, 255, 255, .08); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
html[data-theme="dark"].sa-scrolled .sa-header::before { background: rgba(13, 22, 38, .94); }
html[data-theme="dark"] .wp-block-navigation__responsive-container.is-menu-open { background: #0b1220 !important; color: #e5ecf6 !important; }

/* tombol */
html[data-theme="dark"] .wp-block-button:not(.is-style-outline):not(.sa-btn-wa) > .wp-block-button__link,
html[data-theme="dark"] button.wp-element-button:not(.sa-form-submit) { color: #0f1b2d; }
html[data-theme="dark"] .is-style-outline > .wp-block-button__link { color: #e5ecf6; border-color: rgba(229, 236, 246, .6); }

/* kartu & permukaan berwarna tetap */
html[data-theme="dark"] .is-style-card { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .sa-float-card { background: var(--sa-card); }
html[data-theme="dark"] .sa-midcta,
html[data-theme="dark"] .sa-quote-card { background: var(--sa-navy-bg); }
html[data-theme="dark"] .sa-form-card { background: var(--sa-card); color: #e5ecf6; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .sa-form input, html[data-theme="dark"] .sa-form select, html[data-theme="dark"] .sa-form textarea { background: var(--sa-input); border-color: var(--sa-input-border); }
html[data-theme="dark"] .sa-timeline li::before { border-color: var(--wp--preset--color--base); }
html[data-theme="dark"] .sa-mobile-bar { background: rgba(11, 18, 32, .94); border-top-color: #22324b; }
html[data-theme="dark"] .sa-mobile-bar__alt { background: #111c2e; }
html[data-theme="dark"] .sa-stats-wrap { border-color: #22324b; }
html[data-theme="dark"] img { filter: none; }

/* kalkulator */
html[data-theme="dark"] .sa-calc-form,
html[data-theme="dark"] .sa-calc-tab,
html[data-theme="dark"] .sa-seg span { background: var(--sa-card); border-color: var(--sa-input-border); }
html[data-theme="dark"] .sa-calc select,
html[data-theme="dark"] .sa-calc input[type="text"],
html[data-theme="dark"] .sa-calc input[type="number"],
html[data-theme="dark"] .sa-calc input[type="search"].sa-kop-search { background-color: var(--sa-input); border-color: var(--sa-input-border); }
html[data-theme="dark"] .sa-calc-tab[aria-selected="true"],
html[data-theme="dark"] .sa-seg input:checked + span { background: var(--wp--preset--color--secondary); border-color: var(--wp--preset--color--secondary); color: #0f1b2d; }
html[data-theme="dark"] .sa-calc-total { background: var(--sa-navy-bg); }
html[data-theme="dark"] .sa-calc-reset { border-color: var(--sa-input-border); }
html[data-theme="dark"] .sa-calc-table th, html[data-theme="dark"] .sa-calc-table td { border-color: #26364f; }

@media (prefers-reduced-motion: reduce) {
	.sa-header, .sa-header::before, .sa-theme-toggle { transition: none; }
}
.admin-bar .sa-header { top: var(--sa-top) !important; }
