/* ==========================================================================
   abcBIM — Homepage (front-page.php)
   Page layout only. Shared components (buttons, chips, tabs, job rows,
   lesson items, entry cards, benefits, section heads, placeholders, empty
   states) come from base.css; the podcast feature block comes from podcast.css.
   ========================================================================== */

/* ---------- 1. Hero ---------- */
.home-hero {
	padding-top: clamp(40px, 6vw, 88px);
	padding-bottom: clamp(48px, 6vw, 80px);
}

.home-hero__grid {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(36px, 5vw, 72px);
	align-items: stretch;
}

.home-hero__content {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.home-hero__title {
	margin: 28px 0 0;
}

.home-hero__lead {
	max-width: 540px;
	margin: 28px 0 0;
}

.home-hero__actions {
	margin-top: 36px;
}

.home-hero__disciplines {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin: 44px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--c-rule);
	font-family: var(--f-mono);
	font-size: 12.5px;
	letter-spacing: 0.06em;
	color: var(--c-muted);
}

.home-hero__disciplines li + li::before {
	content: "•";
	content: "•" / "";
	margin-right: 14px;
}

.home-hero__aside {
	flex: 1 1 420px;
	position: relative;
	min-height: 520px;
	min-width: 0;
}

.home-hero__photo {
	position: absolute;
	inset: 0 0 56px 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

/* No open jobs → no floating card, so the photo fills the column. */
.home-hero__aside--solo .home-hero__photo {
	bottom: 0;
}

.home-hero__photo.placeholder {
	align-items: flex-start;
	justify-content: flex-end;
	padding: 18px;
}

.home-hero__card {
	position: absolute;
	left: clamp(-24px, -2vw, 0px);
	bottom: 0;
	display: block;
	width: min(360px, 92%);
	padding: 22px 24px;
	background: var(--c-paper);
	border: 1px solid var(--c-rule);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	color: var(--c-ink);
	transition: border-color 0.15s ease;
}

.home-hero__card:hover {
	border-color: var(--c-ink);
	color: var(--c-ink);
}

.home-hero__card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.home-hero__card-new {
	color: var(--c-green);
	white-space: nowrap;
}

.home-hero__card-title {
	font-family: var(--f-serif);
	font-size: 25px;
	line-height: 1.15;
	margin-top: 12px;
}

.home-hero__card-sub {
	font-size: 14px;
	color: var(--c-muted);
	margin-top: 6px;
}

.home-hero__card-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--c-rule-soft);
	font-size: 14px;
	font-weight: 600;
}

.home-hero__card-cta {
	color: var(--c-green);
	white-space: nowrap;
}

/* ---------- 2. Entry points ("What are you looking for?") ---------- */
.home-entry-points {
	padding-bottom: var(--section-y);
}

/* The one eyebrow the design sets at weight 500. Cards: .entry-card* in base.css. */
.home-entry-points__title {
	margin: 0 0 20px;
	font-weight: 500;
}

/* ---------- 3. Jobs band ---------- */
.home-jobs__filters {
	margin-top: 40px;
}

/* Design: the empty message and its rule span the full container width. */
.home-jobs .empty-state {
	max-width: none;
}

/* ---------- 4. Community band ---------- */
.home-community__intro {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
}

.home-community__text {
	flex: 1 1 440px;
	min-width: 0;
}

.home-community__title {
	font-family: var(--f-serif);
	font-weight: 400;
	font-size: clamp(44px, 5.6vw, 80px);
	line-height: 1;
	letter-spacing: -0.025em;
	margin: 18px 0 0;
}

.home-community__copy {
	font-size: 18px;
	line-height: 1.6;
	color: var(--c-d-lead);
	max-width: 520px;
	margin: 26px 0 0;
	text-wrap: pretty;
}

.home-community__cta {
	margin-top: 36px;
	max-width: 100%;
	white-space: normal;
	text-align: center;
}

/* Keep the long label on one line on small phones (360–400px). */
@media (max-width: 400px) {
	.home-community__cta {
		padding-left: 24px;
		padding-right: 24px;
		font-size: 15px;
	}
}

.home-community__photos {
	flex: 1 1 440px;
	min-width: 0;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	grid-template-rows: 200px 200px;
	gap: 12px;
}

.home-community__photo {
	min-width: 0;
	border-radius: var(--radius);
}

.home-community__photo--main {
	grid-row: 1 / 3;
}

/* Items: .benefits / .benefit--dark in base.css. */
.home-benefits {
	margin-top: clamp(56px, 7vw, 96px);
}

/* ---------- 5. Learn widget ---------- */
.home-learn__tabs {
	margin-top: 36px;
}

.home-learn__body {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	margin-top: 40px;
}

.home-learn__feature {
	flex: 1.3 1 460px;
	min-width: 0;
}

.home-learn__list {
	flex: 1 1 340px;
	min-width: 0;
}

.home-learn__empty {
	padding: 48px 0;
	border-bottom: 0;
	font-size: 17px;
	max-width: 560px;
}

/* ---------- 6. Podcast ---------- */
.home-podcast__feature {
	margin-top: 48px;
}

/* ---------- 7. Final CTA ---------- */
.home-cta {
	padding-top: clamp(88px, 11vw, 160px);
	padding-bottom: clamp(88px, 11vw, 160px);
	text-align: center;
}

.home-cta__title {
	font-family: var(--f-serif);
	font-weight: 400;
	font-size: clamp(44px, 6vw, 88px);
	line-height: 1;
	letter-spacing: -0.025em;
	max-width: 980px;
	margin: 0 auto;
	text-wrap: balance;
}

.home-cta__copy {
	font-size: 18px;
	line-height: 1.6;
	color: var(--c-slate);
	max-width: 620px;
	margin: 28px auto 0;
	text-wrap: pretty;
}

.home-cta__actions {
	justify-content: center;
	margin-top: 40px;
}

/* ---------- 8. Contact (#contact) ---------- */
.home-contact {
	border-top: 1px solid var(--c-rule);
}

.home-contact__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: clamp(32px, 5vw, 80px);
	padding-top: clamp(64px, 8vw, 104px);
	padding-bottom: clamp(64px, 8vw, 104px);
}

.home-contact__text {
	flex: 1 1 380px;
	min-width: 0;
}

.home-contact__title {
	margin: 16px 0 0;
}

.home-contact__copy {
	max-width: 460px;
	margin: 16px 0 0;
	font-size: 17px;
	line-height: 1.55;
	color: var(--c-slate);
}

.home-contact__links {
	flex: 1 1 440px;
	min-width: 0;
}

/* The rows themselves (.contact-links / .contact-link*) are shared with the Contact page: base.css. */

/* ---------- Without JavaScript ----------
   Filter chips and topic tabs only work with main.js; without it every job and
   the default lesson set are already shown, so hide the inert controls. */
html:not(.js) .home-jobs__filters,
html:not(.js) .home-learn__tabs {
	display: none;
}
