/* Realestech site footer: the homepage footer on every page (batch16).
   Moved out of home.css so the same rules load on the homepage, Home B and every Figma-built page.
   Selectors are prefixed with .footer so they win over page resets such as `.fh p { margin: 0 }`.
   Values are literal (homepage tokens: --deep #03142f, --navy #071c42, --gutter, Poppins/Inter). */
.footer {
	--rt-ft-gutter: clamp(22px, 8.333vw, 120px);
	background: #03142f;
	color: #fff;
	padding: 80px 0 40px;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.footer, .footer *, .footer *::before, .footer *::after { box-sizing: border-box; }
.footer a { color: inherit; text-decoration: none; }
.footer img { max-width: 100%; display: block; }
.footer p { margin: 0; }
.footer .container { width: 100%; max-width: none; margin: 0; padding-inline: var(--rt-ft-gutter); }
/* Brand row: logo left, tagline right, baselines matched to the wordmark.
   Wordmark in the 164x32 SVG: flat-letter baseline at y=24.87, x-height 13.47.
   Poppins Light sxHeight is 546/1000, so font-size 13.47/0.546~24.66px, rounded to 25px.
   With line-height:1 and typo ascent/descent 1.05/0.35, the text baseline sits 3.75px
   above the line-box bottom. The logo baseline is 7.13px above the img bottom,
   so padding-bottom:3.4px aligns them when the row uses align-items:flex-end. */
.footer .footer-brand { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 40px; }
.footer .footer-brand .logo-link { display: flex; flex: none; align-items: center; }
.footer .footer-brand .logo-link img { width: 164px; height: 32px; object-fit: contain; margin: 0; }
.footer .footer-tagline { margin: 0; padding-bottom: 3.4px; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 300; font-size: 25px; line-height: 1; letter-spacing: normal; text-align: right; color: #fff; flex: 1 1 auto; min-width: 0; }
.footer .footer-main { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(5, minmax(0, 1fr)); gap: 24px; padding-top: 48px; padding-bottom: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer .footer-office > p { margin: 0; }
.footer .footer-head { display: block; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: normal; text-transform: none; color: #fff; margin: 0 0 14px; }
.footer .footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer .footer-col a, .footer .footer-office p, .footer .footer-contact { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .8); }
@media (min-width: 1101px) {
	.footer .footer-hours { white-space: nowrap; }
}
.footer .footer-contact { margin: 16px 0 0; }
.footer .footer-contact a { color: inherit; }
.footer .footer-contact a:hover { color: #fff; }
.footer .footer-col a:hover { color: #fff; }
.footer .footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, .7); }
.footer .footer-bottom-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer .footer-bottom-links a:hover { color: #fff; }

.back-top { position: fixed; left: 24px; right: auto; bottom: 24px; width: 44px; height: 44px; border: 0; background: #071c42; color: #fff; font-size: 17px; line-height: 1; cursor: pointer; z-index: 30; opacity: 0; pointer-events: none; transition: opacity .3s; }
.back-top.is-visible { opacity: 1; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(12px); background: #071c42; color: #fff; padding: 12px 18px; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.4; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 50; max-width: min(420px, calc(100vw - 32px)); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1100px) {
	.footer .footer-main { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 960px) {
	.footer .footer-brand { flex-direction: column; align-items: flex-start; gap: 16px; }
	.footer .footer-tagline { text-align: left; padding-bottom: 0; }
}
@media (max-width: 690px) {
	.footer .footer-main { grid-template-columns: 1fr; }
	.footer .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}
@media print {
	.footer, .back-top, .toast { display: none !important; }
}

/* batch16b: same 1440px centred cap the homepage gets from Customizer CSS (FB 1090181), now on every page. */
@media (min-width: 1441px) {
	.footer > .container { max-width: 1440px; margin-inline: auto; }
}
