/**
 * Site footer. Loaded on every page.
 * Mobile first: one column, two by two from 640px, four columns from 1024px.
 */

.vac-footer {
	padding-block: clamp(3.5rem, 7vw, 5rem) 0;
	border-top: 1px solid color-mix(in srgb, var(--color-white) 16%, transparent);
	background: var(--color-dark);
	font-family: var(--font-body);
	color: var(--color-white);
}

.vac-footer__inner {
	width: min(100% - 2 * var(--vac-gutter, clamp(1rem, 4vw, 3rem)), 1240px);
	margin-inline: auto;
}

.vac-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
}

/* Column labels: styled text, not headings, so every template keeps its heading order. */
.vac-footer__title {
	margin: 0 0 0.75rem;
	font-family: var(--font-heading);
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--color-white);
}

.vac-footer__logo {
	display: inline-block;
	border-radius: 2px;
}

.vac-footer__logo img {
	display: block;
	width: auto;
	height: 4rem;
}

.vac-footer__tagline {
	max-width: 22rem;
	margin: 1rem 0 0;
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.4;
}

.vac-footer__social {
	display: flex;
	gap: 0.5rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.vac-footer__social-link {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid color-mix(in srgb, var(--color-white) 22%, transparent);
	border-radius: 50%;
	color: var(--color-white);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vac-footer__social-link:hover {
	border-color: var(--color-white);
	background: var(--color-white);
	color: var(--color-dark);
}

.vac-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vac-footer__link,
.vac-footer__link:hover {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	color: var(--color-white);
	text-decoration: none;
}

.vac-footer__link:hover {
	text-decoration: underline;
	text-decoration-color: var(--color-red);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

.vac-footer__logo:focus-visible,
.vac-footer__link:focus-visible,
.vac-footer__social-link:focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 3px;
}

.vac-footer__address {
	margin: 0 0 0.5rem;
	font-style: normal;
	line-height: 1.7;
}

.vac-footer__label {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: color-mix(in srgb, var(--color-white) 80%, transparent);
}

.vac-footer__hours {
	margin: 0;
}

.vac-footer__hours-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	padding-block: 0.6rem;
	border-bottom: 1px solid color-mix(in srgb, var(--color-white) 12%, transparent);
}

.vac-footer__hours-row:first-child {
	padding-top: 0;
}

.vac-footer__hours dt {
	font-weight: 600;
}

.vac-footer__hours dd {
	margin: 0;
	color: color-mix(in srgb, var(--color-white) 85%, transparent);
}

/* Bottom bar: a thin line, then the copyright and the legal links.
   Centered and stacked below 1024px, one row from 1024px. */
.vac-footer__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-block: 1rem;
	border-top: 1px solid color-mix(in srgb, var(--color-white) 14%, transparent);
	text-align: center;
}

.vac-footer__copy {
	margin: 0;
	font-size: 0.875rem;
	color: color-mix(in srgb, var(--color-white) 80%, transparent);
}

.vac-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	column-gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vac-footer__link--legal,
.vac-footer__link--legal:hover {
	min-height: 2.75rem;
	font-size: 0.875rem;
}

.vac-footer__link--legal {
	color: color-mix(in srgb, var(--color-white) 80%, transparent);
}

/* Visually hidden text that screen readers still announce. */
.vac-footer__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (min-width: 640px) {
	.vac-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 3rem 2.5rem;
	}
}

@media (min-width: 1024px) {
	.vac-footer__grid {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 1.3fr);
		gap: clamp(2rem, 4vw, 3.5rem);
	}

	.vac-footer__bottom {
		flex-direction: row;
		justify-content: space-between;
		gap: 1.5rem;
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vac-footer__social-link {
		transition: none;
	}
}
