/* Programs page — image-page, programs grid, and stay-in-the-loop CTA.
   Styles duplicated from home.css because home.css is only loaded on /. */

/* ═══════════════════════════════════════
   IMAGE-PAGE — full-viewport image with parallax (wired up globally by
   parallax.js, which targets any `.image-page img`).
   ═══════════════════════════════════════ */
.image-page {
	height: var(--vh-stable, 100svh);
	overflow: hidden;
	padding: 0;
}

.image-page img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/* ═══════════════════════════════════════
   PROGRAMS GRID
   ═══════════════════════════════════════ */
.programs {
	min-height: 100svh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--space-4xl) var(--space-xl);
	background: var(--white);
	position: relative;
}

.programs__header {
	text-align: center;
	margin-bottom: var(--space-3xl);
}

.programs__header h2 {
	margin-top: var(--space-md);
}

.programs__sub {
	font-size: 1rem;
	color: var(--secondary);
	margin-top: var(--space-sm);
}

.programs__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-width: 960px;
	width: 100%;
}

.card {
	background: var(--bg);
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid var(--border);
	text-decoration: none;
	color: var(--ink);
	transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
	transform: translateY(-6px);
	box-shadow: 0 32px 80px rgba(45, 74, 62, 0.1);
	color: var(--ink);
}

.card__hero {
	position: relative;
	height: 200px;
	overflow: hidden;
}

.card__hero progressive-image {
	width: 100%;
	height: 100%;
	transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card__hero progressive-image {
	transform: scale(1.04);
}

.card__gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 30%, rgba(45, 74, 62, 0.4) 100%);
}

.card__body {
	padding: 20px 20px 24px;
}

.card__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}

.card__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--pencil);
}

.card h3 {
	font-size: 1.15rem;
	margin-bottom: 8px;
}

.card p {
	font-size: 0.82rem;
	color: var(--secondary);
	line-height: 1.7;
}

/* ═══════════════════════════════════════
   STAY-IN-THE-LOOP CTA
   ═══════════════════════════════════════ */
.cta {
	min-height: 100svh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-4xl) var(--space-xl);
	background: var(--bg);
	position: relative;
}

.cta__inner {
	max-width: 600px;
	text-align: center;
}

.cta h2 {
	font-size: 2.8rem;
	line-height: 1.15;
	margin-bottom: 0;
}

.cta__line {
	width: 32px;
	height: 1px;
	background: var(--divider);
	margin: var(--space-xl) auto;
}

.cta__label {
	font-family: var(--serif-sc);
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--secondary);
	margin-bottom: var(--space-lg);
}

.cta__lede {
	color: var(--secondary);
	font-size: 1.05rem;
	line-height: 1.9;
	margin-bottom: var(--space-2xl);
}

.signup {
	display: flex;
	gap: 8px;
	max-width: 440px;
	margin: 0 auto;
}

.signup__input {
	flex: 1;
	padding: 14px 20px;
	border: 1px solid var(--border);
	border-radius: 100px;
	background: transparent;
	font-family: var(--serif);
	font-size: 0.9rem;
	color: var(--ink);
	transition: border-color 0.2s ease;
}

.signup__input::placeholder {
	color: var(--secondary);
	opacity: 0.5;
}

.signup__input:focus {
	outline: none;
	border-color: var(--amber);
}

.signup__btn {
	padding: 14px 28px;
	background: var(--ink);
	color: var(--bg);
	border: none;
	border-radius: 100px;
	font-family: var(--serif);
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.25s ease;
	white-space: nowrap;
}

.signup__btn:hover {
	background: #1e3a30;
	transform: translateY(-1px);
}

.cta__fineprint {
	margin-top: var(--space-lg);
	font-size: 0.8rem;
	color: color-mix(in srgb, var(--secondary) 60%, transparent);
}

.cta__fineprint a {
	color: var(--amber);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.cta__fineprint a:hover {
	color: #a88a35;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
	.programs__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.programs { padding: var(--space-3xl) var(--space-lg); }
	.programs__header { margin-bottom: var(--space-xl); }
	.programs__grid { grid-template-columns: 1fr; max-width: 100%; }
	.card__hero { height: 220px; }
	.cta { padding: var(--space-3xl) var(--space-lg); }
	.cta h2 { font-size: 1.8rem; }
	.cta p { font-size: 0.95rem; }
	.signup { flex-direction: column; max-width: 320px; }
	.signup__btn { width: 100%; }
}
