/*
 * Sahah Addariyah — Halaman "Tentang Kami" (Custom)
 * Palet brand hijau + emas + hitam. Dark/light otomatis via prefers-color-scheme,
 * konsisten dengan halaman Lobi. Signature: garis waktu "sanad" emas + ornamen
 * arabesque hairline. Efek: partikel, spotlight kursor, scroll-reveal, tilt,
 * lightbox galeri.
 */

.sahah-tentang {
	--tt-bg: #0c0d0c;
	--tt-bg-soft: #16181a;
	--tt-bg-card: #14161a;
	--tt-text: #f3f3f0;
	--tt-muted: #a6a9a6;
	--tt-green: #2eb86a;
	--tt-green-deep: #1e8a4c;
	--tt-gold: #d4a530;
	--tt-border: rgba(255, 255, 255, 0.09);
	--tt-particle: 46, 184, 106;
	--tt-serif: "Amiri", "Scheherazade New", "Noto Serif", Georgia, "Times New Roman", serif;

	background: var(--tt-bg);
	color: var(--tt-text);
	overflow-x: hidden;
	display: block;
}

@media (prefers-color-scheme: light) {
	.sahah-tentang {
		--tt-bg: #faf9f5;
		--tt-bg-soft: #ffffff;
		--tt-bg-card: #ffffff;
		--tt-text: #17181a;
		--tt-muted: #5c5f5c;
		--tt-green: #1e8a4c;
		--tt-green-deep: #157a41;
		--tt-gold: #b8891f;
		--tt-border: rgba(0, 0, 0, 0.08);
		--tt-particle: 30, 138, 76;
	}
}

.sahah-tentang * { box-sizing: border-box; }

.sahah-tt-wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

.sahah-tt-section { padding: 76px 0; }

.sahah-tt-eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tt-green);
	margin-bottom: 12px;
}
.sahah-tt-eyebrow-gold { color: var(--tt-gold); }

.sahah-tt-h2 {
	font-family: var(--tt-serif);
	font-size: clamp(1.7rem, 3.4vw, 2.4rem);
	font-weight: 700;
	margin: 0 0 28px;
	line-height: 1.15;
	letter-spacing: 0.01em;
}

/* Scroll-reveal */
.sahah-tt-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}
.sahah-tt-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ===================== HERO ===================== */
.sahah-tt-hero {
	position: relative;
	min-height: 68vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 90px 24px 70px;
	overflow: hidden;
	background:
		radial-gradient(1000px 480px at 50% -10%, rgba(var(--tt-particle), 0.10), transparent 60%),
		var(--tt-bg);
}
.sahah-tt-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.sahah-tt-spotlight {
	position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
	transition: opacity 0.4s ease;
	background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 50%), rgba(var(--tt-particle), 0.16), transparent 66%);
}
.sahah-tt-hero-inner { position: relative; z-index: 2; max-width: 720px; }

.sahah-tt-logo { margin: 0 auto 22px; max-width: 120px; }
.sahah-tt-logo img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

.sahah-tt-title {
	font-family: var(--tt-serif);
	font-size: clamp(2.4rem, 6vw, 4rem);
	font-weight: 800;
	margin: 0 0 10px;
	line-height: 1.04;
	background: linear-gradient(135deg, var(--tt-text), var(--tt-green));
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
}
.sahah-tt-subtitle { color: var(--tt-gold); font-size: 1rem; margin: 0 0 20px; letter-spacing: 0.02em; }

/* Ornamen arabesque hairline emas — signature halaman */
.sahah-tt-arabesque {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	margin: 4px auto 24px; max-width: 260px;
}
.sahah-tt-arabesque span { height: 1px; background: linear-gradient(90deg, transparent, var(--tt-gold), transparent); flex: 1; }
.sahah-tt-arabesque span:nth-child(2) {
	flex: 0 0 10px; height: 10px; background: none; border: 1px solid var(--tt-gold);
	transform: rotate(45deg); border-radius: 2px;
}

.sahah-tt-intro {
	font-size: 1.08rem; line-height: 1.75; color: var(--tt-muted);
	max-width: 580px; margin: 0 auto;
}

/* ===================== SEJARAH (sanad timeline) ===================== */
.sahah-tt-timeline { display: flex; gap: 28px; align-items: flex-start; }
.sahah-tt-timeline-marker {
	flex: 0 0 130px; display: flex; flex-direction: column; align-items: center;
	text-align: center; position: relative; padding-top: 6px;
}
.sahah-tt-timeline-marker::after {
	content: ''; position: absolute; top: 40px; bottom: -30px; width: 2px;
	background: linear-gradient(var(--tt-gold), transparent);
	left: 50%; transform: translateX(-50%);
}
.sahah-tt-dot {
	width: 16px; height: 16px; border-radius: 50%;
	background: var(--tt-gold);
	box-shadow: 0 0 0 6px rgba(212, 165, 48, 0.15);
	margin-bottom: 14px; z-index: 1;
}
.sahah-tt-year { font-family: var(--tt-serif); font-size: 1.05rem; font-weight: 700; color: var(--tt-gold); line-height: 1.2; }
.sahah-tt-year-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--tt-muted); margin-top: 4px; }

.sahah-tt-timeline-body { flex: 1; font-size: 1.02rem; line-height: 1.8; color: var(--tt-muted); }
.sahah-tt-timeline-body p { margin: 0 0 16px; }

.sahah-tt-profil-foto {
	margin: 20px 0 0; border-radius: 16px; overflow: hidden;
	border: 1px solid var(--tt-border);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
	transition: transform 0.15s ease;
	transform-style: preserve-3d;
}
.sahah-tt-profil-foto img { width: 100%; display: block; }

/* ===================== VISI & MISI ===================== */
.sahah-tt-visimisi { border-top: 1px solid var(--tt-border); }
.sahah-tt-vm-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px;
}
.sahah-tt-card {
	background: var(--tt-bg-card);
	border: 1px solid var(--tt-border);
	border-radius: 18px; padding: 30px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	transform-style: preserve-3d;
	position: relative; overflow: hidden;
}
.sahah-tt-card::before {
	content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
	background: linear-gradient(90deg, var(--tt-green), var(--tt-gold));
}
.sahah-tt-card-eyebrow {
	display: block; font-family: var(--tt-serif); font-size: 1.15rem; font-weight: 700;
	color: var(--tt-green); margin-bottom: 14px;
}
.sahah-tt-visi-text { font-size: 1.05rem; line-height: 1.75; color: var(--tt-muted); margin: 0; }
.sahah-tt-misi-list { margin: 0; padding-left: 0; list-style: none; counter-reset: misi; }
.sahah-tt-misi-list li {
	position: relative; padding-left: 40px; margin-bottom: 14px;
	line-height: 1.65; color: var(--tt-muted);
}
.sahah-tt-misi-list li::before {
	counter-increment: misi; content: counter(misi);
	position: absolute; left: 0; top: 0;
	width: 26px; height: 26px; border-radius: 50%;
	background: rgba(46, 184, 106, 0.14); color: var(--tt-green);
	font-size: 0.8rem; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center;
}

/* ===================== GALERI ===================== */
.sahah-tt-galeri { border-top: 1px solid var(--tt-border); }
.sahah-tt-gallery-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.sahah-tt-gitem {
	position: relative; border: 0; padding: 0; cursor: pointer;
	border-radius: 14px; overflow: hidden; background: var(--tt-bg-soft);
	aspect-ratio: 4 / 3; display: block;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}
.sahah-tt-gitem img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform 0.4s ease;
}
.sahah-tt-gitem:hover img { transform: scale(1.06); }
.sahah-tt-gitem-cap {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 22px 12px 10px; text-align: left;
	font-size: 0.8rem; color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
	opacity: 0; transition: opacity 0.3s ease;
}
.sahah-tt-gitem:hover .sahah-tt-gitem-cap { opacity: 1; }

/* ===================== PAMFLET ===================== */
.sahah-tt-pamflet { border-top: 1px solid var(--tt-border); }
.sahah-tt-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sahah-tt-heading-row .sahah-tt-h2 { margin-bottom: 0; }
.sahah-tt-carousel-arrows { display: flex; gap: 8px; }
.sahah-tt-arrow {
	width: 42px; height: 42px; border-radius: 50%;
	border: 1px solid var(--tt-border); background: var(--tt-bg-soft);
	color: var(--tt-text); cursor: pointer; font-size: 1rem;
	display: inline-flex; align-items: center; justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}
.sahah-tt-arrow:hover { background: var(--tt-green); color: #06120b; }

.sahah-tt-pamflet-track {
	display: flex; gap: 18px; overflow-x: auto;
	scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding-bottom: 8px; scrollbar-width: thin;
}
.sahah-tt-pamflet-track::-webkit-scrollbar { height: 6px; }
.sahah-tt-pamflet-track::-webkit-scrollbar-thumb { background: var(--tt-border); border-radius: 3px; }
.sahah-tt-pamflet-card {
	flex: 0 0 240px; scroll-snap-align: start;
	border: 1px solid var(--tt-border); border-radius: 16px; overflow: hidden;
	background: var(--tt-bg-card); cursor: pointer; padding: 0;
	text-decoration: none; color: inherit; display: block;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
	transition: transform 0.2s ease;
}
.sahah-tt-pamflet-card:hover { transform: translateY(-5px); }
.sahah-tt-pamflet-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.sahah-tt-pamflet-title { display: block; padding: 12px 14px; font-size: 0.9rem; font-weight: 600; }

/* ===================== KONTAK ===================== */
.sahah-tt-kontak { border-top: 1px solid var(--tt-border); }
.sahah-tt-kontak-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.sahah-tt-kontak-card {
	background: var(--tt-bg-card); border: 1px solid var(--tt-border);
	border-radius: 16px; padding: 22px;
	display: flex; flex-direction: column; gap: 6px;
}
/* Ikon kontak = inline SVG logo brand asli (WhatsApp/Instagram/Facebook) */
.sahah-tt-ic {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 11px; margin-bottom: 8px;
	background: var(--tt-bg-soft, rgba(255, 255, 255, 0.05));
	border: 1px solid var(--tt-border);
	color: var(--tt-green);
}
.sahah-tt-ic svg { width: 22px; height: 22px; display: block; }
.sahah-tt-ic-wa { color: #25d366; }
.sahah-tt-ic-ig { color: #e1306c; }
.sahah-tt-ic-fb { color: #1877f2; }
.sahah-tt-ic-plain { color: var(--tt-gold); }
.sahah-tt-kontak-label {
	font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
	text-transform: uppercase; color: var(--tt-gold);
}
.sahah-tt-kontak-card a, .sahah-tt-kontak-card span:not(.sahah-tt-ic):not(.sahah-tt-kontak-label) {
	font-size: 0.94rem; color: var(--tt-muted); text-decoration: none; line-height: 1.5;
}
.sahah-tt-kontak-card a { color: var(--tt-green); }
.sahah-tt-kontak-card a:hover { text-decoration: underline; }

/* ===================== DONASI ===================== */
.sahah-tt-donasi {
	border-top: 1px solid var(--tt-border);
	background:
		radial-gradient(700px 340px at 50% 0%, rgba(212, 165, 48, 0.09), transparent 60%),
		var(--tt-bg);
}
.sahah-tt-donasi-inner { text-align: center; }
.sahah-tt-donasi-intro { font-size: 1.05rem; line-height: 1.75; color: var(--tt-muted); max-width: 620px; margin: 0 auto 36px; }
.sahah-tt-donasi-grid {
	display: grid; grid-template-columns: 1fr; gap: 26px;
	max-width: 640px; margin: 0 auto; text-align: left;
}
.sahah-tt-rek-list { display: grid; gap: 14px; }
.sahah-tt-rek-card {
	background: var(--tt-bg-card); border: 1px solid var(--tt-border);
	border-left: 3px solid var(--tt-gold);
	border-radius: 14px; padding: 18px 20px;
	display: flex; flex-direction: column; gap: 6px;
}
.sahah-tt-rek-bank { font-weight: 700; font-size: 0.95rem; color: var(--tt-text); }
.sahah-tt-rek-nomor-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sahah-tt-rek-nomor { font-family: var(--tt-serif); font-size: 1.25rem; letter-spacing: 0.04em; color: var(--tt-gold); }
.sahah-tt-rek-nama { font-size: 0.85rem; color: var(--tt-muted); }
.sahah-tt-copy {
	border: 1px solid var(--tt-border); background: transparent; color: var(--tt-green);
	font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.sahah-tt-copy:hover { background: var(--tt-green); color: #06120b; }
.sahah-tt-copy.is-copied { background: var(--tt-green); color: #06120b; }

.sahah-tt-qris {
	background: var(--tt-bg-card); border: 1px solid var(--tt-border);
	border-radius: 16px; padding: 20px; text-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.sahah-tt-qris img { max-width: 260px; width: 100%; height: auto; border-radius: 10px; }

/* ===================== LIGHTBOX ===================== */
.sahah-tt-lightbox {
	position: fixed; inset: 0; z-index: 9999;
	display: none; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, 0.9); padding: 30px;
}
.sahah-tt-lightbox.is-open { display: flex; }
.sahah-tt-lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.sahah-tt-lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 8px; }
.sahah-tt-lightbox figcaption { color: #eee; margin-top: 12px; font-size: 0.9rem; }
.sahah-tt-lightbox-close {
	position: absolute; top: 20px; right: 26px;
	background: none; border: none; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 720px) {
	.sahah-tt-section { padding: 56px 0; }
	.sahah-tt-timeline { flex-direction: column; gap: 8px; }
	.sahah-tt-timeline-marker {
		flex-direction: row; gap: 12px; flex-basis: auto; padding-top: 0; margin-bottom: 12px;
	}
	.sahah-tt-timeline-marker::after { display: none; }
	.sahah-tt-dot { margin-bottom: 0; }
	.sahah-tt-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
	.sahah-tt-pamflet-card { flex-basis: 190px; }
}

@media (prefers-reduced-motion: reduce) {
	.sahah-tt-reveal { transition: none; opacity: 1; transform: none; }
	.sahah-tt-gitem img { transition: none; }
}

/* ===================== RTL (versi Bahasa Arab) ===================== */
/* Layout flex/grid mirror otomatis lewat dir="rtl"; ini menambal item
   yang arahnya di-hardcode (padding/border satu sisi & text-align). */
.sahah-tentang[dir="rtl"] { text-align: right; }
.sahah-tentang[dir="rtl"] .sahah-tt-hero-inner,
.sahah-tentang[dir="rtl"] .sahah-tt-donasi-inner { text-align: center; }

.sahah-tentang[dir="rtl"] .sahah-tt-misi-list li { padding-left: 0; padding-right: 40px; }
.sahah-tentang[dir="rtl"] .sahah-tt-misi-list li::before { left: auto; right: 0; }

.sahah-tentang[dir="rtl"] .sahah-tt-rek-list { text-align: right; }
.sahah-tentang[dir="rtl"] .sahah-tt-rek-card {
	border-left: none;
	border-right: 3px solid var(--tt-gold);
}

.sahah-tentang[dir="rtl"] .sahah-tt-gitem-cap { text-align: right; }

/* Carousel pamflet tetap geser normal; arah scroll mengikuti dir */
.sahah-tentang[dir="rtl"] .sahah-tt-pamflet-track { direction: rtl; }
