/*
 * Site chrome 2026 — footer. Companion to chrome-26.css, same token rules.
 * The footer is always dark: .nds-scheme-dark in the markup resolves every semantic
 * token below to its dark value. Mobile spacing tokens are picked by their value
 * below 768px (see chrome-26-mobile.css).
 */

/* ------------------------------------------------------------------ footer */
.c26-footer {
	position: relative;
	overflow: hidden;
	display: flex;
	justify-content: center;
	/* Edge to edge: the page is framed by body padding (app.css _wp-overrides: spacing-8, spacing-16
	   from 40em; hpv2 pages: 16px below 768px, hpv2-knowledge.css). The footer cancels it on both
	   sides; the three rules here mirror those. */
	margin-inline: calc(-1 * var(--wp--preset--spacing--8, 8px));
	padding: var(--spacing-4xl) var(--spacing-5xl);
	background: var(--background-default-default);
	font-family: var(--wp--preset--font-family--body);
}
@media print, screen and (min-width: 40em) {
	.c26-footer { margin-inline: calc(-1 * var(--wp--preset--spacing--16, 16px)); }
}
@media (max-width: 767.98px) {
	body:has(.hpv2) .c26-footer { margin-inline: -16px; }
}
.c26-footer a { text-decoration: none; }

/* Type roles. One rule per design-system style; components below set layout only. */
.c26-fhead,
.c26-fgrp__head,
.c26-fln,
.c26-office__country,
.c26-office__meta,
.c26-office__meta a,
.c26-legal,
.c26-legal a,
.c26-news__label,
.c26-members__label,
.c26-ai__label,
.c26-fmob__head,
.c26-fmob__grp a {
	font-family: var(--typography-body-small-font-family);
	font-size: var(--typography-body-small-font-size);
	font-weight: var(--typography-body-small-font-weight);
	line-height: var(--typography-body-small-line-height);
}
.c26-ai__tip {
	font-family: var(--typography-body-small-mobile-font-family);
	font-size: var(--typography-body-small-mobile-font-size);
	font-weight: var(--typography-body-small-mobile-font-weight);
	line-height: var(--typography-body-small-mobile-line-height);
}
.c26-touch__label {
	font-family: var(--typography-body-large-font-family);
	font-size: var(--typography-body-large-font-size);
	font-weight: var(--typography-body-large-font-weight);
	line-height: var(--typography-body-large-line-height);
}
.c26-news__title {
	font-family: var(--typography-h3-font-family);
	font-size: var(--typography-h3-font-size);
	font-weight: var(--typography-h3-font-weight);
	line-height: var(--typography-h3-line-height);
	letter-spacing: normal;
}
/* Weights the design uses that the type scale does not define. */
.c26-fln,
.c26-fmob__grp a { font-weight: 400; }
/* Single-line labels sit on a 1:1 line box in the design. */
.c26-fhead,
.c26-fgrp__head,
.c26-office__country,
.c26-members__label,
.c26-ai__label,
.c26-touch__label,
.c26-ai__tip,
.c26-legal,
.c26-legal a { line-height: 1; }
.c26-office__meta,
.c26-office__meta a { line-height: 1.2; }
/* Figma DS v0.1 values the site tokens do not have. */
.c26-footer { --c26-text-tinted: #acc6eb; /* amp-color-text-tinted */ --c26-icon-subtle: #a8b4c1; /* amp-color-icon-subtle */ }

.c26-footer__glow {
	position: absolute;
	left: 51%;
	top: 879px;
	width: 1405px;
	height: 1405px;
	border-radius: 50%;
	background: var(--background-brand-alternative);
	opacity: 0.7;
	filter: blur(220px);
	pointer-events: none;
}
.c26-footer__inner { position: relative; width: 100%; max-width: 1200px; display: flex; flex-direction: column; gap: var(--spacing-4xl); }

.c26-news { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-5xl); padding: var(--spacing-4xl) 0; }
.c26-news__title { width: 631px; max-width: 100%; margin: 0; color: var(--text-default-default); }
.c26-news__form { width: 500px; flex-shrink: 0; }
.c26-news__label { display: block; margin-bottom: var(--spacing-s); color: var(--text-default-default); line-height: 20px; }

/* HubSpot newsletter form (the embed in Ampeco Settings mounts into .footer_top--right).
   library/hubspot-forms.css styles every HubSpot form site-wide: its palette is the
   --hsf-* variables (set here), but it forces a column layout and the button look with
   !important, so the design's one-row input + button needs !important on those few lines.
   Visible: the email field, the button, and the legal consent the embed script expands
   on focus; every other fieldset holds hidden tracking fields. */
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form {
	--hsf-font: var(--wp--preset--font-family--body);
	--hsf-input-bg: var(--background-default-quaternary);
	--hsf-input-ring: var(--border-default-tertiary);
	--hsf-input-text: var(--text-default-default);
	--hsf-placeholder: var(--text-default-tertiary);
	--hsf-label: var(--text-default-tertiary);
	--hsf-legal: var(--text-default-secondary);
	--hsf-error: var(--text-negative-default);
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 144px;
	gap: var(--spacing-s);
	align-items: start;
	margin: 0;
}
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form > * { grid-column: 1 / -1; }
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form > fieldset:first-of-type { grid-column: 1; grid-row: 1; }
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form > .hs_submit { grid-column: 2; grid-row: 1; margin: 0 !important; }
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form .hs_submit .actions { margin: 0; padding: 0; }
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form > fieldset:not(:first-of-type):not(:has(.legal-consent-container)) { display: none; }
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form .hs-form-field { padding-bottom: 0; }
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form .hs-form-field > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form .legal-consent-container { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
/* The embed script sets max-height:55px inline on focus, which cuts the consent's second line here. */
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form .legal-consent-container.expand { max-height: 96px !important; }
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form .legal-consent-container * { max-width: none; }
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form .legal-consent-container a { color: var(--text-default-tertiary); }
/* Envelope icon: a mask painted with the icon token (a data-URI background cannot take a token). */
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form > fieldset:first-of-type .input { position: relative; }
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form > fieldset:first-of-type .input::before {
	content: "";
	position: absolute;
	top: 50%;
	left: var(--spacing-l);
	width: 20px;
	height: 20px;
	margin-top: -10px;
	background: var(--icon-default-secondary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none'%3E%3Cpath d='M7 21l21 14 21-14M7 21v22.75A1.75 1.75 0 008.75 45.5h38.5A1.75 1.75 0 0049 43.75V21M7 21l21-14 21 14' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none'%3E%3Cpath d='M7 21l21 14 21-14M7 21v22.75A1.75 1.75 0 008.75 45.5h38.5A1.75 1.75 0 0049 43.75V21M7 21l21-14 21 14' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
	z-index: 1;
}
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form input.hs-input[type="email"] {
	height: 48px;
	padding: 0 var(--spacing-l) 0 calc(var(--spacing-l) + 20px + var(--spacing-s));
	background-color: var(--hsf-input-bg);
	font-size: var(--typography-body-medium-font-size);
	font-weight: var(--typography-body-medium-font-weight);
}
/* app.css paints email placeholders with --text-disabled-default, too faint on this surface. */
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form input.hs-input[type="email"]::placeholder { color: var(--hsf-placeholder); }
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form input.hs-input[type="email"]:focus { box-shadow: inset 0 0 0 1px var(--border-default-alternative); }
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form .hs-button {
	width: 144px !important;
	height: 48px !important;
	padding: 0 !important;
	background-color: var(--background-brand-default) !important;
	box-shadow: inset 0 0 0 1px var(--border-default-secondary);
	color: var(--text-default-alternative) !important;
	font-size: var(--typography-body-medium-font-size) !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	margin: 0 !important;
	/* <input type=submit> cannot hold an icon: the chevron is a background, text nudged left. */
	padding-right: 20px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M7.5 15l5-5-5-5' stroke='%231A1E22' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 24px center !important;
	background-size: 20px 20px !important;
}
.c26-news.c26-news .c26-news__form.c26-news__form .hs-form .hs-button:hover { opacity: 1; background-color: var(--background-brand-secondary) !important; }

.c26-fgrid { display: flex; flex-direction: column; gap: var(--spacing-s); }

.c26-fcard {
	display: flex;
	flex-direction: column;
	padding-bottom: var(--spacing-s);
	border-radius: var(--wp--preset--border-radius--s);
	box-shadow: inset 0 0 0 1px var(--border-default-quaternary);
}
.c26-fhead {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-xl);
	padding: var(--spacing-xxl) var(--spacing-xxl) 0;
	color: var(--text-default-tertiary);
}
.c26-fhead::after { content: ""; height: 1px; background: var(--border-default-quaternary); }
.c26-fcols { display: flex; align-items: flex-start; }
.c26-fcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.c26-fgrp { display: flex; flex-direction: column; padding: var(--spacing-s); }
.c26-fgrp__head { padding: var(--spacing-m) var(--spacing-l); color: var(--text-default-secondary); }
.c26-fln {
	display: flex;
	align-items: center;
	gap: var(--spacing-xs);
	min-height: 32px;
	padding: var(--spacing-xs) var(--spacing-l);
	border-radius: var(--wp--preset--border-radius--xs);
	color: var(--text-default-default);
	transition: background 0.15s ease-out, color 0.15s ease-out;
}
/* A long label wraps onto a second line rather than being cut off in a narrow column. */
.c26-fln span { min-width: 0; overflow-wrap: break-word; }
.c26-fln:hover { background: var(--background-default-quaternary); color: var(--text-default-tertiary); }

.c26-frow { display: grid; grid-template-columns: minmax(0, 232fr) minmax(0, 960fr); gap: var(--spacing-s); }
.c26-offices__list { display: flex; flex-direction: column; gap: var(--spacing-xxl); padding: var(--spacing-xl) var(--spacing-xxl); }
.c26-office { display: flex; flex-direction: column; gap: var(--spacing-m); }
.c26-office__country { color: var(--text-default-default); }
.c26-office__meta { display: flex; flex-direction: column; gap: var(--spacing-s); }
.c26-office__meta,
.c26-office__meta a { color: var(--text-default-secondary); }
.c26-office__meta a:hover { color: var(--text-default-tertiary); }
/* Figma: body/sm on a 22px line, 2px between country, city and contact, 12px between offices. */
.c26-offices__list { gap: var(--spacing-m); }
.c26-office,
.c26-office__meta { gap: 2px; }
.c26-office__country,
.c26-office__meta,
.c26-office__meta a { line-height: 22px; }

.c26-fcard--multi { flex-direction: row; }
.c26-fsec { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.c26-fsec.is-grouped { flex: 2 1 0; }
.c26-fsec__groups { display: flex; }
.c26-fsec__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
/* Stacked: the groups sit one below the other, so the section takes one column. */
.c26-fsec.is-grouped.is-stacked { flex: 1 1 0; }
.c26-fsec__flat { display: flex; flex-direction: column; padding: var(--spacing-s); }

.c26-fmob { display: none; }

.c26-members { display: flex; align-items: center; gap: var(--spacing-7xl); height: 48px; margin: var(--spacing-xxl) 0; }
.c26-members__label { color: var(--c26-text-tinted); white-space: nowrap; }
.c26-members__logos { flex: 1 1 0; height: 48px; display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-xxl); }
/* Figma's member marks are drawn in icon-subtle (#a8b4c1); they keep their own size up to 48px tall. */
.c26-members__logo { display: block; max-width: 140px; height: auto; max-height: 48px; object-fit: contain; }

.c26-touch {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--spacing-xxl);
	padding: var(--spacing-4xl);
	border-radius: var(--wp--preset--border-radius--s);
	box-shadow: inset 0 0 0 1px var(--border-default-tertiary);
}
.c26-touch__label { width: 257px; color: var(--c26-text-tinted); }
.c26-touch__links { display: flex; align-items: center; gap: var(--spacing-l); flex-wrap: wrap; justify-content: flex-end; }
.c26-touch__sep { width: 1px; height: 20px; background: var(--border-default-quaternary); }
.c26-footer .c26-label { color: var(--text-default-default); gap: var(--spacing-s); }
.c26-footer .c26-label:hover { color: var(--text-default-tertiary); }

.c26-social-row { display: flex; align-items: center; justify-content: space-between; height: 24px; }
.c26-social { display: flex; gap: var(--spacing-l); align-items: center; }
.c26-social a { display: block; width: 24px; height: 24px; color: var(--icon-default-default); opacity: 0.6; transition: opacity 0.2s ease-out; }
.c26-social a:hover,
.c26-social a:focus { opacity: 1; color: var(--icon-default-default); }
.c26-social svg { display: block; width: 100%; height: 100%; }

/* app.css recolours a:hover / a:focus globally; restate where the design keeps the colour. */
.c26-logo:hover,
.c26-logo:focus { color: var(--background-brand-default); }
.c26-flogo:hover,
.c26-flogo:focus { color: var(--icon-default-default); }
.c26-lang__opt:hover,
.c26-lang__opt:focus { color: var(--text-default-default); }
.c26-lang__opt.is-current:hover { color: var(--text-brand-default); }
.c26-fmob__grp a:hover,
.c26-fmob__grp a:focus { color: var(--text-default-tertiary); }
.c26-card:hover,
.c26-card:focus { color: var(--text-default-default); }

.c26-ai { display: flex; align-items: center; gap: var(--spacing-4xl); }
.c26-ai__label { color: var(--c26-text-tinted); white-space: nowrap; }
.c26-ai__links { display: flex; gap: var(--spacing-m); align-items: center; }
.c26-ai__links a { position: relative; display: block; width: 24px; height: 24px; }
.c26-ai__links svg { display: block; width: 100%; height: 100%; filter: brightness(0) invert(1); opacity: 0.6; transition: opacity 0.2s ease-out; }
.c26-ai__links a:hover svg,
.c26-ai__links a:focus-visible svg { opacity: 1; }
.c26-ai__tip {
	position: absolute;
	bottom: calc(100% + var(--spacing-m));
	left: 50%;
	padding: var(--spacing-s) var(--spacing-m);
	border-radius: var(--wp--preset--border-radius--xs);
	background: var(--background-default-reverse);
	color: var(--text-default-alternative);
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 4px);
	transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
.c26-ai__tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border: 5px solid transparent;
	border-top-color: var(--background-default-reverse);
	border-bottom: 0;
}
.c26-ai__links a:hover .c26-ai__tip,
.c26-ai__links a:focus-visible .c26-ai__tip { opacity: 1; transform: translate(-50%, 0); }

.c26-fbottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	padding-top: var(--spacing-4xl);
	border-top: 1px solid var(--border-default-quaternary);
}
.c26-flogo { display: block; width: 169.778px; height: 32px; color: var(--icon-default-default); }
.c26-flogo svg { display: block; width: 100%; height: 100%; }
.c26-legal { display: flex; align-items: center; gap: var(--spacing-xxl); }
.c26-legal__links { display: flex; gap: var(--spacing-xxl); }
.c26-legal { color: var(--text-default-secondary); }
.c26-legal a { color: var(--text-default-default); }
.c26-legal a:hover { color: var(--text-default-tertiary); }

.c26-footer.is-simple .c26-touch { margin-top: var(--spacing-s); }

@media (max-width: 1099.98px) {
	.c26-footer { display: block; padding: 0; }
	.c26-footer__glow { left: -197px; }
	.c26-footer__inner { gap: 0; }
	.c26-news { flex-direction: column; align-items: stretch; gap: var(--spacing-5xl); padding: var(--spacing-5xl) var(--spacing-3xl); }
	.c26-news__title {
		width: auto;
		font-family: var(--typography-h3-mobile-font-family);
		font-size: var(--typography-h3-mobile-font-size);
		font-weight: var(--typography-h3-mobile-font-weight);
		line-height: var(--typography-h3-mobile-line-height);
		letter-spacing: var(--typography-h3-mobile-letter-spacing);
	}
	.c26-news__form { width: auto; }
	.c26-news.c26-news .c26-news__form.c26-news__form .hs-form { grid-template-columns: minmax(0, 1fr); row-gap: var(--spacing-l); }
	.c26-news.c26-news .c26-news__form.c26-news__form .hs-form > .hs_submit { grid-column: 1; grid-row: 2; }
	.c26-news.c26-news .c26-news__form.c26-news__form .hs-form .hs-button { width: 100% !important; box-shadow: none; }

	.c26-fgrid { display: none; }
	.c26-fmob { display: flex; flex-direction: column; }
	.c26-fmob__block { display: flex; flex-direction: column; }
	.c26-fmob .c26-fhead { padding: var(--spacing-4xl) var(--spacing-3xl) 0; }
	.c26-fmob__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: var(--spacing-xs) var(--spacing-xl) var(--spacing-xl); }
	.c26-fmob__grp { display: flex; flex-direction: column; padding: var(--spacing-xs); }
	.c26-fmob__head { padding: var(--spacing-l) 0 var(--spacing-s); color: var(--text-default-secondary); }
	.c26-fmob__grp a { display: flex; align-items: center; min-height: 32px; padding: var(--spacing-xs) 0; color: var(--text-default-default); }
	.c26-fmob__offices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--spacing-4xl) var(--spacing-xl); padding: var(--spacing-3xl); }

	.c26-members { flex-direction: column; align-items: flex-start; height: auto; gap: var(--spacing-4xl); margin: 0; padding: var(--spacing-9xl) var(--spacing-3xl); }
	.c26-members__logos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--spacing-4xl) var(--spacing-xl); justify-items: start; height: auto; width: 100%; }

	.c26-touch { flex-direction: column; align-items: flex-start; gap: var(--spacing-3xl); margin: var(--spacing-s); padding: var(--spacing-4xl) var(--spacing-3xl); }
	.c26-touch__label { width: auto; }
	.c26-touch__links { flex-direction: column; align-items: flex-start; gap: var(--spacing-3xl); }
	.c26-touch__sep { display: none; }

	.c26-social-row { flex-direction: column; height: auto; gap: var(--spacing-4xl); padding: var(--spacing-4xl) var(--spacing-3xl) 0; }
	.c26-ai { gap: var(--spacing-xl); }
	.c26-fbottom {
		flex-direction: column;
		height: auto;
		gap: var(--spacing-4xl);
		margin: var(--spacing-4xl) var(--spacing-3xl) 0;
		padding: var(--spacing-4xl) 0 var(--spacing-5xl);
	}
	.c26-legal { flex-direction: column; gap: var(--spacing-4xl); }
	.c26-legal__links { flex-wrap: wrap; gap: var(--spacing-l) var(--spacing-4xl); justify-content: center; }
}
