/*
 * Spirited Hen front page (front-page.php).
 *
 * Everything is scoped under .sh-home so these rules outrank Kadence's
 * element-level styles (a:hover, button:hover, input[type=email], p margins…).
 */

body { margin: 0; }
[hidden] { display: none !important; }

/* ---------- Base ---------- */
/* Colors and fonts (--sh-*) are defined site-wide on :root in style.css. */

.sh-home {
	font-family: var(--sh-sans);
	color: var(--sh-ink);
	background: var(--sh-cream);
	font-size: 17px;
	line-height: 1.6;
}

.sh-home p,
.sh-home h1,
.sh-home h2,
.sh-home h3,
.sh-home ul,
.sh-home ol,
.sh-home dl,
.sh-home dd { margin: 0; }

.sh-home ul,
.sh-home ol { padding: 0; list-style: none; }

/* Kadence colors h1–h3 near-black (--global-palette3). Use ink on light
   backgrounds; dark surfaces set --sh-heading to --sh-heading-on-dark. */
.sh-home h1,
.sh-home h2,
.sh-home h3 { color: var(--sh-heading, var(--sh-ink)); }

.sh-home .sh-feature--dark,
.sh-home .sh-donate,
.sh-home .sh-footer { --sh-heading: var(--sh-heading-on-dark); }

.sh-home a { color: var(--sh-teal); text-decoration: none; }
/* :where() keeps this at element weight so component colors below still win. */
:where(.sh-home) a:hover { color: var(--sh-ink); }

/* Serif display type */
.sh-home .sh-h1,
.sh-home .sh-h2,
.sh-home .sh-h3,
.sh-home .sh-stat,
.sh-home .sh-brand__name,
.sh-home .sh-mission__text,
.sh-home .sh-step__num,
.sh-home .sh-step__title,
.sh-home .sh-dot,
.sh-home .sh-action__title,
.sh-home .sh-newsletter__title {
	font-family: var(--sh-serif);
	font-weight: 400;
}

.sh-home .sh-h1 {
	margin: 0 0 24px;
	font-size: clamp(44px, 6vw, 80px);
	line-height: 1.02;
	letter-spacing: -0.005em;
}
.sh-home .sh-h2 {
	font-size: clamp(34px, 4vw, 52px);
	line-height: 1.05;
	letter-spacing: -0.005em;
}
.sh-home .sh-h3 { font-size: 28px; letter-spacing: 0; }

.sh-home .sh-muted { color: var(--sh-muted); }

/* Section intro paragraph under an h2 */
.sh-home .sh-intro { margin: 0 0 40px; max-width: 34em; color: var(--sh-muted); }

/* ---------- Layout ---------- */

.sh-home .sh-section { padding: 0 24px 96px; }
.sh-home .sh-container { max-width: 1200px; margin: 0 auto; }

.sh-home .sh-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(var(--sh-col, 260px), 1fr));
}

/* Rounded colored block inside a section (feral cats, how we care) */
.sh-home .sh-panel {
	max-width: 1200px;
	margin: 0 auto;
	border-radius: 36px;
	padding: clamp(32px, 5vw, 72px);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

/* Heading + blurb side by side */
.sh-home .sh-split {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
}

/* ---------- Components ---------- */

/* Pill buttons */
.sh-home .sh-btn {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
}
.sh-home .sh-btn--sm { min-height: 44px; padding: 0 20px; }
.sh-home .sh-btn--lg { padding: 0 32px; font-weight: 700; }
.sh-home .sh-btn--yellow { background: var(--sh-yellow); color: var(--sh-ink); }
.sh-home .sh-btn--dark { background: var(--sh-ink); color: var(--sh-cream); }
.sh-home .sh-btn--outline { border: 2px solid var(--sh-ink); color: var(--sh-ink); }

/* Pill tags */
.sh-home .sh-tag {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--sh-cream);
	font-size: 14px;
	font-weight: 600;
	color: var(--sh-teal);
}
.sh-home .sh-tag--more {
	padding: 4px 12px;
	background: none;
	border: 2px dashed var(--sh-line);
	color: var(--sh-muted);
}

/* Small uppercase label above a heading */
.sh-home .sh-eyebrow {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sh-magenta);
}

/* White cards */
.sh-home .sh-card { background: var(--sh-white); border-radius: 28px; }
.sh-home .sh-card--sm { border-radius: 24px; padding: 32px; }

/* Big magenta numbers */
.sh-home .sh-stat {
	font-size: clamp(56px, 7vw, 88px);
	line-height: 1;
	letter-spacing: -0.005em;
	color: var(--sh-magenta);
}
.sh-home .sh-stat--sm { font-size: 64px; }

/* Photo filling its box */
.sh-home .sh-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Circular photo badge on a card's corner */
.sh-home .sh-badge {
	position: absolute;
	top: -32px;
	right: 20px;
	width: 124px;
	height: 124px;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	background: var(--sh-cream);
	box-shadow: 0 0 0 5px var(--sh-white), 0 0 0 7px var(--sh-line), 0 8px 24px rgba(28, 58, 61, 0.18);
}
.sh-home .sh-badge--lg { top: -48px; right: 40px; width: 168px; height: 168px; }
.sh-home .sh-badge__placeholder {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sh-muted);
}

/* "→" text links */
.sh-home .sh-arrow-link { font-weight: 600; }
.sh-home .sh-link-accent { color: var(--sh-yellow); font-weight: 700; }

/* ---------- Header ---------- */

.sh-home .sh-header { padding: 20px 24px; }
.sh-home .sh-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.sh-home .sh-brand { display: flex; align-items: center; gap: 10px; color: var(--sh-ink); }
.sh-home .sh-brand img { display: block; width: 61px; height: 48px; }
.sh-home .sh-brand__name { font-size: 22px; letter-spacing: 0; }
.sh-home .sh-nav__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 28px;
	font-size: 15px;
	font-weight: 500;
}

/* ---------- Hero ---------- */

.sh-home .sh-hero { padding: 48px 24px 88px; }
.sh-home .sh-hero__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.sh-home .sh-hero__text { flex: 1 1 460px; min-width: 0; }
.sh-home .sh-hero__tag { margin: 0 0 20px; display: inline-block; background: var(--sh-mint); }
.sh-home .sh-hero__lead { margin: 0 0 36px; max-width: 34em; font-size: 19px; color: var(--sh-muted); }
.sh-home .sh-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.sh-home .sh-hero__photos {
	flex: 1 1 420px;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.sh-home .sh-tile {
	--sh-tile-h: 212px;
	min-height: var(--sh-tile-h);
	border-radius: 28px;
	overflow: hidden;
	display: flex;
}
.sh-home .sh-tile--tall { --sh-tile-h: 440px; grid-row: span 2; }
.sh-home .sh-tile > * {
	min-height: var(--sh-tile-h);
	border-radius: inherit;
	box-sizing: border-box;
}
.sh-home .sh-tile__placeholder {
	flex: 1 1 auto;
	display: flex;
	align-items: flex-end;
	padding: 20px;
	font-size: 14px;
	color: var(--sh-ink);
}
.sh-home .sh-tile--tall .sh-tile__placeholder { padding: 24px; background: var(--sh-teal); color: var(--sh-on-dark); }
.sh-home .sh-tile--yellow .sh-tile__placeholder { background: var(--sh-yellow); }
.sh-home .sh-tile--pink .sh-tile__placeholder { background: var(--sh-pink); }

/* ---------- Mission band ---------- */

.sh-home .sh-mission { background: var(--sh-ink); color: var(--sh-cream); padding: 72px 24px; }
.sh-home .sh-mission__inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.sh-home .sh-mission__text { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.3; letter-spacing: 0; }

/* ---------- Impact numbers ---------- */

.sh-home .sh-numbers { padding: 96px 24px 0; }
.sh-home .sh-numbers .sh-h2 { margin: 0 0 40px; }
.sh-home .sh-numbers__row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.sh-home .sh-numbers__big { flex: 1 1 360px; min-width: 0; padding: clamp(28px, 4vw, 48px); }
.sh-home .sh-numbers__caption { margin: 12px 0 0; color: var(--sh-muted); max-width: 24em; }
.sh-home .sh-numbers__small {
	display: flex;
	flex-direction: column-reverse;
	gap: 8px;
	justify-content: flex-end;
}
.sh-home .sh-numbers__small dt { color: var(--sh-muted); font-size: 16px; }

/* ---------- Animals ---------- */

.sh-home .sh-animals { padding: 96px 24px; }
.sh-home .sh-animals__head { gap: 24px; margin-bottom: 48px; }
.sh-home .sh-animals__title { flex: 1 1 520px; min-width: 0; }
.sh-home .sh-animals__title .sh-h2 { max-width: 15em; }
.sh-home .sh-animals__blurb { flex: 1 1 360px; max-width: 32em; color: var(--sh-muted); }
.sh-home .sh-animals__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: 44px 24px;
	padding-top: 12px;
}

.sh-home .sh-animal {
	min-width: 0;
	padding: 36px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: relative;
}

/* Cards in the same row share row tracks (icon, title, text, label, tags),
   so the "Animals we've cared for" dividers line up across the row. */
@supports (grid-template-rows: subgrid) {
	.sh-home .sh-animal {
		display: grid;
		grid-row: span 5;
		grid-template-rows: subgrid;
		row-gap: 16px;
	}
	.sh-home .sh-animal__label { margin-top: 0; }
}
.sh-home .sh-animal__icon {
	width: 64px;
	height: 64px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sh-home .sh-animal__icon--yellow { background: var(--sh-yellow-soft); }
.sh-home .sh-animal__icon--mint { background: var(--sh-mint); }
.sh-home .sh-animal__icon--pink { background: var(--sh-pink-soft); }
.sh-home .sh-animal > p:not([class]) { color: var(--sh-muted); }
.sh-home .sh-animal__label {
	margin: auto 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--sh-mint);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sh-muted);
}
/* align-content/items: keep pills their natural height when the list's grid row
   is taller than its content (a neighbor card has more rows of tags). */
.sh-home .sh-chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; align-items: flex-start; }

/* ---------- Feral cats ---------- */

.sh-home .sh-cats { padding: 48px 24px 96px; }
.sh-home .sh-cats__panel { background: var(--sh-pink-soft); gap: 40px; position: relative; }
.sh-home .sh-cats__head { gap: 24px 48px; }
.sh-home .sh-cats__text { flex: 1 1 420px; min-width: 0; }
.sh-home .sh-cats__text .sh-h2 { margin: 0 0 16px; }
.sh-home .sh-cats__text > p:last-child { max-width: 36em; color: var(--sh-muted); }
.sh-home .sh-cats__kicker {
	margin: 0 0 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sh-ink);
}
.sh-home .sh-cats__note { font-size: 15px; color: var(--sh-muted); }

/* Numbered steps */
.sh-home .sh-step { display: flex; flex-direction: column; gap: 12px; }
.sh-home .sh-step__num {
	font-size: 15px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sh-magenta);
}
.sh-home .sh-step__title { font-size: 26px; line-height: 1.15; }
.sh-home .sh-step__text { color: var(--sh-muted); font-size: 16px; }

/* ---------- How we care ---------- */

.sh-home .sh-approach__panel { background: var(--sh-mint); gap: 48px; }
.sh-home .sh-approach__head { gap: 16px 48px; }
.sh-home .sh-approach__head .sh-h2 { flex: 1 1 280px; }
.sh-home .sh-approach__head p { flex: 1 1 420px; max-width: 34em; color: var(--sh-muted); }
.sh-home .sh-timeline { position: relative; }
.sh-home .sh-timeline__line {
	position: absolute;
	top: 30px;
	left: 30px;
	right: 30px;
	height: 3px;
	background: var(--sh-line);
	border-radius: 2px;
}
.sh-home .sh-timeline__steps { --sh-col: 240px; position: relative; gap: 32px 48px; }
.sh-home .sh-timeline__steps .sh-step { position: relative; }
.sh-home .sh-timeline__steps .sh-step__title { margin-top: 8px; }
.sh-home .sh-timeline__steps .sh-step__text { font-size: 17px; }
.sh-home .sh-dot {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--sh-white);
	box-shadow: 0 0 0 3px var(--sh-magenta);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	line-height: 1;
	color: var(--sh-magenta);
}

/* ---------- Community & get involved ---------- */

.sh-home .sh-section-title { margin: 0 0 12px; }

.sh-home .sh-features { --sh-col: 320px; gap: 24px; }
.sh-home .sh-feature {
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.sh-home .sh-feature > p { color: var(--sh-muted); }
.sh-home .sh-feature .sh-arrow-link { margin-top: auto; }
.sh-home .sh-feature--dark { background: var(--sh-ink); color: var(--sh-cream); }
.sh-home .sh-feature--dark > p { color: var(--sh-on-dark); }
.sh-home .sh-feature--dark .sh-arrow-link { color: var(--sh-yellow); }

.sh-home .sh-actions { --sh-col: 240px; }
.sh-home .sh-action {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 32px;
	border-radius: 24px;
	background: var(--sh-white);
	color: var(--sh-ink);
	min-height: 200px;
	box-sizing: border-box;
}
.sh-home .sh-action__title { font-size: 24px; }
.sh-home .sh-action__text { color: var(--sh-muted); font-size: 16px; }
.sh-home .sh-action__cta { margin-top: auto; font-weight: 600; color: var(--sh-teal); }
.sh-home .sh-action--yellow { background: var(--sh-yellow); }
.sh-home .sh-action--yellow .sh-action__text,
.sh-home .sh-action--yellow .sh-action__cta { color: inherit; }

/* ---------- Donate ---------- */

.sh-home .sh-give { display: flex; flex-wrap: wrap; gap: 24px; }
.sh-home .sh-donate {
	flex: 1 1 420px;
	min-width: 0;
	border-radius: 32px;
	background: var(--sh-teal);
	color: var(--sh-cream);
	padding: clamp(28px, 4vw, 56px);
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.sh-home .sh-donate .sh-h2 { font-size: clamp(30px, 3.4vw, 44px); }
.sh-home .sh-donate > p { color: var(--sh-on-dark); }
.sh-home .sh-donate .sh-btn { align-self: flex-start; margin-top: auto; }

/* ---------- Footer ---------- */

.sh-home .sh-footer { background: var(--sh-ink); color: var(--sh-cream); padding: 72px 24px 40px; }
.sh-home .sh-footer__inner { display: flex; flex-direction: column; gap: 48px; }
.sh-home .sh-newsletter { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; }
.sh-home .sh-newsletter__text { flex: 1 1 360px; min-width: 0; }
.sh-home .sh-newsletter__title { margin: 0 0 8px; font-size: 34px; letter-spacing: -0.005em; }
.sh-home .sh-newsletter__text p { color: var(--sh-on-dark-muted); }
.sh-home .sh-newsletter__form { flex: 1 1 380px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.sh-home .sh-newsletter__field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.sh-home .sh-newsletter__field label { font-size: 14px; font-weight: 600; }
.sh-home input.sh-newsletter__input {
	min-height: 50px;
	padding: 0 18px;
	border-radius: 999px;
	border: 0;
	font: inherit;
	color: var(--sh-ink);
	background: var(--sh-cream);
}
.sh-home .sh-newsletter__submit {
	min-height: 50px;
	padding: 0 26px;
	border-radius: 999px;
	border: 0;
	background: var(--sh-yellow);
	color: var(--sh-ink);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.sh-home .sh-footer__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	justify-content: space-between;
	padding-top: 28px;
	border-top: 1px solid var(--sh-rule-dark);
	font-size: 14px;
	color: var(--sh-on-dark-muted);
}
.sh-home .sh-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.sh-home .sh-footer__links a { color: var(--sh-cream); text-decoration: underline; }
