/* ==========================================================================
   Pemuda Mendunia - Design System
   Palet: primary #840000, accent #E0706F, text #1E293B
   ========================================================================== */

:root {
	--pm-primary: #840000;
	--pm-primary-dark: #6b0000;
	--pm-accent: #e0706f;
	--pm-accent-soft: #fbe9e9;
	--pm-text: #1e293b;
	--pm-muted: #64748b;
	--pm-bg: #ffffff;
	--pm-surface: #f8f9fb;
	--pm-surface-warm: #fdf6f6;
	--pm-border: #e7eaf0;
	--pm-whatsapp: #25d366;
	--pm-radius: 14px;
	--pm-radius-sm: 9px;
	--pm-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--pm-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--pm-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
	--pm-shadow-lg: 0 14px 40px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--pm-font);
	font-size: 16px;
	color: var(--pm-text);
	background: var(--pm-bg);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

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

a:hover {
	color: var(--pm-primary-dark);
}

h1,
h2,
h3,
h4 {
	line-height: 1.2;
	margin: 0 0 0.5em;
	color: var(--pm-text);
	font-weight: 700;
}

p {
	margin: 0 0 1em;
}

.container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}

.section {
	padding: 72px 0;
}

.section--surface {
	background: var(--pm-surface);
}

.section--warm {
	background: var(--pm-surface-warm);
}

.section-head {
	max-width: 680px;
	margin: 0 auto 44px;
	text-align: center;
}

.section-eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pm-primary);
	margin-bottom: 10px;
}

.section-title {
	font-size: 2rem;
	margin-bottom: 12px;
}

.section-subtitle {
	color: var(--pm-muted);
	font-size: 1.05rem;
	margin: 0;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: var(--pm-radius-sm);
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
	background: var(--pm-primary);
	color: #fff;
}

.btn-primary:hover {
	background: var(--pm-primary-dark);
	color: #fff;
}

.btn-accent {
	background: var(--pm-accent);
	color: #fff;
}

.btn-accent:hover {
	background: #d05e5d;
	color: #fff;
}

.btn-outline {
	background: transparent;
	border-color: var(--pm-primary);
	color: var(--pm-primary);
}

.btn-outline:hover {
	background: var(--pm-primary);
	color: #fff;
}

.btn-light {
	background: #fff;
	color: var(--pm-primary);
}

.btn-whatsapp {
	background: var(--pm-whatsapp);
	color: #fff;
}

.btn-whatsapp:hover {
	background: #1fb457;
	color: #fff;
}

/* Cards */
.card {
	background: #fff;
	border: 1px solid var(--pm-border);
	border-radius: var(--pm-radius);
	padding: 28px;
}

.card__title {
	font-size: 1.15rem;
	margin-bottom: 8px;
}

.card__text {
	color: var(--pm-muted);
	margin: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--pm-border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}

.site-header__logo img {
	max-height: 44px;
	width: auto;
	display: block;
}

.site-header__logo .custom-logo {
	max-height: 44px;
	width: auto;
}

.site-header__brand {
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--pm-primary);
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	width: 44px;
	height: 44px;
}

.nav-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--pm-text);
	margin: 4px auto;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	color: var(--pm-text);
	font-weight: 500;
	font-size: 0.95rem;
}

.site-nav__list a:hover {
	color: var(--pm-primary);
}

.site-nav__list .menu-item-has-children {
	position: relative;
}

.site-nav__list .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: #fff;
	border: 1px solid var(--pm-border);
	border-radius: var(--pm-radius-sm);
	box-shadow: var(--pm-shadow-lg);
	list-style: none;
	margin: 0;
	padding: 8px;
	z-index: 10;
}

.site-nav__list .menu-item-has-children:hover .sub-menu,
.site-nav__list .menu-item-has-children:focus-within .sub-menu {
	display: block;
}

.site-nav__list .sub-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 6px;
}

.site-nav__list .sub-menu a:hover {
	background: var(--pm-surface);
}

@media (max-width: 900px) {
	.nav-toggle {
		display: block;
	}

	.site-nav {
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		background: #fff;
		border-bottom: 1px solid var(--pm-border);
		padding: 20px;
		display: none;
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.site-nav__list a {
		display: block;
		padding: 10px 0;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background: var(--pm-primary-dark);
	color: #fff;
	padding: 44px 0 0;
	margin-top: 0;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.2fr;
	gap: 36px;
	padding-bottom: 32px;
}

.site-footer__brand {
	font-size: 1.25rem;
	font-weight: 800;
	margin-bottom: 10px;
	color: #fff;
}

.site-footer__desc {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.9rem;
	line-height: 1.65;
	margin: 0;
	max-width: 320px;
}

.site-footer__heading {
	font-weight: 700;
	margin-bottom: 12px;
	color: #fff;
	font-size: 0.95rem;
}

.site-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__list li {
	margin-bottom: 8px;
}

.site-footer__list a {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9rem;
}

.site-footer__list a:hover {
	color: #fff;
}

.site-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9rem;
}

.site-footer__contact span {
	line-height: 1.5;
}

.contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--pm-accent);
}

.contact-icon svg {
	display: block;
}

.site-footer__social {
	display: flex;
	gap: 12px;
	margin-top: 16px;
}

.site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	transition: background 0.16s ease;
}

.site-footer__social a:hover {
	background: var(--pm-accent);
	color: #fff;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding: 16px 0;
}

.site-footer__bottom p {
	margin: 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.82rem;
}

@media (max-width: 700px) {
	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */

.whatsapp-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--pm-whatsapp);
	color: #fff;
	box-shadow: var(--pm-shadow-lg);
	transition: transform 0.16s ease;
}

.whatsapp-float:hover {
	transform: translateY(-2px);
	color: #fff;
}

.whatsapp-float__icon {
	display: block;
}

/* ==========================================================================
   Video facade
   ========================================================================== */

.video-facade {
	position: relative;
	border-radius: var(--pm-radius);
	overflow: hidden;
	cursor: pointer;
	aspect-ratio: 16 / 9;
	background: #000;
}

.video-facade img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
}

.video-facade__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
	margin-top: 40px;
	text-align: center;
}

.pagination .nav-links {
	display: inline-flex;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--pm-border);
	border-radius: var(--pm-radius-sm);
	color: var(--pm-text);
	font-weight: 500;
}

.pagination .page-numbers.current {
	background: var(--pm-primary);
	border-color: var(--pm-primary);
	color: #fff;
}

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

/* Grid helpers */
.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 900px) {
	.grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.section {
		padding: 52px 0;
	}

	.section-title {
		font-size: 1.6rem;
	}

	.grid-2,
	.grid-3 {
		grid-template-columns: 1fr;
	}
}
