/* ==========================================================
   Ghaith Academy — main stylesheet
   Layout language inspired by Muslim Path; Ghaith colours.
   ========================================================== */

:root {
	--gh-primary: #006f7f;
	--gh-primary-2: #0c8fa3;
	--gh-cyan: #10a9bf;
	--gh-ink: #063f4a;
	--gh-text: #4a6268;
	--gh-muted: #6f8589;
	--gh-gold: #f2a51f;
	--gh-cream: #fff8ea;
	--gh-soft: #f3f9fa;
	--gh-line: #e1ecee;
	--gh-white: #ffffff;
	--gh-bg: #ffffff;
	--gh-card: #ffffff;
	--gh-radius: 22px;
	--gh-radius-sm: 12px;
	--gh-shadow: 0 18px 44px rgba(6, 63, 74, .08);
	--gh-shadow-lg: 0 28px 70px rgba(6, 63, 74, .14);
	--gh-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--gh-font-ar: "Tajawal", "Manrope", system-ui, sans-serif;
	--gh-header-h: 74px;
}

html.gh-dark {
	--gh-ink: #f2fbfc;
	--gh-text: #b9cfd3;
	--gh-muted: #8fa9ae;
	--gh-soft: #0f2a2e;
	--gh-line: rgba(255, 255, 255, .10);
	--gh-bg: #0a1e21;
	--gh-card: #0f2a2e;
	--gh-cream: #0f2a2e;
	--gh-shadow: 0 18px 44px rgba(0, 0, 0, .35);
	--gh-shadow-lg: 0 28px 70px rgba(0, 0, 0, .45);
	color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--gh-bg);
	color: var(--gh-text);
	font-family: var(--gh-font);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
	padding-top: var(--gh-header-h);
}

html.gh-ar body { font-family: var(--gh-font-ar); }

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

a { color: var(--gh-primary); text-decoration: none; }
a:hover { color: var(--gh-cyan); }

h1, h2, h3, h4 { color: var(--gh-ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
html.gh-ar h1, html.gh-ar h2, html.gh-ar h3 { letter-spacing: 0; line-height: 1.4; }

p { margin: 0 0 1em; }

button { font: inherit; }

:focus-visible { outline: 3px solid var(--gh-gold); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text,
.gh-skip-link {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.gh-skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100000; top: 10px; left: 10px;
	padding: 10px 16px; background: var(--gh-primary); color: #fff; border-radius: 10px;
}

.gh-container { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.gh-container--narrow { width: min(780px, calc(100% - 40px)); }

.gh-flip svg { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }
html.gh-ar .gh-flip svg { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.gh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px;
	border-radius: 12px; border: 1px solid transparent;
	font-weight: 800; font-size: .95rem; line-height: 1;
	cursor: pointer; white-space: nowrap;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.gh-btn:hover { transform: translateY(-2px); }
.gh-btn--sm { min-height: 40px; padding: 0 16px; font-size: .86rem; border-radius: 11px; }
.gh-btn--block { width: 100%; }

.gh-btn--primary {
	background: linear-gradient(135deg, var(--gh-primary), var(--gh-cyan));
	color: #fff;
	box-shadow: 0 12px 26px rgba(0, 111, 127, .22);
}
.gh-btn--primary:hover { color: #fff; box-shadow: 0 16px 34px rgba(0, 111, 127, .30); }

.gh-btn--ghost { background: var(--gh-card); color: var(--gh-ink); border-color: var(--gh-line); }
.gh-btn--ghost:hover { color: var(--gh-primary); border-color: rgba(0, 111, 127, .35); }

.gh-btn--soft { background: rgba(16, 169, 191, .10); color: var(--gh-primary); border-color: rgba(16, 169, 191, .18); }
html.gh-dark .gh-btn--soft { color: #8ff4ff; }
.gh-btn--soft:hover { background: rgba(16, 169, 191, .18); color: var(--gh-primary); }

.gh-btn--light { background: #fff; color: var(--gh-primary); box-shadow: 0 14px 30px rgba(0, 0, 0, .16); }
.gh-btn--light:hover { color: var(--gh-ink); }
.gh-btn__icon svg { width: 20px; height: 20px; color: #25d366; }

.gh-link-more {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 800; font-size: .92rem; color: var(--gh-primary);
}
html.gh-dark .gh-link-more { color: #8ff4ff; }

.gh-kicker {
	display: inline-flex; align-items: center; gap: 10px;
	color: var(--gh-primary); font-weight: 800; font-size: .82rem;
	text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px;
}
.gh-kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gh-gold), var(--gh-cyan)); }
html.gh-ar .gh-kicker { letter-spacing: 0; text-transform: none; font-size: .95rem; }
html.gh-dark .gh-kicker { color: #8ff4ff; }

/* ---------- Header ---------- */
.gh-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
	background: rgba(255, 255, 255, .9);
	backdrop-filter: blur(16px) saturate(150%);
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	border-bottom: 1px solid var(--gh-line);
	transition: box-shadow .2s ease;
}
.admin-bar .gh-header { top: 32px; }
html.gh-dark .gh-header { background: rgba(10, 30, 33, .9); }
.gh-header.is-scrolled { box-shadow: 0 10px 30px rgba(6, 63, 74, .08); }

.gh-header__shell { display: flex; align-items: center; gap: 18px; min-height: var(--gh-header-h); }

.gh-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gh-ink); flex-shrink: 0; }
.gh-brand:hover { color: var(--gh-ink); }
.gh-brand__mark { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; }
.gh-brand__copy { display: flex; flex-direction: column; line-height: 1.05; }
.gh-brand__copy strong { font-size: 1.08rem; font-weight: 800; color: var(--gh-ink); }
.gh-brand__copy small { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gh-muted); margin-top: 3px; }
html.gh-ar .gh-brand__copy small { letter-spacing: 0; font-size: .8rem; }

.gh-nav { flex: 1; display: flex; justify-content: center; }
.gh-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.gh-menu__item { position: relative; }
.gh-menu__link {
	display: inline-flex; align-items: center; gap: 4px;
	height: 40px; padding: 0 12px; border-radius: 10px;
	background: none; border: 0; cursor: pointer;
	color: var(--gh-text); font-weight: 700; font-size: .9rem; white-space: nowrap;
}
.gh-menu__link:hover,
.gh-menu__link.is-active { color: var(--gh-primary); background: rgba(16, 169, 191, .09); }
html.gh-dark .gh-menu__link:hover,
html.gh-dark .gh-menu__link.is-active { color: #8ff4ff; }
.gh-caret { width: 18px; height: 18px; transition: transform .2s ease; }
.gh-menu__item--parent.is-open .gh-caret { transform: rotate(180deg); }

.gh-submenu {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: calc(100% + 10px); inset-inline-start: 50%;
	transform: translate(-50%, 6px);
	min-width: 230px; border-radius: 16px;
	background: var(--gh-card); border: 1px solid var(--gh-line); box-shadow: var(--gh-shadow-lg);
	opacity: 0; visibility: hidden; transition: .18s ease;
}
html.gh-ar .gh-submenu { transform: translate(50%, 6px); }
.gh-menu__item--parent:hover .gh-submenu,
.gh-menu__item--parent.is-open .gh-submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
html.gh-ar .gh-menu__item--parent:hover .gh-submenu,
html.gh-ar .gh-menu__item--parent.is-open .gh-submenu { transform: translate(50%, 0); }
.gh-submenu__link { display: block; padding: 10px 12px; border-radius: 10px; color: var(--gh-text); font-weight: 700; font-size: .9rem; }
.gh-submenu__link:hover { background: rgba(16, 169, 191, .09); color: var(--gh-primary); }

.gh-header__actions { display: flex; align-items: center; gap: 8px; }
.gh-icon-btn {
	width: 40px; height: 40px; border-radius: 11px;
	display: inline-grid; place-items: center;
	background: var(--gh-card); border: 1px solid var(--gh-line);
	color: var(--gh-ink); font-weight: 800; font-size: .82rem; cursor: pointer;
	transition: border-color .2s ease, color .2s ease;
}
.gh-icon-btn:hover { border-color: rgba(0, 111, 127, .35); color: var(--gh-primary); }
.gh-icon-btn svg { width: 19px; height: 19px; }
.gh-ico-sun { display: none; }
html.gh-dark .gh-ico-sun { display: inline-flex; }
html.gh-dark .gh-ico-moon { display: none; }

.gh-burger { display: none; gap: 4px; align-content: center; }
.gh-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: .2s ease; }
.gh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.gh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
	.gh-burger { display: inline-grid; }
	.gh-header__cta { display: none; }
	.gh-header__shell { justify-content: space-between; }
	.gh-nav {
		position: fixed; inset: var(--gh-header-h) 0 auto 0;
		max-height: calc(100vh - var(--gh-header-h)); overflow-y: auto;
		background: var(--gh-bg); border-bottom: 1px solid var(--gh-line);
		box-shadow: var(--gh-shadow-lg);
		padding: 12px 20px 22px;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease;
	}
	.admin-bar .gh-nav { top: calc(var(--gh-header-h) + 46px); }
	body.gh-menu-open .gh-nav { opacity: 1; visibility: visible; transform: none; }
	.gh-menu { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
	.gh-menu__link { width: 100%; height: 48px; justify-content: space-between; font-size: 1rem; }
	.gh-submenu {
		position: static; transform: none !important; opacity: 1; visibility: visible;
		box-shadow: none; border: 0; background: var(--gh-soft); display: none; margin-top: 4px;
	}
	.gh-menu__item--parent.is-open .gh-submenu { display: block; }
}

@media (max-width: 480px) {
	.gh-brand__copy small { display: none; }
	.gh-header__actions { gap: 6px; }
	.gh-icon-btn { width: 38px; height: 38px; }
}

/* ---------- Hero (cover style) ---------- */
.gh-hero { width: min(1320px, calc(100% - 40px)); margin: 22px auto 0; }

.gh-hero__media {
	height: clamp(220px, 32vw, 400px);
	border-radius: 28px;
	background-color: #dcecee;
	background-size: cover; background-position: center right;
	position: relative; overflow: hidden;
}
.gh-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(to top, rgba(6, 63, 74, .25), rgba(6, 63, 74, 0) 45%),
		radial-gradient(circle at 15% 20%, rgba(16, 169, 191, .18), transparent 40%);
}

.gh-hero__logo {
	width: 140px; height: 140px; margin: -70px auto 0;
	position: relative; z-index: 2;
	border-radius: 50%; background: var(--gh-bg);
	padding: 10px; box-shadow: 0 16px 40px rgba(6, 63, 74, .16);
	display: grid; place-items: center;
}
.gh-hero__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

.gh-hero__content { max-width: 940px; margin: 22px auto 0; text-align: center; padding-inline: 4px; }
.gh-hero__content .gh-kicker { justify-content: center; }
.gh-hero__title {
	font-size: clamp(2.05rem, 5vw, 4.4rem);
	line-height: 1.06; letter-spacing: -.035em; font-weight: 800;
	text-wrap: balance; margin: 0;
}
html.gh-ar .gh-hero__title { font-size: clamp(1.9rem, 4.4vw, 3.8rem); line-height: 1.3; }
.gh-hero__intro {
	max-width: 760px; margin: 20px auto 0;
	font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.9; color: var(--gh-text);
}
.gh-hero__actions { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.gh-social { display: flex; gap: 9px; margin-top: 18px; }
.gh-social--center { justify-content: center; margin-top: 22px; }
.gh-social__link {
	width: 42px; height: 42px; border-radius: 50%;
	display: grid; place-items: center;
	color: #fff; transition: transform .2s ease;
}
.gh-social__link:hover { transform: translateY(-3px); color: #fff; }
.gh-social__link svg { width: 20px; height: 20px; }
.gh-social__link--wa { background: #25d366; }
.gh-social__link--fb { background: #1877f2; }
.gh-social__link--mail { background: var(--gh-primary); }

/* ---------- Stats strip ---------- */
.gh-stats {
	width: min(1240px, calc(100% - 40px));
	margin: 46px auto 0;
	border-top: 1px solid var(--gh-line); border-bottom: 1px solid var(--gh-line);
}
.gh-stats__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gh-stat { position: relative; text-align: center; padding: 26px 12px; }
.gh-stat:not(:last-child)::after {
	content: ""; position: absolute; top: 28%; bottom: 28%; inset-inline-end: 0; width: 1px; background: var(--gh-line);
}
.gh-stat::before {
	content: ""; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
	width: 0; height: 3px; background: var(--gh-gold); transition: width .4s ease;
}
.gh-stat:hover::before { width: 42px; }
.gh-stat__value {
	display: flex; justify-content: center; align-items: baseline; gap: 2px;
	color: var(--gh-primary); font-weight: 800; letter-spacing: -.03em; line-height: 1;
	font-size: clamp(1.7rem, 3vw, 3rem); font-variant-numeric: tabular-nums;
}
html.gh-dark .gh-stat__value { color: #8ff4ff; }
.gh-stat__suffix { color: var(--gh-gold); font-size: .7em; }
.gh-stat p { margin: 10px 0 0; font-size: .86rem; font-weight: 700; color: var(--gh-muted); line-height: 1.35; }

@media (max-width: 640px) {
	.gh-stats { width: calc(100% - 24px); margin-top: 32px; }
	.gh-stat { padding: 18px 4px; }
	.gh-stat p { font-size: .72rem; }
}

/* ---------- Sections ---------- */
.gh-section { padding: clamp(64px, 8vw, 104px) 0; }
.gh-section--tight { padding-top: 40px; }
.gh-section__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.gh-section__head { max-width: 720px; }
.gh-section__head h2 { font-size: clamp(1.75rem, 3.4vw, 2.8rem); }
.gh-section__head p { font-size: 1.04rem; margin: 0; }
.gh-section__head--center { margin: 0 auto 40px; text-align: center; }
.gh-section__head--center .gh-kicker { justify-content: center; }
.gh-section__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }

/* ---------- Slider ---------- */
.gh-slider-controls { display: flex; gap: 8px; flex-shrink: 0; }
.gh-arrow {
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--gh-card); border: 1px solid var(--gh-line); color: var(--gh-ink);
	font-size: 1.1rem; cursor: pointer; transition: .2s ease;
}
.gh-arrow:hover { background: var(--gh-primary); border-color: var(--gh-primary); color: #fff; }
.gh-arrow:disabled { opacity: .4; cursor: default; background: var(--gh-card); color: var(--gh-ink); border-color: var(--gh-line); }

.gh-slider {
	overflow-x: auto; overflow-y: hidden;
	scroll-snap-type: x mandatory; scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch; scrollbar-width: none;
	padding: 6px 0 26px;
}
.gh-slider::-webkit-scrollbar { display: none; }
.gh-slider { direction: ltr; }
html.gh-ar .gh-slider .gh-card { direction: rtl; }
.gh-slider__track {
	display: flex; gap: 20px;
	padding-inline: max(20px, calc((100vw - 1240px) / 2));
	width: max-content;
}

.gh-card {
	background: var(--gh-card); border: 1px solid var(--gh-line);
	border-radius: var(--gh-radius); overflow: hidden;
	box-shadow: var(--gh-shadow);
	transition: transform .25s ease, box-shadow .25s ease;
}
.gh-card:hover { transform: translateY(-4px); box-shadow: var(--gh-shadow-lg); }

.gh-program, .gh-curriculum { width: min(82vw, 360px); flex-shrink: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.gh-program__visual, .gh-curriculum__visual { position: relative; display: block; aspect-ratio: 16 / 10.5; background: var(--gh-soft); overflow: hidden; }
.gh-program__visual img, .gh-curriculum__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gh-card:hover .gh-program__visual img, .gh-card:hover .gh-curriculum__visual img { transform: scale(1.04); }
.gh-program__index {
	position: absolute; top: 14px; inset-inline-start: 14px;
	min-width: 40px; height: 32px; padding: 0 10px; border-radius: 10px;
	display: grid; place-items: center;
	background: rgba(255, 255, 255, .92); color: var(--gh-primary); font-weight: 800; font-size: .85rem;
}
.gh-program__body, .gh-curriculum__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.gh-program__meta {
	display: inline-block; align-self: flex-start;
	padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
	background: rgba(242, 165, 31, .13); color: #a56a00; font-size: .76rem; font-weight: 800;
}
html.gh-dark .gh-program__meta { color: var(--gh-gold); }
.gh-program h3, .gh-curriculum h3 { font-size: 1.3rem; margin-bottom: 8px; }
.gh-program h3 a { color: var(--gh-ink); }
.gh-program h3 a:hover { color: var(--gh-primary); }
.gh-program p, .gh-curriculum p { font-size: .95rem; margin-bottom: 18px; }
.gh-program__actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.gh-progress { flex: 1; max-width: 340px; height: 3px; border-radius: 3px; background: var(--gh-line); overflow: hidden; }
.gh-progress span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--gh-primary), var(--gh-cyan)); border-radius: 3px; transition: width .2s ease; }

/* ---------- Steps ---------- */
.gh-steps-section { background: var(--gh-soft); }
.gh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.gh-step {
	position: relative; padding: 28px 22px 24px;
	background: var(--gh-card); border: 1px solid var(--gh-line); border-radius: var(--gh-radius);
}
.gh-step__num {
	width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px;
	display: grid; place-items: center;
	background: linear-gradient(135deg, var(--gh-primary), var(--gh-cyan)); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.gh-step h3 { font-size: 1.12rem; }
.gh-step p { font-size: .93rem; margin: 0; }
@media (max-width: 980px) { .gh-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gh-steps { grid-template-columns: 1fr; } }

/* ---------- Trial ---------- */
.gh-trial__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.gh-trial__media { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--gh-shadow-lg); aspect-ratio: 1 / 1; }
.gh-trial__media img { width: 100%; height: 100%; object-fit: cover; }
.gh-trial__badge {
	position: absolute; bottom: 16px; inset-inline-start: 16px;
	padding: 10px 14px; border-radius: 12px;
	background: rgba(6, 63, 74, .85); color: #fff; font-weight: 800; font-size: .85rem;
	backdrop-filter: blur(8px);
}
.gh-trial__copy h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.gh-trial__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 900px) { .gh-trial__grid { grid-template-columns: 1fr; } .gh-trial__media { aspect-ratio: 4 / 3; } }

.gh-checklist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.gh-checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--gh-ink); }
html.gh-dark .gh-checklist li { color: var(--gh-text); }
.gh-checklist__icon {
	flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; margin-top: 2px;
	display: grid; place-items: center; background: rgba(16, 169, 191, .13); color: var(--gh-primary);
}
.gh-checklist__icon svg { width: 15px; height: 15px; }
.gh-checklist--sm { gap: 9px; margin: 18px 0 22px; }
.gh-checklist--sm li { font-size: .9rem; }

/* ---------- Why ---------- */
.gh-why { background: linear-gradient(180deg, var(--gh-cream), var(--gh-bg)); }
.gh-why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gh-why__item {
	display: block; padding: 24px 22px;
	background: var(--gh-card); border: 1px solid var(--gh-line); border-radius: 18px;
	transition: .25s ease;
}
.gh-why__item:hover { border-color: rgba(0, 111, 127, .3); transform: translateY(-3px); box-shadow: var(--gh-shadow); }
.gh-why__num { display: block; color: var(--gh-gold); font-weight: 800; font-size: .85rem; margin-bottom: 10px; }
.gh-why__item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.gh-why__item p { font-size: .9rem; margin: 0; color: var(--gh-text); }
@media (max-width: 980px) { .gh-why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gh-why__grid { grid-template-columns: 1fr 1fr; gap: 10px; } .gh-why__item { padding: 18px 14px; } .gh-why__item p { display: none; } }

/* ---------- Video ---------- */
.gh-video { background: var(--gh-soft); }
.gh-video__frame {
	position: relative; max-width: 960px; margin: 0 auto;
	aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden;
	background: #062f37; box-shadow: var(--gh-shadow-lg); cursor: pointer;
}
.gh-video__frame img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.gh-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gh-video__play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .95); color: var(--gh-primary);
	display: grid; place-items: center; box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
	transition: transform .2s ease;
}
.gh-video__frame:hover .gh-video__play { transform: translate(-50%, -50%) scale(1.07); }
.gh-video__play svg { width: 34px; height: 34px; margin-left: 4px; }

/* ---------- Pricing ---------- */
.gh-tabs {
	display: flex; justify-content: center; gap: 6px; width: fit-content; margin: 0 auto 30px;
	padding: 6px; border-radius: 14px; background: var(--gh-soft); border: 1px solid var(--gh-line);
}
.gh-tab {
	border: 0; background: none; cursor: pointer;
	padding: 10px 18px; border-radius: 10px; font-weight: 800; font-size: .92rem; color: var(--gh-text);
}
.gh-tab.is-active { background: var(--gh-card); color: var(--gh-primary); box-shadow: 0 6px 16px rgba(6, 63, 74, .10); }
html.gh-dark .gh-tab.is-active { color: #8ff4ff; }

.gh-plans { display: none; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1060px; margin: 0 auto; }
.gh-plans.is-active { display: grid; }
.gh-plan {
	position: relative; padding: 30px 26px 26px;
	background: var(--gh-card); border: 1px solid var(--gh-line); border-radius: var(--gh-radius);
}
.gh-plan--featured { border: 2px solid var(--gh-primary); box-shadow: var(--gh-shadow-lg); }
.gh-plan__badge {
	position: absolute; top: -13px; inset-inline-start: 24px;
	padding: 5px 12px; border-radius: 999px;
	background: var(--gh-gold); color: #3a2600; font-size: .75rem; font-weight: 800;
}
.gh-plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.gh-plan__freq { font-size: .9rem; color: var(--gh-muted); margin: 0; }
.gh-plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.gh-plan__amount { font-size: 2.6rem; font-weight: 800; color: var(--gh-ink); letter-spacing: -.03em; line-height: 1; }
.gh-plan__per { font-weight: 700; color: var(--gh-muted); }
.gh-plan__old { color: var(--gh-muted); font-size: .9rem; margin-inline-start: auto; }
@media (max-width: 900px) {
	.gh-plans { grid-template-columns: 1fr; max-width: 460px; }
	.gh-plan--featured { order: -1; }
}

/* ---------- Final CTA ---------- */
.gh-cta { padding: 0 0 clamp(64px, 8vw, 100px); }
.gh-cta__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: clamp(30px, 5vw, 52px);
	border-radius: 30px;
	background:
		radial-gradient(circle at 85% 20%, rgba(242, 165, 31, .28), transparent 35%),
		linear-gradient(135deg, #054c59, var(--gh-primary) 55%, var(--gh-cyan));
	color: #fff;
}
.gh-cta__inner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.3rem); }
.gh-cta__inner p { margin: 0; color: rgba(255, 255, 255, .88); }
@media (max-width: 760px) { .gh-cta__inner { flex-direction: column; text-align: center; } }

/* ---------- Footer ---------- */
.gh-footer { background: #062f37; color: rgba(255, 255, 255, .78); padding-top: 64px; }
html.gh-dark .gh-footer { background: #051b1e; }
.gh-footer a { color: rgba(255, 255, 255, .78); }
.gh-footer a:hover { color: #fff; }
.gh-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 44px; }
.gh-brand--footer .gh-brand__mark { background: #fff; padding: 4px; }
.gh-brand--footer .gh-brand__copy strong { color: #fff; }
.gh-brand--footer .gh-brand__copy small { color: rgba(255, 255, 255, .55); }
.gh-footer__brand p { margin: 16px 0 0; font-size: .93rem; max-width: 360px; }
.gh-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.gh-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .93rem; }
.gh-footer__contact { margin-bottom: 18px !important; }
.gh-footer__bottom {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .10); font-size: .85rem;
}
.gh-footer__bottom p { margin: 0; }
.gh-footer__legal { display: flex !important; gap: 18px !important; flex-wrap: wrap; }
@media (max-width: 900px) { .gh-footer__grid { grid-template-columns: 1fr 1fr; } .gh-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .gh-footer__grid { grid-template-columns: 1fr; } }

.gh-float-wa {
	position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 900;
	width: 56px; height: 56px; border-radius: 50%;
	display: grid; place-items: center;
	background: #25d366; color: #fff; box-shadow: 0 14px 32px rgba(37, 211, 102, .4);
	transition: transform .2s ease;
}
.gh-float-wa:hover { transform: scale(1.07); color: #fff; }
.gh-float-wa svg { width: 28px; height: 28px; }

/* ---------- Inner pages ---------- */
.gh-page-hero { padding: clamp(48px, 7vw, 84px) 0 clamp(28px, 4vw, 44px); background: linear-gradient(180deg, var(--gh-soft), var(--gh-bg)); text-align: center; }
.gh-page-hero h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); max-width: 900px; margin-inline: auto; }
.gh-page-hero p { max-width: 680px; margin: 0 auto; font-size: 1.05rem; }
.gh-page-hero .gh-kicker { justify-content: center; }
.gh-page-hero time { color: var(--gh-muted); font-weight: 700; font-size: .9rem; }
.gh-page-hero--404 .gh-hero__actions { justify-content: center; }

.gh-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gh-post-card { display: flex; flex-direction: column; }
.gh-post-card__visual { display: block; aspect-ratio: 16 / 10; background: var(--gh-soft); overflow: hidden; }
.gh-post-card__visual img { width: 100%; height: 100%; object-fit: cover; }
.gh-post-card__visual .gh-post-card__ph { object-fit: contain; padding: 40px; opacity: .5; }
.gh-post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.gh-post-card time { font-size: .8rem; font-weight: 700; color: var(--gh-muted); }
.gh-post-card h2 { font-size: 1.15rem; margin: 6px 0 8px; }
.gh-post-card h2 a { color: var(--gh-ink); }
.gh-post-card p { font-size: .92rem; }
.gh-post-card .gh-link-more { margin-top: auto; }
@media (max-width: 980px) { .gh-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gh-posts { grid-template-columns: 1fr; } }

.gh-pagination { margin-top: 36px; }
.gh-pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.gh-pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 12px; border-radius: 11px;
	display: inline-grid; place-items: center;
	border: 1px solid var(--gh-line); background: var(--gh-card); color: var(--gh-ink); font-weight: 700;
}
.gh-pagination .page-numbers.current { background: var(--gh-primary); border-color: var(--gh-primary); color: #fff; }

.gh-article__cover { margin: 0 auto 32px; }
.gh-article__cover img { border-radius: 22px; width: 100%; }
.gh-prose { font-size: 1.07rem; line-height: 1.85; padding-bottom: 40px; }
.gh-prose h2 { font-size: 1.65rem; margin-top: 1.8em; }
.gh-prose h3 { font-size: 1.3rem; margin-top: 1.5em; }
.gh-prose ul, .gh-prose ol { padding-inline-start: 1.3em; }
.gh-prose li { margin-bottom: .4em; }
.gh-prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-inline-start: 4px solid var(--gh-gold); background: var(--gh-soft); border-radius: 12px; }
.gh-prose img { border-radius: 16px; }
.gh-prose a { text-decoration: underline; text-underline-offset: 3px; }

.gh-inline-cta {
	margin: 10px 0 70px; padding: 32px; border-radius: 24px; text-align: center;
	background: linear-gradient(135deg, var(--gh-soft), var(--gh-cream)); border: 1px solid var(--gh-line);
}
.gh-inline-cta h2 { font-size: 1.5rem; }

/* Legacy full-width page content (custom HTML pages). */
.gh-page-content--full { overflow-x: clip; }
.gh-page-content--full > .wp-block-html { margin: 0; }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
	.gh-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
	.gh-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Refinements ---------- */
.gh-slider { scroll-padding-inline: max(20px, calc((100vw - 1240px) / 2)); }
html.gh-dark .gh-hero__media { filter: brightness(.82); }
@media (max-width: 640px) {
	.gh-section__top { flex-direction: column; align-items: stretch; gap: 0; }
	.gh-slider-controls { display: none; }
	.gh-kicker { letter-spacing: .08em; font-size: .76rem; }
	.gh-hero .gh-kicker::before,
	.gh-section__head--center .gh-kicker::before { display: none; }
	.gh-hero__actions .gh-btn { flex: 1 1 100%; }
	.gh-float-wa { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
}

/* ---------- Legacy content compatibility ---------- */
/* Old page HTML hides generic header/footer/aside elements; keep ours visible. */
#ghSiteHeader { display: block !important; visibility: visible !important; width: auto !important; height: auto !important; overflow: visible !important; }
#ghSiteFooter { display: block !important; visibility: visible !important; width: auto !important; height: auto !important; overflow: visible !important; padding: 64px 0 0 !important; margin: 0 !important; }
@media screen and (max-width: 782px) { .admin-bar .gh-header { top: 46px; } }
@media (max-width: 768px) {
	.gh-page-content--full .gem-wrap,
	.gh-page-content--full .gem-wrapper { padding-top: 36px !important; }
}
[data-keep-dir] { direction: ltr; unicode-bidi: isolate; display: inline-block; }
