/* ═══════════════════════════════════════════════════════════
   SINGLE PROJECT + SINGLE NEWS – not in Figma.
   Same palette, Poppins scale, half-pills, square outlined buttons
   and hairline rules as the rest of the site, in an editorial layout.
   Mobile-first; 768 / 1200 breakpoints like the other pages.
   ═══════════════════════════════════════════════════════════ */


/* ── Hero band ───────────────────────────────────────────── */

.entry-hero {
	--band: var(--color-green-dark);
	--pill-a: var(--color-green);
	--pill-b: var(--color-green);
	--accent: var(--color-green);
	--overlap: 56px;
	--s: 0.42;
	position: relative;
}

.entry-hero--news {
	--band: var(--color-orange);
	--pill-a: #F6DAB6;
	--pill-b: #F6DAB6;
	--accent: #F6DAB6;
}

.entry-hero__band {
	position: relative;
	overflow: hidden;
	padding-block: 32px 40px;
	background: var(--band);
	color: var(--color-white);
}

.entry-hero--has-media .entry-hero__band {
	padding-bottom: calc(var(--overlap) + 40px);
}

.entry-hero__shapes {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.entry-hero__pill {
	position: absolute;
	top: calc(-120px * var(--s));
	height: calc(520px * var(--s));
	border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

.entry-hero__pill--a {
	left: calc(100% - 300px * var(--s));
	width: calc(520px * var(--s));
	background: var(--pill-a);
}

.entry-hero__pill--b {
	left: calc(100% - 560px * var(--s));
	width: calc(340px * var(--s));
	background: var(--pill-b);
	opacity: 0.55;
}

/* Phones: one small pill tucked in the corner, clear of the title. */
@media (max-width: 767px) {
	.entry-hero__pill--a {
		top: -70px;
		left: calc(100% - 90px);
		width: 170px;
		height: 170px;
	}

	.entry-hero__pill--b {
		display: none;
	}
}

.entry-hero__inner {
	position: relative;
	z-index: 1;
}

.entry-hero__back {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	font-size: var(--text-small);
	font-weight: 500;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
}

.entry-hero__back .icon-chevron {
	width: 31px;
	height: 31px;
	border: 1px solid var(--color-line-light);
	transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.entry-hero__back:hover .icon-chevron,
.entry-hero__back:focus-visible .icon-chevron {
	border-color: var(--color-white);
	background: var(--color-white);
	color: var(--band);
}

.entry-hero__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-top: 40px;
	font-size: var(--text-body);
	font-weight: 500;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
	opacity: 0.9;
}

/* Short accent rule before the kicker – echoes the site's hairlines. */
.entry-hero__kicker::before {
	content: "";
	width: 32px;
	height: 2px;
	background: var(--accent);
}

.entry-hero--news .entry-hero__kicker::before {
	background: var(--color-white);
}

.entry-hero__dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.7;
}

.entry-hero__title {
	max-width: 760px;
	margin-top: 12px;
	font-size: var(--text-h2);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
	text-wrap: balance;
}

.entry-hero__media {
	position: relative;
	z-index: 2;
	margin: calc(-1 * var(--overlap)) 0 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.entry-hero__media > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}


/* ── Body ────────────────────────────────────────────────── */

.entry {
	position: relative;
	padding-top: 40px;
}

.entry-layout {
	display: grid;
	gap: 48px;
}

.entry-main,
.entry-reading {
	min-width: 0;
}

.entry-reading {
	max-width: 720px;
	margin-inline: auto;
}

.entry-lead {
	padding-left: 20px;
	border-left: 2px solid var(--color-orange);
	color: var(--color-green-dark);
	font-size: var(--text-lead);
	font-weight: 500;
	line-height: 1.6;
}

.entry-lead + .entry-content,
.entry-lead + .entry-gallery {
	margin-top: 40px;
}

.entry .entry-content {
	max-width: none;
}

.entry-content blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 2px solid var(--color-green);
	color: var(--color-green-dark);
	font-size: 18px;
	font-style: normal;
}

/* Gallery (ACF): first image full width, the rest in a grid. */
.entry-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 48px;
}

.entry-gallery__item:first-child {
	grid-column: 1 / -1;
}

.entry-gallery__item a {
	display: block;
	aspect-ratio: 670 / 360;
	overflow: hidden;
}

.entry-gallery__item a > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms var(--ease-out);
}

.entry-gallery__item a:hover > img {
	transform: scale(1.04);
}


/* ── Sidebar: project details + quote card ───────────────── */

.entry-aside__sticky {
	display: grid;
	gap: 24px;
}

.facts-card {
	padding: 28px 24px 8px;
	border: 1px solid var(--color-line);
	border-top: 3px solid var(--color-green);
	background: var(--color-white);
}

.facts-card__title {
	color: var(--color-green-dark);
	font-size: var(--text-body);
	font-weight: 600;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
}

.facts-card__list {
	margin: 16px 0 0;
}

.facts-card__row {
	padding-block: 16px;
	border-top: 1px solid var(--color-line);
}

.facts-card__row dt {
	font-size: var(--text-small);
	font-weight: 500;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
	opacity: 0.6;
}

.facts-card__row dd {
	margin: 4px 0 0;
	color: var(--color-green-dark);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

/* Linked values (category, services): one per line. */
.facts-card__links a {
	display: block;
	text-decoration: underline;
	text-decoration-color: var(--color-line);
	text-underline-offset: 3px;
	transition: color var(--transition-base), text-decoration-color var(--transition-base);
}

.facts-card__links a + a {
	margin-top: 4px;
}

.facts-card__links a:hover,
.facts-card__links a:focus-visible {
	color: var(--color-orange);
	text-decoration-color: currentColor;
}

/* Client testimonial inside the project write-up. */
.testimonial--entry {
	margin-top: 48px;
	padding: 32px 28px 28px;
	background: var(--color-green-light);
	border-left: 3px solid var(--color-green);
}

.testimonial--entry .testimonial__quote {
	color: var(--color-green-dark);
	font-weight: 500;
}

.testimonial--entry .testimonial__cite {
	border-top-color: rgba(34, 121, 61, 0.2);
}

.quote-card {
	position: relative;
	overflow: hidden;
	padding: 32px 24px 28px;
	background: var(--color-green-dark);
	color: var(--color-white);
}

.quote-card__pill {
	position: absolute;
	top: -60px;
	right: -70px;
	width: 160px;
	height: 160px;
	border-radius: var(--radius-pill) 0 0 var(--radius-pill);
	background: var(--color-green);
	opacity: 0.6;
}

.quote-card__title,
.quote-card__text,
.quote-card .btn {
	position: relative;
}

.quote-card__title {
	max-width: 240px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
}

.quote-card__text {
	margin-top: 12px;
	font-size: var(--text-body);
	line-height: 1.6;
	opacity: 0.9;
}

.quote-card .btn {
	margin-top: 24px;
}


/* ── Share row (news) ────────────────────────────────────── */

.entry-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 20px;
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--color-line);
}

.entry-share__label {
	font-size: var(--text-small);
	font-weight: 500;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
	opacity: 0.6;
}

.entry-share__list {
	display: flex;
	gap: 10px;
	margin: 0;
}

.entry-share__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--color-orange);
	background: transparent;
	color: var(--color-green-dark);
	cursor: pointer;
	transition: background-color var(--transition-base), color var(--transition-base);
}

.entry-share__btn:hover,
.entry-share__btn:focus-visible,
.entry-share__btn.is-copied {
	background: var(--color-orange);
	color: var(--color-white);
}

.entry-share__status {
	color: var(--color-green-dark);
	font-size: var(--text-small);
	font-weight: 500;
}


/* ── Related: more projects / latest news ────────────────── */

.entry-related {
	position: relative;
	margin-top: 72px;
	padding-top: 56px;
	border-top: 1px solid var(--color-line);
}

.entry-related__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.entry-related__grid {
	display: grid;
	gap: 40px;
	margin-top: 40px;
}

/* News cards reuse news.css; tighten them for the 3-up grid. */
.entry-related--news .news-card {
	height: 100%;
}

.entry-related--news .news-card__btn {
	margin-top: auto;
}

.entry-related--news .news-card__excerpt {
	margin-bottom: 24px;
}

.entry-related--news .news-card__title {
	min-height: 0;
	margin-top: 20px;
	font-size: 16px;
}

.entry-related--news .news-card__excerpt {
	margin-top: 12px;
}

/* Project card */
.project-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.project-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.project-card__image > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms var(--ease-out);
}

.project-card__body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px 72px 0 0;
}

.project-card__kicker {
	color: var(--color-green-dark);
	font-size: var(--text-small);
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
	opacity: 0.8;
}

.project-card__title {
	color: var(--color-green-dark);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: var(--ls-tight);
	text-transform: uppercase;
	transition: color var(--transition-base);
}

.project-card .icon-arrow {
	position: absolute;
	top: 30px;
	right: 0;
	width: 48px;
	height: auto;
	color: var(--color-orange);
	overflow: visible;
}

.project-card .icon-arrow__shaft {
	transform-box: fill-box;
	transform-origin: right center;
	transform: scaleX(0.4628);
	transition: transform 400ms var(--ease-out);
}

.project-card__link:hover .project-card__image > img,
.project-card__link:focus-visible .project-card__image > img {
	transform: scale(1.04);
}

.project-card__link:hover .project-card__title,
.project-card__link:focus-visible .project-card__title {
	color: var(--color-orange);
}

.project-card__link:hover .icon-arrow__shaft,
.project-card__link:focus-visible .icon-arrow__shaft {
	transform: none;
}


/* ── Tablet ──────────────────────────────────────────────── */

@media (min-width: 768px) {
	.entry-hero {
		--overlap: 120px;
		--s: 0.7;
	}

	.entry-hero__band {
		padding-block: 40px 64px;
	}

	.entry-hero--has-media .entry-hero__band {
		padding-bottom: calc(var(--overlap) + 64px);
	}

	.entry-hero__kicker {
		margin-top: 56px;
	}

	.entry-hero__title {
		font-size: var(--text-display);
	}

	.entry-hero__media {
		aspect-ratio: 1040 / 520;
	}

	.entry {
		padding-top: 64px;
	}

	.entry-gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}

	.entry-aside__sticky {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}

	.entry-related {
		margin-top: 96px;
		padding-top: 72px;
	}

	.entry-related__grid--2,
	.entry-related__grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 32px;
	}
}


/* ── Desktop ─────────────────────────────────────────────── */

@media (min-width: 1200px) {
	.entry-hero {
		--overlap: 200px;
		--s: 1;
	}

	.entry-hero__band {
		padding-block: 48px 90px;
	}

	.entry-hero--has-media .entry-hero__band {
		padding-bottom: calc(var(--overlap) + 80px);
	}

	.entry-hero__kicker {
		margin-top: 72px;
	}

	.entry-hero__title {
		max-width: 820px;
		line-height: 1.2;
	}

	.entry-hero__media {
		aspect-ratio: 1040 / 480;
	}

	.entry {
		padding-top: 80px;
	}

	/* Content column + 340px sticky sidebar. */
	.entry-layout {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 80px;
		align-items: start;
	}

	.entry-aside__sticky {
		position: sticky;
		top: 40px;
		grid-template-columns: 1fr;
	}

	.entry-lead {
		font-size: 20px;
	}

	.entry-related {
		margin-top: 120px;
		padding-top: 90px;
	}

	.entry-related__grid--2 {
		column-gap: 40px;
	}

	.entry-related__grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.project-card__image > img,
	.entry-gallery__item a > img,
	.project-card .icon-arrow__shaft {
		transition: none;
	}
}

/* Project placeholder is the same green as the band – a faint ring keeps
   the frame readable where it overlaps. */
.entry-hero--project .entry-hero__media {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.testimonial--entry + .entry-gallery {
	margin-top: 40px;
}
