/*
Theme Name: Kadence Sunahero
Theme URI: https://sunahero.com
Description: Child theme Kadence untuk Sunahero. Palet biru-kuning komik mengikuti feed Instagram, plus landing page.
Author: Sunahero
Template: kadence
Version: 1.2.0
Text Domain: kadence-sunahero
*/

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Bree+Serif&family=Roboto:wght@300;400;500;700&display=swap');

/* ============================================================
   PALET. Ubah warna situs dari sini, bukan dari Customizer.
   ============================================================ */
:root {
	--sh-blue: #1f3fd1;
	--sh-blue-dark: #142a92;
	--sh-yellow: #ffd400;
	--sh-yellow-dark: #e8bd00;
	--sh-black: #0d0d0d;
	--sh-ink: #1c2238;
	--sh-muted: #5a6072;
	--sh-line: #d9ddea;
	--sh-bg: #f2f5ff;
	--sh-white: #ffffff;

	/* Garis tebal + bayangan keras: dasar nuansa komik. */
	--sh-outline: 3px solid var(--sh-black);
	--sh-shadow: 5px 5px 0 var(--sh-black);
	--sh-shadow-sm: 3px 3px 0 var(--sh-black);

	--global-palette1: var(--sh-blue);
	--global-palette2: var(--sh-blue-dark);
	--global-palette3: var(--sh-black);
	--global-palette4: var(--sh-ink);
	--global-palette5: var(--sh-muted);
	--global-palette6: var(--sh-line);
	--global-palette7: var(--sh-bg);
	--global-palette8: #fafbff;
	--global-palette9: var(--sh-white);
	--global-palette1rgb: 31, 63, 209;
	--global-palette9rgb: 255, 255, 255;

	--sh-font-body: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--sh-font-head: 'Bricolage Grotesque', Roboto, sans-serif;
	--sh-font-accent: 'Bree Serif', Georgia, serif;

	--global-body-font-family: var(--sh-font-body);
	--global-heading-font-family: var(--sh-font-head);
}

body {
	font-family: var(--sh-font-body);
	color: var(--sh-ink);
}

h1, h2, h3, h4, h5, h6, .site-title {
	font-family: var(--sh-font-head);
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--sh-black);
}

.button,
.wp-block-button__link,
input[type="submit"] {
	background: var(--sh-blue);
	color: var(--sh-white);
	border-radius: 10px;
	font-weight: 600;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
	background: var(--sh-blue-dark);
	color: var(--sh-white);
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.sh-section {
	padding: clamp(3rem, 7vw, 5.5rem) 1.25rem;
}

.sh-section--light {
	background: var(--sh-bg);
}

.sh-section--dark {
	background: var(--sh-black);
	color: #e9e9e9;
}

.sh-section--dark h2,
.sh-section--dark h3 {
	color: var(--sh-white);
}

.sh-wrap {
	max-width: 1140px;
	margin: 0 auto;
}

.sh-eyebrow {
	font-family: var(--sh-font-accent);
	color: var(--sh-blue);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.85rem;
	margin: 0 0 0.75rem;
}

.sh-section--dark .sh-eyebrow {
	color: var(--sh-yellow);
}

.sh-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	line-height: 1.15;
	margin: 0 0 1rem;
}

.sh-lead {
	font-size: 1.05rem;
	color: var(--sh-muted);
	max-width: 46rem;
	margin: 0 0 1.5rem;
}

.sh-section--dark .sh-lead {
	color: #c9c9c9;
}

.sh-center {
	text-align: center;
}

.sh-center .sh-lead {
	margin-left: auto;
	margin-right: auto;
}

/* Tombol */
.sh-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.9rem 1.6rem;
	border-radius: 10px;
	background: var(--sh-blue);
	color: var(--sh-white);
	font-weight: 600;
	text-decoration: none;
	border: 2px solid var(--sh-blue);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.sh-btn:hover,
.sh-btn:focus {
	background: var(--sh-blue-dark);
	border-color: var(--sh-blue-dark);
	color: var(--sh-white);
}

.sh-btn--ghost {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}

.sh-btn--ghost:hover,
.sh-btn--ghost:focus {
	background: var(--sh-white);
	border-color: var(--sh-white);
	color: var(--sh-black);
}

.sh-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.sh-center .sh-btns {
	justify-content: center;
}

/* Hero */
.sh-hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: min(82vh, 680px);
	padding: clamp(4rem, 10vw, 7rem) 1.25rem;
	text-align: center;
	color: var(--sh-white);
	background: var(--sh-black) center/cover no-repeat;
	overflow: hidden;
}

.sh-hero__media {
	position: absolute;
	inset: 0;
}

.sh-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sh-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75));
}

.sh-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 54rem;
}

.sh-hero h1 {
	color: var(--sh-white);
	font-size: clamp(2.2rem, 6.5vw, 4.2rem);
	line-height: 1.08;
	margin: 0 0 1rem;
}

.sh-hero p {
	font-size: clamp(1rem, 2.2vw, 1.2rem);
	color: #e6e6e6;
	margin: 0 auto 1.75rem;
	max-width: 42rem;
}

.sh-hero .sh-eyebrow {
	color: var(--sh-yellow);
}

.sh-note {
	margin-top: 1.25rem;
	font-size: 0.9rem;
	color: #cfcfcf;
}

/* Grid kartu */
.sh-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.sh-grid--4 {
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.sh-card {
	background: var(--sh-white);
	border: 1px solid var(--sh-line);
	border-radius: 14px;
	padding: 1.6rem;
}

.sh-card h3 {
	font-size: 1.15rem;
	margin: 0 0 0.5rem;
}

.sh-card p {
	margin: 0;
	color: var(--sh-muted);
	font-size: 0.98rem;
}

.sh-card__icon {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: rgba(31, 63, 209, 0.12);
	color: var(--sh-blue);
	margin-bottom: 1rem;
}

.sh-card__icon svg {
	width: 22px;
	height: 22px;
}

/* Dua kolom teks + gambar */
.sh-split {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.sh-split--flip .sh-split__media {
	order: -1;
}

@media (max-width: 680px) {
	.sh-split--flip .sh-split__media {
		order: 0;
	}
}

.sh-split__media img,
.sh-figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
	display: block;
}

.sh-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.85rem;
}

.sh-list li {
	padding-left: 1.9rem;
	position: relative;
	color: var(--sh-ink);
}

.sh-section--dark .sh-list li {
	color: #dcdcdc;
}

.sh-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--sh-blue);
	box-shadow: inset 0 0 0 3px var(--sh-white);
}

/* Galeri */
.sh-gallery {
	display: grid;
	gap: 0.9rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sh-gallery .sh-figure {
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	overflow: hidden;
}

/* Placeholder gambar */
.sh-ph {
	display: grid;
	place-items: center;
	gap: 0.35rem;
	min-height: 220px;
	height: 100%;
	border-radius: 16px;
	border: 2px dashed rgba(31, 63, 209, 0.45);
	background: repeating-linear-gradient(45deg, #e7ecff, #e7ecff 12px, #dbe3ff 12px, #dbe3ff 24px);
	color: var(--sh-blue-dark);
	font-family: var(--sh-font-body);
	text-align: center;
	padding: 1rem;
}

.sh-ph__name {
	font-weight: 700;
	font-size: 0.95rem;
	word-break: break-all;
}

.sh-ph__hint {
	font-size: 0.78rem;
	opacity: 0.8;
}

.sh-hero .sh-ph {
	position: absolute;
	inset: 0;
	border: 0;
	border-radius: 0;
	opacity: 0.35;
}

/* FAQ */
.sh-faq {
	display: grid;
	gap: 0.75rem;
	max-width: 48rem;
	margin: 0 auto;
}

.sh-faq details {
	background: var(--sh-white);
	border: 1px solid var(--sh-line);
	border-radius: 12px;
	padding: 1rem 1.2rem;
}

.sh-faq summary {
	cursor: pointer;
	font-weight: 600;
	font-family: var(--sh-font-head);
	list-style: none;
}

.sh-faq summary::-webkit-details-marker {
	display: none;
}

.sh-faq summary::after {
	content: "+";
	float: right;
	color: var(--sh-blue);
	font-size: 1.3rem;
	line-height: 1;
}

.sh-faq details[open] summary::after {
	content: "\2212";
}

.sh-faq p {
	margin: 0.75rem 0 0;
	color: var(--sh-muted);
}

/* Testimoni */
.sh-quote {
	background: var(--sh-white);
	border: 1px solid var(--sh-line);
	border-left: 4px solid var(--sh-blue);
	border-radius: 14px;
	padding: 1.5rem;
}

.sh-quote p {
	margin: 0 0 0.9rem;
	font-size: 1rem;
}

.sh-quote cite {
	font-style: normal;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--sh-muted);
}

/* Blok kontak akhir */
.sh-contact {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	margin-top: 2rem;
	text-align: left;
}

.sh-contact h3 {
	font-size: 1rem;
	margin: 0 0 0.35rem;
	color: var(--sh-white);
}

.sh-contact p {
	margin: 0;
	color: #c9c9c9;
	font-size: 0.98rem;
}

/* Tombol WhatsApp melayang */
.sh-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.1rem;
	border-radius: 999px;
	background: #25d366;
	color: #0b3d20;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.sh-float:hover,
.sh-float:focus {
	color: #0b3d20;
	background: #1fbe5a;
}

.sh-float svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

@media (max-width: 600px) {
	.sh-float span {
		display: none;
	}

	.sh-float {
		padding: 0.95rem;
	}
}

/* ============================================================
   NUANSA KOMIK. Outline tebal + bayangan keras + halftone,
   mengikuti gaya poster di Instagram Sunahero.
   ============================================================ */
h1, h2, h3, .site-title {
	font-weight: 800;
}

.sh-title,
.sh-hero h1 {
	text-wrap: balance;
}

/* Tombol utama: kuning, teks gelap, outline hitam, bayangan keras. */
.button,
.wp-block-button__link,
input[type="submit"],
.sh-btn {
	background: var(--sh-yellow);
	color: var(--sh-black);
	border: var(--sh-outline);
	border-radius: 12px;
	font-weight: 700;
	box-shadow: var(--sh-shadow-sm);
	transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
.sh-btn:hover,
.sh-btn:focus {
	background: var(--sh-yellow-dark);
	color: var(--sh-black);
	border-color: var(--sh-black);
	transform: translate(-1px, -1px);
	box-shadow: 4px 4px 0 var(--sh-black);
}

.button:active,
.wp-block-button__link:active,
.sh-btn:active {
	transform: translate(3px, 3px);
	box-shadow: 0 0 0 var(--sh-black);
}

/* Tombol sekunder di atas latar gelap tetap kontras. */
.sh-btn--ghost {
	background: var(--sh-white);
	color: var(--sh-black);
	border-color: var(--sh-black);
}

.sh-btn--ghost:hover,
.sh-btn--ghost:focus {
	background: var(--sh-bg);
	color: var(--sh-black);
}

/* Kartu, FAQ, kutipan: panel komik. */
.sh-card,
.sh-faq details,
.sh-quote {
	border: var(--sh-outline);
	border-radius: 14px;
	box-shadow: var(--sh-shadow);
}

.sh-quote {
	border-left: 8px solid var(--sh-yellow);
}

.sh-card__icon {
	border: 2px solid var(--sh-black);
	background: var(--sh-yellow);
	color: var(--sh-black);
}

/* Latar halftone tipis pada seksi terang. */
.sh-section--light {
	background-color: var(--sh-bg);
	background-image: radial-gradient(var(--sh-line) 1.4px, transparent 1.4px);
	background-size: 14px 14px;
}

/* Seksi gelap jadi biru komik, bukan hitam. */
.sh-section--dark {
	background-color: var(--sh-blue-dark);
	background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.4px, transparent 1.4px);
	background-size: 16px 16px;
	color: #e8ecff;
}

.sh-section--dark .sh-lead,
.sh-section--dark .sh-list li,
.sh-contact p {
	color: #d4dbff;
}

/* Eyebrow jadi stiker kuning. */
.sh-eyebrow {
	display: inline-block;
	background: var(--sh-yellow);
	color: var(--sh-black);
	border: 2px solid var(--sh-black);
	border-radius: 999px;
	padding: 0.25rem 0.8rem;
	box-shadow: var(--sh-shadow-sm);
}

/* Hero: tirai biru, bukan hitam pekat. */
.sh-hero {
	background-color: var(--sh-blue-dark);
}

.sh-hero::after {
	background: linear-gradient(180deg, rgba(20, 42, 146, 0.6), rgba(13, 13, 13, 0.8));
}

.sh-hero h1 {
	text-shadow: 3px 3px 0 var(--sh-blue-dark);
}

.sh-list li::before {
	background: var(--sh-yellow);
	box-shadow: inset 0 0 0 3px var(--sh-black);
}

.sh-gallery .sh-figure,
.sh-split__media img,
.sh-figure img {
	border: var(--sh-outline);
}

.sh-faq summary::after {
	color: var(--sh-blue);
}

.sh-float {
	border: var(--sh-outline);
	box-shadow: var(--sh-shadow-sm);
}

.sh-section--dark .sh-eyebrow,
.sh-hero .sh-eyebrow {
	color: var(--sh-black);
}
