/* ============================================================
   ESQ Footer
   ============================================================ */

/* --- Newsletter bar ---------------------------------------- */

.esq-footer-newsletter {
	background: #2A444D;
	padding: 40px 64px;
}

.esq-footer-newsletter-inner {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 80px;
}

/* Wide enough for 34px heading to sit on one line */
.esq-footer-newsletter-copy {
	flex: 0 0 560px;
}

.esq-footer-newsletter-heading {
	font-family: "Chronicle Display", Times, serif;
	color: #fff;
	font-size: 34px;
	font-weight: 400;
	line-height: 1.15;
	margin: 0 0 10px;
	text-transform: none;
	white-space: nowrap;
}

.esq-footer-newsletter-text {
	font-family: "Jost", Arial, sans-serif;
	color: #fff;
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: 0.5px;
	margin: 0;
}

.esq-footer-newsletter-form {
	flex: 1;
}

.esq-footer-newsletter-terms {
	font-family: "Jost", Arial, sans-serif;
	font-size: 11px;
	color: #fff;
	margin: 10px 0 0;
}

.esq-footer-newsletter-terms a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s ease;
}

.esq-footer-newsletter-terms a:hover {
	color: #B48C68;
}

/* GF inline layout — form wrapper is the flex row */
.esq-footer-newsletter-form .gform_wrapper {
	margin: 0;
}

.esq-footer-newsletter-form .gform_wrapper form {
	display: flex;
	align-items: stretch;
	gap: 14px;
}

.esq-footer-newsletter-form .gform_body {
	flex: 1;
	display: flex;
}

.esq-footer-newsletter-form .gform_fields {
	display: flex !important;
	flex: 1;
	gap: 0;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.esq-footer-newsletter-form .gfield {
	flex: 1;
	margin: 0 !important;
	padding: 0 !important;
}

.esq-footer-newsletter-form .gfield_label {
	display: none;
}

.esq-footer-newsletter-form .gfield input[type="text"],
.esq-footer-newsletter-form .gfield input[type="email"] {
	width: 100%;
	height: 52px;
	padding: 0 16px 0 17px !important;
	background: #fff;
	border: none;
	border-right: 1px solid #d8d4cc;
	font-family: "Jost", Arial, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.69px;
	color: #171717;
	outline: none;
	border-radius: 0;
	display: block;
	text-transform: uppercase;
}

.esq-footer-newsletter-form .gfield input::placeholder {
	color: #171717 !important;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.69px;
	text-transform: uppercase;
}

.esq-footer-newsletter-form .gform_footer,
.esq-footer-newsletter-form .gform_page_footer {
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	align-items: stretch;
}

.esq-footer-newsletter-form .gform_button {
	height: 52px;
	padding: 0 30px;
	background: #B48C68;
	border: none;
	color: #171717 !important;
	font-family: "Jost", Arial, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.25s ease;
	border-radius: 0;
}

.esq-footer-newsletter-form .gform_button:hover {
	background: #9a7558;
}

.esq-footer-newsletter-form .gform_validation_errors {
	margin-top: 10px;
}

.esq-footer-newsletter-form .validation_message,
.esq-footer-newsletter-form .gfield_validation_message {
	font-family: "Jost", Arial, sans-serif;
	font-size: 11px;
	color: #f5a5a5;
	margin-top: 4px;
	padding: 0 !important;
	background: none !important;
	border: none !important;
}

/* --- Main footer ------------------------------------------- */

.esq-footer-main {
	position: relative;
	overflow: hidden;
	background: #F3F5F4;
	padding: 25px 64px;
}

.esq-footer-bg-mark {
	position: absolute;
	top: -20px;
	right: -20px;
	width: 320px;
	height: auto;
	pointer-events: none;
	opacity: 0.9;
}

.esq-footer-main-inner {
	position: relative;
	z-index: 1;
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	gap: 72px;
	align-items: flex-start;
}

/* Brand column */
.esq-footer-col--brand {
	flex: 0 0 210px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.esq-footer-logo-wrap {
	margin-bottom: 0;
}

/* Target the logo however FLTheme::logo() renders it */
.esq-footer-logo-wrap img,
.esq-footer-logo-wrap .fl-logo-img,
.esq-footer-logo-wrap .fl-logo img,
.esq-footer-logo-link img {
	width: 187.7px;
	max-width: 187.7px;
	height: auto;
	display: block;
}

.esq-footer-logo-link {
	display: block;
}

/* Strip link decoration from FLTheme logo output */
.esq-footer-logo-wrap a,
.esq-footer-logo-wrap .fl-logo {
	display: block;
	text-decoration: none;
}

/* Scale icon font logo to 187.7px rendered width (natural: 113px @ 35px) */
.esq-footer-logo-wrap .fl-logo-text {
	font-size: 58px;
	color: #2A444D;
	transition: color 0.25s ease;
}

.esq-footer-logo-wrap a:hover .fl-logo-text {
	color: #B48C68;
}

.esq-footer-address {
	font-family: "Jost", Arial, sans-serif;
	font-style: normal;
	font-size: 15px;
	line-height: 1.75;
	color: #2A444D;
	letter-spacing: 0.5px;
	max-width: 170px;
	align-self: flex-start;
}

/* About column — fixed width so nav cols can be pushed right */
.esq-footer-col--about {
	flex: 0 0 409px;
	padding-top: 0px;
}

.esq-footer-col-heading {
	font-family: "Chronicle Display", Times, serif;
	color: #2A444D;
	font-size: 24px;
	font-weight: 400;
	margin: 0 0 18px;
	text-transform: none;
	line-height: 1.2;
	padding-top: 20px;
}

.esq-footer-about-text {
	font-family: "Jost", Arial, sans-serif;
	color: #2A444D;
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 24px;
	letter-spacing: 0.5px;
}

/* Footer CTA — filled gold, matches header CTA */
.esq-footer-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	background: #B48C68;
	border: 1px solid #B48C68;
	color: #171717;
	font-family: "Jost", Arial, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
	margin-bottom: 28px;
}

.esq-footer-cta:hover {
	background: #9a7558;
	border-color: #9a7558;
	color: #171717;
}

/* Social icons — no circle, just the icon */
.esq-footer-social {
	display: flex;
	gap: 18px;
	margin-bottom: 24px;
}

.esq-footer-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #2A444D;
	background: none;
	border-radius: 0;
	transition: color 0.25s ease;
	text-decoration: none;
}

.esq-footer-social-link:hover {
	color: #B48C68;
}

.esq-footer-social-link i {
	font-size: 22px;
	line-height: 1;
}

/* Legal links — Chronicle Display, 15px */
.esq-footer-legal {
	display: flex;
	gap: 20px;
}

.esq-footer-legal a {
	font-family: "Chronicle Display", Times, serif;
	font-size: 15px;
	font-weight: 400;
	color: rgba( 42, 68, 77, 0.7 );
	text-decoration: underline;
	text-underline-offset: 3px;
	letter-spacing: 0;
	transition: color 0.2s ease;
}

.esq-footer-legal a:hover {
	color: #B48C68;
}

/* Nav columns */
.esq-footer-col--nav {
	flex: 0 0 170px;
	margin-left: 50px;
}

.esq-footer-col--about-nav {
	flex: 0 0 140px;
}

.esq-footer-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.esq-footer-nav-list li {
	margin-bottom: 0;
}

.esq-footer-nav-list li a {
	font-family: "Jost", Arial, sans-serif;
	font-size: 14px;
	color: rgba( 42, 68, 77, 0.7 );
	text-decoration: none;
	letter-spacing: 0.5px;
	transition: color 0.2s ease;
}

.esq-footer-nav-list li a:hover {
	color: #B48C68;
}

/* --- Bottom bar -------------------------------------------- */

.esq-footer .esq-footer-bar {
	background-color: #000000;
	padding: 16px 64px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.esq-footer-copyright,
.esq-footer-domain {
	font-family: "Jost", Arial, sans-serif;
	font-size: 12px;
	color: rgba( 255, 255, 255, 0.45 );
	margin: 0;
	letter-spacing: 0.3px;
}

/* --- Mobile ------------------------------------------------ */

@media ( max-width: 900px ) {
	.esq-footer-newsletter {
		padding: 36px 24px;
	}

	.esq-footer-newsletter-inner {
		flex-direction: column;
		gap: 24px;
	}

	.esq-footer-newsletter-copy {
		flex: none;
	}

	.esq-footer-newsletter-heading {
		font-size: 26px;
		white-space: normal;
	}

	.esq-footer-newsletter-form .gform_wrapper form {
		flex-direction: column;
		gap: 0;
	}

	.esq-footer-newsletter-form .gform_fields {
		flex-direction: column;
	}

	.esq-footer-newsletter-form .gfield input[type="text"],
	.esq-footer-newsletter-form .gfield input[type="email"] {
		border-right: none;
		border-bottom: 1px solid rgba( 42, 68, 77, 0.15 );
	}

	.esq-footer-newsletter-form .gform_footer {
		margin-top: 12px !important;
	}

	.esq-footer-newsletter-form .gform_button {
		width: 100%;
	}

	.esq-footer-main {
		padding: 36px 24px;
	}

	.esq-footer-bg-mark {
		display: none;
	}

	.esq-footer-main-inner {
		flex-direction: column;
		gap: 36px;
	}

	.esq-footer-col--brand,
	.esq-footer-col--about,
	.esq-footer-col--nav,
	.esq-footer-col--about-nav {
		flex: none;
		max-width: none;
		margin-left: 0;
	}

	.esq-footer-col--brand {
		width: 100%;
		padding-bottom: 32px;
		border-bottom: 1px solid #2A444D;
	}

	.esq-footer-address {
		text-align: center;
		align-self: center;
	}

	.esq-footer .esq-footer-bar {
		flex-direction: column;
		gap: 4px;
		padding: 14px 24px;
		text-align: center;
	}
}
