/* ========================================
   Projects We Support
======================================== */

#projects {
	background: #f7f3eb;
}


/* =========================================================
   SECTION
   ========================================================= */

.moraway-projects-support-section {
}

.moraway-projects-support-inner {
	width: min(1280px, calc(100% - 48px));
	margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.moraway-projects-support-header {
	margin: 0 0 clamp(34px, 5vw, 64px);
}

.moraway-projects-support-title {
	margin: 0 0 16px;

	font-size: clamp(42px, 6.8vw, 92px);
	line-height: 0.95;
	letter-spacing: -0.055em;
	font-weight: 500;

	color: #1f2a24;
}

.moraway-projects-support-intro {
	font-size: clamp(16px, 1.45vw, 20px);
	line-height: 1.7;

	color: #33443b;
}

.moraway-projects-support-intro p {
	margin: 0;
}


/* =========================================================
   CAROUSEL

   IMPORTANT:
   All actual carousel mechanics are handled by the shared
   .moraway-carousel framework.

   DO NOT define:
   - arrow styling here
   - arrow positioning here
   - track transforms here
   - slide widths here
   - viewport mechanics here
   ========================================================= */

.moraway-projects-support-carousel {
	position: relative;
}


/* =========================================================
   PROJECT CARDS
   ========================================================= */

.moraway-projects-support-card {
	box-sizing: border-box;
	aspect-ratio: 4 / 3;
}

.moraway-projects-support-card-inner {
	position: relative;

	display: flex;
	align-items: stretch;
	justify-content: stretch;

	width: 100%;
	height: 100%;
	min-height: 330px;

	border-radius: 18px;
	overflow: hidden;

	background:
		linear-gradient(
			135deg,
			#1f2a24 0%,
			#52675a 52%,
			#d6b46a 100%
		);

	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;

	color: #fff;
	text-decoration: none;

	box-shadow:
		0 16px 35px
		rgba(0, 0, 0, 0.14);

	transform: translateY(0);

	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		filter 0.25s ease;
}

.moraway-projects-support-card-inner.has-bg {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.moraway-projects-support-card-inner:hover,
.moraway-projects-support-card-inner:focus {
	transform: translateY(-3px);

	box-shadow:
		0 22px 46px
		rgba(0, 0, 0, 0.22);

	color: #fff;
	text-decoration: none;
}


/* =========================================================
   CARD SHADE
   ========================================================= */

.moraway-projects-support-card-shade {
	position: absolute;
	inset: 0;
	z-index: 1;

	background:
		linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.12) 0%,
			rgba(0, 0, 0, 0.35) 48%,
			rgba(0, 0, 0, 0.68) 100%
		);

	transition:
		background 0.25s ease,
		opacity 0.25s ease;
}

.moraway-projects-support-card-inner:hover
.moraway-projects-support-card-shade,
.moraway-projects-support-card-inner:focus
.moraway-projects-support-card-shade {
	background:
		linear-gradient(
			to bottom,
			rgba(31, 42, 36, 0.12) 0%,
			rgba(31, 42, 36, 0.38) 45%,
			rgba(214, 180, 106, 0.78) 100%
		);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.moraway-projects-support-card-content {
	position: relative;
	z-index: 2;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;

	width: 100%;
	min-height: 330px;

	padding: 28px;

	text-align: center;
}


/* =========================================================
   COUNTRY
   ========================================================= */

.moraway-projects-support-country {
	display: block;
	align-self: flex-start;

	font-size: clamp(18px, 2vw, 28px);
	line-height: 1;
	letter-spacing: -0.035em;
	font-weight: 600;

	color: #fff;

	text-shadow:
		0 2px 14px
		rgba(0, 0, 0, 0.35);

	transition:
		color 0.25s ease,
		text-shadow 0.25s ease;
}

.moraway-projects-support-card-inner:hover
.moraway-projects-support-country,
.moraway-projects-support-card-inner:focus
.moraway-projects-support-country {
	color: #be4300;
	text-shadow: none;
}


/* =========================================================
   LOGO
   ========================================================= */

.moraway-projects-support-logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;

	width: min(82%, 260px);
	min-height: 140px;

	margin: auto 0;
}

.moraway-projects-support-logo {
	display: block;

	width: auto;
	height: auto;

	max-width: 100%;
	max-height: 130px;

	object-fit: contain;

	filter:
		drop-shadow(
			0 8px 18px
			rgba(0, 0, 0, 0.35)
		);

	transition:
		transform 0.25s ease,
		filter 0.25s ease;
}

.moraway-projects-support-card-inner:hover
.moraway-projects-support-logo,
.moraway-projects-support-card-inner:focus
.moraway-projects-support-logo {
	transform: scale(1.04);

	filter:
		drop-shadow(
			0 10px 20px
			rgba(0, 0, 0, 0.28)
		);
}


/* =========================================================
   FALLBACK CARD TITLE
   ========================================================= */

.moraway-projects-support-card-title {
	display: block;

	margin: auto 0;

	font-size: clamp(28px, 3vw, 44px);
	line-height: 1;
	letter-spacing: -0.05em;
	font-weight: 500;

	color: #fff;

	text-shadow:
		0 2px 16px
		rgba(0, 0, 0, 0.4);
}


/* =========================================================
   STATIC STATE

   Used when there are not enough cards to require movement.
   ========================================================= */

.moraway-projects-support-section.is-static
.moraway-projects-support-track {
	justify-content: center;
}

.moraway-projects-support-section.is-static
.moraway-projects-support-viewport {
	overflow: visible;
}


/* =========================================================
   FOOTER
   ========================================================= */

.moraway-projects-support-footer {
	margin-top: clamp(34px, 5vw, 58px);
	text-align: center;
}

.moraway-projects-support-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 58px;

	padding: 18px 34px;

	border-radius: 999px;

	background: #d6b46a;
	color: #1f2a24;

	font-size: 15px;
	line-height: 1;
	font-weight: 800;

	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;

	box-shadow:
		0 12px 26px
		rgba(0, 0, 0, 0.14);

	transition:
		transform 0.2s ease,
		background 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease;
}

.moraway-projects-support-all:hover,
.moraway-projects-support-all:focus {
	transform: translateY(-2px);

	background: #1f2a24;
	color: #fff;

	box-shadow:
		0 16px 34px
		rgba(0, 0, 0, 0.2);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

	.moraway-projects-support-card-inner,
	.moraway-projects-support-card-content {
		min-height: 300px;
	}
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.moraway-projects-support-section {
		padding: 0;
	}

	.moraway-projects-support-inner {
		width: min(100% - 28px, 1280px);
	}

	.moraway-projects-support-card-inner,
	.moraway-projects-support-card-content {
		min-height: 300px;
	}

	.moraway-projects-support-card-content {
		padding: 24px;
	}

	.moraway-projects-support-logo-wrap {
		min-height: 120px;
	}

	.moraway-projects-support-logo {
		max-height: 110px;
	}

	.moraway-projects-support-all {
		width: 100%;
		max-width: 340px;
	}


	/* Impacts listing page */

	.moraway-impacts-page-grid {
		display: flex !important;
		flex-direction: column;
	}

	.moraway-projects-support-card.list {
		flex-basis: 100%;
		max-width: 100%;
		margin: 12px auto;
	}
}