/* YouMind Hero block — matched to blog page .hero */

.ymct-hero {
	--ymct-content: 1560px;
	--ymct-gutter: 56px;
	--ymct-font: "Poppins", sans-serif;
	--ymct-hero-grad-start: #cafdf9;
	--ymct-hero-grad-end: #ffffff;
	--ymct-hero-heading: #1e1f2b;
	--ymct-hero-desc: #031728;
	--ymct-header-offset: 99px; /* 20px pad + 79px nav */
	position: relative;
	width: 100%;
	min-height: 417px;
	padding: 20px var(--ymct-gutter) 0;
	background: linear-gradient(
		180deg,
		var(--ymct-hero-grad-start, #cafdf9) 0%,
		var(--ymct-hero-grad-end, #ffffff) 100%
	);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 80px;
	box-sizing: border-box;
	font-family: var(--ymct-font), sans-serif;
	-webkit-font-smoothing: antialiased;
}

.ymct-hero *,
.ymct-hero *::before,
.ymct-hero *::after {
	box-sizing: border-box;
}

/* Pull mint gradient up behind the global header (HTML: nav lives inside .hero). */
.ymct-hero.ymct-hero--under-header {
	margin-top: calc(-1 * var(--ymct-header-offset, 99px));
	padding-top: calc(var(--ymct-header-offset, 99px) + 80px);
	min-height: calc(417px);
}

.ymct-hero-deco {
	pointer-events: none;
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 40% 60% at 8% 40%, rgba(231, 249, 255, 0.9) 0%, transparent 70%),
		radial-gradient(ellipse 30% 50% at 18% 50%, rgba(231, 249, 255, 0.5) 0%, transparent 70%);
	opacity: 0.9;
	z-index: 0;
}

.ymct-hero-copy {
	position: relative;
	z-index: 2;
	max-width: var(--ymct-content);
	width: 100%;
	margin: 0 auto;
	padding: 0 0 40px;
	text-align: center;
}

.ymct-hero-br {
	display: none;
}

.ymct-hero .ymct-hero-title {
	margin: 0 auto;
	max-width: 1000px;
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 62px;
	line-height: 1.1;
	letter-spacing: 0;
	color: var(--ymct-hero-heading, #1e1f2b);
}

.ymct-hero .ymct-hero-desc {
	margin: 18px auto 0;
	max-width: 720px;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 1.6;
	color: var(--ymct-hero-desc, #031728);
	opacity: 0.7;
}

/* Soften page chrome so mint shows through header zone (+ html for admin-bar gap) */
html:has(body.ymct-has-hero),
html:has(.ymct-hero--under-header),
body.ymct-has-hero,
body:has(.ymct-hero--under-header) {
	background-color: #cafdf9 !important;
}

body.ymct-has-hero .ymct-site-header,
body.ymct-has-hero .ymct-header,
body:has(.ymct-hero--under-header) .ymct-site-header,
body:has(.ymct-hero--under-header) .ymct-header {
	background: transparent !important;
}

body.ymct-has-hero .wp-site-blocks,
body.ymct-has-hero .entry-content,
body.ymct-has-hero .wp-block-post-content,
body:has(.ymct-hero--under-header) .wp-site-blocks,
body:has(.ymct-hero--under-header) .entry-content,
body:has(.ymct-hero--under-header) .wp-block-post-content {
	background: transparent !important;
}

@media (max-width: 1200px) {
	.ymct-hero {
		--ymct-gutter: 40px;
	}

	.ymct-hero .ymct-hero-title {
		font-size: 48px;
	}
}

@media (min-width: 769px) and (max-width: 1200px) {
	.ymct-hero {
		--ymct-gutter: 32px;
		--ymct-header-offset: 84px; /* ~20 pad + 64px tablet nav */
		gap: 0;
		min-height: 0;
		justify-content: flex-start;
	}

	.ymct-hero.ymct-hero--under-header {
		margin-top: calc(-1 * var(--ymct-header-offset, 84px));
		/* Gap under header ≈ compact tablet mockup (~28–36px) */
		padding-top: calc(var(--ymct-header-offset, 84px) + 32px);
		min-height: 0;
	}

	.ymct-hero .ymct-hero-title {
		font-size: 40px;
	}

	.ymct-hero .ymct-hero-desc {
		font-size: 18px;
	}
}

@media (max-width: 768px) {
	.ymct-hero {
		--ymct-gutter: 20px;
		--ymct-header-offset: 89px; /* ~20 + 69 mobile nav */
		min-height: 0;
		padding-top: 20px;
		padding-bottom: 0;
		gap: 0;
		justify-content: flex-start;
		background: #ffffff;
	}

	.ymct-hero.ymct-hero--under-header {
		margin-top: calc(-1 * var(--ymct-header-offset, 89px));
		/* Tighter space under header — matches mobile mockup */
		padding-top: calc(var(--ymct-header-offset, 89px) + 24px);
		min-height: 0;
		background: #ffffff;
	}

	.ymct-hero-deco {
		display: none;
	}

	.ymct-hero-copy {
		padding: 0;
		max-width: none;
	}

	.ymct-hero-br {
		display: block;
	}

	.ymct-hero .ymct-hero-title {
		max-width: none;
		font-weight: 500;
		font-size: 32px;
		line-height: 1.3;
		letter-spacing: -0.03em;
		color: #1e1f2b;
	}

	.ymct-hero .ymct-hero-desc {
		margin: 10px 0 0;
		max-width: none;
		font-size: 20px;
		line-height: 1.6;
		color: #031728;
		opacity: 0.8;
	}

	body.ymct-has-hero {
		background-color: #ffffff;
	}

	body:has(.ymct-hero--under-header) {
		background-color: #ffffff;
	}
}

/* Editor canvas */
.editor-styles-wrapper .ymct-hero {
	margin-top: 0 !important;
	padding-top: 100px;
	min-height: 320px;
}

.editor-styles-wrapper .ymct-hero.ymct-hero--under-header {
	margin-top: 0 !important;
}
