/**
 * Footer.
 *
 * Four quiet columns on a warm off-white: the brand and the newsletter get the
 * width, the three link lists share the rest. Headings are small, spaced and
 * upper-case so they read as labels rather than as headlines competing with
 * the links under them.
 */

/* Content that runs straight into the footer reads as one block; this is the
   breath between the last thing on the page and the first thing in the footer. */
.site-content {
	padding-bottom: 50px;
}

.site-footer .footer-widgets {
	position: relative;
	font-size: 15px;
	line-height: 1.5;
}

.site-footer .footer-widgets .footer-widgets-container {
	padding: 40px 40px 34px;
}

/* A hairline of the brand gradient, so the footer starts rather than begins. */
.site-footer .footer-widgets::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: linear-gradient( 90deg, #f6cfe1 0%, #ded5f2 55%, #cfe0f7 100% );
}

.site-footer .widget:not( :last-child ) {
	margin-bottom: 20px;
}

.site-footer .widget-title {
	margin-bottom: 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.site-footer .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .widget ul li {
	margin-bottom: 8px;
	padding-bottom: 0;
}

.site-footer .widget ul li a {
	text-decoration: none;
}

.site-footer .widget p {
	margin-bottom: 0.85em;
}

.site-footer .widget p:last-child {
	margin-bottom: 0;
}

.sgds-footer-brand {
	margin-bottom: 10px;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: #141414;
}

.sgds-footer-brand a {
	color: inherit;
	text-decoration: none;
}

.sgds-footer-brand span {
	color: #356396;
}

/* ---------------------------------------------------------------------------
 * Columns
 *
 * The theme's own footer grid gives every column the same quarter of the row.
 * The first one carries a paragraph and a form and needs more than that, so
 * the grid is restated here — and only where there is room for columns at all.
 * ------------------------------------------------------------------------ */

@media ( min-width: 769px ) {

	.site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets {
		display: grid;
		grid-template-columns: 1.8fr 1fr 1fr 1fr;
		gap: 30px;
		margin-left: 0;
	}

	.site-footer .footer-widgets .inside-footer-widgets > div {
		width: auto;
		float: none;
		margin: 0;
	}

	.site-footer .footer-widgets .footer-widgets-container .inner-padding {
		padding: 0;
	}
}

/* Ten platforms read better as a block of two than as one long drop. */
@media ( min-width: 1025px ) {

	.footer-widget-4 .widget_nav_menu ul {
		columns: 2;
		column-gap: 22px;
	}
}

/* ---------------------------------------------------------------------------
 * Newsletter
 *
 * Mailgun's widget is a label, an input and a button in three wrappers; the
 * rules below only lay them on one line and give them the shape of the rest of
 * the site. The label is already hidden site-wide, so the placeholder speaks.
 * ------------------------------------------------------------------------ */

.mailgun-list-widget-front .list-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 4px;
}

.site-footer .mailgun-list-widget-inputs {
	display: block;
	flex: 1 1 200px;
	min-width: 0;
}

.site-footer .mailgun-list-widget-email {
	margin: 0;
}

.site-footer .mailgun-list-widget-email input {
	width: 100%;
	padding: 12px 18px;
	border: 1px solid #e4ded4;
	border-radius: 999px;
	background: #fff;
	font-size: 15px;
	line-height: 1.3;
}

.site-footer .mailgun-list-submit-button {
	padding: 12px 24px;
	border: 0;
	border-radius: 999px;
	background: #1c1c1c;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	transition: background 200ms ease;
}

.site-footer .mailgun-list-submit-button:hover,
.site-footer .mailgun-list-submit-button:focus {
	background: #356396;
}

/* ---------------------------------------------------------------------------
 * Phones
 *
 * Stacked, the four columns turn ten services and six links into a very long
 * scroll to reach the bottom of any page. The lists run inline instead and
 * wrap like a sentence, which is how a short link list wants to behave on a
 * narrow screen; everything else simply tightens.
 * ------------------------------------------------------------------------ */

@media ( max-width: 768px ) {

	.site-footer .footer-widgets .footer-widgets-container {
		padding: 26px 20px 20px;
	}

	.site-footer .footer-widgets .inside-footer-widgets > div:not( :last-child ) {
		margin-bottom: 14px;
	}

	.site-footer .widget-title {
		margin-bottom: 8px;
	}

	/* Every list here — services, links, contact — reads as a wrapping row. */
	.site-footer .widget ul {
		display: flex;
		flex-wrap: wrap;
		gap: 6px 16px;
	}

	.site-footer .widget ul li {
		margin-bottom: 0;
	}

	.site-footer .widget:not( :last-child ) {
		margin-bottom: 12px;
	}
}

/* Payment method icons above the copyright. */
.sgds-pay-icons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 22px;
	padding: 14px 16px 2px;
}
.sgds-pay-icons .sgds-pay-icon svg {
	height: 22px;
	width: auto;
	display: block;
	fill: #9aa3b2;
	transition: fill .15s ease;
}
.sgds-pay-icons .sgds-pay-icon:hover svg { fill: #52669a; }
.sgds-copyright {
	margin: 4px 0 0;
	padding: 0 16px 18px;
	text-align: center;
	font-size: 12px;
	color: #9aa3b2;
}
.sgds-pay-note {
	margin: 6px 0 0;
	padding: 0 16px;
	text-align: center;
	font-size: 12px;
	color: #9aa3b2;
}
