/*
 * Footer (Reusable Block "Footer", id 203), shared by every page. Laid out after XD "Manana Oct 26" at 1440;
 * the design's footer layers overlap in places, so this follows its columns, type and rules rather than every pixel.
 */

/* Four columns: logo and contacts, two of links, Subscribe. Headings sit 92px down the footer; the section adds 52px. */
.footer-1 .footer-1-group {
	margin: 0;
	padding-top: 40px;
}

/* Contact lines start 163px down, as drawn under the logo */
.footer-1 .footer-1-top .w-image + .w-separator + .w-vwrapper {
	margin-top: 15px;
}

/* The link columns hold two groups each, the same four as the menu popup. The groups sit side by side, four in a
   row, while each has room for its longest link; in a narrower column the second drops under the first. */
.footer-1 .footer-1-links > .vc_column-inner {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s4) var(--s3);
	padding-top: 40px;
}

.footer-1 .footer-1-links .footer-1-group {
	flex: 1 1 136px;
	padding-top: 0;
}

.footer-1 .footer-1-group > * {
	margin: 0;
}

.footer-1 .footer-1-heading {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 12px;
	line-height: 15px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--color-teal);
}

/* Links 22px apart, the first 16px under the heading */
.footer-1 .footer-1-menu {
	margin-top: 16px !important;
}

.footer-1 .footer-1-menu .menu {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.footer-1 .footer-1-menu .menu > li {
	margin: 0;
	line-height: 15px;
}

/* Drawn as Brother Regular; Light matches its weight on screen (Regular renders about 30% heavier).
   The same goes for the contact lines and the bottom row, set in their design options. */
.footer-1 .footer-1-menu .menu > li > a {
	display: block;
	padding: 0;
	font-family: var(--font-text);
	font-weight: 300;
	font-size: 12px;
	line-height: 15px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--color-ink);
}

/* Every footer link is ink and turns teal under the pointer */
.footer-1 :is(.w-text, .wpb_text_column, .w-iconbox, .menu > li) > a:hover,
.footer-1 .w-iconbox a:hover {
	color: var(--color-teal);
}

/* Newsletter: a 36px box and a small gold button (the Gold Small style's metrics), 12px apart */
.footer-1 .footer-1-subscribe .wpb_text_column {
	margin-top: 15px !important;
}

.footer-1 .forminator-custom-form-590.forminator-ui {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.footer-1 .forminator-ui.forminator-custom-form-590 .forminator-row {
	flex: 0 0 auto;
	margin: 0;
}

.footer-1 .forminator-ui.forminator-custom-form-590 .forminator-row:not(.forminator-row-last) {
	flex-basis: 239px;
}

/* Forminator marks its column gutter !important */
.footer-1 .forminator-ui.forminator-custom-form-590 .forminator-row .forminator-col,
.footer-1 .forminator-ui.forminator-custom-form-590 .forminator-row .forminator-field {
	margin: 0;
	padding: 0 !important;
}

.footer-1 .forminator-custom-form-590 .forminator-input {
	width: 100%;
	height: 36px;
	min-height: 0;
	padding: 0 12px;
	border: 1px solid var(--color-gold);
	border-radius: 4px;
	background: transparent;
	font-family: var(--font-text);
	font-weight: 300;
	font-size: 14px;
	line-height: 1.2;
	color: var(--color-ink);
}

/* Forminator sets its own focus colours with !important */
.footer-1 .forminator-ui.forminator-custom-form-590 .forminator-input:focus {
	border-color: var(--color-teal) !important;
	box-shadow: 0 0 0 1px var(--color-teal) !important;
}

/* A hint, not an entry: light and half strength, as in the enquiry form */
.footer-1 .forminator-custom-form-590 .forminator-input::placeholder {
	font-weight: 300;
	color: var(--color-ink);
	opacity: 0.5;
}

/* The form's own button radius is set !important */
.footer-1 .forminator-ui.forminator-custom-form-590 .forminator-button.forminator-button-submit {
	width: auto;
	height: 36px;
	min-height: 0;
	padding: 0 20px;
	border-radius: 4px !important;
	font-family: var(--font-text);
	font-weight: 500;
	font-size: 12px;
	line-height: 36px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Narrower screens: the email box gives way so Submit stays beside it */
@media (max-width: 1279px) {
	.footer-1 .forminator-ui.forminator-custom-form-590 .forminator-row:not(.forminator-row-last) {
		flex: 1 1 auto;
		max-width: 239px;
		min-width: 0;
	}
}

/* Tablets: four columns leave the links and the email box too narrow, so Subscribe moves under the links.
   !important because the row's column template is set inline. */
@media (max-width: 1024px) {
	.footer-1 .footer-1-top {
		grid-template-columns: 5fr 4fr 4fr !important;
		row-gap: var(--s4);
	}

	.footer-1 .footer-1-top > .subscribe-column {
		grid-column: 2 / -1;
	}

	.footer-1 .footer-1-subscribe {
		padding-top: 0;
	}
}

/* Phones: the logo column is hidden, the links sit two across and Subscribe runs the full width below */
@media (max-width: 767px) {
	.footer-1 .footer-1-top {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.footer-1 .footer-1-top > .subscribe-column {
		grid-column: 1 / -1;
	}
}

/* Gold rule a clear space under the columns, whichever of them runs longest */
.footer-1 .w-separator.footer-1-line.with_line {
	height: 1px;
	margin: var(--s5) 0 0;
	border-top: 1px solid var(--color-gold);
}

.footer-1 .footer-1-line .w-separator-h {
	display: none;
}

/* Social and legal row 24px under the rule; 329px footer as drawn */
.footer-1 .footer-1-bottom {
	margin-top: 16px;
	padding-bottom: 29px;
}

.footer-1 .footer-1-follow {
	letter-spacing: 0.05em;
}

/* Facebook 24px after the label, as drawn */
.footer-1 .footer-1-follow + .w-iconbox {
	margin-left: 8px;
}

/* Legal links 42px apart, ending 15px in from the edge */
.footer-1 .footer-1-legal {
	gap: 42px;
	margin-right: 15px;
}

/* Each stays on one line; on a laptop they close up instead of breaking in two */
.footer-1 .footer-1-legal > .wpb_text_column {
	margin-right: 0;
	white-space: nowrap;
}

@media (max-width: 1279px) {
	.footer-1 .footer-1-legal {
		flex-wrap: wrap;
		gap: var(--s2) var(--s3);
	}
}
