/* Home page (front-page.php + template-parts/home/). Shared pieces come from the live stylesheets:
   hero (core-content.css .sr-core-hero), search panel (search-panel.css), status pills (revivals.css),
   signup block (signup.css), header and footer (style.css). Only home layout lives here. */

.sr-hm { padding-bottom: 0; }
.sr-hm [hidden] { display: none !important; }
.sr-hm .sr-hm-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-hm .sr-button { gap: 8px; }
.sr-hm .revival-pill { padding: 5px 10px; font-size: 11px; box-shadow: none; }
.sr-hm h2, .send-revival-typography .sr-hm h2 { margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.375rem) !important; }

/* ---------- Hero ---------- */
.sr-hm .sr-hm-hero { position: relative; isolation: isolate; padding-bottom: clamp(96px, 10vw, 128px); overflow: hidden; background: radial-gradient(70% 90% at 15% 20%, rgba(31, 95, 157, 0.5), transparent 60%), var(--sr-gradient-dark); }
.sr-hm .sr-hm-hero .sr-eyebrow { color: var(--sr-gold-400); }
.sr-hm .sr-hm-hero h1 { max-width: 15ch; }
.sr-hm .sr-hm-hero h1 em { color: var(--sr-gold-400); }
.sr-hm .sr-hm-hero .sr-lead { max-width: 56ch; margin-top: var(--sr-space-4); }

/* ---------- Section heads and links ---------- */
.sr-hm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: var(--sr-space-6); }
.sr-hm-head .sr-eyebrow { margin-bottom: 8px; }
.sr-hm-head__note, .send-revival-typography .sr-hm-head__note { margin: 0; color: var(--sr-muted-strong); font-size: 0.98rem !important; }
.sr-hm-head__note b { color: var(--sr-navy-900); }
.sr-hm-link { color: var(--sr-blue-700); font-weight: 700; text-decoration: none; }
.sr-hm-link::after { content: " \2192"; }
.sr-hm-link:hover { text-decoration: underline; }
.sr-hm-actions { display: flex; justify-content: center; margin-top: var(--sr-space-7); }
.sr-hm-empty { padding: var(--sr-space-6); border: 1px dashed var(--sr-border-strong); border-radius: var(--sr-radius); color: var(--sr-muted); text-align: center; }

/* ---------- Map ---------- */
.sr-hm-map { padding-bottom: 0; }
.sr-hm-map__frame { padding: 8px; border: 1px solid var(--sr-border-soft); border-radius: var(--sr-radius-lg); background: var(--sr-white); box-shadow: var(--sr-shadow-card); }
.sr-hm-map__map { z-index: 1; height: 440px; border-radius: var(--sr-radius); background: var(--sr-mist); }
.sr-hm-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--sr-muted-strong); font-size: 0.9rem; font-weight: 600; }
.sr-hm-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 50%; background: var(--sr-blue-700); vertical-align: -1px; }
.sr-hm-legend i.is-rev { background: var(--sr-gold-600); box-shadow: 0 0 0 3px var(--sr-gold-200); }
.sr-hm .leaflet-popup-content { margin: 12px 14px; font: 400 0.875rem/1.45 var(--sr-font-body); }
.sr-hm .leaflet-popup-content b { display: block; color: var(--sr-navy-950); font: 700 1rem/1.25 var(--sr-font-heading); }
.sr-hm .leaflet-popup-content a { font-weight: 700; }

/* ---------- Upcoming revival cards ---------- */
.sr-hm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sr-hm-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--sr-border); border-radius: var(--sr-radius); background: var(--sr-white); box-shadow: var(--sr-shadow-soft); transition: border-color var(--sr-duration-fast), box-shadow var(--sr-duration-fast), transform var(--sr-duration-fast) var(--sr-ease-out); }
.sr-hm-card:hover { border-color: var(--sr-blue-500); box-shadow: var(--sr-shadow-card); transform: translateY(-2px); }
.sr-hm-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sr-hm-card__name, .send-revival-typography .sr-hm-card__name { margin: 0; font-size: 1.375rem !important; line-height: 1.2 !important; }
.sr-hm-card__name a { color: var(--sr-navy-900); text-decoration: none; }
.sr-hm-card__name a:hover { color: var(--sr-blue-700); text-decoration: underline; text-underline-offset: 3px; }
.sr-hm-card__facts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--sr-muted-strong); font-size: var(--sr-text-support); line-height: 1.4; }
.sr-hm-card__facts li { display: flex; gap: 8px; margin: 0; align-items: flex-start; }
.sr-hm-card__facts .sr-hm-i { margin-top: 1px; color: var(--sr-gold-600); }
.sr-hm-card__btn { width: 100%; margin-top: auto; }
.sr-hm-datebox { display: inline-flex; min-width: 66px; flex: none; flex-direction: column; gap: 4px; padding: 9px 8px; border: 1px solid var(--sr-border-soft); border-radius: var(--sr-radius); align-items: center; justify-content: center; background: var(--sr-surface-soft); color: var(--sr-navy-900); line-height: 1; text-align: center; }
.sr-hm-datebox span { color: var(--sr-gold-600); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; }
.sr-hm-datebox b { font-family: var(--sr-font-heading); font-size: 1.35rem; white-space: nowrap; }

/* ---------- Having a revival? ---------- */
.sr-hm-how { background: var(--sr-gradient-page); }
.sr-hm-how__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: var(--sr-space-7); align-items: start; }
.sr-hm-how__text { margin: var(--sr-space-4) 0 var(--sr-space-5); color: var(--sr-muted); }
.sr-hm-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: var(--sr-space-5); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.sr-hm-steps li { margin: 0; padding: var(--sr-space-6); border: 1px solid var(--sr-border); border-radius: var(--sr-radius); background: var(--sr-white); }
.sr-hm-steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--sr-space-4); border-radius: 50%; background: var(--sr-navy-900); color: var(--sr-gold-400); font: 700 1.375rem var(--sr-font-heading); }
.sr-hm-steps h3, .send-revival-typography .sr-hm-steps h3 { margin: 0 0 8px; font-size: 1.25rem !important; }
.sr-hm-steps p, .send-revival-typography .sr-hm-steps p { margin: 0; color: var(--sr-muted); font-size: 1rem !important; }

/* ---------- Preachers and churches ---------- */
.sr-hm-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sr-space-7); }
.sr-hm-people__col { display: flex; flex-direction: column; align-items: flex-start; }
.sr-hm-people__col > * { width: 100%; }
.sr-hm-people h2, .send-revival-typography .sr-hm-people h2 { max-width: 22ch; font-size: 1.625rem !important; }
.sr-hm-people__text { margin: var(--sr-space-3) 0 var(--sr-space-5); color: var(--sr-muted-strong); }
.sr-hm .sr-hm-people__btn { width: auto; margin-top: var(--sr-space-5); }
.sr-hm-people__btn .sr-hm-i { transition: transform var(--sr-duration-fast) var(--sr-ease-out); }
.sr-hm-people__btn:hover .sr-hm-i { transform: translateX(3px); }
.sr-hm-list { display: grid; gap: 12px; }
.sr-hm-pc { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--sr-border); border-radius: var(--sr-radius); background: var(--sr-white); color: inherit; text-decoration: none; transition: border-color var(--sr-duration-fast); }
.sr-hm-pc:hover, .sr-hm-cc:hover { border-color: var(--sr-blue-500); }
.sr-hm-pc__av { width: 64px; height: 64px; background: var(--sr-mist); }
.sr-hm-pc b, .sr-hm-cc b { display: block; color: var(--sr-navy-950); font: 700 1.125rem/1.25 var(--sr-font-heading); }
.sr-hm-pc small, .sr-hm-cc small { display: block; margin-top: 2px; color: var(--sr-muted); font-size: 0.9rem; line-height: 1.45; }
.sr-hm-pc strong { color: var(--sr-navy-900); font-weight: 600; }
.sr-hm-cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sr-hm-cc { overflow: hidden; border: 1px solid var(--sr-border); border-radius: var(--sr-radius); background: var(--sr-white); color: inherit; text-decoration: none; transition: border-color var(--sr-duration-fast); }
.sr-hm-cc img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sr-mist); }
.sr-hm-cc > span { display: block; padding: 12px 14px 14px; }
.sr-hm-cc__rev { display: inline-flex; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: var(--sr-radius-pill); align-items: center; background: var(--sr-status-gold-bg); color: var(--sr-status-gold-text); font-size: 0.82rem; font-style: normal; font-weight: 700; }
.sr-hm-cc__rev .sr-hm-i { width: 14px; height: 14px; }

/* ---------- Numbers band (same tiles as the directory heroes) ---------- */
.sr-hm-stats { padding: var(--sr-space-8) 0; background: var(--sr-gradient-dark); }
.sr-hm-stats ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sr-hm-stats li { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; padding: 20px 10px; border: 1px solid var(--sr-white-border); border-radius: var(--sr-radius); background: var(--sr-white-soft); }
.sr-hm-stats b { color: var(--sr-gold-400); font-family: var(--sr-font-heading); font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1; }
.sr-hm-stats span { margin-top: 8px; color: var(--sr-white-muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-align: center; text-transform: uppercase; }

/* ---------- Why we do this ---------- */
.sr-hm-about-band { background: var(--sr-gradient-page); border-block: 1px solid var(--sr-border-soft); }
.sr-hm-about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--sr-space-7); align-items: center; }
.sr-hm-about blockquote { margin: 0 0 var(--sr-space-5); padding: 0; border: 0; color: var(--sr-navy-950); font: italic 700 clamp(1.75rem, 3.6vw, 2.5rem)/1.2 var(--sr-font-heading); }
.sr-hm-about blockquote strong { color: var(--sr-blue-700); font-style: normal; }
.sr-hm-about__text { color: var(--sr-muted-strong); }
.sr-hm-belief h3, .send-revival-typography .sr-hm-belief h3 { margin: 0 0 var(--sr-space-4); color: var(--sr-gold-600); font-family: var(--sr-font-body) !important; font-size: var(--sr-text-label) !important; letter-spacing: 0.1em !important; text-transform: uppercase; }
.sr-hm-belief ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sr-hm-belief li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; margin: 0; color: var(--sr-muted-strong); }
.sr-hm-belief li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--sr-navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0d278' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ---------- Signup and donate: dark closing band that runs into the footer ---------- */
body.home .sr-site-footer { margin-top: 0; }
.sr-hm-close { position: relative; isolation: isolate; padding-block: var(--sr-space-9) var(--sr-space-8); background: radial-gradient(60% 90% at 85% 10%, rgba(31, 95, 157, 0.45), transparent 60%), var(--sr-gradient-dark); }
.sr-hm-close__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--sr-space-6); align-items: stretch; }
.sr-hm-close .revival-signup-shell--inline { margin: 0; }
.sr-hm-close .revival-signup { grid-template-columns: minmax(0, 1fr); gap: var(--sr-space-5); height: 100%; align-content: start; padding: 0; border: 0; background: transparent; }
.sr-hm-close .revival-signup__eyebrow { color: var(--sr-gold-400); }
.sr-hm-close .revival-signup__title { max-width: none; color: var(--sr-white); }
.sr-hm-close .revival-signup__copy { max-width: none; color: var(--sr-white-muted); font-size: 1rem; }
.sr-hm-close .revival-signup__copy br { display: none; }
.sr-hm-close .revival-signup__panel { padding: var(--sr-space-5); border-radius: var(--sr-radius-lg); background: var(--sr-white); box-shadow: var(--sr-shadow-card); }
.sr-hm-give { display: flex; flex-direction: column; gap: var(--sr-space-4); padding: var(--sr-space-6); border: 1px solid var(--sr-gold-400); border-radius: var(--sr-radius-lg); background: linear-gradient(180deg, #fffcf0, var(--sr-gold-200)); color: var(--sr-ink); }
.sr-hm-give .sr-eyebrow { margin: 0; }
.sr-hm-give h2, .send-revival-typography .sr-hm-give h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem) !important; line-height: 1.15 !important; }
.sr-hm-give p { margin: 0; color: var(--sr-muted-strong); }
.sr-hm-give .sr-button { align-self: flex-start; margin-top: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.sr-hm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.sr-hm-how__grid, .sr-hm-about, .sr-hm-close__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sr-space-6); }
	.sr-hm-people { grid-template-columns: minmax(0, 1fr); gap: var(--sr-space-8); }
}
@media (max-width: 640px) {
	.sr-hm-cards { grid-template-columns: minmax(0, 1fr); }
	.sr-hm-map__map { height: 340px; }
	.sr-hm-stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
	.sr-hm-cgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.sr-hm *, .sr-hm *::before, .sr-hm *::after { transition: none !important; animation: none !important; }
}
