/* ==========================================================================
   Front page sections — leadership grid, ministry directory, scripture panel
   Loaded only on the front page. Everything is scoped under .sh-sec so the
   rest of the site keeps its existing styling.
   ========================================================================== */

.sh-sec {
	--sh-ink: #2a1245;
	--sh-purple: #3b1d5e;
	--sh-gold: #c9a227;
	--sh-gold-light: #e3b341;
	--sh-gold-pale: #ffd98a;
	--sh-line: rgba(201, 162, 39, 0.32);
	--sh-paper: #ffffff;

	box-sizing: border-box;
	position: relative;
	padding: clamp(2.75rem, 6vw, 5rem) clamp(1.1rem, 4vw, 2rem);
	font-family: 'Merriweather',"Merriweather Fallback", Georgia, serif;
	color: var(--sh-ink);
	text-align: left;
}

.sh-sec *,
.sh-sec *::before,
.sh-sec *::after {
	box-sizing: border-box;
}

/* Undo the site-wide gold + all-caps treatment for body copy in these blocks. */
.sh-sec,
.sh-sec p,
.sh-sec li,
.sh-sec span,
.sh-sec a {
	font-family: 'Merriweather',"Merriweather Fallback", Georgia, serif;
	text-transform: none;
	color: inherit;
}

.sh-wrap {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
}

/* ---------- Section headings ---------- */

.sh-head {
	max-width: 700px;
	margin: 0 auto clamp(2rem, 4vw, 2.9rem);
	text-align: center;
}

.sh-kicker {
	display: inline-block;
	margin: 0 0 0.85rem;
	padding-bottom: 0.6rem;
	position: relative;
	font-family: 'Cinzel', Georgia, serif !important;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase !important;
	color: #8a6d1f !important;
}

.sh-kicker::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 44px;
	height: 2px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent, var(--sh-gold), transparent);
}

.sh-sec h2.sh-title {
	margin: 0;
	padding: 0;
	background: none;
	-webkit-background-clip: border-box;
	background-clip: border-box;
	-webkit-text-fill-color: currentColor;
	font-family: 'Cinzel', Georgia, serif;
	font-size: clamp(1.5rem, 3.4vw, 2.35rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--sh-ink);
	text-wrap: balance;
}

/* The theme adds a short gold rule under every h2 — hide it here, the kicker
   already carries the rule. */
.sh-sec h2.sh-title::after {
	display: none;
}

.sh-lede {
	max-width: 620px;
	margin: 0.9rem auto 0;
	font-size: clamp(0.98rem, 1.5vw, 1.08rem);
	line-height: 1.7;
	color: #4a3b63 !important;
}

/* ---------- Grids ---------- */

.sh-grid {
	display: grid;
	gap: clamp(0.9rem, 2vw, 1.4rem);
}

.sh-grid--leaders {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sh-grid--tiles {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- Leadership cards ---------- */

.sh-leader {
	margin: 0;
	background: var(--sh-paper);
	border: 1px solid var(--sh-line);
	border-radius: 18px;
	overflow: hidden;
	box-shadow:
		0 1px 2px rgba(42, 18, 69, 0.05),
		0 14px 34px -22px rgba(42, 18, 69, 0.45);
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.sh-leader:hover {
	transform: translateY(-6px);
	border-color: rgba(201, 162, 39, 0.75);
	box-shadow:
		0 2px 4px rgba(42, 18, 69, 0.06),
		0 22px 46px -20px rgba(42, 18, 69, 0.5);
}

.sh-leader__photo {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #e7ddf7;
}

.sh-leader__photo::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 45%;
	background: linear-gradient(180deg, rgba(42, 18, 69, 0) 0%, rgba(42, 18, 69, 0.35) 100%);
	pointer-events: none;
}

.sh-leader__photo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.sh-leader:hover .sh-leader__photo img {
	transform: scale(1.045);
}

.sh-leader__body {
	padding: 1rem 1rem 1.2rem;
	text-align: center;
	border-top: 2px solid rgba(201, 162, 39, 0.45);
	background: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
}

.sh-leader__role {
	margin: 0 0 0.35rem;
	font-family: 'Cinzel', Georgia, serif !important;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase !important;
	color: #8a6d1f !important;
}

.sh-leader__name {
	margin: 0;
	font-family: 'Cinzel', Georgia, serif;
	font-size: clamp(0.92rem, 1.25vw, 1.05rem);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--sh-ink);
}

/* ---------- Directory tiles ---------- */

.sh-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-height: 168px;
	padding: 1.25rem 1.2rem 1.15rem;
	background-color: var(--sh-paper);
	border: 1px solid var(--sh-line);
	border-radius: 16px;
	text-decoration: none;
	color: var(--sh-ink);
	box-shadow: 0 1px 2px rgba(42, 18, 69, 0.04);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease,
		border-color 0.3s ease,
		background 0.3s ease;
}

.sh-tile::before {
	content: "";
	position: absolute;
	top: 0;
	left: 1.2rem;
	width: 34px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: linear-gradient(90deg, var(--sh-gold), var(--sh-gold-pale));
	transition: width 0.3s ease;
}

.sh-tile:hover,
.sh-tile:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(201, 162, 39, 0.85);
	background-color: #2f1548;
	box-shadow: 0 20px 40px -20px rgba(42, 18, 69, 0.65);
}

.sh-tile:hover::before,
.sh-tile:focus-visible::before {
	width: 58px;
}

.sh-tile__num {
	font-family: 'Cinzel', Georgia, serif;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: #a98a35;
	transition: color 0.3s ease;
}

.sh-tile__title {
	margin-top: 0.15rem;
	font-family: 'Cinzel', Georgia, serif;
	font-size: clamp(1rem, 1.4vw, 1.12rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.01em;
	color: var(--sh-ink);
	transition: color 0.3s ease;
}

.sh-tile__desc {
	font-size: 0.87rem;
	line-height: 1.55;
	color: #5a4a72;
	transition: color 0.3s ease;
}

.sh-tile__arrow {
	margin-top: auto;
	padding-top: 0.6rem;
	font-size: 1.05rem;
	line-height: 1;
	color: #a98a35;
	transition: transform 0.3s ease, color 0.3s ease;
}

.sh-tile:hover .sh-tile__num,
.sh-tile:focus-visible .sh-tile__num {
	color: var(--sh-gold-pale);
}

.sh-tile:hover .sh-tile__title,
.sh-tile:focus-visible .sh-tile__title {
	color: #fff3cf;
}

.sh-tile:hover .sh-tile__desc,
.sh-tile:focus-visible .sh-tile__desc {
	color: #d9cfec;
}

.sh-tile:hover .sh-tile__arrow,
.sh-tile:focus-visible .sh-tile__arrow {
	transform: translateX(5px);
	color: var(--sh-gold-pale);
}

/* ---------- Scripture panel ---------- */

.sh-sec--quote {
	padding-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

.sh-quote {
	position: relative;
	overflow: hidden;
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.4rem, 4vw, 3rem);
	border-radius: 26px;
	border: 1px solid rgba(201, 162, 39, 0.55);
	background:
		radial-gradient(620px 280px at 50% -10%, rgba(201, 162, 39, 0.22), transparent 70%),
		linear-gradient(155deg, #3b1d5e 0%, #2a1245 55%, #241238 100%);
	box-shadow: 0 26px 60px -30px rgba(42, 18, 69, 0.75);
	text-align: center;
}

.sh-quote::before,
.sh-quote::after {
	content: "";
	position: absolute;
	width: 220px;
	height: 220px;
	border: 1px solid rgba(255, 217, 138, 0.16);
	border-radius: 50%;
	pointer-events: none;
}

.sh-quote::before {
	top: -120px;
	left: -70px;
}

.sh-quote::after {
	bottom: -130px;
	right: -60px;
}

.sh-kicker--light {
	color: var(--sh-gold-pale) !important;
}

.sh-quote__lead {
	margin: 0 0 0.9rem;
	font-family: 'Cinzel', Georgia, serif !important;
	font-size: clamp(1.35rem, 3vw, 2.1rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase !important;
	color: #ffe9b3 !important;
	text-shadow: 0 2px 18px rgba(255, 200, 90, 0.25);
}

.sh-quote__verse {
	max-width: 640px;
	margin: 0 auto;
	font-family: 'Merriweather',"Merriweather Fallback", Georgia, serif !important;
	font-size: clamp(1rem, 1.7vw, 1.18rem);
	font-style: italic;
	line-height: 1.75;
	color: #ede3f8 !important;
}

.sh-quote__ref {
	margin: 0.7rem 0 0;
	font-family: 'Cinzel', Georgia, serif !important;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase !important;
	color: rgba(255, 217, 138, 0.85) !important;
}

.sh-quote__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: clamp(1.4rem, 3vw, 2rem);
}

/* ---------- Buttons ---------- */

.sh-sec .sh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.92rem 1.9rem;
	border-radius: 999px;
	font-family: 'Cinzel', Georgia, serif !important;
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase !important;
	text-decoration: none;
	line-height: 1.1;
	border: 1.5px solid transparent;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.sh-sec .sh-btn--gold {
	background-color: #e3b341;
	background-image: linear-gradient(135deg, #f6d16b 0%, #e3b341 45%, #c9a227 100%);
	color: #2a1245 !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.45),
		0 12px 26px -12px rgba(201, 162, 39, 0.9);
}

.sh-sec .sh-btn--gold:hover,
.sh-sec .sh-btn--gold:focus-visible {
	transform: translateY(-2px);
	background-color: #f0c24b;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.55),
		0 16px 32px -12px rgba(201, 162, 39, 1);
	color: #1d0b32 !important;
}

.sh-sec .sh-btn--ghost {
	background-color: transparent;
	border-color: rgba(255, 217, 138, 0.6);
	color: #ffd98a !important;
}

.sh-sec .sh-btn--ghost:hover,
.sh-sec .sh-btn--ghost:focus-visible {
	background-color: rgba(255, 217, 138, 0.12);
	border-color: var(--sh-gold-pale);
	color: #fff3cf !important;
}

.sh-actions {
	margin: clamp(1.6rem, 3vw, 2.2rem) 0 0;
	text-align: center;
}

/* ---------- Cascade guard ----------
   style.css paints an animated gold underline on every in-content link:
   ".entry-content a:not(.wp-block-button__link):not(.soki-btn)".
   The selectors below are deliberately a little more specific so the cards
   and buttons keep their own backgrounds and hover motion. */

body .entry-content .sh-sec a.sh-tile {
	background-image: none;
	background-size: auto;
	background-position: 0 0;
	background-repeat: repeat;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease,
		border-color 0.3s ease,
		background-color 0.3s ease;
}

body .entry-content .sh-sec a.sh-tile:hover {
	background-image: none;
	background-size: auto;
	background-color: #2f1548;
}

body .entry-content .sh-sec a.sh-btn {
	background-image: none;
	background-size: auto;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		background-color 0.25s ease,
		border-color 0.25s ease,
		color 0.2s ease;
}

body .entry-content .sh-sec a.sh-btn--gold,
body .entry-content .sh-sec a.sh-btn--gold:hover {
	background-image: linear-gradient(135deg, #f6d16b 0%, #e3b341 45%, #c9a227 100%);
}

body .entry-content .sh-sec a.sh-btn--ghost,
body .entry-content .sh-sec a.sh-btn--ghost:hover {
	background-image: none;
}

/* ---------- Soft divider between sections ---------- */

.sh-sec--directory {
	background: linear-gradient(180deg, rgba(231, 221, 247, 0) 0%, rgba(231, 221, 247, 0.42) 50%, rgba(231, 221, 247, 0) 100%);
}

/* Related links appended to interior pages */
.sh-sec--related {
	margin-top: clamp(1.5rem, 4vw, 3rem);
	padding-top: clamp(1.75rem, 4vw, 2.75rem);
	border-top: 1px solid rgba(201, 162, 39, 0.22);
}

/* ---------- Front page polish ---------- */

/* The template prints a redundant "Welcome" title above the gates artwork.
   Hide it visually while keeping it available to screen readers and search. */
body.home .wp-block-post-title,
body.front-page .wp-block-post-title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
	.sh-grid--tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.sh-grid--leaders {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sh-tile {
		min-height: 158px;
	}
}

@media (max-width: 680px) {
	.sh-grid--tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.sh-grid--leaders {
		grid-template-columns: minmax(0, 1fr);
	}

	.sh-leader__photo {
		aspect-ratio: 1 / 1;
	}

	.sh-sec {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.sh-tile {
		min-height: 146px;
		padding: 1.1rem 1rem 1rem;
	}

	.sh-sec .sh-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sh-leader,
	.sh-leader__photo img,
	.sh-tile,
	.sh-tile::before,
	.sh-tile__arrow,
	.sh-sec .sh-btn {
		transition: none;
	}

	.sh-leader:hover,
	.sh-tile:hover,
	.sh-sec .sh-btn--gold:hover {
		transform: none;
	}

	.sh-leader:hover .sh-leader__photo img {
		transform: none;
	}
}

/* ---------- Text-only leadership cards ----------
   The home page lists the team by role and name without portraits. */

.sh-leader--text {
	border-top: 3px solid rgba(201, 162, 39, 0.55);
	background: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
}

.sh-leader--text .sh-leader__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.4rem;
	min-height: 150px;
	padding: 1.5rem 1.1rem;
	border-top: 0;
	background: transparent;
}

.sh-leader--text:hover {
	border-color: rgba(201, 162, 39, 0.85);
	border-top-color: #e3b341;
}
