/* =========================================================
   Bella Jaya Kursus Mobil - main.css
   Warna diatur via CSS variable, di-generate dari Customizer
   (lihat wp_add_inline_style di functions.php).
   ========================================================= */

:root {
	--bjy-primary: #101B34;
	--bjy-primary-soft: #16243F;
	--bjy-accent: #C6F135;
	--bjy-bg-light: #F5F6F8;
	--bjy-text: #1B2434;
	--bjy-text-muted: #5B6478;
	--bjy-white: #FFFFFF;
	--bjy-radius: 16px;
	--bjy-radius-sm: 10px;
	--bjy-shadow: 0 12px 30px rgba(16, 27, 52, 0.10);
	--bjy-max-width: 1160px;
	--font-heading: 'Sora', sans-serif;
	--font-body: 'Inter', sans-serif;
}

/* ---------- Reset dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 93.75%; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--bjy-text);
	background: var(--bjy-white);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 .6em;
	color: var(--bjy-primary);
}
p { margin: 0 0 1em; color: var(--bjy-text-muted); }
ul { margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation: none !important; transition: none !important; }
}

/* Fokus keyboard tetap terlihat (aksesibilitas) */
a:focus-visible, button:focus-visible, summary:focus-visible {
	outline: 3px solid var(--bjy-accent);
	outline-offset: 2px;
}

/* ---------- Layout dasar ---------- */
.bjy-container {
	max-width: var(--bjy-max-width);
	margin: 0 auto;
	padding: 0 24px;
}
.bjy-narrow { max-width: 760px; }
.bjy-section { padding: 72px 0; }
.bjy-section-title {
	text-align: center;
	font-size: clamp(1.3rem, 2vw, 1.8rem);
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 36px;
}

/* ---------- Tombol ---------- */
.bjy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	font-weight: 600;
	font-size: .88rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.bjy-btn:hover { transform: translateY(-2px); }
.bjy-btn-accent {
	background: var(--bjy-accent);
	color: var(--bjy-primary);
	box-shadow: 0 10px 24px rgba(198, 241, 53, 0.35);
}
.bjy-btn-outline {
	background: transparent;
	border-color: var(--bjy-primary);
	color: var(--bjy-primary);
}
.bjy-btn-lg { padding: 14px 30px; font-size: .92rem; }

/* ---------- Header ---------- */
.bjy-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bjy-white);
	box-shadow: 0 2px 14px rgba(16, 27, 52, 0.06);
}
.bjy-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 14px;
	padding-bottom: 14px;
}
.bjy-logo-text {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--bjy-primary);
}
.bjy-nav { flex: 1; display: flex; justify-content: center; }
.bjy-menu {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
}
.bjy-menu a {
	font-weight: 600;
	font-size: .95rem;
	color: var(--bjy-text);
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
	transition: border-color .15s ease, color .15s ease;
}
.bjy-menu a:hover { color: var(--bjy-primary); border-color: var(--bjy-accent); }
.bjy-header-cta { white-space: nowrap; padding: 10px 22px; }
.bjy-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
}
.bjy-menu-toggle span {
	width: 24px;
	height: 2px;
	background: var(--bjy-primary);
	border-radius: 2px;
}
.bjy-nav-top {
	display: none;
	justify-content: flex-end;
	margin-bottom: 12px;
}
.bjy-nav-close {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--bjy-bg-light);
	color: var(--bjy-primary);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}

/* ---------- Hero ---------- */
.bjy-hero {
	background: linear-gradient(180deg, var(--bjy-primary) 0%, var(--bjy-primary-soft) 100%);
	color: var(--bjy-white);
	padding: 64px 0 80px;
	overflow: hidden;
}
.bjy-hero-grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 48px;
	align-items: center;
}
.bjy-hero h1 {
	color: var(--bjy-white);
	font-size: clamp(1.5rem, 3.2vw, 2.3rem);
	max-width: 22ch;
}
.bjy-hero-sub {
	color: rgba(255,255,255,.75);
	font-size: .92rem;
	max-width: 46ch;
	margin-bottom: 24px;
}
.bjy-hero-caption {
	display: block;
	margin-top: 14px;
	font-size: .85rem;
	color: rgba(255,255,255,.6);
}
.bjy-hero-media img {
	border-radius: var(--bjy-radius);
	box-shadow: var(--bjy-shadow);
}
.bjy-hero-media-placeholder {
	aspect-ratio: 4/3;
	border-radius: var(--bjy-radius);
	background: rgba(255,255,255,.06);
	border: 1px dashed rgba(255,255,255,.25);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
}

/* ---------- Trust bar ---------- */
.bjy-trustbar {
	background: var(--bjy-bg-light);
	padding: 24px 0;
	border-bottom: 1px solid #E7E9EE;
}
.bjy-trustbar-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	text-align: center;
}
.bjy-trust-item {
	font-weight: 600;
	font-size: .9rem;
	color: var(--bjy-primary);
}

/* ---------- Pain point ---------- */
.bjy-pain { text-align: center; }
.bjy-pain h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- Layanan ---------- */
.bjy-layanan { background: var(--bjy-bg-light); }
.bjy-layanan-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.bjy-layanan-card {
	background: var(--bjy-white);
	border-radius: var(--bjy-radius);
	padding: 28px 22px;
	box-shadow: var(--bjy-shadow);
	text-align: center;
}
.bjy-layanan-icon {
	width: 56px; height: 56px;
	border-radius: 50%;
	background: var(--bjy-accent);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.5rem;
	margin: 0 auto 16px;
}
.bjy-layanan-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.bjy-layanan-card p { font-size: .9rem; margin: 0; }

/* ---------- Paket & harga ---------- */
.bjy-paket-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: stretch;
}
.bjy-paket-card {
	background: var(--bjy-bg-light);
	border-radius: var(--bjy-radius);
	padding: 32px 26px;
	position: relative;
	display: flex;
	flex-direction: column;
}
.bjy-paket-featured {
	background: var(--bjy-accent);
	transform: translateY(-10px);
	box-shadow: var(--bjy-shadow);
}
.bjy-paket-featured h3,
.bjy-paket-featured .bjy-paket-desc,
.bjy-paket-featured .bjy-paket-harga { color: var(--bjy-primary); }
.bjy-paket-badge {
	position: absolute;
	top: -14px; left: 50%;
	transform: translateX(-50%);
	background: var(--bjy-primary);
	color: var(--bjy-white);
	font-size: .75rem;
	font-weight: 700;
	padding: 6px 16px;
	border-radius: 999px;
}
.bjy-paket-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.bjy-paket-desc { font-size: .88rem; min-height: 44px; }
.bjy-paket-harga {
	font-family: var(--font-heading);
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--bjy-primary);
	margin-bottom: 18px;
}
.bjy-paket-fitur { margin-bottom: 24px; flex: 1; }
.bjy-paket-fitur li { font-size: .88rem; margin-bottom: 10px; color: var(--bjy-text); }
.bjy-paket-card .bjy-btn { width: 100%; }

/* ---------- Proses belajar ---------- */
.bjy-proses { background: var(--bjy-bg-light); }
.bjy-proses-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.bjy-proses-step { text-align: center; }
.bjy-proses-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--bjy-primary);
	color: var(--bjy-accent);
	font-family: var(--font-heading);
	font-weight: 800;
	margin-bottom: 14px;
}
.bjy-proses-step h3 { font-size: 1.02rem; }
.bjy-proses-step p { font-size: .88rem; }

/* ---------- Testimoni ---------- */
.bjy-testimoni-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.bjy-testimoni-card {
	background: var(--bjy-white);
	border: 1px solid #E7E9EE;
	border-radius: var(--bjy-radius);
	padding: 26px;
	box-shadow: var(--bjy-shadow);
}
.bjy-testimoni-stars { color: var(--bjy-accent); filter: drop-shadow(0 0 0 var(--bjy-primary)); margin-bottom: 10px; -webkit-text-stroke: .5px var(--bjy-primary); }
.bjy-testimoni-card p { font-size: .92rem; color: var(--bjy-text); }
.bjy-testimoni-person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.bjy-testimoni-person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.bjy-testimoni-avatar {
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--bjy-primary); color: var(--bjy-accent);
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-family: var(--font-heading);
}
.bjy-testimoni-person strong { display: block; font-size: .9rem; }
.bjy-testimoni-person span { font-size: .8rem; color: var(--bjy-text-muted); }

/* ---------- Galeri ---------- */
.bjy-galeri { background: var(--bjy-bg-light); }
.bjy-galeri-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.bjy-galeri-item {
	margin: 0;
	border-radius: var(--bjy-radius-sm);
	overflow: hidden;
	background: var(--bjy-white);
	box-shadow: var(--bjy-shadow);
}
.bjy-galeri-item img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
}
.bjy-galeri-item figcaption {
	padding: 8px 10px;
	font-size: .78rem;
	color: var(--bjy-text-muted);
}
.bjy-galeri-placeholder {
	aspect-ratio: 4/3;
	border-radius: var(--bjy-radius-sm);
	background: var(--bjy-white);
	border: 1px dashed var(--border, #d7dae0);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bjy-text-muted);
}

/* ---------- FAQ ---------- */
.bjy-faq-item {
	background: var(--bjy-bg-light);
	border-radius: var(--bjy-radius-sm);
	padding: 16px 20px;
	margin-bottom: 12px;
}
.bjy-faq-item summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--bjy-primary);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.bjy-faq-item summary::-webkit-details-marker { display: none; }
.bjy-faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--bjy-primary); }
.bjy-faq-item[open] summary::after { content: '−'; }
.bjy-faq-item p { margin-top: 12px; margin-bottom: 0; font-size: .92rem; }

/* ---------- Lokasi / Maps ---------- */
.bjy-lokasi-desc { text-align: center; max-width: 700px; margin: -20px auto 28px; }
.bjy-maps-embed {
	border-radius: var(--bjy-radius);
	overflow: hidden;
	box-shadow: var(--bjy-shadow);
}
.bjy-maps-embed iframe { display: block; }

/* ---------- CTA Penutup ---------- */
.bjy-cta-penutup {
	background: var(--bjy-primary);
	color: var(--bjy-white);
	border-radius: var(--bjy-radius);
	margin: 0 24px;
	max-width: calc(var(--bjy-max-width) - 48px);
	margin-left: auto;
	margin-right: auto;
}
.bjy-cta-grid { text-align: center; max-width: 620px; margin: 0 auto; }
.bjy-cta-penutup h2 { color: var(--bjy-white); }
.bjy-cta-penutup p { color: rgba(255,255,255,.75); }
.bjy-cta-micro { margin-top: 14px; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ---------- Footer ---------- */
.bjy-footer {
	background: var(--bjy-primary-soft);
	color: rgba(255,255,255,.8);
	padding: 56px 0 0;
	margin-top: 72px;
}
.bjy-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 40px;
}
.bjy-footer h3, .bjy-footer h4 { color: var(--bjy-white); }
.bjy-footer-col ul, .bjy-footer-menu { display: flex; flex-direction: column; gap: 10px; }
.bjy-footer a { color: rgba(255,255,255,.75); }
.bjy-footer a:hover { color: var(--bjy-accent); }
.bjy-footer-bottom {
	border-top: 1px solid rgba(255,255,255,.1);
	text-align: center;
	padding: 18px 0;
	font-size: .82rem;
}

/* ---------- Widget WhatsApp: tombol melayang + back to top ---------- */
.bjy-wa-widget { position: relative; }

.bjy-wa-float {
	position: fixed;
	right: 20px;
	bottom: 24px;
	z-index: 200;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: min(280px, 74vw);
	background: #25D366;
	color: #fff;
	padding: 12px 18px;
	border-radius: 22px;
	box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
	font-weight: 600;
	font-size: .82rem;
	line-height: 1.35;
	text-align: left;
}
.bjy-wa-float-icon { flex-shrink: 0; display: flex; width: 20px; height: 20px; }
.bjy-wa-float-text { white-space: normal; }

.bjy-back-to-top {
	position: fixed;
	right: 20px;
	bottom: 100px;
	z-index: 199;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--bjy-primary);
	color: var(--bjy-accent);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--bjy-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.bjy-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* =========================================================
   RESPONSIVE - MOBILE FRIENDLY
   ========================================================= */
@media (max-width: 960px) {
	.bjy-hero-grid { grid-template-columns: 1fr; }
	.bjy-hero-media { margin-top: 32px; }
	.bjy-layanan-grid,
	.bjy-paket-grid,
	.bjy-proses-grid,
	.bjy-testimoni-grid { grid-template-columns: repeat(2, 1fr); }
	.bjy-trustbar-grid { grid-template-columns: repeat(2, 1fr); }
	.bjy-footer-grid { grid-template-columns: 1fr 1fr; }
	.bjy-paket-featured { transform: none; }
}

@media (max-width: 680px) {
	.bjy-section { padding: 52px 0; }
	.bjy-nav {
		position: fixed;
		top: 68px; left: 0; right: 0;
		background: var(--bjy-white);
		flex-direction: column;
		padding: 20px 24px;
		box-shadow: 0 12px 20px rgba(16,27,52,.08);
		transform: translateY(-140%);
		opacity: 0;
		transition: transform .2s ease, opacity .2s ease;
	}
	.bjy-nav.is-open { transform: translateY(0); opacity: 1; }
	.bjy-nav-top { display: flex; }
	.bjy-menu { flex-direction: column; gap: 14px; }
	.bjy-menu-toggle { display: flex; }
	.bjy-header-cta { display: none; }
	.bjy-layanan-grid,
	.bjy-paket-grid,
	.bjy-proses-grid,
	.bjy-testimoni-grid,
	.bjy-trustbar-grid,
	.bjy-footer-grid { grid-template-columns: 1fr; }
	.bjy-galeri-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.bjy-wa-float { max-width: min(230px, 68vw); padding: 11px 16px; font-size: .78rem; }
	.bjy-back-to-top { bottom: 96px; width: 40px; height: 40px; }
}
