/* ---------- site footer ---------- */
.site-footer {
	position: relative;
	background: var(--bg-3);
}

.site-footer__inner {
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	/* live Elementor: block padding is 5% of the padded content box, so = 4.2% of the box */
	padding: 4.2% 8%;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	background-image: url("../assets/img/mx-footer-bg.png");
	background-size: contain;
	background-position: bottom left;
	background-repeat: no-repeat;
}

.site-footer__brand {
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
}

.site-footer__brand img {
	width: 20%;
	max-width: 241px;
	height: auto;
	margin-bottom: 2rem;
}

.site-footer__col {
	box-sizing: border-box;
	padding: 10px;
	font-size: 0.9rem;
	line-height: 1.5rem;
}

.site-footer__col--contact { width: 30%; }
.site-footer__col--links { width: 20%; }
.site-footer__col--form { width: 40%; padding: 0; font-size: 1rem; line-height: 1.5; }

.site-footer__label {
	font-size: 0.7rem;
	line-height: 1.5rem;
	margin: 0;
}

.site-footer__label:first-child {
	color: var(--bg-1);
}

/* gap between contact groups (label + its value) */
.site-footer__col--contact > .site-footer__label:not(:first-child) {
	margin-top: 1rem;
}

.site-footer__col p {
	margin: 0;
	line-height: 1.5rem;
}

.site-footer__addr {
	/* live sets this as a bottom margin, but ours would collapse into the next label's margin-top */
	padding-bottom: 1em;
}

.site-footer__toll {
	margin-top: 5px;
	padding-bottom: 5px;
}

.site-footer__col a:hover {
	color: var(--orange);
}

.site-footer__col--links li:not(:last-child) {
	margin-bottom: 1.5rem;
}

.site-footer__col--links li a {
	display: block;
	padding: 0;
	line-height: 1.5rem;
}

.site-footer__title {
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.6;
	margin: 0;
}

.site-footer__copy {
	font-size: 0.7rem;
}

/* ---------- footer wpforms (mirrors the live Elementor footer custom css) ---------- */
.site-footer__col--form div.wpforms-container-full {
	margin: 0;
}

.site-footer__col--form input:not([type=submit]):not([type=hidden]),
.site-footer__col--form select,
.site-footer__col--form textarea {
	background-color: transparent !important;
	border: 1px solid var(--grey) !important;
	color: var(--grey) !important;
	border-radius: 0 !important;
}

.site-footer__col--form input::placeholder,
.site-footer__col--form textarea::placeholder {
	color: var(--text-1) !important;
}

.site-footer__col--form input:focus,
.site-footer__col--form select:focus,
.site-footer__col--form textarea:focus {
	border: 1px solid var(--ink) !important;
	color: var(--ink) !important;
	box-shadow: none !important;
}

/* CTA matches the live Elementor footer: dark, slanted right edge */
.site-footer__col--form div.wpforms-container-full button.wpforms-submit {
	display: inline-flex;
	align-items: center;
	height: 41px;
	padding: 12px 45px 12px 20px;
	background: var(--ink) !important;
	color: var(--white);
	border: 1px solid var(--text-1) !important;
	border-radius: 0 !important;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1;
	clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

.site-footer__col--form div.wpforms-container-full button.wpforms-submit:hover {
	background: var(--orange) !important;
}

.site-footer__col--form div.wpforms-container-full button.wpforms-submit:focus {
	outline: none;
	box-shadow: none;
}

.social {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	margin: 2rem 0;
}

.social svg {
	display: block;
	width: 2.4rem;
	height: 2.4rem;
}

/* floating quote bubble */
.quote-bubble {
	position: fixed;
	right: 20px;
	top: 45%;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 44px;
	background: var(--orange);
	color: var(--white);
}

.quote-bubble svg {
	width: 2rem;
	height: 2rem;
}

/* quote popup (replaces magnific popup) — one card: centred while it fits,
   top-aligned scrolling once it is taller than the screen */
#popforms {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	overflow: auto;
	background: rgba(0, 0, 0, 0.6);
	padding: 3vh 0;
	box-sizing: border-box;
}

#popforms.is-open {
	display: flex;
}

#popforms .popforms__card {
	position: relative;
	flex: none;
	width: 80%;
	max-width: 800px;
	margin: auto;
	padding: 2rem 3% 2rem;
	background: var(--white);
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
}

#popforms > .popforms__card > h2 {
	margin: 0;
	padding: 0 2.6rem;
	font-size: 1.8rem;
	text-align: center;
}

/* the card owns the spacing; WPForms ships its own outer margin */
#popforms .wpforms-container {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 1rem 0 0;
	background: none;
	box-shadow: none;
}

.popforms__close {
	position: absolute;
	top: 0.4rem;
	right: 0.6rem;
	width: 3.4rem;
	height: 3.4rem;
	padding: 0;
	background: none;
	border: 0;
	color: var(--ink);
	font-size: 2.8rem;
	line-height: 1;
	cursor: pointer;
}

.popforms__close:hover,
.popforms__close:focus {
	color: var(--orange);
}

/* the quote form's button uses the site's orange CTA */
#popforms .wpforms-container-full button.wpforms-submit {
	display: inline-flex;
	align-items: center;
	height: 41px;
	padding: 12px 45px 12px 20px;
	background: var(--orange) !important;
	color: var(--white) !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1;
	clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

#popforms .wpforms-container-full button.wpforms-submit:hover {
	background: var(--ink) !important;
}

#popforms .wpforms-container-full button.wpforms-submit:focus {
	outline: none;
	box-shadow: none;
}

body.popup-open {
	overflow: hidden;
}

/* cookie notice (mirrors the live UE cookie-consent widget) */
.cookie-notice {
	position: fixed;
	left: 10px;
	bottom: 10px;
	z-index: 120;
	width: 400px;
	max-width: calc(100vw - 20px);
	box-sizing: border-box;
	background: #f7eded;
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	padding: 24px;
	font-size: 1rem;
}

.cookie-notice__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cookie-notice__body strong {
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.6;
}

.cookie-notice p {
	margin: 0;
}

.cookie-notice__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.cookie-notice__actions button {
	width: 100%;
	padding: 5px 20px;
	border-radius: 5px;
	font: inherit;
	cursor: pointer;
}

.cookie-notice__accept {
	background: #131313;
	color: var(--white);
	border: 2px solid transparent;
}

.cookie-notice__reject {
	background: none;
	color: #131313;
	border: 2px solid #6f6f6f;
}

@media (max-width: 767px) {
	.site-footer__brand,
	.site-footer__col {
		width: 100%;
	}

	/* mobile order: logo first, then form, links, contact */
	.site-footer__brand { order: 0; }
	.site-footer__col--form { order: 1; margin-top: 2rem; }
	.site-footer__col--links { order: 2; margin-top: 2rem; }
	.site-footer__col--contact { order: 3; margin-top: 2rem; }

	/* 20% of the column left a 60px stamp up here; match the header logo instead */
	.site-footer__brand img {
		width: 100%;
		max-width: 165px;
	}

	.site-footer__col--links li:not(:last-child) {
		margin-bottom: 1.5rem;
	}

	.quote-bubble {
		width: 48px;
		height: 35px;
	}
}
