/* ==========================================================================
   Teapotheca — Home (front-page.php)
   ========================================================================== */

.tp-home {
	--tp-amber-deep: #8A5A2B; /* Amber Glass, darkened for readable text on parchment */
	background:
		linear-gradient(rgba(237, 230, 216, 0.63), rgba(237, 230, 216, 0.63)),
		var(--tp-home-bg, none) center / cover no-repeat,
		var(--tp-parchment);
	text-align: center;
}

/* Remove the gap the footer would otherwise leave under the full-bleed background */
.home .tp-site-content + .tp-footer { margin-top: 0; }

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

.tp-home-hero {
	display: grid;
	align-items: center;
	min-height: min(64vh, 640px);
	padding-block: clamp(3rem, 10vw, 7rem) clamp(1.5rem, 4vw, 3rem);
}
.tp-home-hero__title {
	margin: 0 auto 1.5rem;
	font-size: clamp(2.5rem, 6.5vw, 4.5rem);
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--tp-charcoal);
}
.tp-home-hero__lede {
	max-width: 62ch;
	margin: 0 auto 2.5rem;
	font-weight: 600;
	color: var(--tp-charcoal);
}

.tp-home-search {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	max-width: 27rem;
	margin: 0 auto 1.75rem;
}
.tp-home-search input {
	flex: 1;
	min-width: 0;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--tp-rule);
	background: var(--tp-paper);
	font: inherit;
	font-size: 0.9375rem;
	color: var(--tp-charcoal);
}
.tp-home-search button {
	padding: 0.7rem 1.4rem;
	border: 0;
	background: var(--tp-charcoal);
	color: var(--tp-paper);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 14px -8px rgba(43, 38, 32, 0.7);
}
.tp-home-search button:hover { background: var(--tp-ink); }

.tp-home-quicklinks {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tp-home-quicklinks a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.1875rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--tp-amber-deep);
}
.tp-home-quicklinks a:hover { color: var(--tp-ink); }
.tp-home-quicklinks svg { color: var(--tp-charcoal); }

/* ---------- Intro, cards, stats ---------- */

.tp-home-intro { padding-block: clamp(2rem, 6vw, 4rem); }

.tp-home-intro__title {
	max-width: 30ch;
	margin: 0 auto clamp(2rem, 5vw, 3rem);
	font-size: clamp(1.5rem, 3.4vw, 2.25rem);
	font-weight: 700;
	color: var(--tp-charcoal);
}
.tp-home-intro__title span {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.6em;
	font-style: italic;
	font-weight: 600;
}

.tp-home-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}
.tp-home-card {
	display: flex;
	flex-direction: column;
	padding: 1.75rem 1.75rem 1.5rem;
	background: rgba(237, 230, 216, 0.92);
	box-shadow: 0 10px 24px -14px rgba(43, 38, 32, 0.45);
}
.tp-home-card__num {
	font-family: var(--tp-font-display);
	font-weight: 600;
	color: var(--tp-amber);
}
.tp-home-card__title {
	margin: 0.35rem 0 0.75rem;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	color: var(--tp-charcoal);
}
.tp-home-card p { flex: 1; margin: 0 0 1.5rem; }
.tp-home-card__link {
	align-self: flex-start;
	padding: 0.6rem 1.1rem;
	background: var(--tp-charcoal);
	color: var(--tp-paper);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	box-shadow: 0 6px 14px -8px rgba(43, 38, 32, 0.7);
}
.tp-home-card__link:hover { background: var(--tp-ink); color: var(--tp-paper); }

.tp-home-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	max-width: 52rem;
	margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
}
.tp-home-stats > div {
	display: flex;
	flex-direction: column-reverse;
	padding-inline: 1rem;
}
.tp-home-stats > div + div { border-left: 1px solid var(--tp-charcoal); }
.tp-home-stats dd {
	margin: 0;
	font-family: var(--tp-font-display);
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--tp-charcoal);
}
.tp-home-stats dt {
	margin-top: 0.25rem;
	font-family: var(--tp-font-display);
	font-size: 0.9375rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--tp-charcoal);
}

/* ---------- Join ---------- */

.tp-home-join { padding-block: clamp(1rem, 4vw, 2.5rem); }
.tp-home-join .tp-container {
	max-width: 46rem;
	padding: clamp(1.75rem, 4vw, 2.5rem);
	background: rgba(237, 230, 216, 0.94);
	border-top: 3px solid var(--tp-bottle);
	box-shadow: 0 10px 24px -14px rgba(43, 38, 32, 0.45);
}
.tp-home-join h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: var(--tp-charcoal);
}
.tp-home-join p { max-width: 38rem; margin: 0 auto 1.25rem; color: var(--tp-charcoal); }
.tp-home-join__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.75rem 1.5rem;
	margin-bottom: 0 !important;
}
.tp-home-join__secondary { font-weight: 700; color: var(--tp-amber-deep); }
.tp-home-join__secondary:hover { color: var(--tp-ink); }

/* ---------- Why ---------- */

.tp-home-why { padding-block: clamp(2rem, 6vw, 4rem) clamp(4rem, 10vw, 7rem); }
.tp-home-why h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: var(--tp-charcoal);
}
.tp-home-why p {
	max-width: 62ch;
	margin: 0 auto;
	line-height: 1.7;
	color: var(--tp-charcoal);
}

/* ---------- Small screens ---------- */

@media (max-width: 800px) {
	.tp-home-cards { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
}
@media (max-width: 520px) {
	.tp-home-search { flex-direction: column; }
	.tp-home-stats { grid-template-columns: 1fr; gap: 1.25rem; }
	.tp-home-stats > div + div { border-left: 0; border-top: 1px solid var(--tp-rule); padding-top: 1.25rem; }
}

@media (max-width: 800px) {
	.tp-home-hero { min-height: 0; }
}

/* Audit additions: safety callout, preview, FAQ */
.tp-home-safety { margin-top: 1.5rem; font-weight: 600; }
.tp-home-preview, .tp-faq, .tp-home-quotes { padding-block: 3rem; }
.tp-home-preview__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 1.5rem; }
.tp-home-preview figure { margin: 0; }
.tp-home-preview img { display: block; width: 100%; height: auto; border-radius: 6px; }
.tp-home-preview figcaption { margin-top: .6rem; }
.tp-faq__item { border-top: 1px solid rgba(0,0,0,.15); padding-block: 1rem; }
.tp-faq__item:last-child { border-bottom: 1px solid rgba(0,0,0,.15); }
.tp-faq__item summary { cursor: pointer; font-weight: 600; }
.tp-faq__item p { margin: .75rem 0 0; max-width: 70ch; }
.tp-faq__item p { margin-inline: auto; }
