/*
 * Global Pratama — gaya yang tidak bisa diekspresikan di theme.json:
 * block styles (panel "Styles" di editor), header sticky, dialog, dan detail kecil.
 * Warna/font/ukuran selalu memakai preset theme.json (var(--wp--preset--…)).
 */

:root {
	--gp-line: var(--wp--preset--color--line);
	--gp-icon-diagonal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M5 19 19 5M5 5h14v14'/%3E%3C/svg%3E");
	--gp-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='square'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E");
	--gp-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='square'%3E%3Cpath d='M5 12l4 4L19 6'/%3E%3C/svg%3E");
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

html:has(dialog[open]) {
	overflow: hidden;
}

body {
	-webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
	font-family: inherit;
}

::selection {
	background: var(--wp--preset--color--global-yellow);
	color: var(--wp--preset--color--ink);
}

:focus-visible {
	outline: 2px solid #d2561e;
	outline-offset: 4px;
}

.gp-icon {
	flex-shrink: 0;
	width: 1.1em;
	height: 1.1em;
}

/* ---------- Header (template part) ---------- */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 30;
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

.gp-header {
	border-bottom: 1px solid #d6d7d97a;
}

.gp-header .wp-block-navigation-item__content {
	position: relative;
	padding-block: 6px;
}

.gp-header .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--wp--preset--color--amber);
	transition: width 0.2s;
}

.gp-header .wp-block-navigation-item__content:hover {
	text-decoration: none;
}

.gp-header .wp-block-navigation-item__content:hover::after {
	width: 100%;
}

.gp-header .wp-block-navigation__container {
	flex-wrap: nowrap;
	white-space: nowrap;
}

.gp-header .gp-header__cta .wp-block-button__link {
	white-space: nowrap;
}

/* Menu bertambah (mis. "Berita"): CTA disembunyikan lebih awal agar menu tetap satu baris. */
@media (max-width: 1100px) {
	.gp-header .gp-header__cta {
		display: none;
	}
}

/* ---------- Block styles: paragraph "Eyebrow" ---------- */

.is-style-eyebrow,
.is-style-eyebrow-square,
.is-style-eyebrow-dot,
.gp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Block-level: tetap mengikuti alignment layout (inline-flex mengabaikan margin auto). */
.is-style-eyebrow,
.is-style-eyebrow-square,
.is-style-eyebrow-dot {
	display: flex;
}

.is-style-eyebrow-square::before,
.gp-eyebrow--square::before {
	content: "";
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	background: var(--wp--preset--color--amber);
}

.is-style-eyebrow-dot::before {
	content: "";
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--global-yellow);
	box-shadow: 0 0 0 4px #fbb31612;
}

.has-global-yellow-background-color .is-style-eyebrow-square::before {
	background: var(--wp--preset--color--ink);
}

/* ---------- Block styles: button "Panah" & "Tautan garis bawah" ---------- */

.wp-block-button.is-style-arrow .wp-block-button__link,
.gp-button-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.75rem;
	min-height: 52px;
	text-align: left;
	text-decoration: none;
}

.wp-block-button.is-style-arrow .wp-block-button__link::after,
.wp-block-button.is-style-text-link .wp-block-button__link::after {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--gp-icon-diagonal) center / contain no-repeat;
	mask: var(--gp-icon-diagonal) center / contain no-repeat;
	transition: transform 0.2s;
}

.wp-block-button.is-style-arrow .wp-block-button__link:hover::after,
.gp-button-arrow:hover .gp-icon {
	transform: translate(2px, -2px);
}

.gp-button-arrow .gp-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.2s;
}

.gp-button-arrow.is-yellow {
	background: var(--wp--preset--color--global-yellow);
	color: var(--wp--preset--color--ink);
}

.gp-button-arrow.is-yellow:hover,
.wp-block-button.is-style-arrow .has-global-yellow-background-color:hover {
	background: #fdc94a;
}

.wp-block-button.is-style-text-link .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 1.5rem;
	padding: 0 0 7px;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-weight: 600;
}

.wp-block-button.is-style-text-link .wp-block-button__link::after {
	width: 16px;
	height: 16px;
}

.wp-block-button.is-style-text-link .wp-block-button__link:hover {
	background: transparent;
	text-decoration: none;
}

.wp-block-button.is-style-text-link .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

/* ---------- Block styles: heading "Sorot" ---------- */

.is-style-mark-underline mark {
	position: relative;
	z-index: 0;
	background: none !important;
	color: inherit;
}

.is-style-mark-underline mark::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: 0;
	right: 0;
	bottom: 0.08em;
	height: 0.14em;
	background: var(--wp--preset--color--global-yellow);
}

.is-style-mark-outline mark {
	background: none !important;
	color: transparent !important;
	-webkit-text-stroke: 1.3px currentColor;
	-webkit-text-stroke-color: var(--wp--preset--color--ink);
}

/* ---------- Block styles: group "Label section" ---------- */

.wp-block-group.is-style-section-label {
	gap: 24px;
	margin-bottom: var(--wp--preset--spacing--60);
	padding-top: 19px;
	border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.wp-block-group.is-style-section-label > p {
	margin: 0;
}

@media (max-width: 900px) {
	.wp-block-group.is-style-section-label > p:nth-child(2) {
		display: none;
	}
}

/* ---------- Block styles: columns "Kolom bergaris" ---------- */

.wp-block-columns.is-style-divided {
	gap: 0;
}

.wp-block-columns.is-style-divided > .wp-block-column {
	padding: clamp(22px, 2.4vw, 34px) clamp(20px, 2.2vw, 30px);
	border-left: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.wp-block-columns.is-style-divided > .wp-block-column:first-child {
	border-left: 0;
}

@media (max-width: 781px) {
	.wp-block-columns.is-style-divided > .wp-block-column {
		border-left: 0;
		border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	}

	.wp-block-columns.is-style-divided > .wp-block-column:first-child {
		border-top: 0;
	}
}

/* ---------- Block styles: list "Daftar centang" & image "Foto redup" ---------- */

.wp-block-list.is-style-checks {
	padding-left: 0;
	list-style: none;
}

.wp-block-list.is-style-checks li {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 11px;
}

.wp-block-list.is-style-checks li::before {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	background: #c9521c;
	-webkit-mask: var(--gp-icon-check) center / contain no-repeat;
	mask: var(--gp-icon-check) center / contain no-repeat;
}

.wp-block-image.is-style-muted img,
.wp-block-media-text.is-style-muted img {
	filter: grayscale(1);
}

/* ---------- Komponen kecil dari pola ---------- */

.gp-arrow-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 31px;
	height: 31px;
	border: 1px solid #d7d8da;
	transition: background 0.2s, color 0.2s;
}

.gp-arrow-box .gp-icon {
	width: 16px;
	height: 16px;
}

/* Hero */
.gp-hero h1 {
	margin-block: clamp(25px, 3vw, 35px) 25px;
}

.gp-hero h1 mark {
	background: none !important;
}

/* Angka statistik: angka besar + simbol kecil berwarna amber */
.gp-stat {
	margin: 0;
	font-size: clamp(44px, 5vw, 70px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.015em;
}

.gp-stat mark {
	vertical-align: top;
	background: none !important;
	font-size: 0.4em;
}

/* Kartu janji layanan */
.gp-promises h3 {
	text-transform: uppercase;
}

/* Kontak kuning */
.gp-contact h2 {
	font-size: clamp(52px, 7vw, 100px);
	line-height: 0.95;
}

/* Footer */
.gp-footer a:hover {
	color: var(--wp--preset--color--global-yellow);
	text-decoration: none;
}

.gp-footer .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--global-yellow);
}

/* Kartu berita (Query Loop) */
.gp-news-card {
	height: 100%;
	padding-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.gp-news-card .wp-block-post-featured-image {
	width: 100%;
	overflow: hidden;
	background: #27282a;
}

.gp-news-card .wp-block-post-featured-image img {
	transition: transform 0.4s ease;
}

.gp-news-card:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

.gp-news-card .wp-block-post-title {
	margin: 0;
	line-height: 1.15;
}

.gp-news-card .wp-block-post-title a:hover {
	text-decoration: none;
	color: #b8491a;
}

.gp-news-card .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 0.75em;
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	border-bottom: 1px solid currentColor;
}

.gp-news .wp-block-query-pagination a:hover {
	color: #b8491a;
}

/* Video perusahaan */
.gp-film .wp-block-embed__wrapper {
	border: 1px solid #7a7b7d;
	background: var(--wp--preset--color--olive);
}

/* Editor: pesan saat konten CMS kosong */
.gp-empty-notice {
	padding: 16px 20px;
	border: 1px dashed currentColor;
	font-size: 14px;
}

/* ---------- Dialog (popup) bersama ---------- */

.gp-dialog {
	width: min(740px, calc(100% - 36px));
	max-height: calc(100dvh - 64px);
	margin: auto;
	padding: 0;
	border: 1px solid #555658;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	text-align: left;
}

.gp-dialog--wide {
	width: min(1160px, calc(100% - 48px));
}

.gp-dialog::backdrop {
	background: #131416d6;
	backdrop-filter: blur(5px);
}

.gp-dialog__inner {
	position: relative;
	padding: clamp(25px, 3.5vw, 42px);
}

.gp-dialog__close-form {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	justify-content: flex-end;
	height: 0;
}

.gp-dialog__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: -18px -18px 0 0;
	border: 1px solid var(--gp-line);
	background: var(--wp--preset--color--paper);
	color: inherit;
	cursor: pointer;
}

.gp-dialog__close:hover {
	background: var(--wp--preset--color--global-yellow);
}

.gp-dialog .gp-eyebrow {
	margin: 0;
	padding-right: 40px;
}

.gp-dialog__title {
	margin: 18px 0 24px;
	padding-right: 42px;
	font-size: clamp(30px, 4.4vw, 64px);
	text-transform: uppercase;
}

.gp-dialog__banner {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	background: #e5e6e8;
}

.gp-dialog__portrait {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: contain;
	background: #e5e6e8;
}

.gp-dialog__body {
	margin-top: 25px;
	color: #666769;
	line-height: 1.9;
}

.gp-dialog__body p {
	margin: 0 0 1em;
}

.gp-dialog__gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-top: 25px;
}

.gp-dialog__gallery img {
	width: 100%;
	height: 220px;
	object-fit: contain;
	background: #e5e6e8;
}

.gp-dialog__gallery-wrap {
	padding-top: 18px;
	border-top: 1px solid var(--gp-line);
}

.gp-dialog__gallery-title {
	margin: 0 0 16px;
	font-size: clamp(24px, 2.2vw, 30px);
}

.gp-dialog__gallery-title span {
	color: #c9521c;
}

.gp-dialog__gallery--scroll {
	display: grid;
	grid-auto-columns: calc((100% - 36px) / 4);
	grid-auto-flow: column;
	grid-template-columns: none;
	gap: 12px;
	margin-top: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.gp-dialog__gallery--scroll img {
	height: auto;
	aspect-ratio: 16 / 9;
	scroll-snap-align: start;
}

.gp-dialog__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 24px;
}

.gp-dialog__footer .gp-eyebrow {
	color: var(--wp--preset--color--muted);
}

@media (max-width: 600px) {
	.gp-dialog,
	.gp-dialog--wide {
		width: calc(100% - 24px);
		max-height: calc(100dvh - 24px);
	}

	.gp-dialog__close {
		margin: -9px -9px 0 0;
	}

	.gp-dialog__gallery {
		grid-template-columns: 1fr;
	}

	.gp-dialog__gallery--scroll {
		grid-auto-columns: calc((100% - 12px) / 2);
	}

	.gp-dialog__footer {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

/* Band CTA memakai gradasi kuning → oranye seperti panah pada logo */
.gp-contact.has-global-yellow-background-color {
	background: var(--wp--preset--gradient--brand-sweep);
}

