/*
 * FTR-7: enquiry band. A wide band in the main colour of the site that asks
 * for an enquiry, with a button and the phone number, above the columns of
 * links. The phone number and the contact column come from NetRhyme, Business
 * details; without a phone number the band keeps the button alone.
 */

.wprk-ftr-7 {
	border-block-start: 0;
	padding-block-start: 0;
}

/* The band sets the colours for everything inside it, the way a section style does. */
.wprk-ftr-7 > .wprk-footer__enquiry {
	--wprk-bg: var(--wp--preset--color--primary);
	--wprk-fg: color-mix(in srgb, var(--wp--preset--color--base) 88%, var(--wp--preset--color--primary));
	--wprk-heading: var(--wp--preset--color--base);
	--wprk-muted: color-mix(in srgb, var(--wp--preset--color--base) 74%, var(--wp--preset--color--primary));
	--wprk-border: color-mix(in srgb, var(--wp--preset--color--base) 26%, transparent);
	--wprk-link: var(--wp--preset--color--base);
	--wprk-btn-bg: var(--wp--preset--color--base);
	--wprk-btn-fg: var(--wp--preset--color--dark);
	--wprk-focus: var(--wp--preset--color--base);
	background-color: var(--wprk-bg);
	/* A hairline, for a site whose main colour and dark colour are close. */
	border-block-end: 1px solid var(--wprk-border);
	color: var(--wprk-fg);
	margin-block: 0 var(--wp--preset--spacing--60);
	padding-block: var(--wp--preset--spacing--50);
}

.wprk-ftr-7 .wprk-footer__enquiry-row {
	align-items: center;
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
}

.wprk-ftr-7 .wprk-footer__enquiry-text {
	flex: 1 1 24rem;
	max-width: 40rem;
}

.wprk-ftr-7 .wprk-footer__enquiry-text > * {
	margin-block: 0;
}

.wprk-ftr-7 .wprk-footer__enquiry-text :where(h2) {
	color: var(--wprk-heading);
	font-size: var(--wp--preset--font-size--x-large);
}

.wprk-ftr-7 .wprk-footer__enquiry-text :where(p) {
	margin-block-start: 0.5em;
}

.wprk-ftr-7 .wprk-footer__enquiry-actions {
	align-items: center;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
}

/* "Or call us" with the number under it. */
.wprk-ftr-7 .wprk-footer__call > * {
	margin-block: 0;
}

.wprk-ftr-7 .wprk-footer__call-label {
	color: var(--wprk-muted);
	font-size: var(--wp--preset--font-size--small);
}

.wprk-ftr-7 .wprk-footer__call .wprk-business__phone {
	color: var(--wprk-heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	margin: 0;
}

.wprk-ftr-7 .wprk-footer__call .wprk-business__phone :where(a) {
	color: inherit;
}

@media (max-width: 599px) {
	.wprk-ftr-7 > .wprk-footer__enquiry {
		margin-block-end: var(--wp--preset--spacing--50);
	}

	.wprk-ftr-7 .wprk-footer__enquiry-actions {
		align-items: flex-start;
		flex-direction: column;
	}
}
