/* ═══════════════════════════════════════════════════════════════════════
   ESI Site Footer — Clean rewrite
   Reuses shared tokens from header.css (:root):
     --h-accent, --h-dark, --h-gray, --h-white, --h-font, --h-max, --h-pad
   ═══════════════════════════════════════════════════════════════════════ */

:root {
	--f-bg: #f8f9fa;
	--f-heading: #202124;
}

/* ── Box-sizing reset ────────────────────────────────────────────────── */
#site-footer,
#site-footer *,
#site-footer *::before,
#site-footer *::after {
	box-sizing: border-box;
}

/* ── Footer element — override Hello Elementor's max-width: 1140px ──
   The parent theme (theme.css) sets max-width on .site-footer at each
   breakpoint (576→500, 768→600, 992→800, 1200→1140). Override all of
   them so the footer spans the full viewport.
   ──────────────────────────────────────────────────────────────────── */
#site-footer {
	display: block;
	font-family: var(--h-font);
	background: var(--f-bg);
	color: var(--h-gray);
	width: 100% !important;
	max-width: none !important;
	margin: 0;
	padding: 0 !important;
	padding-block-start: 0 !important;
	padding-block-end: 0 !important;
	border: none;
	border-top: 1px solid #d0d0d0;
}
#site-footer a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s;
}
#site-footer a:hover {
	color: var(--h-accent);
}
#site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
#site-footer address {
	font-style: normal;
}

/* ── Inner container — matches header-nav__inner exactly ─────────────
   max-width: 1440px, auto margins, 47px edge padding at desktop.
   !important overrides Hello Elementor theme.css which sets
   max-width: 1140px, padding-inline: 10px, display: flex on .footer-inner
   ──────────────────────────────────────────────────────────────────── */
#site-footer .footer-inner {
	display: block !important;
	max-width: var(--h-max) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: var(--h-pad) !important;
	padding-right: var(--h-pad) !important;
	padding-inline-start: var(--h-pad) !important;
	padding-inline-end: var(--h-pad) !important;
	flex-wrap: unset !important;
	justify-content: unset !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   ROW 1: TOP — Logo + Office Info + Nav
   Mobile: single column. Tablet: 2 cols. Desktop: 4 cols.
   ═══════════════════════════════════════════════════════════════════════ */
#site-footer .footer-top {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	padding-top: 64px;
	padding-bottom: 48px;
}

/* Logo */
#site-footer .footer-logo {
	display: inline-block;
	line-height: 0;
}
#site-footer .footer-logo img {
	display: block;
	width: auto;
	height: 60px;
}

/* Office columns */
#site-footer .footer-office__title {
	font-size: 20px;
	font-weight: 600;
	line-height: 20px;
	color: var(--f-heading);
	margin: 0 0 16px 0;
}
#site-footer .footer-office__details {
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--h-gray);
	display: flex;
	flex-direction: column;
}
#site-footer .footer-office__details span {
	white-space: nowrap;
}
#site-footer .footer-office__details a {
	color: var(--h-gray);
}
#site-footer .footer-office__details a:hover {
	color: var(--h-accent);
}

/* Footer navigation */
#site-footer .footer-nav__list {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
#site-footer .footer-nav__list .menu-item {
	margin: 0;
	padding: 0;
	list-style: none;
}
#site-footer .footer-nav__list .menu-item a {
	font-size: 18px;
	font-weight: 500;
	line-height: 36px;
	color: var(--f-heading);
	display: inline-block;
	white-space: nowrap;
}
#site-footer .footer-nav__list .menu-item a:hover {
	color: var(--h-accent);
}

/* ═══════════════════════════════════════════════════════════════════════
   ROW 2: MIDDLE — Social (left) + Newsletter (right)
   ═══════════════════════════════════════════════════════════════════════ */
#site-footer .footer-middle {
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding-bottom: 48px;
}

/* Social — now in the bottom bar */
#site-footer .footer-social {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
}
#site-footer .footer-social__label {
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	color: var(--h-gray);
	margin: 0;
}
#site-footer .footer-social__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: var(--h-underline);
	border-radius: 50%;
	color: #fff;
	transition: opacity 0.2s;
}
#site-footer .footer-social__link:hover {
	opacity: 0.85;
}
#site-footer .footer-social__link svg {
	display: block;
	width: 16px;
	height: 16px;
}

/* Copyright — centered in bottom bar */
#site-footer .footer-copyright {
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: var(--h-gray);
	margin: 0;
}

/* Newsletter */
#site-footer .footer-newsletter__heading {
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--h-dark);
	margin: 0 0 24px 0;
	max-width: 648px;
}
#site-footer .footer-newsletter__form {
	max-width: 648px;
}
#site-footer .footer-newsletter__form ._form-content.footer-newsletter__form-body {
	display: flex;
	align-items: flex-end;
	gap: 16px;
}
#site-footer .footer-newsletter__field {
	flex: 1;
	position: relative;
}
#site-footer .footer-newsletter__field input {
	font-family: var(--h-font);
	font-size: 20px;
	font-weight: 400;
	line-height: 20px;
	color: var(--h-dark);
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--h-gray);
	border-radius: 0;
	padding: 12px 0;
	width: 100%;
	outline: none;
	transition: border-color 0.2s;
}
#site-footer .footer-newsletter__field input::placeholder {
	color: var(--h-gray);
	font-weight: 400;
}
#site-footer .footer-newsletter__field input:focus {
	border-bottom-color: var(--h-dark);
}
#site-footer .footer-newsletter__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--h-font);
	font-size: 18px;
	font-weight: 500;
	line-height: 20px;
	color: var(--h-white);
	background: var(--h-accent);
	border: none;
	border-radius: 50px;
	padding: 11px 24px;
	min-width: 147px;
	height: 42px;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.2s;
	flex-shrink: 0;
}
#site-footer .footer-newsletter__btn:hover {
	opacity: 0.9;
}
#site-footer .footer-newsletter__btn svg {
	display: block;
	width: 19px;
	height: 19px;
	flex-shrink: 0;
}
#site-footer .footer-newsletter__btn.processing {
	opacity: 0.8;
	pointer-events: none;
}
#site-footer .footer-newsletter__thank-you {
	font-size: 18px;
	font-weight: 500;
	color: var(--h-dark);
}
#site-footer .footer-newsletter__error {
	color: var(--h-accent);
}

/* Screen reader only */
#site-footer .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   ROW 3: BOTTOM BAR — Legal + License
   ═══════════════════════════════════════════════════════════════════════ */
#site-footer .footer-bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 24px 0;
	border-top: 1px solid #d0d0d0;
}
#site-footer .footer-legal {
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: var(--h-gray);
}
#site-footer .footer-legal a {
	color: var(--h-gray);
	text-decoration: none;
}
#site-footer .footer-legal a:hover {
	color: var(--h-accent);
}
#site-footer .footer-legal__sep {
	margin: 0 8px;
	color: var(--h-gray);
}

/* ═══════════════════════════════════════════════════════════════════════
   FOCUS-VISIBLE (accessibility)
   ═══════════════════════════════════════════════════════════════════════ */
#site-footer a:focus-visible,
#site-footer button:focus-visible,
#site-footer input:focus-visible {
	outline: 2px solid var(--h-accent);
	outline-offset: 2px;
	border-radius: 2px;
}
#site-footer a:focus:not(:focus-visible),
#site-footer button:focus:not(:focus-visible) {
	outline: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   TABLET (768px+)
   ═══════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {

	#site-footer .footer-top {
		grid-template-columns: 1fr 1fr;
		gap: 40px 48px;
		padding-top: 72px;
		padding-bottom: 56px;
	}

	#site-footer .footer-middle {
		padding-bottom: 56px;
	}

	#site-footer .footer-newsletter__heading {
		font-size: 26px;
		line-height: 1.3;
	}

	#site-footer .footer-bottom {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 0;
		padding: 28px 0;
	}
	#site-footer .footer-legal,
	#site-footer .footer-copyright,
	#site-footer .footer-social {
		flex: 1;
	}
	#site-footer .footer-copyright {
		text-align: center;
	}
	#site-footer .footer-social {
		justify-content: flex-end;
	}
}

/* ═══════════════════════════════════════════════════════════════════════
   DESKTOP (1200px+)
   ═══════════════════════════════════════════════════════════════════════ */
@media (min-width: 1200px) {

	#site-footer .footer-top {
		grid-template-columns: repeat(4, 1fr);
		gap: 0 40px;
		padding-top: 120px;
		padding-bottom: 64px;
	}

	/* Right-align nav links in last column */
	#site-footer .footer-nav {
		text-align: right;
	}

	#site-footer .footer-logo img {
		height: 71px;
	}

	#site-footer .footer-middle {
		padding-bottom: 64px;
		padding-top: 68px;
	}

	#site-footer .footer-newsletter__heading {
		font-size: 30px;
		line-height: 1.3;
		max-width: none;
	}

	#site-footer .footer-bottom {
		padding: 32px 0;
	}
}
