/* ==========================================================================
   Keki Helping — redesign
   Design read: consumer counseling/mental-health landing page for Indonesian
   families & young adults. Warm, calm, trustworthy. Green/brown growth theme
   pulled directly from the Kelola Kisah tree logo.
   Dials: VARIANCE 6 / MOTION 6 / DENSITY 4
   ========================================================================== */

:root {
	--font-display: "Fredoka", "Plus Jakarta Sans", sans-serif;
	--font-body: "Plus Jakarta Sans", sans-serif;

	/* brand palette, sampled from logo (leaves = green, trunk = brown) */
	--green-900: #123822;
	--green-800: #155c31;
	--green-700: #1c7a41;
	--green-600: #22954e;
	--green-500: #2aa85b;
	--green-400: #63c47f;
	--lime-400: #8bd85a;
	--lime-300: #a9e685;
	--brown-600: #6b4326;
	--brown-500: #86583a;

	--color-bg: #fbfdf9;
	--color-bg-alt: #eef6ee;
	--color-surface: #ffffff;
	--color-border: #dfe9de;
	--color-text: #16211a;
	--color-text-muted: #55655a;
	--color-primary: var(--green-600);
	--color-primary-dark: var(--green-800);
	--color-primary-contrast: #ffffff;
	--color-accent: var(--brown-600);

	--radius-lg: 24px;
	--radius-md: 16px;
	--radius-sm: 10px;
	--radius-pill: 999px;

	--shadow-sm: 0 2px 10px rgba(20, 60, 35, 0.06);
	--shadow-md: 0 12px 32px rgba(20, 60, 35, 0.10);
	--shadow-lg: 0 24px 60px rgba(20, 60, 35, 0.16);

	--container: 1180px;
	--header-h: 88px;
}

/* Theme locked to light mode by request — no dark-mode override. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--font-body);
	background: var(--color-bg);
	color: var(--color-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--color-text);
	line-height: 1.15;
	margin: 0 0 0.5em;
	font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; margin-bottom: 0.2em; }

p { color: var(--color-text-muted); margin: 0 0 1em; max-width: 65ch; }

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

.wrap {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--color-primary);
	color: var(--color-primary-contrast);
	padding: 10px 16px;
	border-radius: 0 0 10px 0;
	z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------------------------- Buttons ---------------------------- */
.btn {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.95rem;
	white-space: nowrap;
	text-decoration: none;
	border: none;
	cursor: pointer;
	border-radius: var(--radius-pill);
	padding: 12px 24px;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
	background: var(--color-primary);
	color: var(--color-primary-contrast);
	box-shadow: var(--shadow-sm);
}
.btn-primary::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 66%);
	transform: translateX(-120%);
	transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------------------------- Header ---------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--color-bg) 88%, transparent);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-color: var(--color-border); box-shadow: var(--shadow-sm); }

.header-inner {
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 24px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	text-decoration: none;
}
.brand-logo { height: 48px; width: auto; }
.brand-name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.3rem;
	color: var(--green-600);
	letter-spacing: -0.01em;
}

.main-nav { margin-left: auto; }
.main-nav ul {
	list-style: none;
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
}
.main-nav a {
	position: relative;
	display: inline-block;
	padding: 8px 14px;
	border-radius: var(--radius-pill);
	color: var(--color-text);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.main-nav a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: var(--color-primary);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.main-nav a:hover { background: var(--color-bg-alt); color: var(--color-primary-dark); }
.main-nav a:hover::after { transform: scaleX(1); }

.btn-nav-cta { flex-shrink: 0; }

.nav-toggle {
	display: none;
	margin-left: auto;
	background: var(--color-bg-alt);
	border: none;
	border-radius: var(--radius-sm);
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	color: var(--color-text);
	cursor: pointer;
	flex-shrink: 0;
}

.mobile-nav {
	display: none;
	flex-direction: column;
	gap: 4px;
	padding: 12px 24px 24px;
	border-top: 1px solid var(--color-border);
}
.mobile-nav ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a {
	display: block;
	padding: 12px 10px;
	border-radius: var(--radius-sm);
	text-decoration: none;
	color: var(--color-text);
	font-weight: 500;
}
.mobile-nav a:hover { background: var(--color-bg-alt); }
.mobile-nav.open { display: flex; }

@media (max-width: 900px) {
	.main-nav, .btn-nav-cta { display: none; }
	.nav-toggle { display: flex; }
}

/* ---------------------------- Hero ---------------------------- */
.hero {
	position: relative;
	overflow: hidden;
	padding: 56px 0 64px;
}
.hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 90px;
	z-index: 2;
	pointer-events: none;
	background: var(--color-bg-alt);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C240,90 480,0 720,30 C920,55 1080,10 1200,20 L1200,90 L0,90 Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C240,90 480,0 720,30 C920,55 1080,10 1200,20 L1200,90 L0,90 Z'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}
.hero-inner {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: 32px;
	min-height: min(70dvh, 620px);
	position: relative;
	z-index: 2;
}
.hero-copy h1 { margin-bottom: 0.35em; }
.hero-lead { font-size: 1.1rem; max-width: 48ch; }
.hero-actions { margin-top: 28px; }

.hero-art { perspective: 1400px; }
.hero-art img {
	width: 100%;
	filter: drop-shadow(0 30px 46px rgba(20, 60, 35, 0.22));
}

.hero-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(2px);
	opacity: 0.55;
}
.blob-a {
	width: 480px; height: 480px;
	top: -180px; right: -140px;
	background: radial-gradient(circle at 30% 30%, var(--lime-300), var(--green-500) 70%);
	opacity: 0.25;
}
.blob-b {
	width: 320px; height: 320px;
	bottom: -140px; left: -100px;
	background: radial-gradient(circle at 30% 30%, var(--green-400), var(--green-700) 70%);
	opacity: 0.18;
}
.leaf {
	position: absolute;
	color: var(--green-500);
	opacity: 0.35;
	font-size: 2.4rem;
}
.leaf-a { top: 18%; left: 6%; font-size: 2.8rem; }
.leaf-b { top: 62%; left: 46%; font-size: 1.8rem; color: var(--lime-400); }
.leaf-c { top: 12%; right: 30%; font-size: 2rem; color: var(--brown-500); opacity: 0.25; }

#hero3d {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	-webkit-mask-image: radial-gradient(ellipse 75% 80% at 60% 40%, #000 55%, transparent 100%);
	mask-image: radial-gradient(ellipse 75% 80% at 60% 40%, #000 55%, transparent 100%);
}

@media (max-width: 900px) {
	.hero-inner { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 8px; }
	.hero-lead { margin-left: auto; margin-right: auto; }
	.hero-art { max-width: 380px; margin: 8px auto 0; }
}

/* ---------------------------- Section rhythm ---------------------------- */
section { padding: 72px 0; }
.section-head { max-width: 62ch; margin: 0 auto 40px; text-align: center; }
.section-head p { margin: 0 auto; }

/* ---------------------------- About / steps ---------------------------- */
.about { background: var(--color-bg-alt); }
.about-inner {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 56px;
	align-items: start;
}
.about-text h3 { margin-bottom: 0.6em; }

.steps-list {
	list-style: none;
	margin: 0.6em 0 0;
	padding: 0;
	counter-reset: step;
}
.steps-list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--color-border);
	color: var(--color-text);
}
.steps-list li:last-child { border-bottom: none; }
.step-num {
	flex-shrink: 0;
	width: 34px; height: 34px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--color-surface);
	color: var(--color-primary);
	font-size: 1.15rem;
	box-shadow: var(--shadow-sm);
}

@media (max-width: 860px) {
	.about-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------------------------- Features / bento ---------------------------- */
.bento {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}
.bento-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 28px;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	gap: 14px;
	transform-style: preserve-3d;
	flex: 1 1 320px;
	max-width: calc(33.333% - 14px);
}
.bento-card i {
	font-size: 1.9rem;
	color: var(--color-primary);
	width: 52px; height: 52px;
	display: flex; align-items: center; justify-content: center;
	border-radius: var(--radius-md);
	background: var(--color-bg-alt);
	flex-shrink: 0;
}
.bento-card p { color: var(--color-text); margin: 0; font-weight: 500; }

@media (max-width: 860px) {
	.bento-card { max-width: calc(50% - 10px); }
}
@media (max-width: 600px) {
	.bento-card { max-width: 100%; }
}

/* ---------------------------- Pricing ---------------------------- */
.pricing-card {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	overflow: hidden;
}
.pricing-card-body { padding: 40px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--color-text); }
.check-list i { color: var(--color-primary); margin-top: 3px; flex-shrink: 0; }

.pricing-card-action {
	background: linear-gradient(160deg, var(--green-700), var(--green-900));
	color: #fff;
	padding: 40px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
}
.pricing-meta { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; opacity: 0.75; }
.pricing-amount { margin-bottom: 20px; }
.price-unit { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; }
.price-unit::before { content: "Rp "; font-size: 1.1rem; opacity: 0.8; }
.price-tenure { font-size: 0.9rem; opacity: 0.85; }
.pricing-card-action .btn-primary { background: #fff; color: var(--green-800); width: 100%; }
.pricing-card-action .btn-primary:hover { background: var(--lime-300); color: var(--green-900); }

@media (max-width: 860px) {
	.pricing-card { grid-template-columns: 1fr; }
}

/* ---------------------------- FAQ ---------------------------- */
.faqs { background: var(--color-bg-alt); }
.faq-list { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.faq-item {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
}
.faq-item summary {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 22px;
	cursor: pointer;
	font-weight: 600;
	color: var(--color-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i:first-child { color: var(--color-primary); font-size: 1.2rem; flex-shrink: 0; }
.faq-item summary span { flex: 1; }
.chev { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); color: var(--color-text-muted); }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-body { padding: 0 22px 20px 56px; color: var(--color-text-muted); }

/* ---------------------------- Team ---------------------------- */
.team-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: stretch;
}
.team-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 24px;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	transform-style: preserve-3d;
	height: 100%;
}
.team-photo {
	width: 108px; height: 108px;
	flex-shrink: 0;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid var(--color-bg-alt);
	box-shadow: var(--shadow-sm);
}
.team-photo img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: 50% 12%;
}
.team-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
}
.team-body h4 { margin-bottom: 0.15em; }
.team-sipp { display: block; font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: 10px; }
.team-body p { font-size: 0.88rem; margin-bottom: 14px; flex: 1; }
.team-mail {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--color-bg-alt);
	color: var(--color-primary-dark);
	text-decoration: none;
	margin-top: auto;
	flex-shrink: 0;
}
.team-mail:hover { background: var(--color-primary); color: #fff; }

@media (max-width: 980px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------------------------- Contact ---------------------------- */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.contact-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 28px 22px;
	text-align: center;
	text-decoration: none;
	color: var(--color-text);
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
	transform-style: preserve-3d;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contact-card i { font-size: 2rem; color: var(--color-primary); }
.contact-card h3 { font-size: 1rem; margin: 0; }
.contact-card h3 span { display: block; font-family: var(--font-body); font-weight: 400; color: var(--color-text-muted); font-size: 0.85rem; margin-top: 4px; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------------------------- Footer ---------------------------- */
.site-footer {
	background: var(--green-900);
	color: #d9e8dd;
	padding: 40px 0;
}
.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.footer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
}
.footer-brand img { height: 40px; }
.footer-brand .brand-name {
	color: #eaf4ec;
	font-size: 1.15rem;
}
.footer-copy { font-size: 0.88rem; opacity: 0.85; }
.footer-contact { display: flex; gap: 20px; font-size: 0.88rem; opacity: 0.85; }
.footer-contact span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 700px) {
	.footer-inner { flex-direction: column; text-align: center; }
}

/* ---------------------------- Go to top ---------------------------- */
.go-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 46px; height: 46px;
	border-radius: 50%;
	border: none;
	background: var(--color-primary);
	color: #fff;
	font-size: 1.2rem;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
	box-shadow: var(--shadow-md);
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity 0.3s, transform 0.3s;
	z-index: 90;
}
.go-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------------------------- Scroll reveal / 3D ---------------------------- */
.reveal {
	opacity: 0;
	transform: translateY(30px) scale(0.97);
	transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1), transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
	will-change: transform, opacity;
}
.reveal-3d {
	perspective: 1200px;
	transform: translateY(38px) scale(0.97) rotateX(14deg);
	transform-origin: bottom center;
}
.reveal.in-view {
	opacity: 1;
	transform: translateY(0) scale(1) rotateX(0);
}

@media (prefers-reduced-motion: reduce) {
	.reveal, .reveal-3d {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.blob, .leaf { animation: none !important; }
}
