/* ==========================================================================
   PU BANGUN theme styles
   Design tokens carried over from the old Elementor global Kit.
   ========================================================================== */

:root {
	--color-primary: #3c449c;
	--color-secondary: #54595F;
	--color-text: #7A7A7A;
	--color-accent: #ec2c34;
	--color-dark: #040404;
	--color-white: #ffffff;
	--color-border: #e5e5e5;

	--font-heading: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-heading-secondary: 'Roboto Slab', Georgia, serif;
	--font-body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;

	--container-width: 1140px;

	/* Consistent vertical rhythm between sections, used on every page */
	--space-section: clamp(40px, 6vw, 70px);
	--space-section-gap: 24px;
}

/* Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 400;
	color: var(--color-text);
	line-height: 1.6;
	background: var(--color-white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--color-primary);
	line-height: 1.3;
	margin: 0 0 0.6em;
}
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 28px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.4em; }

.container {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--color-primary);
	color: #fff;
	padding: 10px 16px;
	z-index: 10000;
}
.skip-link:focus { top: 0; }

/* Header
   ========================================================================== */
.site-header__top {
	background: var(--color-dark);
	color: #fff;
	font-size: 13px;
}
.site-header__top .contact-list {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 8px 0;
}
.site-header__top .contact-list a { color: #fff; }

.site-header__main {
	border-bottom: 1px solid var(--color-border);
	background: #fff;
}
.site-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	gap: 20px;
}
.site-branding img { max-height: 60px; width: auto; }
.site-branding__text {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 22px;
	color: var(--color-primary);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}
.nav-toggle__bar {
	width: 24px; height: 2px;
	background: var(--color-dark);
}

.primary-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.primary-nav__list li { position: relative; }
.primary-nav__list a {
	display: block;
	padding: 10px 14px;
	color: var(--color-dark);
	font-weight: 500;
	font-size: 15px;
}
.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a {
	color: var(--color-primary);
	text-decoration: none;
}
.primary-nav__list .sub-menu {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	background: #fff;
	box-shadow: 0 8px 20px rgba(0,0,0,0.1);
	min-width: 200px;
	list-style: none;
	margin: 0; padding: 8px 0;
	z-index: 100;
}
.primary-nav__list li:hover > .sub-menu { display: block; }
.primary-nav__list .sub-menu a { padding: 8px 16px; }

/* Dropdown indicator + tap-to-open state (mobile has no :hover, see main.js
   initSubmenuToggle — it adds/removes .submenu-open on tap) */
.menu-item-has-children > a { position: relative; padding-right: 30px; }
.menu-item-has-children > a::after {
	content: '';
	position: absolute;
	right: 12px;
	top: 50%;
	width: 7px; height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-65%) rotate(45deg);
	transition: transform 0.2s;
}
.menu-item-has-children.submenu-open > a::after { transform: translateY(-35%) rotate(-135deg); }
.primary-nav__list li.submenu-open > .sub-menu { display: block; }

/* Hero slider
   ========================================================================== */
.hero-slider__swiper .swiper-slide img {
	width: 100%;
	height: clamp(220px, 45vw, 560px);
	object-fit: cover;
}

/* Section title — shared look for every section heading on the site
   (font-size comes from the global h1/h2/h3 rules above, kept consistent
   across every page instead of being set section-by-section)
   ========================================================================== */
.section-title--center { text-align: center; }

/* Intro / tagline
   ========================================================================== */
.intro-tagline {
	text-align: center;
	padding: var(--space-section) 20px 0;
}
.intro-tagline__title {
	letter-spacing: 0.04em;
}
.intro-tagline__text {
	font-size: 18px;
	max-width: 640px;
	margin: 0 auto;
}

/* Commitment section
   ========================================================================== */
.commitment { padding: var(--space-section) 20px; }
.commitment__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	align-items: center;
}
.commitment__photos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: stretch;
}
.commitment__photos img {
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 6px;
}
.commitment__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.commitment__list li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 1em;
}
.commitment__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--color-accent);
}

/* MARS video
   ========================================================================== */
.mars-video { padding: var(--space-section) 20px; text-align: center; }
.mars-video__title { margin-bottom: var(--space-section-gap); }
.mars-video video { width: 100%; max-width: 800px; border-radius: 8px; }

/* Client carousel
   ========================================================================== */
.client-carousel { padding: var(--space-section) 20px; text-align: center; }
.client-carousel__title { margin-bottom: var(--space-section-gap); }
.client-carousel__slide {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 90px;
}
.client-carousel__slide img { max-height: 70px; width: auto; filter: grayscale(100%); opacity: 0.75; }

/* Activity gallery
   ========================================================================== */
.activity-gallery { padding: 0 20px var(--space-section); }
.activity-gallery__swiper .swiper-slide img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	border-radius: 6px;
}

/* FAQ
   ========================================================================== */
.faq { padding: 0 20px var(--space-section); max-width: 800px; margin: 0 auto; }
.faq__title { text-align: center; }
.faq__intro { text-align: center; margin-bottom: var(--space-section-gap); }
.faq-item {
	border-bottom: 1px solid var(--color-border);
}
.faq-question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: none;
	border: 0;
	text-align: left;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 16px;
	color: var(--color-dark);
	padding: 18px 0;
	cursor: pointer;
}
.faq-icon { font-size: 20px; color: var(--color-accent); }
.faq-answer { padding: 0 0 18px; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

/* Generic content pages
   ========================================================================== */
.page-content { padding: var(--space-section) 20px; }
.page-content__header { margin-bottom: var(--space-section-gap); text-align: center; }
.page-content__body { max-width: 800px; margin: 0 auto; }
.page-content__body img {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
	border-radius: 6px;
	margin: 0 auto 1em;
	cursor: zoom-in;
}

/* Lightbox — lets dense content images (e.g. the org chart on PENGURUS,
   scaled/cropped to fit the 480px box above) be viewed full-size and
   pinch-zoomed instead of staying illegible at content width.
   Opened/closed by initContentImageLightbox() in main.js. */
.lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	cursor: default;
}
.lightbox__close {
	position: absolute;
	top: 16px; right: 16px;
	width: 40px; height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: 0;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.info-box,
.coming-soon {
	max-width: 480px;
	margin: 0 auto;
	text-align: center;
	padding: 40px;
	border-radius: 8px;
}
.info-box { box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.coming-soon { border: 1px dashed var(--color-border); color: var(--color-text); }

/* BERITA loop
   ========================================================================== */
.berita-item {
	display: flex;
	gap: 20px;
	padding: 24px 0;
	border-bottom: 1px solid var(--color-border);
}
.berita-item__thumb { flex-shrink: 0; width: 180px; }
.berita-item__thumb img { width: 180px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.berita-item__title { font-size: 20px; margin-bottom: 6px; }
.berita-item__meta { font-size: 13px; color: var(--color-text); margin-bottom: 8px; }
.berita-list__empty { text-align: center; padding: 40px 0; }
.berita-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.single-thumb { max-width: 800px; margin: 0 auto 30px; }
.single-thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 6px;
}
.single-back { max-width: 800px; margin: 30px auto 0; }

/* Footer
   ========================================================================== */
.site-footer {
	background: var(--color-dark);
	color: #fff;
	margin-top: 40px;
}
.site-footer__row {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 40px;
	padding: 50px 20px;
}
.site-footer__heading {
	color: #fff;
	font-family: var(--font-heading-secondary);
	font-weight: 400;
	font-size: 22px;
}
.site-footer__subheading {
	color: #fff;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 16px;
}
.site-footer .contact-list {
	list-style: none;
	margin: 0; padding: 0;
	font-size: 14px;
}
.site-footer .contact-list li { margin-bottom: 10px; }
.site-footer .contact-list a { color: #fff; }

.social-icons {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 20px 0 0; padding: 0;
}
.social-icons__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	cursor: not-allowed;
}

.subscribe-form__row {
	display: flex;
	gap: 8px;
}
.subscribe-form input[type="email"] {
	flex: 1;
	padding: 13px 12px;
	border: 1px solid rgba(255,255,255,0.3);
	background: transparent;
	color: #fff;
	border-radius: 4px;
}
.subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }
.subscribe-form button {
	background: var(--color-accent);
	color: #fff;
	border: 0;
	padding: 13px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
}
.subscribe-form button:hover { opacity: 0.9; }
.subscribe-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px; height: 1px;
}
.subscribe-form__message { font-size: 13px; margin-top: 10px; min-height: 1.2em; }

.site-footer__bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding: 16px 20px;
	font-size: 13px;
	text-align: center;
}

/* Responsive
   ========================================================================== */
@media (max-width: 782px) {
	/* Top contact bar: on desktop it's a quick-glance strip, but on phones it
	   was eating ~150px of vertical space (3 stacked lines) before any real
	   content appeared. Address is dropped here since it's non-actionable
	   (no map link) and already repeated in the footer contact block. */
	.site-header__top { font-size: 12px; }
	.site-header__top .contact-list { gap: 14px; padding: 6px 0; }
	.site-header__top .contact-list__item--address { display: none; }

	.site-header__row { padding: 10px 20px; flex-wrap: wrap; }
	.site-branding img { max-height: 44px; }

	.nav-toggle { display: flex; }
	.primary-nav {
		display: none;
		width: 100%;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav__list { flex-direction: column; align-items: flex-start; width: 100%; }
	.primary-nav__list .sub-menu { position: static; box-shadow: none; padding-left: 16px; }

	.commitment__grid { grid-template-columns: 1fr; }
	.commitment__photos { grid-template-columns: 1fr 1fr; }

	.site-footer__row { grid-template-columns: 1fr; }

	.berita-item { flex-direction: column; }
	.berita-item__thumb { width: 100%; }
	.berita-item__thumb img { width: 100%; aspect-ratio: 16 / 9; }
}
