/**
 * Home page, section 8: visit or call. The last block of the page.
 * Loaded on the front page only, after home-faq.css.
 * Fonts and heading sizes come from style.css.
 */

.vac-visit {
	padding-block: clamp(4.5rem, 10vw, 7.5rem);
	background: var(--color-dark);
	color: var(--color-white);
}

/* Centered closing block: heading, one line of support, three actions. */
.vac-visit__inner {
	width: min(100% - 2 * var(--vac-gutter), 1240px);
	margin-inline: auto;
	text-align: center;
}

.vac-visit__heading {
	max-width: 22ch;
	margin: 0 auto;
	color: var(--color-white);
}

.vac-visit__lead {
	max-width: 38rem;
	margin: 1.25rem auto 0;
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
	line-height: 1.6;
	color: color-mix(in srgb, var(--color-white) 88%, transparent);
}

.vac-visit__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2.25rem;
}

.vac-visit__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 3.25rem;
	padding: 0.75rem 1.5rem;
	border: 2px solid transparent;
	border-radius: 3px;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.vac-visit__btn svg {
	flex: none;
}

.vac-visit__btn:focus-visible {
	outline: 3px solid var(--color-white);
	outline-offset: 3px;
}

.vac-visit__btn--primary {
	background: var(--color-red);
	color: var(--color-white);
}

.vac-visit__btn--outline {
	border-color: var(--color-white);
	color: var(--color-white);
}

.vac-visit__btn--primary:hover,
.vac-visit__btn--outline:hover {
	border-color: var(--color-white);
	background: var(--color-white);
	color: var(--color-dark);
}

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

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

/* Phones: buttons stack full width. */
@media (max-width: 639px) {
	.vac-visit__actions {
		flex-direction: column;
	}

	.vac-visit__btn {
		width: 100%;
		min-height: 3.5rem;
	}
}
