/* Joy in the City — Home page middle section */

:root {
	--jitc-max-width: 1280px;
}

.jitc-home {
	width: 100%;
}

.jitc-container {
	width: 100%;
	max-width: var(--jitc-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.jitc-section-title {
	margin: 0 0 32px;
	color: var(--jitc-text);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Hero */

.jitc-hero {
	position: relative;
	width: 100%;
	min-height: 480px;
	overflow: visible;
}

.jitc-hero__background {
	position: absolute;
	inset: 0;
	background-color: #1a1a1a;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.jitc-hero__overlay {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 480px;
	padding: 0 24px 0;
}

.jitc-hero__welcome {
	position: relative;
	width: 100%;
	max-width: 680px;
	margin-bottom: -36px;
	padding: 40px 56px 44px;
	background-color: var(--jitc-white);
	text-align: center;
	box-shadow: none;
}

.jitc-hero__label {
	margin: 0 0 10px;
	color: var(--jitc-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
}

.jitc-hero__title {
	margin: 0;
	color: var(--jitc-green-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.875rem, 4.5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
}

.jitc-hero__title-line {
	display: block;
}

/* Our Mission */

.jitc-mission {
	padding: 96px 0 72px;
	background-color: var(--jitc-page-bg);
}

.jitc-mission .jitc-container {
	max-width: 1280px;
	padding-left: 32px;
	padding-right: 32px;
}

.jitc-mission .jitc-section-title {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--jitc-text);
	font-size: clamp(2rem, 3vw, 2.5rem);
	margin-bottom: 40px;
}

.jitc-mission__text {
	max-width: 960px;
	margin: 0 auto 56px;
	color: var(--jitc-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 1.125rem;
	line-height: 1.75;
	text-align: center;
}

.jitc-mission__text p {
	margin: 0 0 20px;
}

.jitc-mission__text p:last-child {
	margin-bottom: 0;
}

/* Feature cards */

.jitc-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	align-items: start;
}

.jitc-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 44px 32px;
	background: var(--jitc-white);
	border: 1px solid var(--jitc-border);
	text-align: center;
	text-decoration: none;
	color: inherit;
}

.jitc-card--link:hover {
	opacity: 0.92;
}

.jitc-card__image {
	display: block;
	width: auto;
	max-width: 64px;
	height: auto;
	max-height: 64px;
	margin-bottom: 20px;
	object-fit: contain;
}

.jitc-card__title {
	margin: 0 0 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--jitc-text);
}

.jitc-card__text {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--jitc-text);
}

/* Newsletter */

.jitc-newsletter {
	position: relative;
	min-height: 360px;
}

.jitc-newsletter__background {
	position: absolute;
	inset: 0;
	background-color: #1a1a1a;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.jitc-newsletter__background::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.jitc-newsletter__overlay {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 360px;
	padding: 48px 24px;
}

.jitc-newsletter__box {
	width: 100%;
	max-width: 680px;
	padding: 48px 56px;
	background: var(--jitc-white);
	text-align: center;
}

.jitc-newsletter__title {
	margin: 0 0 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--jitc-text);
}

.jitc-newsletter__text {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--jitc-text);
}

/* News & Events */

.jitc-news-events {
	padding: 72px 0;
	background: var(--jitc-page-bg);
}

.jitc-news-events .jitc-container {
	max-width: 1280px;
	padding-left: 32px;
	padding-right: 32px;
}

.jitc-news-events .jitc-section-title {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--jitc-green-dark);
	font-size: clamp(2rem, 3vw, 2.5rem);
	margin-bottom: 40px;
}

.jitc-news-events__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

.jitc-event-card {
	background: var(--jitc-white);
	border: 1px solid var(--jitc-green-dark);
	overflow: hidden;
}

.jitc-event-card__image {
	height: 280px;
	background-color: #ccc;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.jitc-event-card__body {
	padding: 32px 36px 36px;
	text-align: left;
}

.jitc-event-card__tag {
	display: inline-block;
	margin-bottom: 16px;
	padding: 8px 20px;
	background: var(--jitc-text);
	color: var(--jitc-white);
	font-size: 0.8125rem;
	font-weight: 600;
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.2s ease;
}

.jitc-event-card__tag:hover {
	background: var(--jitc-green-dark);
	color: var(--jitc-white);
}

.jitc-event-card__title {
	margin: 0 0 12px;
	color: var(--jitc-green-dark);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
}

.jitc-event-card__text {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--jitc-text);
}

/* Gallery preview */

.jitc-gallery-preview {
	padding: 72px 0 80px;
	background: var(--jitc-page-bg);
}

.jitc-gallery-preview .jitc-container {
	max-width: 1280px;
	padding-left: 32px;
	padding-right: 32px;
}

.jitc-gallery-preview__subtitle {
	max-width: 720px;
	margin: -16px auto 40px;
	color: var(--jitc-text-muted);
	font-size: 1rem;
	line-height: 1.6;
	text-align: center;
}

.jitc-gallery-preview__grid {
	display: grid;
	grid-template-columns: 2fr 3fr;
	grid-template-rows: repeat(3, auto);
	gap: 4px;
	background: var(--jitc-white);
}

.jitc-gallery-preview__photo {
	width: 100%;
	background-color: #bbb;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.jitc-gallery-preview__photo--sm {
	aspect-ratio: 3 / 2;
}

.jitc-gallery-preview__photo--sm:nth-child(1) {
	grid-column: 1;
	grid-row: 1;
}

.jitc-gallery-preview__photo--sm:nth-child(2) {
	grid-column: 1;
	grid-row: 2;
}

.jitc-gallery-preview__photo--sm:nth-child(3) {
	grid-column: 1;
	grid-row: 3;
}

.jitc-gallery-preview__photo--lg {
	grid-column: 2;
	grid-row: 1 / span 3;
	min-height: 100%;
	align-self: stretch;
}

.jitc-gallery-preview__link {
	display: inline-block;
	margin-top: 20px;
	color: var(--jitc-green-dark);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: underline;
}

.jitc-gallery-preview__link:hover {
	color: var(--jitc-green);
}

/* Responsive */

@media (max-width: 900px) {
	.jitc-cards {
		grid-template-columns: 1fr;
	}

	.jitc-news-events__grid {
		grid-template-columns: 1fr;
	}

	.jitc-gallery-preview__grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.jitc-gallery-preview__photo--sm:nth-child(1) {
		grid-column: 1;
		grid-row: 1;
	}

	.jitc-gallery-preview__photo--sm:nth-child(2) {
		grid-column: 1;
		grid-row: 2;
	}

	.jitc-gallery-preview__photo--sm:nth-child(3) {
		grid-column: 1;
		grid-row: 3;
	}

	.jitc-gallery-preview__photo--lg {
		grid-column: 1;
		grid-row: 4;
		aspect-ratio: 3 / 4;
		min-height: 0;
	}
}

@media (max-width: 768px) {
	.jitc-hero,
	.jitc-hero__overlay {
		min-height: 380px;
	}

	.jitc-hero__welcome {
		max-width: calc(100% - 32px);
		margin-bottom: -28px;
		padding: 28px 24px 32px;
	}

	.jitc-hero__title {
		font-size: clamp(1.5rem, 6vw, 2rem);
	}

	.jitc-mission {
		padding: 72px 0 56px;
	}

	.jitc-newsletter__box {
		padding: 32px 24px;
	}
}
