/* =========================================================================
   Produkta Volvo Cars Mbombela: site footer, v1.0.0, 05 Oct 2026
   -------------------------------------------------------------------------
   Built from volvocars.com/za's footer (dark colour mode, read 05 Oct 2026):
   page layout with Volvo's page margin, statement-3 with a filled button,
   four link columns from 30rem and accordions below it, legal links, the
   copyright line. Values re-implemented under --pv- names from Volvo's
   published tokens (dark mode); never Volvo's mangled private tokens.

   Unlayered and scoped to .pv-footer. Element resets are .pv-footer a
   (0,1,1); every component rule is .pv-footer .pv-ft__x (0,2,0), so it beats
   the resets and Astra's element rules.
   ====================================================================== */

.pv-footer {

	/* Colour, Volvo dark mode */
	--pv-ft-fg: #fff;
	--pv-ft-fg-2: #969696;
	--pv-ft-bg: #000;
	--pv-ft-ornament: #ffffff29;
	--pv-ft-btn: #fff;
	--pv-ft-btn-fg: #000;
	--pv-ft-hover: 16%;
	--pv-ft-active: 24%;
	--pv-ft-disabled: .4;

	/* Type */
	--pv-ft-font: var(--pv-font-sans, "Volvo Novum", Arial, "Helvetica Neue", Helvetica, sans-serif);
	--pv-ft-st3: clamp(2.25rem, 2.5vw + 1.5rem, 4rem);

	/* Space: page margin and Volvo's space-l (= space-xl) */
	--pv-ft-margin: clamp(1rem, 4.286vw - .286rem, 4rem);
	--pv-ft-l: clamp(3rem, 2.143vw + 2.357rem, 4.5rem);

	/* Motion */
	--pv-ft-dur: .22s;

	display: block;
	margin: 0;
	padding: 0;
	font-family: var(--pv-ft-font);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--pv-ft-fg);
	background-color: var(--pv-ft-bg);
	color-scheme: dark;
	font-synthesis-weight: none;
	font-kerning: normal;
	-webkit-tap-highlight-color: transparent;
}

@supports (width: round(down, 1px, 1px)) {

	.pv-footer {
		--pv-ft-st3: round(down, clamp(2.25rem, 2.5vw + 1.5rem, 4rem), 2px);
		--pv-ft-margin: round(clamp(1rem, 4.286vw - .286rem, 4rem), 2px);
		--pv-ft-l: round(clamp(3rem, 2.143vw + 2.357rem, 4.5rem), 2px);
	}
}

/* ------------------------------------------------------------------ resets */

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

.pv-footer p,
.pv-footer ul,
.pv-footer li,
.pv-footer nav,
.pv-footer details,
.pv-footer summary {
	margin: 0;
	padding: 0;
}

.pv-footer ul {
	list-style: none;
}

.pv-footer a {
	color: inherit;
	text-decoration: none;
	background: none;
	box-shadow: none;
}

.pv-footer svg {
	display: block;
}

.pv-footer :focus-visible {
	outline: 2px solid var(--pv-ft-fg);
	outline-offset: 2px;
}

.pv-footer :focus:not(:focus-visible) {
	outline: none;
}

/* ------------------------------------------------------------------ layout */

/* Volvo's .pagelayout: page margin either side, 160rem at most, 32px top and
   bottom; the stack adds space-l above itself from 30rem and between its
   children */
.pv-footer .pv-ft__page {
	max-width: 160rem;
	margin-inline: auto;
	padding: 2rem var(--pv-ft-margin);
}

.pv-footer .pv-ft__stack {
	display: flex;
	flex-direction: column;
}

/* nav only groups the two copies of the columns, so its children are the
   stack's items; each sits space-l below the one before it */
.pv-footer .pv-ft__nav {
	display: contents;
}

.pv-footer .pv-ft__grid,
.pv-footer .pv-ft__accs,
.pv-footer .pv-ft__bottom {
	margin-top: var(--pv-ft-l);
}

/* --------------------------------------------------------------- statement */

.pv-footer .pv-ft__intro {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.pv-footer .pv-ft__statement {
	font-size: var(--pv-ft-st3);
	font-weight: 400;
	line-height: calc(1em + .5rem);
	text-wrap: balance;
}

.pv-footer .pv-ft__2 {
	color: var(--pv-ft-fg-2);
}

/* Volvo's button-filled in dark mode: white pill, black text, the state
   overlay mixed towards the text colour */
.pv-footer .pv-ft__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: max-content;
	max-width: 100%;
	height: 3rem;
	padding-inline: 1.5rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	white-space: nowrap;
	color: var(--pv-ft-btn-fg);
	background: var(--pv-ft-btn);
	background: color-mix(in hsl, var(--pv-ft-btn), var(--pv-ft-btn-fg) var(--pv-ft-state, 0%));
	border-radius: 9999px;
	transition: background-color var(--pv-ft-dur) ease;
	user-select: none;
	overflow-x: clip;
}

.pv-footer .pv-ft__btn:active {
	--pv-ft-state: var(--pv-ft-hover);
}

/* ------------------------------------------------------------------- links */

/* Volvo's link-plain: no underline until hover; a 40px tap area */
.pv-footer .pv-ft__link {
	position: relative;
	text-underline-offset: .125em;
}

.pv-footer .pv-ft__link::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
	width: 100%;
	min-width: 40px;
	min-height: 40px;
	translate: -50% -50%;
}

.pv-footer .pv-ft__link:active {
	text-decoration-line: underline;
	text-decoration-skip-ink: none;
	text-decoration-thickness: .125em;
}

.pv-footer .pv-ft__link--2 {
	color: var(--pv-ft-fg-2);
}

/* Placeholder until its address is set: Volvo's disabled state */
.pv-footer .pv-ft__link--pending {
	opacity: var(--pv-ft-disabled);
	cursor: default;
}

.pv-footer .pv-ft__link--pending::after {
	display: none;
}

.pv-footer .pv-ft__vh {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ----------------------------------------------------------------- columns */

/* Grid from 30rem: four columns, 24px apart, 48px between rows */
.pv-footer .pv-ft__grid {
	display: none;
}

.pv-footer .pv-ft__title {
	margin-bottom: 1rem;
	font-weight: 600;
}

.pv-footer .pv-ft__list {
	display: flex;
	flex-direction: column;
	row-gap: 1rem;
}

/* Accordions below 30rem: 20px/600 summary, 16px above and below, a hairline
   under each, the chevron turning when open */
.pv-footer .pv-ft__accs {
	width: 100%;
}

.pv-footer .pv-ft__acc {
	border-bottom: 1px solid var(--pv-ft-ornament);
}

.pv-footer .pv-ft__sum {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	column-gap: .5rem;
	padding-block: 1rem;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}

.pv-footer .pv-ft__sum::-webkit-details-marker {
	display: none;
}

.pv-footer .pv-ft__chev {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	transition: rotate var(--pv-ft-dur);
}

.pv-footer .pv-ft__acc[open] > .pv-ft__sum .pv-ft__chev {
	rotate: 180deg;
}

.pv-footer .pv-ft__list--acc {
	padding-bottom: 1rem;
}

/* ------------------------------------------------------------------ bottom */

.pv-footer .pv-ft__bottom {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.pv-footer .pv-ft__legal {
	display: flex;
	flex-direction: column;
	row-gap: 1.5rem;
	justify-content: space-between;
	width: 100%;
}

.pv-footer .pv-ft__legal-list {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 1.5rem;
}

/* ------------------------------------------------------------- breakpoints */

@media (width >= 30rem) {

	.pv-footer .pv-ft__stack {
		margin-top: var(--pv-ft-l);
	}

	.pv-footer .pv-ft__grid {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 3rem 1.5rem;
		width: 100%;
	}

	.pv-footer .pv-ft__accs {
		display: none;
	}

	.pv-footer .pv-ft__bottom {
		flex-direction: row;
		align-items: center;
	}

	.pv-footer .pv-ft__legal-list {
		flex-direction: row;
	}
}

@media (hover: hover) {

	.pv-footer .pv-ft__btn:hover {
		--pv-ft-state: var(--pv-ft-hover);
	}

	.pv-footer .pv-ft__btn:hover:active {
		--pv-ft-state: var(--pv-ft-active);
	}

	.pv-footer a.pv-ft__link:hover {
		text-decoration-line: underline;
		text-decoration-skip-ink: none;
		text-decoration-thickness: .125em;
	}

	.pv-footer a.pv-ft__link:hover:active {
		text-decoration-thickness: auto;
	}
}

@media (prefers-reduced-motion: reduce) {

	.pv-footer *,
	.pv-footer *::before,
	.pv-footer *::after {
		transition-duration: 0s !important;
	}
}
