/**
 * Emmaus Church — Homepage sections (Phase 3)
 */

/* Full-bleed sections escape theme root padding (scrollbar-safe) */
.emmaus-hero,
.emmaus-join,
.emmaus-events,
.emmaus-prayer,
.emmaus-welcome,
.emmaus-hope {
	position: relative;
	left: auto;
	right: auto;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
}

@supports (width: 100dvw) {
	.emmaus-hero,
	.emmaus-join,
	.emmaus-events,
	.emmaus-prayer,
	.emmaus-welcome,
	.emmaus-hope {
		width: 100dvw;
		max-width: 100dvw;
		margin-left: calc(50% - 50dvw);
		margin-right: calc(50% - 50dvw);
	}
}

/* -------------------------------------------------------------------------
   Hero
--------------------------------------------------------------------------- */
.emmaus-hero {
	position: relative;
	isolation: isolate;
	min-height: clamp(22rem, 58vw, 36rem);
	display: grid;
	place-items: center;
	overflow: hidden;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--purple-deep);
}

.emmaus-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	margin: 0 !important;
}

.emmaus-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 35%;
}

.emmaus-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		180deg,
		rgba(17, 17, 17, 0.18) 0%,
		rgba(46, 17, 80, 0.28) 55%,
		rgba(17, 17, 17, 0.45) 100%
	);
	pointer-events: none;
}

.emmaus-hero__tagline {
	text-align: center;
	padding: 2rem 1.25rem;
	max-width: 52rem;
}

.emmaus-hero__walking,
.emmaus-hero__with {
	display: block;
	margin: 0;
	font-size: clamp(0.95rem, 1.6vw, 1.35rem);
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.emmaus-hero__walking {
	margin-bottom: -0.2em;
	padding-left: 3.25em;
}

.emmaus-hero__together {
	position: relative;
	display: inline-block;
	z-index: 1;
	margin: 0;
	padding: 0.02em 0.28em 0.08em;
	font-family: var(--wp--preset--font-family--script);
	font-size: clamp(4.5rem, 14vw, 9.5rem);
	font-weight: 400;
	line-height: 0.85;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--lime);
	filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.28));
}

/* Figma: navy bar behind the script word */
.emmaus-hero__together::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 48%;
	height: 0.38em;
	transform: translateY(-50%);
	background: var(--wp--preset--color--navy);
	z-index: -1;
	pointer-events: none;
}

.emmaus-hero__with {
	margin-top: -0.05em;
	padding-left: 4.25em;
}

@media (max-width: 600px) {
	.emmaus-hero__walking,
	.emmaus-hero__with {
		padding-left: 0;
		letter-spacing: 0.14em;
	}
}

/* -------------------------------------------------------------------------
   Welcome
--------------------------------------------------------------------------- */
.emmaus-welcome {
	padding-block: clamp(3.5rem, 7vw, 6rem);
	background: var(--wp--preset--color--white);
}

.emmaus-welcome__grid {
	width: min(100% - 2.5rem, 1200px);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.emmaus-welcome__title {
	margin: 0 0 1.25rem;
	font-size: clamp(2.4rem, 5vw, 3.75rem);
	font-weight: 800;
	line-height: 1.05;
	color: var(--wp--preset--color--cyan);
}

.emmaus-welcome__title strong {
	display: block;
	color: var(--wp--preset--color--purple);
	font-size: 0.78em;
	letter-spacing: 0.02em;
}

.emmaus-welcome__copy p {
	margin: 0 0 1rem;
	color: var(--wp--preset--color--gray-muted);
	font-size: 1.02rem;
	line-height: 1.7;
	max-width: 36rem;
}

.emmaus-welcome__visual {
	position: relative;
	width: min(100%, 28rem);
	aspect-ratio: 1;
	margin-inline: auto;
	justify-self: end;
}

.emmaus-welcome__circle {
	position: relative;
	z-index: 2;
	width: 88%;
	aspect-ratio: 1;
	margin: 6% auto 0;
	/* Organic blob mask (Figma) rather than a perfect circle */
	border-radius: 58% 42% 48% 52% / 52% 48% 55% 45%;
	overflow: hidden;
	box-shadow: 0 18px 50px rgba(17, 17, 17, 0.16);
	clip-path: ellipse(49% 47% at 50% 51%);
}

.emmaus-welcome__circle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 18%;
	transform: scale(1.04);
}

.emmaus-welcome__dot {
	position: absolute;
	border-radius: 50%;
	z-index: 1;
}

.emmaus-welcome__dot--navy {
	width: 18%;
	aspect-ratio: 1;
	top: 4%;
	left: 8%;
	background: var(--wp--preset--color--purple);
	z-index: 3;
}

.emmaus-welcome__dot--magenta {
	width: 72%;
	aspect-ratio: 1;
	top: 10%;
	right: -8%;
	background: var(--wp--preset--color--magenta);
	z-index: 0;
}

.emmaus-welcome__dot--lime {
	width: 22%;
	aspect-ratio: 1;
	bottom: 2%;
	left: 10%;
	background: var(--wp--preset--color--lime);
	z-index: 3;
}

@media (max-width: 900px) {
	.emmaus-welcome__grid {
		grid-template-columns: 1fr;
	}

	.emmaus-welcome__visual {
		justify-self: center;
		order: -1;
		width: min(100%, 22rem);
	}
}

/* -------------------------------------------------------------------------
   Join Us
--------------------------------------------------------------------------- */
.emmaus-join {
	position: relative;
	isolation: isolate;
	min-height: clamp(24rem, 48vw, 34rem);
	display: grid;
	align-items: end;
	padding: clamp(2rem, 5vw, 3.5rem) 0;
	overflow: hidden;
	background: var(--wp--preset--color--navy);
}

.emmaus-join__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	margin: 0 !important;
}

.emmaus-join__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}

.emmaus-join::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(17, 17, 17, 0.15), rgba(17, 17, 17, 0.05) 45%, rgba(17, 17, 17, 0.2));
	pointer-events: none;
}

.emmaus-join__inner {
	width: min(100% - 2.5rem, 1200px);
	margin-inline: auto;
	display: flex;
	justify-content: flex-end;
}

.emmaus-join__card {
	position: relative;
	width: min(100%, 34rem);
	padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.75rem, 3vw, 2.5rem) clamp(1.75rem, 3vw, 2.75rem);
	background: var(--wp--preset--color--white);
	box-shadow: var(--emmaus-shadow-card);
	overflow: hidden;
	border-radius: 0;
}

.emmaus-join__title {
	margin: 0 0 0.35rem;
	font-size: clamp(2.4rem, 4.5vw, 3.4rem);
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--cyan);
}

.emmaus-join__title strong {
	display: block;
	margin-top: 0.15rem;
	color: var(--wp--preset--color--purple);
	font-size: 0.72em;
	letter-spacing: 0.04em;
}

.emmaus-join__meta {
	margin: 1rem 0 1.25rem;
	color: var(--wp--preset--color--black);
	font-size: 1.05rem;
	line-height: 1.55;
	max-width: 22rem;
}

.emmaus-join__meta strong {
	font-weight: 800;
}

.emmaus-join__pin {
	position: absolute;
	right: -0.35rem;
	top: 42%;
	width: 5.5rem;
	height: 5.5rem;
	color: var(--wp--preset--color--lime);
	opacity: 0.95;
	pointer-events: none;
}

.emmaus-join__accent {
	position: absolute;
	right: -2.5rem;
	bottom: -3.5rem;
	width: 8rem;
	height: 8rem;
	border-radius: 50%;
	background: var(--wp--preset--color--lime);
}

@media (max-width: 700px) {
	.emmaus-join {
		align-items: center;
		padding-block: 3rem;
	}

	.emmaus-join__inner {
		justify-content: center;
	}

	.emmaus-join__pin {
		width: 4rem;
		height: 4rem;
		top: auto;
		bottom: 1.25rem;
	}
}

/* -------------------------------------------------------------------------
   Spreading Hope
--------------------------------------------------------------------------- */
.emmaus-hope {
	padding-block: clamp(3.5rem, 7vw, 6rem);
	background: var(--wp--preset--color--white);
}

.emmaus-hope__grid {
	width: min(100% - 2.5rem, 1200px);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.emmaus-hope__title {
	margin: 0 0 1rem;
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	font-weight: 800;
	line-height: 1.05;
	color: var(--wp--preset--color--cyan);
}

.emmaus-hope__title strong {
	display: block;
	color: var(--wp--preset--color--purple);
	font-size: 0.72em;
	letter-spacing: 0.04em;
}

.emmaus-hope__copy p {
	margin: 0;
	max-width: 28rem;
	color: var(--wp--preset--color--gray-muted);
	font-size: 1.02rem;
	line-height: 1.7;
}

.emmaus-hope__collage {
	position: relative;
	min-height: 22rem;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	grid-template-rows: auto auto;
	gap: 0.85rem;
}

.emmaus-hope__shot {
	margin: 0 !important;
	overflow: hidden;
	border-radius: 0.2rem;
	box-shadow: 0 10px 30px rgba(17, 17, 17, 0.12);
}

.emmaus-hope__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.emmaus-hope__shot--top {
	grid-column: 1 / -1;
	aspect-ratio: 16 / 7;
}

.emmaus-hope__shot--main {
	grid-column: 2;
	grid-row: 2;
	min-height: 14rem;
}

.emmaus-hope__shot--side {
	grid-column: 1;
	grid-row: 2;
	min-height: 12rem;
}

.emmaus-hope__blob {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.emmaus-hope__blob--magenta {
	width: 3.25rem;
	height: 3.25rem;
	top: -0.75rem;
	left: -0.85rem;
	background: var(--wp--preset--color--magenta);
	z-index: 2;
}

.emmaus-hope__blob--navy {
	width: 4.5rem;
	height: 4.5rem;
	top: 1.5rem;
	right: -1rem;
	background: var(--wp--preset--color--purple);
	z-index: 0;
}

.emmaus-hope__blob--lime {
	width: 3.5rem;
	height: 3.5rem;
	bottom: 1.5rem;
	left: 28%;
	background: var(--wp--preset--color--lime);
	z-index: 2;
}

@media (max-width: 900px) {
	.emmaus-hope__grid {
		grid-template-columns: 1fr;
	}

	.emmaus-hope__collage {
		min-height: 0;
	}
}

/* -------------------------------------------------------------------------
   Upcoming Events
--------------------------------------------------------------------------- */
.emmaus-events {
	position: relative;
	isolation: isolate;
	padding-block: clamp(3.5rem, 7vw, 5.5rem);
	overflow: hidden;
	background: var(--wp--preset--color--purple-deep);
}

.emmaus-events__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	margin: 0 !important;
}

.emmaus-events__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.emmaus-events::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(46, 17, 80, 0.78);
	pointer-events: none;
}

.emmaus-events__inner {
	width: min(100% - 2.5rem, 1200px);
	margin-inline: auto;
}

.emmaus-events__title {
	margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
	text-align: center;
	color: var(--wp--preset--color--white);
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	font-weight: 800;
	letter-spacing: 0.04em;
}

.emmaus-events__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.emmaus-event-card {
	background: var(--wp--preset--color--white);
	overflow: hidden;
	border-radius: 0.15rem;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.emmaus-event-card__media {
	margin: 0 !important;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.emmaus-event-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.emmaus-event-card__body {
	padding: 1.15rem 1.25rem 1.35rem;
}

.emmaus-event-card__body h3 {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
	line-height: 1.3;
	color: var(--wp--preset--color--black);
}

.emmaus-event-card__meta {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0 0 1rem;
	color: var(--wp--preset--color--gray-muted);
	font-size: 0.88rem;
	line-height: 1.35;
}

.emmaus-event-card__meta svg {
	flex: 0 0 auto;
	width: 1.35rem;
	height: 1.35rem;
	color: var(--wp--preset--color--cyan);
	margin-top: 0.1rem;
}

.emmaus-event-card__meta strong {
	display: block;
	color: var(--wp--preset--color--black);
	font-weight: 700;
}

.emmaus-event-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.15rem;
}

.emmaus-event-card__actions .wp-block-button__link {
	min-height: 2.4rem;
	padding: 0.55rem 1.1rem;
}

@media (max-width: 900px) {
	.emmaus-events__grid {
		grid-template-columns: 1fr;
		max-width: 26rem;
		margin-inline: auto;
	}
}

/* -------------------------------------------------------------------------
   Prayer CTA
--------------------------------------------------------------------------- */
.emmaus-prayer {
	position: relative;
	isolation: isolate;
	min-height: clamp(22rem, 42vw, 30rem);
	display: grid;
	align-items: center;
	padding: clamp(2.5rem, 5vw, 4rem) 0;
	overflow: hidden;
	background: #3a2418;
}

.emmaus-prayer__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	margin: 0 !important;
}

.emmaus-prayer__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.emmaus-prayer::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(17, 17, 17, 0.25), rgba(17, 17, 17, 0.05) 55%, rgba(17, 17, 17, 0.2));
	pointer-events: none;
}

.emmaus-prayer__inner {
	width: min(100% - 2.5rem, 1200px);
	margin-inline: auto;
	display: flex;
	justify-content: flex-start;
}

.emmaus-prayer__card {
	width: min(100%, 32rem);
	padding: clamp(1.75rem, 3vw, 2.5rem);
	background: var(--wp--preset--color--white);
	box-shadow: var(--emmaus-shadow-card);
}

.emmaus-prayer__title {
	margin: 0 0 1.35rem;
	font-size: clamp(1.85rem, 3.5vw, 2.6rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--wp--preset--color--purple);
}

.emmaus-prayer__title strong {
	display: block;
	margin-top: 0.2rem;
	color: var(--wp--preset--color--cyan);
	font-size: 0.78em;
	letter-spacing: 0.02em;
}

@media (max-width: 700px) {
	.emmaus-prayer__inner {
		justify-content: center;
	}
}
