/**
 * AdepaTrade — global footer, page headers and pattern layouts.
 * Mobile-first; breakpoints 600px / 782px (core columns) / 1024px / 1200px.
 */

/* =========================================================
 * Main + page header
 * ========================================================= */
.adepa-main { padding-bottom: var(--wp--custom--section--md); }
.adepa-main--canvas { padding-bottom: 0; }
.adepa-main > .wp-block-post-content.alignfull { margin-top: 0; }
.adepa-page-header {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--60);
	margin-bottom: var(--wp--preset--spacing--60);
	border-bottom: 1px solid var(--wp--preset--color--grey-200);
}
.adepa-page-header > * + * { margin-top: var(--wp--preset--spacing--40); }
.adepa-page-header__title { max-width: 18ch; margin-top: var(--wp--preset--spacing--40); }
.adepa-page-header__lead { font-size: var(--wp--preset--font-size--body-lg); color: var(--wp--preset--color--grey-700); max-width: var(--wp--custom--layout--reading); }
.adepa-article__media { margin-bottom: var(--wp--preset--spacing--60); }
.adepa-post-nav { border-top: 1px solid var(--wp--preset--color--grey-200); padding-top: var(--wp--preset--spacing--50); margin-top: var(--wp--preset--spacing--70); }

/* Meta rows (date / category / location / sector / scope) */
.adepa-meta { gap: 0.25rem 1rem !important; align-items: center; }
.adepa-meta .adepa-meta__item,
.adepa-meta__item {
	margin: 0;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	text-transform: uppercase;
	color: var(--wp--preset--color--grey-500);
}
.adepa-meta__item.is-accent, .adepa-meta__item.is-accent a { color: var(--wp--preset--color--brand-red); text-decoration: none; }
.adepa-meta > .adepa-meta__item + .adepa-meta__item::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	margin-right: 1rem;
	vertical-align: middle;
	background: var(--wp--preset--color--grey-300);
}

/* =========================================================
 * Section heading (5/7)
 * ========================================================= */
.adepa-section-heading { margin-block: var(--wp--preset--spacing--60); }
.adepa-split-5-7 { gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--70); }
.adepa-split-5-7 .is-style-eyebrow { margin-bottom: var(--wp--preset--spacing--40); }
.adepa-section-heading__title { margin-top: 0; }
.adepa-split-5-7 .is-style-lead { margin: 0; max-width: 60ch; }

/* =========================================================
 * Proof statistics
 * ========================================================= */
.adepa-stats { border-top: 1px solid var(--wp--preset--color--grey-200); padding-top: var(--wp--preset--spacing--50); }
.adepa-stats__row { gap: 0 !important; flex-wrap: nowrap !important; }
.adepa-stat { padding-inline: 0 var(--wp--preset--spacing--40); }
.adepa-stat + .adepa-stat { border-left: 1px solid var(--wp--preset--color--grey-200); padding-left: var(--wp--preset--spacing--40); }
.adepa-stat__value {
	margin: 0;
	font-size: var(--wp--preset--font-size--heading-1);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--brand-red);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.adepa-stat__label {
	margin: var(--wp--preset--spacing--30) 0 0;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
}
@media (max-width: 599.98px) {
	.adepa-stats__row { flex-direction: column; }
	.adepa-stat + .adepa-stat { border-left: 0; border-top: 1px solid var(--wp--preset--color--grey-200); padding: var(--wp--preset--spacing--40) 0 0; margin-top: var(--wp--preset--spacing--40); }
}

/* =========================================================
 * Image + copy split (60/40) — copy first on mobile
 * ========================================================= */
.adepa-media-split { gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--70); }
.adepa-media-split__copy > * + * { margin-top: var(--wp--preset--spacing--40); }
@media (max-width: 781.98px) {
	.adepa-media-split__copy { order: -1; }
}

/* =========================================================
 * Solution entry rows
 * ========================================================= */
.adepa-solution {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr);
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	padding-block: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--grey-200);
}
.adepa-solutions > .adepa-solution:last-child { border-bottom: 1px solid var(--wp--preset--color--grey-200); }
.adepa-solution > * { margin: 0 !important; }
.adepa-solution__index {
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--brand-red);
	font-variant-numeric: tabular-nums;
}
.adepa-solution__title {
	font-size: var(--wp--preset--font-size--heading-4);
	text-transform: uppercase;
	letter-spacing: 0.01em;
	margin: 0;
}
.adepa-solution__title a { text-decoration: none; }
.adepa-solution__title a:hover { color: var(--wp--preset--color--brand-red); }
.adepa-solution__scope { margin: var(--wp--preset--spacing--20) 0 0; color: var(--wp--preset--color--grey-500); }
.adepa-solution__action { grid-column: 2; }
@media (min-width: 900px) {
	.adepa-solution { grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: start; }
	.adepa-solution__action { grid-column: 3; align-self: center; }
}

/* =========================================================
 * Project entry
 * ========================================================= */
.adepa-project > * { margin-top: 0; }
.adepa-project .wp-block-image { margin-bottom: var(--wp--preset--spacing--40); }
.adepa-project .adepa-meta { margin-bottom: var(--wp--preset--spacing--20); }
.adepa-project__title { font-size: var(--wp--preset--font-size--heading-4); margin-top: var(--wp--preset--spacing--20); }
.adepa-project__title a { text-decoration: none; }
.adepa-project__title a:hover { color: var(--wp--preset--color--brand-red); }
.adepa-project__summary { color: var(--wp--preset--color--grey-500); font-size: var(--wp--preset--font-size--small); }

/* =========================================================
 * Manufacturer logo wall — hairline cells
 * ========================================================= */
.adepa-logo-wall {
	gap: 0 !important;
	border-top: 1px solid var(--wp--preset--color--grey-200);
	border-left: 1px solid var(--wp--preset--color--grey-200);
}
.adepa-logo-cell {
	min-height: 8.5rem;
	padding: var(--wp--preset--spacing--40);
	border-right: 1px solid var(--wp--preset--color--grey-200);
	border-bottom: 1px solid var(--wp--preset--color--grey-200);
	margin: 0 !important;
}
.adepa-logo-cell img { max-height: 3rem; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter var(--wp--custom--motion--base) linear, opacity var(--wp--custom--motion--base) linear; }
.adepa-logo-cell:hover img { filter: none; opacity: 1; }
.adepa-logo-cell__placeholder {
	margin: 0;
	padding: 0.75rem 1rem;
	border: 1px dashed var(--wp--preset--color--grey-300);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--grey-500);
	text-align: center;
}

/* =========================================================
 * CTA bands
 * ========================================================= */
.adepa-cta-band { padding-block: var(--wp--custom--section--sm); }
.adepa-cta-band__cols { gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--70); }
.adepa-cta-band__title { margin: 0; font-size: var(--wp--preset--font-size--heading-2); }
.adepa-cta-band .adepa-cta-band__accent {
	margin: var(--wp--preset--spacing--30) 0 0;
	font-size: var(--wp--preset--font-size--heading-3);
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--brand-red-bright);
}
.adepa-cta-band-light { padding-block: var(--wp--custom--section--sm); }
.adepa-cta-band-light .adepa-rule-red { margin-top: 0; margin-bottom: var(--wp--preset--spacing--50); }
@media (max-width: 781.98px) {
	.adepa-cta-band .wp-block-buttons, .adepa-cta-band-light .wp-block-buttons { justify-content: flex-start !important; }
}

/* =========================================================
 * Article previews + query list
 * ========================================================= */
.adepa-article { padding-block: var(--wp--preset--spacing--50); border-top: 1px solid var(--wp--preset--color--grey-200); }
.adepa-article > * { margin-top: 0; margin-bottom: 0; }
.adepa-article > * + * { margin-top: var(--wp--preset--spacing--30); }
.adepa-article.has-media { border-top: 0; padding-top: 0; }
.adepa-article__title { font-size: var(--wp--preset--font-size--heading-4); }
.adepa-article__title a { text-decoration: none; }
.adepa-article__title a:hover { color: var(--wp--preset--color--brand-red); }
.adepa-article__excerpt, .adepa-article__excerpt p { color: var(--wp--preset--color--grey-700); max-width: var(--wp--custom--layout--reading); }
.adepa-article__excerpt .wp-block-post-excerpt__more-link { font-weight: 600; text-decoration: none; }
.adepa-article-list { margin: 0; padding: 0; list-style: none; }
.adepa-article-list > li { margin: 0; }
.adepa-article-list > li:last-child .adepa-article { border-bottom: 1px solid var(--wp--preset--color--grey-200); }
.adepa-query > .wp-block-query-pagination { margin-top: var(--wp--preset--spacing--60); }
.adepa-empty-note { color: var(--wp--preset--color--grey-500); padding-block: var(--wp--preset--spacing--50); border-top: 1px solid var(--wp--preset--color--grey-200); }

/* =========================================================
 * Empty / search / 404 state
 * ========================================================= */
.adepa-empty { padding-block: var(--wp--preset--spacing--60); }
.adepa-empty > * + * { margin-top: var(--wp--preset--spacing--40); }
.adepa-empty .adepa-search { margin-top: var(--wp--preset--spacing--50); max-width: 560px; }
.adepa-main--404 .adepa-page-header { border-bottom: 0; }

/* =========================================================
 * Global footer
 * ========================================================= */
.site-footer { margin-top: 0; }
.adepa-footer {
	padding-top: var(--wp--custom--section--sm);
	padding-bottom: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--small);
	--adepa-focus-color: var(--wp--preset--color--white);
}
.adepa-footer__rfq {
	position: relative;
	padding-bottom: var(--wp--preset--spacing--70);
	margin-bottom: var(--wp--preset--spacing--70);
	border-bottom: 1px solid var(--wp--preset--color--charcoal-2);
}
/* Conceptual line + node motif (decorative, CSS only): a red path that ends in a node */
.adepa-footer__rfq::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: min(33%, 26rem);
	height: 1px;
	background: var(--wp--preset--color--brand-red-bright);
	pointer-events: none;
}
.adepa-footer__rfq::before {
	content: "";
	position: absolute;
	left: min(33%, 26rem);
	bottom: -5px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	box-sizing: border-box;
	background: var(--wp--preset--color--charcoal);
	border: 1.5px solid var(--wp--preset--color--brand-red-bright);
	transform: translateX(-50%);
	pointer-events: none;
}
.adepa-footer__rfq-cols { gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--70); }
.adepa-footer__statement { margin: var(--wp--preset--spacing--40) 0 0; max-width: 20ch; font-size: var(--wp--preset--font-size--heading-2); }
.adepa-footer .adepa-footer__support { margin: var(--wp--preset--spacing--40) 0 0; font-size: var(--wp--preset--font-size--body-lg); color: var(--wp--preset--color--grey-300); }
@media (max-width: 781.98px) {
	.adepa-footer__rfq-action .wp-block-buttons { justify-content: flex-start !important; }
}

.adepa-footer__grid {
	--adepa-footer-col-gap: var(--wp--preset--spacing--50);
	gap: var(--wp--preset--spacing--60) var(--adepa-footer-col-gap);
}
/* 0.3.0 fix: higher specificity than core's `.wp-block-columns { flex-wrap: nowrap !important }` (≥782px).
   On pages with no Columns block above the footer (e.g. the homepage), core prints that stylesheet late,
   after this file, and an equal-specificity rule lost the cascade — the link groups collapsed at 782–1199px. */
.adepa-footer .adepa-footer__grid.wp-block-columns { flex-wrap: wrap !important; }
/* Below 1200px the identity block spans the full row; link groups follow it as clearly separated
   groups (hairline + space above each heading), never running straight into the identity text. */
@media (max-width: 1199.98px) {
	.adepa-footer__grid > .adepa-footer__identity { flex-basis: 100% !important; }
	.adepa-footer__grid > .adepa-footer__col {
		padding-top: var(--wp--preset--spacing--50);
		border-top: 1px solid var(--wp--preset--color--charcoal-2);
	}
}
/* Phones: one column, a steady rhythm between groups. */
@media (max-width: 599.98px) {
	.adepa-footer__grid { row-gap: var(--wp--preset--spacing--50); }
	.adepa-footer__grid > .adepa-footer__identity { padding-bottom: var(--wp--preset--spacing--20); }
}
/* Tablet (600–1023px): link groups in two columns (2 × 2). */
@media (min-width: 600px) and (max-width: 1023.98px) {
	/* specificity beats core's stacked-columns rule (`.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column`, !important, < 782px) */
	.adepa-footer .adepa-footer__grid.wp-block-columns > .wp-block-column.adepa-footer__col { flex: 0 0 calc((100% - var(--adepa-footer-col-gap)) / 2) !important; min-width: 0; }
}
/* Small desktop (1024–1199px): the four link groups share one row under the identity block. */
@media (min-width: 1024px) and (max-width: 1199.98px) {
	.adepa-footer .adepa-footer__grid.wp-block-columns > .wp-block-column.adepa-footer__col { flex: 1 1 0 !important; min-width: 0; }
}
@media (min-width: 1200px) {
	.adepa-footer .adepa-footer__grid.wp-block-columns { flex-wrap: nowrap !important; }
}
.adepa-footer .adepa-wordmark { font-size: 1.25rem; }
.adepa-footer .adepa-wordmark a { color: var(--wp--preset--color--white); }
/* Reversed logo slot (W1B-R1): fixed height, so swapping the wordmark for
   assets/images/logo/adepatrade-logo-reversed.(svg|png|webp) does not move the footer. */
.adepa-footer__wordmark { display: flex; align-items: center; min-height: var(--wp--custom--logo--height-footer); min-width: var(--wp--custom--logo--slot-width-compact); margin: 0; }
.adepa-footer__wordmark.has-logo .adepa-logo-reversed { height: var(--wp--custom--logo--height-footer); width: auto; max-width: 100%; }
.adepa-footer__descriptor { margin-top: var(--wp--preset--spacing--40); color: var(--wp--preset--color--grey-300); max-width: 28ch; }
.adepa-footer .adepa-footer__fact {
	margin-top: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	/* 0.3.0: capitals are written in the text so the unit stays "kV" (uppercase transform made it "KV") */
	color: var(--wp--preset--color--white);
}
.adepa-footer__title { margin: 0 0 var(--wp--preset--spacing--40); }
.adepa-footer__title a { text-decoration: none; color: inherit !important; }
.adepa-footer__title a:hover { color: var(--wp--preset--color--white) !important; }
.adepa-footer-links { margin: 0; padding: 0; }
.adepa-footer-links li { margin: 0; }
.adepa-footer-links a {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	padding-block: 0.25rem;
	text-decoration: none !important;
	color: var(--wp--preset--color--white);
}
.adepa-footer-links a:hover { text-decoration: underline !important; text-decoration-color: var(--wp--preset--color--brand-red-bright) !important; text-underline-offset: 0.25em; }
/* 0.4.32 (W9): Company list in two columns on phones, so up to five entries add at most one row to the stacked footer. */
@media (max-width: 599.98px) {
	.adepa-footer-links--company { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--wp--preset--spacing--50); }
}
.adepa-footer__note { color: var(--wp--preset--color--grey-300); }
.adepa-footer__note strong { color: var(--wp--preset--color--white); font-weight: 600; }
.adepa-footer .adepa-footer__company {
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--white);
}
.adepa-footer__address, .adepa-footer__channels { line-height: 1.7; }
.adepa-footer__channels a { display: inline-block; padding-block: 0.375rem; }

.adepa-footer__bottom {
	margin-top: var(--wp--preset--spacing--70) !important;
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--charcoal-2);
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50) !important;
	font-size: var(--wp--preset--font-size--label);
}
.adepa-footer__bottom { align-items: center; overflow: visible; padding-bottom: env(safe-area-inset-bottom, 0px); }
.adepa-footer__bottom p { margin: 0; color: var(--wp--preset--color--grey-300); line-height: 1.5; }
.adepa-footer__legal { display: flex; flex-wrap: wrap; gap: 0 var(--wp--preset--spacing--40); margin: 0; }
.adepa-footer__legal a { display: inline-flex; align-items: center; min-height: var(--wp--custom--touch-target); color: var(--wp--preset--color--grey-300); text-decoration: none; }
.adepa-footer__legal a:hover { color: var(--wp--preset--color--white); text-decoration: underline; }
.adepa-footer .adepa-footer__tagline {
	/* Never clip "FROM POLE TO PLUG": explicit line box, no overflow clipping, no shrinking,
	   and the same 44px row height as the legal links so it centres in the bar at every width. */
	display: flex;
	align-items: center;
	flex-shrink: 0;
	min-height: var(--wp--custom--touch-target);
	height: auto;
	margin: 0;
	padding-block: 0.125em;
	padding-inline-end: 0.125em; /* room for the G's spur at any sub-pixel rounding */
	overflow: visible;
	line-height: 1.5;
	white-space: nowrap;
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
}
