/*
Theme Name:  Terracore
Author:      Cyberspace Solutions Limited
Description: Custom WordPress theme for Terracore Ltd – geotechnical engineering, drilling and materials testing, Malta. Built mobile-first for performance, accessibility and responsive design.
Version:     1.0.0
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: terracore
*/

/* ═══════════════════════════════════════════════════════════
   BASE RESET & GLOBAL STYLES
   Tokens live in assets/css/tokens.css (enqueued before this).
   Fonts live in assets/css/fonts.css.
   Mobile-first: base = phone, min-width queries scale up.
   ═══════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Decorative pills bleed off the right edge. Clipping only <body> isn't
	   enough on mobile – the browser widens the page and zooms out – so clip
	   here too. `clip` (not `hidden`) keeps position: sticky working. */
	overflow-x: clip;
}

body {
	margin: 0;
	background: var(--color-offwhite);
	color: var(--color-black);
	font-family: var(--font-body);
	font-size: var(--text-body);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: var(--ls-base);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
	margin: 0;
}

ul[role="list"],
ol[role="list"] {
	list-style: none;
	padding: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea,
select {
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--color-orange);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

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

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 1000;
	padding: 12px 20px;
	background: var(--color-green-dark);
	color: var(--color-white);
	font-weight: 500;
}

.skip-link:focus {
	top: 16px;
}


/* ═══════════════════════════════════════════════════════════
   LAYOUT – frame, guide lines, container
   ═══════════════════════════════════════════════════════════ */

/* Main wrapper draws the two vertical guide lines that run the
   full height of every page between header and footer. */
.site-main {
	position: relative;
	display: block;
	padding-bottom: calc(var(--section-space) * 2 / 3);   /* 100px desktop */
}

.site-main::before {
	content: "";
	position: absolute;
	inset-block: 0;
	left: 50%;
	width: min(var(--frame-max), 100% - 2 * var(--frame-gutter));
	transform: translateX(-50%);
	border-inline: 1px solid var(--color-line);
	pointer-events: none;
}

/* Frame width – between the guide lines. */
.frame {
	position: relative;
	width: min(var(--frame-max), 100% - 2 * var(--frame-gutter));
	margin-inline: auto;
}

/* Content column – inset from the guide lines. */
.container {
	position: relative;
	width: min(var(--content-max), 100% - 2 * (var(--frame-gutter) + var(--content-inset)));
	margin-inline: auto;
}

/* A container nested inside .frame only needs the content inset. */
.frame .container {
	width: min(var(--content-max), 100% - 2 * var(--content-inset));
}

/* Full-frame horizontal rule (between guide lines). */
.rule {
	display: block;
	width: min(var(--frame-max), 100% - 2 * var(--frame-gutter));
	height: 0;
	margin: 0 auto;
	border: 0;
	border-top: 1px solid var(--color-line);
}


/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */

.heading-display {
	color: var(--color-green-dark);
	font-size: var(--text-display);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
}

.heading-section {
	color: var(--color-green-dark);
	font-size: var(--text-h2);
	font-weight: 600;
	line-height: var(--lh-h2);
	letter-spacing: var(--ls-tight);
	text-transform: uppercase;
}

.heading-label {
	color: var(--color-black);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: uppercase;
}

.text-lead {
	font-size: var(--text-lead);
	line-height: 1.5;
}

.text-body {
	font-size: var(--text-body);
	line-height: 1.5;
}

.text-body > * + *,
.text-lead > * + * {
	margin-top: 1em;
}

@media (min-width: 1200px) {
	.heading-label {
		font-size: 24px;
	}
}


/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 39px;
	padding: 8px 35px;
	border: 1px solid var(--color-orange);
	background: transparent;
	color: var(--color-green-dark);
	font-size: var(--text-button);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.btn:hover,
.btn:focus-visible {
	background: var(--color-orange);
	color: var(--color-white);
}

.btn--wide {
	padding-inline: 55px;
}

/* White outline – used on top of photography. */
.btn--light {
	border-color: var(--color-white);
	color: var(--color-white);
}

.btn--light:hover,
.btn--light:focus-visible {
	background: var(--color-white);
	color: var(--color-green-dark);
}

.btn--block {
	width: 100%;
}


/* ═══════════════════════════════════════════════════════════
   DECORATIVE SHAPES – green half-pills from the Figma frames
   ═══════════════════════════════════════════════════════════ */

.shape {
	position: absolute;
	z-index: 0;
	pointer-events: none;
}

.shape__pill {
	position: absolute;
	top: 0;
	height: 100%;
	background: var(--color-green);
	border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

/* Pill rounded on the right instead (mirrored). */
.shape--flip .shape__pill {
	border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}


/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */

.site-header {
	position: relative;
	z-index: 50;
	background: var(--color-offwhite);
	border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
}

.site-header__logo {
	display: block;
	flex-shrink: 0;
}

.site-header__logo img {
	width: auto;
	height: 18px;
	max-width: 150px;
	object-fit: contain;
	object-position: left center;
}

/* Desktop nav – hidden on mobile. */
.site-nav--primary {
	display: none;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 40px;
	margin: 0;
}

.site-nav--primary a {
	position: relative;
	display: block;
	color: var(--color-green-dark);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
}

.site-nav--primary a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 1px;
	background: var(--color-orange);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 300ms var(--ease-out);
}

.site-nav--primary a:hover::after,
.site-nav--primary a:focus-visible::after,
.site-nav--primary .current-menu-item > a::after,
.site-nav--primary .current-menu-ancestor > a::after,
.site-nav--primary .current_page_parent > a::after {
	transform: scaleX(1);
}

/* Hamburger */
.site-header__toggle {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 10px;
	border: 0;
	background: none;
}

.site-header__toggle span {
	display: block;
	height: 2px;
	background: var(--color-green-dark);
	transition: transform 300ms var(--ease-out), opacity 200ms ease;
}

.site-header__toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.site-header__toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Mobile drawer – sits under the header bar. */
.mobile-nav {
	position: fixed;
	inset: var(--header-height) 0 0 0;
	z-index: 40;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 40px calc(var(--frame-gutter) + var(--content-inset)) 40px;
	background: var(--color-offwhite);
	overflow-y: auto;
	visibility: hidden;
	opacity: 0;
	transform: translateY(-12px);
	transition: opacity 250ms ease, transform 300ms var(--ease-out), visibility 0s linear 300ms;
}

.mobile-nav.is-open {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition: opacity 250ms ease, transform 300ms var(--ease-out), visibility 0s;
}

.mobile-nav .site-nav__list {
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

.mobile-nav .site-nav__list li {
	width: 100%;
	border-bottom: 1px solid var(--color-line);
}

.mobile-nav .site-nav__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
	color: var(--color-green-dark);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
}

.mobile-nav .current-menu-item > a,
.mobile-nav .current_page_parent > a {
	color: var(--color-orange);
}

.mobile-nav__cta {
	margin-top: 40px;
}

body.nav-open {
	overflow: hidden;
}

@media (min-width: 1200px) {
	.site-header__logo img {
		height: 24px;
		max-width: 240px;
	}

	/* Figma: nav ends at x = 1190 – 50px inside the content column. */
	.site-nav--primary {
		display: block;
		margin-right: 50px;
	}

	.site-header__toggle,
	.mobile-nav {
		display: none;
	}
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.site-footer {
	position: relative;
	overflow: hidden;
	background: var(--color-green);
	color: var(--color-offwhite);
}

.site-footer__shape {
	position: absolute;
	top: -24px;
	right: -60px;
	width: 175px;
	height: auto;
	pointer-events: none;
}

.site-footer__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	padding-block: 56px 32px;
}

.site-footer__logo img {
	width: auto;
	height: 22px;
	max-width: 180px;
	object-fit: contain;
	object-position: left center;
}

.site-footer__contact {
	margin-top: 32px;
	font-size: var(--text-small);
	line-height: 16px;
}

.site-footer__contact a:hover,
.site-footer__contact a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer__address {
	display: block;
	font-style: normal;
}

.site-footer__phones {
	margin-top: 24px;
}

.site-footer__nav-list {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	grid-template-rows: repeat(4, auto);
	grid-auto-flow: column;
	column-gap: 60px;
	row-gap: 18px;
	margin: 0;
}

.site-footer__nav-list a,
.site-footer__legal-list a {
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: var(--ls-base);
	transition: opacity var(--transition-base);
}

.site-footer__nav-list a {
	font-size: 16px;
	line-height: 1.5;
}

.site-footer__nav-list a:hover,
.site-footer__legal-list a:hover,
.site-footer__nav-list a:focus-visible,
.site-footer__legal-list a:focus-visible {
	opacity: 0.7;
}

.site-footer__bottom {
	display: flex;
	flex-direction: column-reverse;
	gap: 20px;
	padding-top: 24px;
	border-top: 1px solid rgba(247, 245, 242, 0.3);
	font-size: var(--text-small);
	font-weight: 500;
	text-transform: uppercase;
}

/* "Cookie settings" (Complianz) beside the copyright – looks like a link. */
.site-footer__sep {
	margin-inline: 6px;
	opacity: 0.6;
}

.site-footer .site-footer__consent {
	position: static;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	cursor: pointer;
}

.site-footer .site-footer__consent:hover,
.site-footer .site-footer__consent:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin: 0;
}

@media (min-width: 768px) {
	.site-footer__shape {
		top: -40px;
		right: -40px;
		width: 280px;
	}

	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
		padding-block: 70px 50px;
	}

	.site-footer__bottom {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

@media (min-width: 1200px) {
	/* Desktop: absolute geometry from the 1440 Figma frame. */
	.site-footer {
		height: 343px;
	}

	.site-footer__shape {
		top: -60px;
		right: auto;
		left: calc(50% + 301px);
		width: 437px;
	}

	.site-footer__inner {
		grid-template-columns: 386px 1fr;
		gap: 0;
		height: 100%;
		padding-block: 70px 0;
	}

	.site-footer__logo img {
		height: 25px;
		max-width: 240px;
	}

	.site-footer__contact {
		margin-top: 47px;
	}

	.site-footer__phones {
		margin-top: 17px;
	}

	.site-footer__nav-list {
		column-gap: 0;
		grid-template-columns: 196px max-content;
		row-gap: 15px;
	}

	.site-footer__nav-list a {
		font-size: 18px;
	}

	.site-footer__bottom {
		position: absolute;
		left: 0;
		right: 0;
		top: 286px;
		justify-content: flex-start;
		padding-top: 0;
		border-top: 0;
	}

	/* Legal links start at x=648 in the 1440 frame (448px into the column). */
	.site-footer__copyright {
		width: 448px;
	}

	.site-footer__legal-list {
		gap: 20px;
	}
}


/* ═══════════════════════════════════════════════════════════
   PAGE HERO (inner pages) – shared by About, Services, etc.
   ═══════════════════════════════════════════════════════════ */

/* Band = Figma "Rectangle 11" (0–400px, i.e. 273px under the 127px
   header). Shape geometry is the 1440 frame scaled by --s so the same
   numbers work at every breakpoint. */
.page-hero {
	--s: 0.36;
	--hero-bg: var(--color-green);
	--hero-shape: var(--color-green-dark);
	--hero-title: var(--color-white);
	position: relative;
	display: flex;
	min-height: 150px;
	background: var(--hero-bg);
}

/* Guide lines continue over the band. */
.page-hero::after {
	content: "";
	position: absolute;
	inset-block: 0;
	left: 50%;
	width: min(var(--frame-max), 100% - 2 * var(--frame-gutter));
	transform: translateX(-50%);
	border-inline: 1px solid var(--color-line);
	pointer-events: none;
}

.page-hero__shapes {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.page-hero__pill {
	position: absolute;
	background: var(--hero-shape);
	border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

.page-hero__inner {
	z-index: 2;
	display: flex;
	align-items: center;
	padding-block: 32px;
}

.page-hero__title {
	color: var(--hero-title);
	font-size: var(--text-display);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
}

/* About – green band, dark-green pills bleeding off the top right. */
.page-hero--about .page-hero__pill--a {
	left: calc(100% - 335px * var(--s));
	top: calc(-388px * var(--s));
	width: calc(776px * var(--s));
	height: calc(776px * var(--s));
}

.page-hero--about .page-hero__pill--b {
	left: calc(100% - 839px * var(--s));
	top: calc(-388px * var(--s));
	width: calc(512px * var(--s));
	height: calc(776px * var(--s));
}

/* Services – light-orange band, orange pills (mirrored) on the left. */
.page-hero--services {
	--s: 0.25;   /* smaller on phones so the right-aligned title clears the pills */
	--hero-bg: #F6DAB6;
	--hero-shape: var(--color-orange);
	--hero-title: var(--color-green-dark);
}

.page-hero--services .page-hero__pill {
	border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

.page-hero--services .page-hero__pill--a {
	left: calc(-62px * var(--s));
	top: calc(73px * var(--s));
	width: calc(509px * var(--s));
	height: calc(509px * var(--s));
}

.page-hero--services .page-hero__pill--b {
	left: calc(442px * var(--s));
	top: calc(73px * var(--s));
	width: calc(335px * var(--s));
	height: calc(509px * var(--s));
}

.page-hero--services .page-hero__inner {
	justify-content: flex-end;
}

/* Projects – dark-green band, green pills: one top-left (mirrored), one right. */
.page-hero--projects {
	--hero-shape: var(--color-green);
	--hero-bg: var(--color-green-dark);
}

.page-hero--projects .page-hero__pill--a {
	left: calc(100% - 276px * var(--s));
	top: calc(73px * var(--s));
	width: calc(335px * var(--s));
	height: calc(509px * var(--s));
}

.page-hero--projects .page-hero__pill--b {
	left: calc(-80px * var(--s));
	top: calc(-182px * var(--s));
	width: calc(335px * var(--s));
	height: calc(509px * var(--s));
	border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

/* News – orange band, light-orange pills (mirrored) top-left. */
.page-hero--news {
	--hero-bg: var(--color-orange);
	--hero-shape: #F6DAB6;
}

.page-hero--news .page-hero__pill {
	top: 0;
	height: calc(454px * var(--s));
	border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

.page-hero--news .page-hero__pill--a {
	left: calc(-334px * var(--s));
	width: calc(454px * var(--s));
}

.page-hero--news .page-hero__pill--b {
	left: calc(116px * var(--s));
	width: calc(299px * var(--s));
}

.page-hero--projects .page-hero__inner,
.page-hero--news .page-hero__inner {
	justify-content: center;
	text-align: center;
}

@media (min-width: 768px) {
	.page-hero,
	.page-hero--services {
		--s: 0.6;
		min-height: 220px;
	}
}

@media (min-width: 1200px) {
	.page-hero,
	.page-hero--services {
		--s: 1;
		min-height: 273px;
	}

	/* Title box top sits 130px into the band (y = 257 in Figma). */
	.page-hero__inner {
		align-items: flex-start;
		padding-block: 130px 50px;
	}

	/* Figma: title x = 918 → 116px in from the content's right edge. */
	.page-hero--services .page-hero__inner {
		padding-right: 116px;
	}
}

/* Partial horizontal rule – starts at the left guide line. */
.rule--partial {
	width: min(var(--frame-max), 100% - 2 * var(--frame-gutter));
	border: 0;
	background: none;
}

.rule--partial::before {
	content: "";
	display: block;
	width: var(--rule-w, 100%);
	border-top: 1px solid var(--color-line);
}

/* Decorative pills used inside page bodies (about / services). */
.deco-pill {
	position: absolute;
	z-index: 0;
	background: var(--deco-color, var(--color-green-dark));
	border-radius: var(--radius-pill) 0 0 var(--radius-pill);
	pointer-events: none;
}

.deco-pill--flip {
	border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

/* Heading accent colour used on About ("Why choose…", "Mission…"). */
.heading-section--accent {
	color: var(--color-orange);
}


/* ═══════════════════════════════════════════════════════════
   GENERIC PAGE CONTENT (page.php / single.php)
   ═══════════════════════════════════════════════════════════ */

.entry-content {
	max-width: 760px;
	font-size: 16px;
	line-height: 1.7;
}

.entry-content > * + * {
	margin-top: 1.25em;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 2em;
	color: var(--color-green-dark);
	font-weight: 600;
	line-height: 1.3;
}

.entry-content h2 {
	font-size: 24px;
	text-transform: uppercase;
}

.entry-content h3 {
	font-size: 20px;
}

.entry-content a {
	color: var(--color-green-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--color-orange);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25em;
}

.entry-content img {
	height: auto;
}

.entry-content figure {
	margin-inline: 0;
}

.entry-content figcaption {
	margin-top: 8px;
	font-size: var(--text-small);
	opacity: 0.7;
}


/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL (assets/js/animations.js toggles .is-visible)
   ═══════════════════════════════════════════════════════════ */

.js [data-anim] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 700ms ease, transform 900ms var(--ease-out);
}

.js [data-anim].is-visible {
	opacity: 1;
	transform: none;
}

/* Shapes slide in from their anchored side. */
.js [data-anim="from-right"] {
	transform: translateX(60px);
}

.js [data-anim="from-left"] {
	transform: translateX(-60px);
}


/* ═══════════════════════════════════════════════════════════
   PAGINATION (projects + news archives)
   Figma: 30px arrow boxes, 24 × 30 number boxes, 10px gaps.
   ═══════════════════════════════════════════════════════════ */

.pagination {
	--pg: var(--color-green-dark);
	margin-top: 56px;
}

.pagination--orange {
	--pg: var(--color-orange);
}

.pagination ul {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	padding: 0 6px;
	border: 1px solid var(--pg);
	color: var(--pg);
	font-size: 18px;
	line-height: 1;
	letter-spacing: 0.01em;
	transition: background-color var(--transition-base), color var(--transition-base);
}

.pagination .page-numbers:not(.prev):not(.next) {
	min-width: 24px;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
	width: 30px;
	padding: 0;
}

.pagination .icon-chevron {
	width: 31px;
	height: 31px;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus-visible {
	background: var(--pg);
	color: var(--color-white);
}

.pagination .page-numbers.dots {
	border-color: var(--pg);
}

.pagination .is-disabled {
	opacity: 0.35;
}

@media (min-width: 1200px) {
	.pagination {
		margin-top: 100px;
	}
}


/* ═══════════════════════════════════════════════════════════
   ARCHIVE INTRO (projects / news) – centred 18px lead, w 570
   ═══════════════════════════════════════════════════════════ */

.archive-intro {
	position: relative;
	padding-top: 48px;
}

.archive-intro__text {
	max-width: 570px;
	margin-inline: auto;
	text-align: center;
}

@media (min-width: 1200px) {
	.archive-intro {
		padding-top: 150px;
	}
}


/* ═══════════════════════════════════════════════════════════
   IMAGE PLACEHOLDER – Figma News frame (4th card): dark-green tile
   with the white Terracore logo. Shown when a post has no image
   (.img-placeholder) and behind every post image (.img-frame), so
   an image that fails to load falls back to the same tile.
   ═══════════════════════════════════════════════════════════ */

.img-frame {
	background: var(--color-green-dark) var(--placeholder-logo) center / 164px auto no-repeat;
}

.img-frame > img.is-broken {
	visibility: hidden;
}

.img-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--color-green-dark);
}

.img-placeholder img,
a:hover .img-placeholder img {
	width: auto;
	height: 20px;
	max-width: 60%;
	object-fit: contain;
	transform: none;
}

@media (min-width: 1200px) {
	.entry-hero__media .img-placeholder img {
		height: 32px;
	}

	.entry-hero__media.img-frame {
		background-size: 260px auto;
	}
}


/* ═══════════════════════════════════════════════════════════
   TESTIMONIAL – template-parts/testimonial.php. Not in Figma.
   Base styles; layout per context in front-page.css / single.css.
   ═══════════════════════════════════════════════════════════ */

.testimonial {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.testimonial__mark {
	flex-shrink: 0;
	width: 34px;
	height: auto;
	color: var(--color-orange);
}

.testimonial__quote {
	margin: 20px 0 0;
	color: var(--color-black);
	font-size: var(--text-lead);
	line-height: 1.6;
}

.testimonial__quote > * + * {
	margin-top: 0.8em;
}

.testimonial__cite {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--color-line);
}

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

.testimonial__role {
	font-size: var(--text-small);
	letter-spacing: var(--ls-base);
	opacity: 0.7;
}

.testimonial__project {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	color: var(--color-green-dark);
	font-size: var(--text-small);
	font-weight: 500;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
}

.testimonial__project .icon-arrow {
	width: 30px;
	height: auto;
	color: var(--color-green);
}

.testimonial__project:hover,
.testimonial__project:focus-visible {
	color: var(--color-orange);
}
