/*
 * Realestech · shared styles for Figma-built pages (header, footer, tokens, buttons).
 * Source: Figma "Realestech - Site Concepts (WIP)", Style guide page 2137:2.
 * Loaded only on page-figma templates (currently page-about.php).
 */
:root {
	--color-brand-navy: #071c42;      /* "Blue - Mid" as used in page frames */
	--color-brand-navy-guide: #051e4a;/* style guide color/brand/navy */
	--color-brand-navy-deep: #03142f;
	--color-brand-aqua: #34cbd6;
	--color-text-body: #5b6576;
	--color-text-muted: #7a8dab;
	--color-surface-white: #ffffff;
	--color-surface-warm: #f6f4f0;
	--color-line-default: #dce1e6;
	--color-line-strong: #8e9aab;
	--color-status-placeholder-bg: #fff4c2;
	--color-status-placeholder-text: #6b5300;
	--font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--grid-content: 1200px;
	--grid-margin: 120px;
	--grid-gutter: 24px;
	--space-section: 140px;
	--header-h: 80px;
	--rt-header-h: 80px;
	--rt-link-hover: #3266a1;
}
@media (max-width: 1279px) { :root { --grid-margin: 64px; } }
@media (max-width: 1023px) { :root { --grid-margin: 48px; --space-section: 120px; } }
@media (max-width: 767px)  { :root { --grid-margin: 24px; --grid-gutter: 16px; --space-section: 80px; } }

body.fh {
	margin: 0;
	background: #fff;
	color: var(--color-brand-navy);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
.fh *, .fh *::before, .fh *::after { box-sizing: border-box; }
.fh img { max-width: 100%; display: block; }
.fh a { color: inherit; text-decoration: none; }
.fh h1, .fh h2, .fh h3, .fh p, .fh figure, .fh ul, .fh ol { margin: 0; }
.fh ul, .fh ol { padding: 0; list-style: none; }
.fh :focus-visible { outline: 2px solid var(--color-brand-aqua); outline-offset: 2px; }
.fh .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.fh-skip {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--color-brand-navy); color: #fff !important; padding: 10px 16px;
	font: 500 14px/20px var(--font-heading);
}
.fh-skip:focus { top: 16px; }

.fh-container {
	width: 100%;
	max-width: calc(var(--grid-content) + 2 * var(--grid-margin));
	margin: 0 auto;
	padding-left: var(--grid-margin);
	padding-right: var(--grid-margin);
}

/* Buttons (UI/Button 14/20 Poppins Medium) */
.fh-btn {
	display: inline-flex; align-items: center; gap: 10px;
	height: 44px; padding: 0 18px;
	background: var(--color-brand-navy); color: #fff !important;
	border: 1px solid var(--color-brand-navy);
	font: 500 14px/20px var(--font-heading); white-space: nowrap;
	transition: background-color .2s ease, border-color .2s ease;
}
.fh-btn:hover { background: var(--color-brand-navy-deep); border-color: var(--color-brand-navy-deep); }
.fh-btn img { width: 10px; height: 10px; }
.fh-btn--sm { height: 40px; }
.fh-btn--outline { background: transparent; color: var(--color-brand-navy) !important; border-color: var(--color-text-muted); justify-content: center; }
.fh-btn--outline:hover { background: var(--color-surface-warm); border-color: var(--color-brand-navy); }

/* Label/Mono */
.fh-label { font: 500 11px/1.4 var(--font-heading); letter-spacing: 1.6px; text-transform: uppercase; color: var(--color-text-body); }

/* ---------- Header (01 HEADER) ----------
   Aligned to the homepage header (header.php + home.css):
   full-width bar, equal clamp gutters, 80px tall with 10px block padding. */
html { scroll-padding-top: var(--rt-anchor-offset, var(--rt-subnav-top, var(--rt-header-h, 80px))); }
.fh-header { position: sticky; top: 0; z-index: 50; background: #fff; padding-top: 0; }
.admin-bar .fh-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .fh-header { top: 46px; } }
.fh-header__bar {
	display: flex; align-items: center; justify-content: space-between;
	height: 80px; padding-block: 10px;
	padding-left: clamp(22px, 8.333vw, 120px);
	padding-right: clamp(22px, 8.333vw, 120px);
	max-width: none; width: 100%;
}
.fh-header__logo { display: flex; align-items: center; flex: none; }
.fh-header__logo img { width: 154px; height: 30px; max-width: none; }
.fh-nav { flex: none; }
.fh-nav__list { display: flex; gap: 36px; }
.fh-nav__list a,
.fh-nav__list > li > button.fh-nav__btn { font: 400 14px/21px var(--font-heading); color: var(--color-brand-navy); white-space: nowrap; }
.fh-nav__list > li > button.fh-nav__btn {
	appearance: none; -webkit-appearance: none; background: none; border: 0; cursor: pointer;
	text-align: inherit; margin: 0; color: var(--color-brand-navy);
}
@media (min-width: 1024px) {
	.fh-nav__list > li > a,
	.fh-nav__list > li > button.fh-nav__btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; }
}
.fh-nav__list a,
.fh-nav__list > li > button.fh-nav__btn,
.fh-login__toggle,
.fh-nav__sub a,
.fh-login__menu a { transition: color .5s ease; }
.fh-nav__list a:hover, .fh-nav__list a[aria-current="page"],
.fh-nav__list > li > button.fh-nav__btn:hover,
.fh-nav__list > li > button.fh-nav__btn[aria-current="page"],
.fh-login__toggle:hover { color: var(--rt-link-hover); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.fh-nav__sub a:hover, .fh-nav__sub a:focus, .fh-nav__sub a:focus-visible,
.fh-login__menu a:hover, .fh-login__menu a:focus, .fh-login__menu a:focus-visible { color: var(--rt-link-hover); }
.fh-nav__drawer-extra { display: none; }
.fh-nav__item { position: relative; }
@keyframes fh-nav-item-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}
.fh-nav__sub {
	display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
	min-width: 220px; margin: 0; padding: 0; list-style: none;
	background: #fff; border: 0; box-shadow: 0 20px 30px rgba(3, 20, 47, .12); z-index: 30;
}
.fh-nav__item.has-sub:hover > .fh-nav__sub,
.fh-nav__item.has-sub:focus-within > .fh-nav__sub,
.fh-nav__item.has-sub.is-open > .fh-nav__sub { display: block; }
.fh-nav__item.has-sub:hover > .fh-nav__sub > li,
.fh-nav__item.has-sub:focus-within > .fh-nav__sub > li,
.fh-nav__item.has-sub.is-open > .fh-nav__sub > li,
.fh-login__menu:not([hidden]) > li {
	animation: fh-nav-item-in 200ms ease-out both;
}
.fh-nav__sub > li:nth-child(1), .fh-login__menu > li:nth-child(1) { animation-delay: 0ms; }
.fh-nav__sub > li:nth-child(2), .fh-login__menu > li:nth-child(2) { animation-delay: 50ms; }
.fh-nav__sub > li:nth-child(3), .fh-login__menu > li:nth-child(3) { animation-delay: 100ms; }
.fh-nav__sub > li:nth-child(4), .fh-login__menu > li:nth-child(4) { animation-delay: 150ms; }
.fh-nav__sub > li:nth-child(5), .fh-login__menu > li:nth-child(5) { animation-delay: 200ms; }
.fh-nav__sub > li:nth-child(6), .fh-login__menu > li:nth-child(6) { animation-delay: 250ms; }
.fh-nav__sub > li:nth-child(7), .fh-login__menu > li:nth-child(7) { animation-delay: 300ms; }
.fh-nav__sub > li:nth-child(8), .fh-login__menu > li:nth-child(8) { animation-delay: 350ms; }
.fh-nav__sub a,
.fh-login__menu a { display: block; position: relative; padding: 10px 18px; white-space: nowrap; }
.fh-nav__sub a:hover, .fh-nav__sub a:focus, .fh-nav__sub a:focus-visible, .fh-nav__sub a:active,
.fh-login__menu a:hover, .fh-login__menu a:focus, .fh-login__menu a:focus-visible, .fh-login__menu a:active { background: transparent; color: var(--rt-link-hover); text-decoration: none; }
.fh-nav__sub > li:not(:last-child) > a::after,
.fh-login__menu > li:not(:last-child) > a::after {
	content: ""; position: absolute; left: 18px; right: 18px; bottom: 0;
	height: 1px; background: rgba(7, 28, 66, .08); pointer-events: none;
}
@media (max-width: 1023px) {
	.fh-nav__sub { position: static; transform: none; border: 0; box-shadow: none; display: block; padding: 0 0 8px 12px; }
	.fh-nav__sub > li:not(:last-child) > a::after,
	.fh-login__menu > li:not(:last-child) > a::after { content: none; }
	.fh-nav__item.has-sub:hover > .fh-nav__sub > li,
	.fh-nav__item.has-sub:focus-within > .fh-nav__sub > li,
	.fh-nav__item.has-sub.is-open > .fh-nav__sub > li,
	.fh-login__menu:not([hidden]) > li {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

.fh-header__actions { display: flex; align-items: center; gap: 22px; flex: none; }
.fh-header__actions .fh-btn { border: 0; }
.fh-login { position: relative; }
.fh-login__toggle {
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; border: 0; background: none; cursor: pointer;
	font: 400 14px/21px var(--font-heading); color: var(--color-brand-navy);
}
.fh-login__toggle img { width: 10px; height: 10px; transition: transform .2s ease; }
.fh-login__toggle[aria-expanded="true"] img { transform: rotate(180deg); }
.fh-login__menu {
	position: absolute; top: 100%; right: 0; min-width: 200px; padding: 0;
	background: #fff; border: 0; box-shadow: 0 20px 30px rgba(3, 20, 47, .12);
}
.fh-login__menu[hidden] { display: none; }
.fh-login__menu a { font: 400 14px/21px var(--font-heading); }
.fh-menu-toggle { display: none; }

@media (max-width: 1023px) {
	.fh-login { display: none; }
	.fh-menu-toggle {
		display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
		width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
	}
	.fh-menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--color-brand-navy); transition: transform .2s ease, opacity .2s ease; }
	.fh-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
	.fh-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.fh-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
	.fh-nav {
		position: fixed; inset: var(--rt-subnav-top, 80px) 0 0 0; z-index: 49; overflow-y: auto;
		background: #fff; padding: 24px var(--grid-margin) 48px;
		transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
	}
	.fh-nav.is-open { transform: none; visibility: visible; }
	.fh-nav__list { flex-direction: column; gap: 0; border-top: 1px solid var(--color-line-default); }
	.fh-nav__list a,
	.fh-nav__list > li > button.fh-nav__btn { display: block; width: 100%; padding: 18px 0; font-size: 20px; line-height: 26px; border-bottom: 1px solid var(--color-line-default); }
	.fh-nav__drawer-extra { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
	.fh-nav__drawer-extra a { font: 400 16px/24px var(--font-heading); }
	body.fh.fh-menu-open { overflow: hidden; }
}
@media (max-width: 767px) {
	.fh-header { padding-top: 0; }
	.fh-header__actions { gap: 8px; }
	.fh-header__actions .fh-btn--sm { display: none; }
	.fh-nav { inset: var(--rt-subnav-top, 80px) 0 0 0; }
}

/* ---------- Footer ---------- */
.fh-footer { background: var(--color-brand-navy-deep); color: #fff; overflow: hidden; }
.fh-footer__inner {
	max-width: 1440px; margin: 0 auto; padding: 112px 96px 40px;
	display: flex; flex-direction: column;
}
/* Brand row metrics match home.css: 25px Poppins Light, 3.4px baseline offset. */
.fh-footer__brand { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 40px; }
.fh-footer__logo { display: block; height: 32px; flex: none; }
.fh-footer__logo img { width: 164px; height: 32px; }
.fh-footer__tagline { margin: 0; padding-bottom: 3.4px; font: 300 25px/1 var(--font-heading); text-align: right; color: #fff; flex: 1 1 auto; min-width: 0; }
.fh-footer__main { display: flex; gap: 24px; padding-top: 48px; border-top: 1px solid rgba(255, 255, 255, .12); margin-bottom: 80px; }
.fh-footer__col { display: flex; flex-direction: column; gap: 14px; width: 180px; flex: 0 0 180px; }
.fh-footer__col a { font: 400 14px/normal var(--font-body); color: #fff; white-space: nowrap; }
.fh-footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fh-footer__col--brand { gap: 28px; width: 220px; flex: 0 0 220px; }
.fh-footer__head { font: 500 11px/normal var(--font-heading); letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.fh-footer__office { display: flex; flex-direction: column; gap: 14px; }
.fh-footer__office address { font: 400 14px/21px var(--font-body); font-style: normal; width: auto; }
@media (min-width: 1280px) {
	.fh-footer__hours { white-space: nowrap; }
}
.fh-footer__contact, .fh-footer__hours { font: 400 14px/21px var(--font-body); color: rgba(255, 255, 255, .85); margin: 0; }
.fh-footer__contact a { color: inherit; }
.fh-footer__contact a:hover { color: #fff; }
.fh-footer__social { display: flex; gap: 10px; }
.fh-footer__social a { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 20px; }
.fh-footer__social a::after { content: ""; position: absolute; inset: -12px 0; } /* 44px tap target */
.fh-footer__social img { width: 20px; height: 20px; }
.fh-footer__bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; font: 400 12px/normal var(--font-body); color: rgba(255, 255, 255, .5); }
.fh-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.fh-footer__bottom a:hover { color: #fff; }

@media (max-width: 1279px) {
	.fh-footer__inner { padding-left: var(--grid-margin); padding-right: var(--grid-margin); }
	.fh-footer__main { flex-wrap: wrap; row-gap: 40px; }
	.fh-footer__col { flex: 0 0 calc((100% - 48px) / 3); width: auto; }
}
@media (max-width: 767px) {
	.fh-footer__inner { padding-top: 80px; }
	.fh-footer__brand { flex-direction: column; align-items: flex-start; gap: 16px; }
	.fh-footer__tagline { text-align: left; padding-bottom: 0; }
	.fh-footer__main { column-gap: 16px; margin-bottom: 48px; }
	.fh-footer__col { flex: 0 0 calc((100% - 16px) / 2); }
	.fh-footer__col--brand { flex-basis: 100%; }
	.fh-footer__bottom { flex-direction: column; }
	.fh-footer__bottom ul { flex-wrap: wrap; gap: 12px 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.fh *, .fh *::before, .fh *::after { transition: none !important; animation: none !important; }
	.fh-nav__sub > li, .fh-login__menu > li { opacity: 1 !important; transform: none !important; }
}
