/* GRT Footer styles */

/* ================================================================
   GRT Footer
   ================================================================ */

.grt-footer {
	background: var(--color-brand-red);
	color: var(--color-white);
	width: 100%;
	overflow: hidden;
	container-type: inline-size;
	container-name: grt-footer;
}

.grt-footer__inner {
	display: grid;
	grid-template-columns: 1fr 32.5rem;
	grid-template-rows: auto 1fr;
	gap: var(--space-dkt-60);
	padding: var(--space-dkt-60);
	max-width: 1728px;
	margin: 0 auto;
	min-height: 680px;
}

/* ── Left column ────────────────────────────────────────────── */

.grt-footer__left {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: var(--space-dkt-32);
	min-width: 0;
}

.grt-footer__logo svg {
	width: 328px;
	height: auto;
}

.grt-footer__back-to-top {
	display: none;
}

.grt-footer__back-to-top:focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 3px;
}

.grt-footer__truck {
	grid-column: 1;
	grid-row: 2;
	display: flex;
	align-items: flex-end;
	min-height: 280px;
}

.grt-footer__truck svg {
	width: 100%;
	height: auto;
	overflow: visible;
}

.grt-footer__truck-label {
	font-family: var(--font-family-body);
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.35);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Legal bar — full-width row below both columns */
.grt-footer__legal {
	display: flex;
	justify-content: center;
	padding: 0 var(--space-dkt-60) var(--space-dkt-32);
	max-width: 1728px;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

.grt-footer__legal-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: var(--space-dkt-32);
}

/* DKT/Copy/Regular — Inter Medium for UI legal links */
.grt-footer__legal-list li a {
	font-family:    var(--font-family-ui);
	font-weight:    var(--font-weight-medium);
	font-size:      var(--copy-font-size); /* 1.125rem / 18px */
	line-height:    var(--copy-line-height);
	color:          var(--color-white);
	text-decoration: none;
	white-space: nowrap;
}

.grt-footer__legal-list li a:hover {
	color: var(--color-white);
	text-decoration: underline;
}

.grt-footer__legal-list li a:focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ── Right column ───────────────────────────────────────────── */

.grt-footer__right {
	grid-column: 2;
	grid-row: 1 / 3;
	display: flex;
	flex-direction: column;
	gap: var(--space-dkt-32);
	padding-top: var(--space-dkt-24);
	padding-bottom: 0;
}

/* Social icons */
.grt-footer__social {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.grt-footer__social-icon {
	width: 4.75rem;  /* 76px */
	height: 4.75rem;
	flex-shrink: 0;
}

.grt-footer__social-icon a {
	display: block;
	width: 100%;
	height: 100%;
	color: inherit;
	transition: opacity 0.2s ease;
}

.grt-footer__social-icon a svg {
	pointer-events: none;
}

.grt-footer__social-icon a:hover {
	opacity: 0.9;
	color: inherit;
}

.grt-footer__social-icon a:focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 3px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.grt-footer__social-icon a {
		transition: none;
	}
}

.grt-footer__social-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Dividers */
.grt-footer__divider {
	border: none;
	border-top: 2px solid rgba(255, 255, 255);
	margin: 0;
	width: 100%;
}

/* Navigation columns */
.grt-footer__nav {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 3.375rem; /* 54px */
	padding: 0 1.375rem; /* 22px */
}

.grt-footer__nav-col {
	display: flex;
	flex-direction: column;
	gap: 1.5rem; /* 24px */
	width: 12.125rem; /* 194px */
}

/* DKT/Copy_Big/Regular — Campora Bold, overriding family to headline */
.grt-footer__nav-heading {
	font-family:             var(--font-family-headline);
	font-weight:             var(--font-weight-bold);
	font-size:               var(--copy-big-font-size);   /* 1.5rem / 24px */
	line-height:             var(--copy-big-line-height);
	letter-spacing:          var(--copy-big-letter-spacing);
	color:                   var(--color-white);
	text-decoration:         underline;
	text-decoration-skip-ink: none;
	margin: 0;
}

.grt-footer__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.5rem; /* 24px */
}

/* DKT/Copy/Regular — slightly larger (20px) for nav legibility */
.grt-footer__nav-list li a {
	font-family:    var(--copy-font-family);
	font-weight:    var(--copy-font-weight);
	font-size:      1.25rem; /* 20px — between copy (18px) and copy-big (24px) */
	line-height:    var(--copy-line-height);
	letter-spacing: var(--copy-letter-spacing);
	color:          var(--color-white);
	text-decoration: none;
}

.grt-footer__nav-list li a:hover {
	color: var(--color-white);
	text-decoration: underline;
}

.grt-footer__nav-list li a:focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 3px;
	border-radius: 2px;
}

/* DKT/Copy_Big/Regular */
.grt-footer__tagline {
	/* extends .grt-copy-big */
	font-family:    var(--copy-big-font-family);
	font-weight:    var(--copy-big-font-weight);
	font-size:      var(--copy-lg-font-size, 1.375rem); /* 22px */
	line-height:    var(--copy-big-line-height);
	letter-spacing: var(--copy-big-letter-spacing);
	color:          var(--color-white);
	max-width: 28.625rem; /* 458px */
	padding-left: 1.375rem;
}

/* DKT/Copy_Big/Bold */
.grt-footer__tagline strong {
	/* extends .grt-copy-big-bold */
	font-family:    var(--copy-bold-font-family);
	font-weight:    var(--copy-bold-font-weight);
	font-size:      var(--copy-big-font-size);
	line-height:    var(--copy-big-line-height);
	letter-spacing: var(--copy-big-letter-spacing);
}

.grt-footer__divider--desktop-only {
	display: block;
}

/* ================================================================
   Mobile
   ================================================================ */


@container grt-footer (max-width: 37.5rem) {
	.grt-footer__social {
		justify-content: center;
		gap: auto;
	}
}

@container grt-footer (max-width: 40rem) {
	.grt-footer__nav-col {
		width: auto;
	}
}

@container grt-footer (max-width: 48rem) {
	.grt-footer__truck svg {
		margin-left: 10%;
		/* margin-right: -13%; */
	}
}

@container grt-footer (max-width: 62.5rem) {

	.grt-footer__social {
		justify-content: center;
		gap: var(--space-mbl-12);
	}

	.grt-footer__inner {
		display: flex;
		flex-direction: column;
		gap: var(--space-mbl-32);
		padding: var(--space-mbl-24);
		min-height: 0;
	}

	/* Logo + back-to-top row */
	.grt-footer__left {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 0;
	}

	.grt-footer__logo svg {
		height: 54px;
		width: 12.625rem; /* 202px */
	}

	.grt-footer__back-to-top {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		width: 3.375rem;  /* 54px */
		height: 3.375rem;
		background: var(--color-white);
		border: none;
		border-radius: 8px;
		color: var(--color-brand-red);
		cursor: pointer;
		padding: 0;
	}

	.grt-footer__back-to-top:focus-visible {
		outline: 2px solid var(--color-brand-red);
		outline-offset: 3px;
	}

	/* Right column: full width, no top padding */
	.grt-footer__right {
		padding-top: 0;
	}

	.grt-footer__social-icon {
		width: 3.375rem;  /* ~54px */
		height: 3.375rem;
	}

	/* Hide the last divider (after tagline) on mobile */
	.grt-footer__divider--desktop-only {
		display: none;
	}

	/* Truck: full width at bottom */
	.grt-footer__truck {
		min-height: 0;
		align-items: flex-end;
	}

	.grt-footer__nav {
		padding-inline: var(--space-mbl-12);
	}

	/* Mobile typography */
	.grt-footer__nav-heading {
		font-size: var(--mbl-copy-font-size); /* 19px */
	}

	.grt-footer__nav-list li a {
		font-size: 1rem; /* 16px */
	}

	.grt-footer__tagline {
		font-size: var(--mbl-copy-font-size); /* 19px */
		max-width: none;
	}

	.grt-footer__tagline strong {
		font-size: var(--mbl-copy-font-size);
	}
}

/* Social icons: fixed gap only between 500px–1000px (31.25rem–62.5rem) */
@container grt-footer (min-width: 31.25rem) and (max-width: 62.5rem) {
	.grt-footer__social {
		justify-content: flex-start;
		gap: var(--space-mbl-12);
	}
}
