/* ==========================================================================
   Reli Academy — home.css
   SHARED by two pages: the home page (front-page.php) and the about page (page-about.php, which reuses the
   hero, the text + media grid (.c-about) and adds § 7 below). Change a shared rule → check both pages.
   Loaded only there, after components.css (inc/enqueue.php).
   Mockups: design-reference/Main.dc.html, Mobile.dc.html. Mobile-first; breakpoints 640 / 960 / 1280.
   ========================================================================== */

/* 1. Hero
   ========================================================================== */
.c-hero {
	--hero-media-w: 100%;
	padding-block: 40px 48px;
}

.c-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

.c-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.c-hero__title {
	font-size: var(--fs-h1-hero);
	letter-spacing: -.01em;
}

.c-hero__text {
	max-width: 560px;
}

.c-hero__actions {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	gap: 10px;
}

@media (min-width: 640px) {
	.c-hero__actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-self: flex-start;
		gap: 14px;
	}
}

/* Arch portrait with the soft circle and floating mini cards */
.c-hero__media {
	position: relative;
	width: 100%;
	max-width: 420px;
	height: 340px;
	margin: 8px auto 0;
}

.c-hero__media::before {
	content: "";
	position: absolute;
	inset-block-start: 40px;
	inset-inline-end: 0;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: var(--c-light);
}

.c-hero__arch {
	position: absolute;
	inset-block: 0;
	inset-inline: 24px;
	overflow: hidden;
	border-radius: 160px 160px 24px 24px;
	background: var(--c-media);
}

.c-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.c-hero__badge {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--c-white);
	box-shadow: var(--sh-card);
	line-height: 1.3;
}

.c-hero__badge--1 {
	inset-block-end: 24px;
	inset-inline-end: 0;
}

/* Mobile shows one mini card only (mockup) */
.c-hero__badge--2 {
	display: none;
}

.c-hero__badge .c-icon-tile {
	width: 36px;
	height: 36px;
	border-radius: 10px;
}

.c-hero__badge .c-icon {
	width: 18px;
	height: 18px;
}

.c-hero__badge-title {
	display: block;
	font-size: .875rem;
	font-weight: 600;
}

.c-hero__badge-text {
	display: block;
	color: var(--c-muted);
	font-size: .75rem;
}

/* Stats: 3 white tiles on mobile, inline row with hairline on desktop */
.c-hero__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.c-hero__stat {
	display: flex;
	flex-direction: column;
	padding: 12px 6px;
	border-radius: 14px;
	background: var(--c-white);
}

/* "6+" must not flip to "+6" in RTL */
.c-hero__stat-number {
	direction: ltr;
	unicode-bidi: isolate;
	color: var(--c-primary);
	font-family: var(--ff-head);
	font-size: clamp(1.5rem, 1.4rem + .43vw, 1.75rem); /* 24 → 28 */
	font-weight: 600;
	line-height: 1.3;
}

.c-hero__stat-label {
	color: var(--c-muted);
	font-size: .8125rem;
	line-height: 1.3;
}

@media (min-width: 960px) {
	.c-hero {
		padding-block: 88px 104px;
	}

	.c-hero__grid {
		grid-template-columns: minmax(0, 1fr) var(--hero-media-w);
		grid-template-areas:
			"content media"
			"stats media";
		grid-template-rows: auto auto;
		align-content: center;
		gap: 0 48px;
	}

	.c-hero {
		--hero-media-w: 400px;
	}

	.c-hero__grid--no-media {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "content" "stats";
	}

	.c-hero__content {
		grid-area: content;
		align-self: end;
		gap: 28px;
	}

	.c-hero__actions {
		margin-block-start: 8px;
	}

	.c-hero__media {
		grid-area: media;
		align-self: center;
		max-width: none;
		height: 480px;
		margin: 0;
	}

	.c-hero__media::before {
		inset-block-start: 50px;
		inset-inline-end: -24px;
		width: 340px;
		height: 340px;
	}

	.c-hero__arch {
		inset-inline: 32px 24px;
		border-radius: 180px 180px var(--r-media) var(--r-media);
	}

	.c-hero__badge {
		gap: 14px;
		padding: 18px 22px;
		border-radius: var(--r-float);
	}

	.c-hero__badge--1 {
		inset-block-end: 70px;
		inset-inline-end: -10px;
	}

	.c-hero__badge--2 {
		display: flex;
		inset-block-start: 64px;
		inset-inline-start: 0;
		padding: 16px 20px;
	}

	.c-hero__badge .c-icon-tile {
		width: 44px;
		height: 44px;
		border-radius: var(--r-btn);
	}

	.c-hero__badge .c-icon {
		width: 22px;
		height: 22px;
	}

	.c-hero__badge-title {
		font-size: 1rem;
	}

	.c-hero__badge-text {
		font-size: .875rem;
	}

	.c-hero__stats {
		grid-area: stats;
		align-self: start;
		display: flex;
		flex-wrap: wrap;
		gap: 16px 32px;
		margin-block-start: 20px;
		padding-block-start: 28px;
		box-shadow: 0 -1px 0 var(--c-line-primary);
		text-align: start;
	}

	.c-hero__stat {
		flex-direction: row;
		align-items: center;
		gap: 10px;
		padding: 0;
		background: transparent;
	}

	.c-hero__stat-label {
		max-width: 7.5em;
		font-size: .9375rem;
	}
}

@media (min-width: 1280px) {
	.c-hero {
		--hero-media-w: 500px;
	}

	.c-hero__grid {
		column-gap: 72px;
	}

	.c-hero__media {
		height: 580px;
	}

	.c-hero__media::before {
		inset-block-start: 60px;
		inset-inline-end: -30px;
		width: 420px;
		height: 420px;
	}

	.c-hero__arch {
		inset-inline: 40px 30px;
		border-radius: 220px 220px var(--r-media) var(--r-media);
	}
}

/* 2. Problem
   ========================================================================== */
.c-problem__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-problem__card {
	flex-direction: row;
	align-items: flex-start;
	gap: 16px;
	padding: 22px;
}

.c-problem__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.c-problem__text {
	color: var(--c-muted);
	font-size: clamp(.9375rem, .815rem + .543vw, 1.125rem); /* 15 → 18 */
}

@media (min-width: 960px) {
	.c-problem__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--gap-md);
	}

	.c-problem__card {
		flex-direction: column;
		gap: 18px;
		padding: 36px;
	}

	.c-problem__body {
		gap: 18px;
	}
}

/* 3. Solution
   ========================================================================== */
/* Followed by another white section: the block → next heading gap is 56px, not a full section */
.c-solution:has(+ .l-section:not(.l-section--cream)) {
	padding-block-end: min(var(--section-y), 56px);
}

.c-solution__block {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: clamp(32px, 4vw, 56px) clamp(22px, 4.5vw, 64px);
	border-radius: var(--r-card);
	background: var(--c-light);
}

.c-solution__text {
	max-width: 700px;
}

@media (min-width: 960px) {
	.c-solution__block {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 64px;
		border-radius: var(--r-block);
	}

	.c-solution__block > .c-btn {
		flex-shrink: 0;
	}
}

/* 4. Courses grid (cards: components.css)
   ========================================================================== */
.c-courses__head-link {
	display: none;
}

.c-courses__footer {
	display: flex;
	justify-content: center;
	margin-block-start: var(--gap-md);
}

.c-courses__btn {
	width: 100%;
}

@media (min-width: 640px) {
	.c-courses__btn {
		width: auto;
	}
}

@media (min-width: 960px) {
	.c-courses__head-link {
		display: inline-flex;
		flex-shrink: 0;
	}

	.c-courses__footer {
		margin-block-start: var(--gap-lg);
	}
}

/* 5. How each course is built — steps with a dashed connector
   ========================================================================== */
.c-how__steps {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Vertical connector through the icon centres (mobile) */
.c-how__steps::before {
	content: "";
	position: absolute;
	inset-block: 28px;
	inset-inline-start: 27px;
	width: 2px;
	background: repeating-linear-gradient(to bottom, var(--c-accent) 0 8px, transparent 8px 14px);
}

.c-how__step {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.c-how__icon {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--c-white);
	box-shadow: var(--sh-float);
	color: var(--c-accent);
}

.c-how__step.is-highlight .c-how__icon {
	background: var(--c-primary);
	color: var(--c-white);
}

.c-how__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-block-start: 4px;
}

/* Step number: primary (accent is not allowed for small text) */
.c-how__num {
	color: var(--c-primary);
	font-family: var(--ff-head);
	font-size: var(--fs-caption);
	font-weight: 600;
	line-height: 1.4;
}

.c-how__title {
	font-size: var(--fs-h3-sm);
}

.c-how__text {
	color: var(--c-muted);
	font-size: clamp(.9375rem, .913rem + .109vw, 1rem); /* 15 → 16 */
}

@media (min-width: 960px) {
	.c-how__head {
		align-items: center;
		max-width: 760px;
		margin-inline: auto;
		text-align: center;
	}

	.c-how__head .c-eyebrow {
		align-self: center;
	}

	.c-how__head .c-lead {
		max-width: 640px;
		margin-inline: auto;
	}

	.c-how__steps {
		display: grid;
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		gap: 24px;
	}

	/* Horizontal connector through the icon centres */
	.c-how__steps::before {
		inset-block: 36px auto;
		inset-inline: 10%;
		width: auto;
		height: 2px;
		background: repeating-linear-gradient(to left, var(--c-accent) 0 10px, transparent 10px 18px);
	}

	.c-how__step {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.c-how__icon {
		width: 72px;
		height: 72px;
	}

	.c-how__icon .c-icon {
		width: 28px;
		height: 28px;
	}

	.c-how__body {
		align-items: center;
		gap: 16px;
		padding: 0;
	}
}

/* 6. About + intro video (id="video") — benefits, testimonials, guarantee, FAQ and CTA layouts live in components.css
   ========================================================================== */
.c-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
}

.c-about__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.c-about__text {
	color: var(--c-muted);
	font-size: clamp(1.0625rem, .989rem + .326vw, 1.1875rem); /* 17 → 19 */
}

.c-about__text > * + * {
	margin-block-start: 1em;
}

.c-about__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	align-self: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-about__stats li {
	display: flex;
	flex-direction: column;
	align-items: flex-start; /* number shrinks to its width, so its ltr direction can't push it left */
}

.c-about__stat-number {
	direction: ltr;
	unicode-bidi: isolate;
	font-size: clamp(1.875rem, 1.582rem + 1.304vw, 2.5rem); /* 30 → 40 */
}

.c-about__stat-label {
	color: var(--c-muted);
	font-size: clamp(.8125rem, .764rem + .217vw, .9375rem); /* 13 → 15 */
}

@media (min-width: 960px) {
	.c-about__grid {
		grid-template-columns: minmax(0, 1fr) 440px;
		grid-template-areas:
			"head media"
			"body media";
		align-content: center;
		gap: 22px 56px;
	}

	.c-about--no-media .c-about__grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "head" "body";
	}

	.c-about__head { grid-area: head; align-self: end; }
	.c-about__body { grid-area: body; align-self: start; gap: 22px; }
	.c-about__media { grid-area: media; align-self: center; }

	.c-about__stats {
		display: flex;
		gap: 48px;
		margin-block: 12px 8px;
	}
}

@media (min-width: 1280px) {
	.c-about__grid {
		grid-template-columns: minmax(0, 1fr) 560px;
		column-gap: 80px;
	}
}


/* 7. About page (page-about.php): story, numbers, intro video
   ========================================================================== */

/* Story: the .c-about grid on white, with an image in the media slot */
.c-story {
	background: var(--c-white);
}

.c-story__img {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--r-media);
	background: var(--c-media);
	object-fit: cover;
}

/* Numbers row in a light block */
.c-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 16px;
	margin: 0;
	padding: clamp(24px, 4vw, 48px);
	border-radius: var(--r-block);
	background: var(--c-light);
	list-style: none;
	text-align: center;
}

.c-stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.c-stats__number {
	direction: ltr;
	unicode-bidi: isolate;
	font-size: clamp(1.875rem, 1.582rem + 1.304vw, 2.5rem); /* 30 → 40 */
}

.c-stats__label {
	color: var(--c-muted);
	font-size: var(--fs-small);
}

@media (min-width: 960px) {
	.c-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.c-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Intro video: centred head, video up to 880px */
.c-video-section__media {
	max-width: 880px;
	margin-inline: auto;
}
