/**
 * TLG facelift — purely visual layer on top of Astra + the child theme styles.
 *
 * Concept: an editorial, architectural look for a land & commercial real estate firm.
 * Caslon serif headings (echoing the TLG logo), Public Sans for text, brand navy with green used
 * only as a fine accent rule, warm "limestone" neutrals, and a topographic contour motif
 * (assets/img/topo-*.svg) as a nod to TLG's land-development roots.
 */

:root {
	--tlg-navy: #213e7e;
	--tlg-navy-deep: #16295a;
	--tlg-ink: #1f2633;
	--tlg-text: #3d4554;
	--tlg-muted: #7b8496;
	--tlg-green: #00853e;
	--tlg-stone: #f5f2ec;
	--tlg-stone-line: #e4ded2;
	--tlg-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
	--tlg-sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
	--tlg-ease: cubic-bezier(.2, .7, .2, 1);
	--tlg-topo-light: url("../img/topo-light.svg");
	--tlg-topo-dark: url("../img/topo-dark.svg");
}

/* ---------------------------------------------------------------- Type */

body,
button,
input,
select,
textarea {
	font-family: var(--tlg-sans);
	color: var(--tlg-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.entry-content :is(h1, h2, h3, h4),
.wp-block-spectra-content:is(h1, h2, h3) {
	font-family: var(--tlg-serif);
	font-weight: 400;
	color: var(--tlg-ink);
	letter-spacing: -0.005em;
	text-wrap: balance;
}

::selection {
	background: var(--tlg-navy);
	color: #fff;
}

/* ---------------------------------------------------------------- Header */

#masthead {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 999;
}

/* Top bar: deep navy strip */
.ast-above-header-bar {
	background: var(--tlg-navy-deep) !important;
	border: 0 !important;
	transition: margin-top .35s var(--tlg-ease);
}

.ast-above-header-bar .ast-header-html,
.ast-above-header-bar .ast-header-html a {
	color: rgba(255, 255, 255, .78) !important;
	font-size: 12.5px;
	letter-spacing: .04em;
}

.ast-above-header-bar .ast-header-html a:hover {
	color: #fff !important;
}

.ast-above-header-bar .ast-header-html a[style*="00853E"],
.ast-above-header-bar .ast-header-html a[href*="/news/"] {
	color: #7fd3a6 !important;
}

.ast-above-header-bar .ast-header-html img[alt="TALREX"] {
	filter: brightness(0) invert(1);
	opacity: .85;
}

.ast-above-header-bar .ast-builder-social-element svg {
	fill: rgba(255, 255, 255, .78) !important;
	transition: fill .2s;
}

.ast-above-header-bar .ast-builder-social-element:hover svg {
	fill: #fff !important;
}

/* Main bar: white, hairline, compacts on scroll */
.ast-primary-header-bar {
	background: rgba(255, 255, 255, .97) !important;
	border-bottom: 1px solid rgba(33, 62, 126, .1) !important;
	transition: box-shadow .35s var(--tlg-ease);
}

.ast-primary-header-bar .site-primary-header-wrap,
.main-header-menu > .menu-item,
.main-header-menu > .menu-item > .menu-link {
	transition: min-height .35s var(--tlg-ease), line-height .35s var(--tlg-ease), color .2s;
}

.custom-logo-link img {
	transition: width .35s var(--tlg-ease), max-width .35s var(--tlg-ease);
}

body.tlg-scrolled .ast-primary-header-bar {
	box-shadow: 0 10px 30px -18px rgba(22, 41, 90, .45);
}

@media (min-width: 922px) {
	body.tlg-scrolled .ast-above-header-bar {
		margin-top: -42px;
	}

	body.tlg-scrolled .ast-primary-header-bar .site-primary-header-wrap {
		min-height: 74px !important;
	}

	body.tlg-scrolled .main-header-menu > .menu-item,
	body.tlg-scrolled .main-header-menu > .menu-item > .menu-link {
		line-height: 74px !important;
	}

	body.tlg-scrolled .custom-logo-link img {
		width: 128px !important;
		max-width: 128px !important;
	}
}

/* Primary navigation: small tracked caps with a drawn green rule */
.main-header-menu > .menu-item > .menu-link {
	position: relative;
	font-family: var(--tlg-sans);
	font-size: 12.5px !important;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tlg-ink) !important;
}

.main-header-menu > .menu-item > .menu-link::after {
	content: "";
	position: absolute;
	left: 1em;
	right: 1em;
	bottom: calc(50% - 1.15em);
	height: 2px;
	background: var(--tlg-green);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--tlg-ease);
}

.main-header-menu > .menu-item:hover > .menu-link::after,
.main-header-menu > .menu-item.current-menu-item > .menu-link::after {
	transform: scaleX(1);
}

.main-header-menu > .menu-item:hover > .menu-link,
.main-header-menu > .current-menu-item > .menu-link,
.main-header-menu > .current-menu-ancestor > .menu-link {
	color: var(--tlg-navy) !important;
}

/* Dropdowns: crisp panel with navy top edge */
.ast-desktop .main-header-menu .sub-menu {
	padding: 8px 0;
	border: 0 !important;
	border-top: 2px solid var(--tlg-navy) !important;
	box-shadow: 0 18px 40px -20px rgba(22, 41, 90, .45) !important;
}

.ast-desktop .main-header-menu .sub-menu .menu-link {
	padding: 9px 22px !important;
	font-size: 14px;
	color: var(--tlg-text) !important;
	transition: color .2s, padding-left .25s var(--tlg-ease);
}

.ast-desktop .main-header-menu .sub-menu .menu-link:hover {
	padding-left: 28px !important;
	color: var(--tlg-navy) !important;
	background: var(--tlg-stone) !important;
}

/* ---------------------------------------------------------------- Buttons */

.wp-block-spectra-button,
.tlg-agent-listings,
.tlg-agent-contact .frm_button_submit {
	position: relative;
	font-family: var(--tlg-sans) !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	transition: background-color .25s, color .25s, padding .3s var(--tlg-ease), box-shadow .25s !important;
}

.wp-block-spectra-button::after,
.tlg-agent-listings::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 10px;
	margin-left: 12px;
	vertical-align: 1px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M9 0l5 5-5 5-1-1 3.3-3.3H0V4.3h11.3L8 1z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M9 0l5 5-5 5-1-1 3.3-3.3H0V4.3h11.3L8 1z'/%3E%3C/svg%3E") no-repeat center / contain;
	transition: transform .3s var(--tlg-ease);
}

.wp-block-spectra-button:hover::after,
.tlg-agent-listings:hover::after {
	transform: translateX(4px);
}

/* ---------------------------------------------------------------- Home: hero + mission */

.tlg-home-hero {
	position: relative;
	height: clamp(380px, 62vh, 640px);
	overflow: hidden;
	background: var(--tlg-navy-deep);
}

.tlg-home-hero img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: 35% 45%;
	transform-origin: 30% 40%;
	animation: tlg-push-in 38s ease-out both;
}

.tlg-home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(22, 41, 90, .28) 0%, rgba(22, 41, 90, 0) 28%),
		linear-gradient(0deg, rgba(14, 26, 58, .75) 0%, rgba(14, 26, 58, 0) 46%);
	pointer-events: none;
}

@keyframes tlg-push-in {
	from { transform: scale(1.12); }
	to { transform: scale(1); }
}

/* Mission panel lifts over the skyline */
.tlg-home-mission.alignfull {
	position: relative;
	z-index: 2;
	width: min(1080px, calc(100% - 40px)) !important;
	max-width: 1080px !important;
	margin: -150px auto 0 !important;
	padding: 64px clamp(24px, 6vw, 80px) 60px !important;
	background-color: var(--tlg-navy) !important;
	background-image: var(--tlg-topo-light), linear-gradient(135deg, var(--tlg-navy) 0%, var(--tlg-navy-deep) 100%) !important;
	background-size: 1400px auto, cover !important;
	background-position: 70% 40%, center !important;
	box-shadow: 0 40px 80px -40px rgba(14, 26, 58, .7);
}

.tlg-home-mission.alignfull::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 72px;
	height: 3px;
	background: var(--tlg-green);
	transform: translateX(-50%);
}

.tlg-home-mission h2 {
	font-size: clamp(28px, 3.4vw, 42px) !important;
	line-height: 1.15;
	color: #fff !important;
}

.tlg-home-mission .tlg-home-mission-text {
	font-size: 17px !important;
	line-height: 1.75 !important;
	color: rgba(255, 255, 255, .86) !important;
}

/* ---------------------------------------------------------------- Section headings */

/* A short green rule marks the start of each section */
.tlg-home-agents > h2,
.tlg-col-main > h2,
.tlg-agent-section > h2,
.tlg-sidebar-box > h3,
.tlg-facebook > h3,
.tlg-col-side > h2 {
	position: relative;
	padding-top: 18px;
}

.tlg-home-agents > h2::before,
.tlg-col-main > h2::before,
.tlg-agent-section > h2::before,
.tlg-sidebar-box > h3::before,
.tlg-facebook > h3::before,
.tlg-col-side > h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background: var(--tlg-green);
}

.tlg-home-agents > h2 {
	margin-top: 40px;
	font-size: clamp(30px, 3vw, 40px);
}

.tlg-home-agents > h2::before {
	left: 50%;
	transform: translateX(-50%);
}

.tlg-page-title {
	font-family: var(--tlg-serif) !important;
	font-size: clamp(34px, 4vw, 52px) !important;
	line-height: 1.1;
	color: var(--tlg-ink) !important;
}

.tlg-col-main > h2,
.tlg-agent-section > h2 {
	margin-top: 26px;
	font-size: clamp(23px, 2.2vw, 28px) !important;
}

.tlg-col-main p,
.tlg-col-main li,
.tlg-agent-about {
	font-size: 16.5px;
	line-height: 1.8;
}

/* Lead paragraph after the first section heading */
.tlg-col-main > h2:first-of-type + p {
	font-size: 19px;
	line-height: 1.7;
	color: var(--tlg-ink);
}

.tlg-col-main ul.wp-block-list,
.tlg-col-main ol.wp-block-list {
	margin-left: 0;
	padding-left: 0;
	list-style: none;
	counter-reset: tlg-list;
}

.tlg-col-main .wp-block-list li {
	position: relative;
	padding: 6px 0 6px 30px;
	border-bottom: 1px solid var(--tlg-stone-line);
}

.tlg-col-main ul.wp-block-list li::before {
	content: "";
	position: absolute;
	top: 1.15em;
	left: 4px;
	width: 7px;
	height: 7px;
	background: var(--tlg-green);
	transform: rotate(45deg);
}

.tlg-col-main ol.wp-block-list li {
	counter-increment: tlg-list;
}

.tlg-col-main ol.wp-block-list li::before {
	content: counter(tlg-list, decimal-leading-zero);
	position: absolute;
	top: 8px;
	left: 0;
	font-family: var(--tlg-serif);
	font-size: 13px;
	color: var(--tlg-green);
}

/* ---------------------------------------------------------------- Page banners */

.tlg-page-banner {
	position: relative;
	height: clamp(220px, 30vw, 400px);
	overflow: hidden;
	background: var(--tlg-navy-deep);
}

.tlg-page-banner img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transform: translateY(var(--tlg-parallax, 0px)) scale(1.08);
	will-change: transform;
}

.tlg-page-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(14, 26, 58, .55) 0%, rgba(14, 26, 58, 0) 55%);
	pointer-events: none;
}

/* ---------------------------------------------------------------- CTA boxes */

.tlg-cta {
	position: relative;
	padding: 40px 40px 44px !important;
	border: 0 !important;
	background-color: var(--tlg-navy) !important;
	background-image: var(--tlg-topo-light), linear-gradient(135deg, var(--tlg-navy) 0%, var(--tlg-navy-deep) 100%) !important;
	background-size: 1100px auto, cover !important;
	background-position: 20% 30%, center !important;
	color: rgba(255, 255, 255, .86);
}

.tlg-cta::before {
	content: "";
	position: absolute;
	top: 0;
	left: 40px;
	width: 56px;
	height: 3px;
	background: var(--tlg-green);
}

.tlg-cta h3,
.tlg-cta .wp-block-spectra-content {
	color: #fff !important;
	font-size: clamp(24px, 2.4vw, 30px) !important;
}

.tlg-cta p {
	color: rgba(255, 255, 255, .86) !important;
}

.tlg-cta .wp-block-spectra-button {
	background-color: #fff !important;
	color: var(--tlg-navy) !important;
}

.tlg-cta .wp-block-spectra-button:hover {
	background-color: var(--tlg-green) !important;
	color: #fff !important;
}

/* ---------------------------------------------------------------- Sidebars */

.tlg-sidebar-box {
	position: relative;
	background: var(--tlg-stone) !important;
	border-top: 1px solid var(--tlg-stone-line);
}

.tlg-sidebar-box h3 {
	font-size: 21px !important;
	color: var(--tlg-ink) !important;
}

.tlg-sidebar-box a {
	color: var(--tlg-navy);
	text-decoration-color: rgba(33, 62, 126, .3);
	text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- Testimonials */

.tlg-testimonial {
	position: relative;
	padding: 26px 0 26px 0 !important;
	border-bottom: 1px solid var(--tlg-stone-line) !important;
}

.tlg-testimonial::before {
	content: "\201C";
	position: absolute;
	top: 6px;
	right: 0;
	font-family: var(--tlg-serif);
	font-size: 96px;
	line-height: 1;
	color: var(--tlg-stone-line);
	pointer-events: none;
}

.tlg-testimonial-photo img {
	box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--tlg-stone-line);
}

.tlg-testimonial-quote {
	font-family: var(--tlg-serif);
	font-size: 16px !important;
	line-height: 1.7 !important;
	color: var(--tlg-ink) !important;
}

.tlg-testimonial-cite {
	font-size: 13px !important;
	letter-spacing: .02em;
}

/* ---------------------------------------------------------------- Images in content */

.tlg-rounded {
	overflow: hidden;
}

.tlg-rounded img {
	border-radius: 0 !important;
	transition: transform 1.2s var(--tlg-ease);
}

.tlg-rounded:hover img {
	transform: scale(1.04);
}

.tlg-rounded figcaption {
	margin-top: 10px;
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-align: left !important;
	color: var(--tlg-muted);
}

/* ---------------------------------------------------------------- Featured agents (home + staff) */

.tlg-agent-card {
	position: relative;
	padding: 0 0 26px !important;
	background: #fff;
	transition: transform .5s var(--tlg-ease), box-shadow .5s var(--tlg-ease);
}

.tlg-agent-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 30px 50px -34px rgba(22, 41, 90, .55);
}

.tlg-agent-photo {
	overflow: hidden;
	background: var(--tlg-stone);
}

.tlg-agent-photo img {
	border-bottom: 0 !important;
	transition: transform 1.2s var(--tlg-ease), filter .6s;
	filter: saturate(.92);
}

.tlg-agent-card:hover .tlg-agent-photo img {
	transform: scale(1.045);
	filter: saturate(1.05);
}

.tlg-agent-photo::after {
	content: "";
	display: block;
	height: 3px;
	background: linear-gradient(90deg, var(--tlg-green) 0 64px, var(--tlg-navy) 64px);
}

.tlg-agent-card > :not(.tlg-agent-photo) {
	padding-left: 4px;
	padding-right: 4px;
}

.tlg-agent-name {
	margin-top: 18px !important;
	font-family: var(--tlg-serif) !important;
	font-size: 23px !important;
}

.tlg-agent-name a {
	color: var(--tlg-ink) !important;
}

.tlg-agent-position {
	margin-bottom: 10px !important;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tlg-green) !important;
}

.tlg-agent-phone,
.tlg-agent-mobile,
.tlg-agent-email {
	font-size: 14.5px;
	font-variant-numeric: tabular-nums;
}

.tlg-agent-phone::before,
.tlg-agent-mobile::before {
	display: inline-block;
	min-width: 62px;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tlg-muted);
}

.tlg-agent-specialty {
	margin-top: 14px !important;
	padding-top: 14px;
	border-top: 1px solid var(--tlg-stone-line);
	font-family: var(--tlg-serif);
	font-style: italic;
	font-size: 15px;
	line-height: 1.6;
	color: var(--tlg-text);
}

.tlg-agent-listings {
	margin-top: 18px !important;
	padding: 11px 20px !important;
	background: transparent !important;
	color: var(--tlg-navy) !important;
	box-shadow: inset 0 0 0 1px var(--tlg-navy);
}

.tlg-agent-listings:hover {
	background: var(--tlg-navy) !important;
	color: #fff !important;
}

/* Home "View all" buttons sit on a quiet stone band */
.tlg-home-agents > .wp-block-spectra-buttons {
	margin-top: 20px;
}

/* ---------------------------------------------------------------- Single agent page */

.tlg-agent-subtitle {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tlg-green) !important;
}

.tlg-agent-subtitle a {
	color: var(--tlg-navy);
	text-transform: none;
	letter-spacing: .02em;
	font-weight: 500;
	font-size: 14px;
}

.tlg-agent-profile-photo {
	position: relative;
}

.tlg-agent-profile-photo::before {
	content: "";
	position: absolute;
	inset: 14px -14px -14px 14px;
	background-image: var(--tlg-topo-dark);
	background-size: 900px auto;
	opacity: .14;
	z-index: -1;
}

.tlg-agent-profile-photo img {
	border-bottom: 0 !important;
	box-shadow: 0 30px 50px -36px rgba(22, 41, 90, .6);
}

.tlg-agent-details {
	padding: 30px;
	background: var(--tlg-stone);
	border-top: 3px solid var(--tlg-navy);
}

.tlg-agent-page .tlg-agent-details-title {
	margin: 0 0 14px !important;
	padding: 0 !important;
	background: none !important;
	font-family: var(--tlg-sans) !important;
	font-size: 11.5px !important;
	font-weight: 600 !important;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--tlg-muted) !important;
}

.tlg-agent-details-name {
	font-family: var(--tlg-serif);
	font-size: 24px !important;
	color: var(--tlg-ink) !important;
}

.tlg-agent-details-list li::before {
	background-color: var(--tlg-green) !important;
}

/* ---------------------------------------------------------------- Property management listings */

.tlg-listing-item {
	gap: 36px !important;
	padding: 36px 0 !important;
	border-bottom-color: var(--tlg-stone-line) !important;
}

.tlg-listing-media {
	overflow: hidden;
	align-self: flex-start;
	box-shadow: 0 24px 40px -30px rgba(22, 41, 90, .55);
}

.tlg-listing-media img {
	transition: transform 1.2s var(--tlg-ease);
}

.tlg-listing-item:hover .tlg-listing-media img {
	transform: scale(1.05);
}

.tlg-listing-title {
	font-family: var(--tlg-serif) !important;
	font-size: clamp(22px, 2vw, 27px) !important;
}

.tlg-listing-subtitle {
	font-size: 12px;
	font-weight: 600 !important;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tlg-green) !important;
}

.tlg-listing-contacts {
	border-top-color: var(--tlg-stone-line) !important;
	font-size: 14.5px;
}

/* ---------------------------------------------------------------- Forms */

.frm_forms input[type="text"],
.frm_forms input[type="email"],
.frm_forms input[type="tel"],
.frm_forms input[type="url"],
.frm_forms textarea {
	border: 0 !important;
	border-bottom: 1px solid #c9cfda !important;
	border-radius: 0 !important;
	background: var(--tlg-stone) !important;
	box-shadow: none !important;
	transition: border-color .25s, background-color .25s;
}

.frm_forms input:focus,
.frm_forms textarea:focus {
	border-bottom-color: var(--tlg-navy) !important;
	background: #fff !important;
	outline: none;
}

.frm_forms .frm_primary_label {
	font-size: 11.5px !important;
	font-weight: 600 !important;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tlg-muted) !important;
}

/* ---------------------------------------------------------------- Footer */

.site-primary-footer-wrap {
	position: relative;
	background-color: #121b31 !important;
	background-image: var(--tlg-topo-light) !important;
	background-size: 1600px auto !important;
	background-position: 30% 20% !important;
	border-top: 3px solid var(--tlg-navy) !important;
}

.site-below-footer-wrap {
	background: #0d1426 !important;
	border-top: 1px solid rgba(255, 255, 255, .06) !important;
}

.site-footer .widget-title {
	font-family: var(--tlg-serif) !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #fff !important;
}

.site-footer .footer-widget-area {
	line-height: 1.75;
}

.tlg-member-logos img,
.site-footer img[alt="BOMA"] {
	filter: grayscale(1) contrast(1.05);
	opacity: .75;
	transition: filter .4s, opacity .4s;
}

.tlg-member-logos img:hover,
.site-footer img[alt="BOMA"]:hover {
	filter: none;
	opacity: 1;
}

#astra-footer-menu .menu-link,
.ast-footer-copyright {
	font-size: 12.5px !important;
	letter-spacing: .04em;
}

/* ---------------------------------------------------------------- Blog index & single posts */

.blog .ast-article-post,
.archive .ast-article-post {
	border-bottom: 1px solid var(--tlg-stone-line);
}

.blog .entry-title a,
.archive .entry-title a,
.single-post .entry-title {
	font-family: var(--tlg-serif);
	color: var(--tlg-ink);
}

.blog .entry-meta,
.single-post .entry-meta {
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tlg-muted);
}

/* ---------------------------------------------------------------- Scroll reveal (JS adds .tlg-reveal) */

.tlg-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .9s var(--tlg-ease), transform .9s var(--tlg-ease);
	transition-delay: var(--tlg-delay, 0ms);
}

.tlg-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 921px) {
	.tlg-home-mission.alignfull {
		margin-top: -70px !important;
		padding: 44px 26px 42px !important;
	}

	.tlg-cta {
		padding: 34px 26px 36px !important;
	}

	.tlg-cta::before {
		left: 26px;
	}

	.tlg-agent-profile-photo::before {
		display: none;
	}
}

@media (max-width: 544px) {
	.tlg-home-hero {
		height: 300px;
	}

	.tlg-home-mission.alignfull {
		width: calc(100% - 24px) !important;
		margin-top: -48px !important;
	}

	.tlg-agent-details {
		padding: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tlg-home-hero img {
		animation: none;
	}

	.tlg-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.tlg-page-banner img {
		transform: none;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
	}
}

/* Footer refinements */
.site-footer .widget-title {
	font-size: 15px !important;
	letter-spacing: .08em !important;
}

.site-footer img[alt="BOMA"] {
	filter: brightness(0) invert(1);
	opacity: .7;
}

.site-footer img[alt="BOMA"]:hover {
	filter: brightness(0) invert(1);
	opacity: 1;
}

/* Page banners: keep the 2000x350 source strips at native proportion (no upscaling),
   unified with a navy grade and the contour motif. */
.tlg-page-banner {
	height: clamp(170px, 18vw, 340px);
}

.tlg-page-banner img {
	transform: translateY(var(--tlg-parallax, 0px)) scale(1.04);
	filter: saturate(.85) contrast(1.04);
}

.tlg-page-banner::after {
	background:
		var(--tlg-topo-light) 60% 40% / 1500px auto no-repeat,
		linear-gradient(90deg, rgba(22, 41, 90, .55) 0%, rgba(22, 41, 90, .12) 55%, rgba(22, 41, 90, .35) 100%),
		linear-gradient(0deg, rgba(14, 26, 58, .5) 0%, rgba(14, 26, 58, 0) 60%);
}

/* Astra's own page titles (Contact Us, Our Properties, Our People, News...) match .tlg-page-title */
.entry-header .entry-title,
.ast-archive-description .ast-archive-title {
	font-family: var(--tlg-serif) !important;
	font-weight: 400 !important;
	font-size: clamp(34px, 4vw, 52px) !important;
	line-height: 1.1;
	color: var(--tlg-ink) !important;
}

.blog .ast-article-post .entry-title,
.archive .ast-article-post .entry-title {
	font-size: clamp(20px, 1.8vw, 24px) !important;
}

/* Blog index: warm limestone ground, square editorial cards */
body.blog,
body.archive,
body.blog .site-content,
body.archive .site-content {
	background-color: var(--tlg-stone) !important;
}

.blog .ast-article-post .ast-article-inner,
.archive .ast-article-post .ast-article-inner,
.blog .ast-article-post .post-content,
.archive .ast-article-post .post-content {
	border-radius: 0 !important;
	box-shadow: none !important;
}

.blog .ast-article-post .ast-article-inner,
.archive .ast-article-post .ast-article-inner {
	background: #fff;
	border-bottom: 3px solid transparent;
	transition: transform .5s var(--tlg-ease), box-shadow .5s var(--tlg-ease), border-color .3s;
}

.blog .ast-article-post .ast-article-inner:hover,
.archive .ast-article-post .ast-article-inner:hover {
	transform: translateY(-4px);
	border-bottom-color: var(--tlg-green);
	box-shadow: 0 26px 44px -32px rgba(22, 41, 90, .5) !important;
}

.blog .post-thumb-img-content,
.archive .post-thumb-img-content {
	overflow: hidden;
}

.blog .post-thumb-img-content img,
.archive .post-thumb-img-content img {
	border-radius: 0 !important;
	transition: transform 1.2s var(--tlg-ease);
}

.blog .ast-article-inner:hover .post-thumb-img-content img,
.archive .ast-article-inner:hover .post-thumb-img-content img {
	transform: scale(1.05);
}

.blog .ast-taxonomy-container a,
.archive .ast-taxonomy-container a,
.blog .cat-links a,
.archive .cat-links a {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tlg-green) !important;
}

@media (max-width: 544px) {
	.tlg-agent-subtitle .tlg-sep {
		display: none;
	}

	.tlg-agent-subtitle a {
		display: block;
		margin-top: 4px;
	}
}

/* Banner parallax: the photo is taller than its frame so the drift never exposes the background */
.tlg-page-banner img {
	position: absolute;
	top: -48px;
	left: 0;
	height: calc(100% + 96px) !important;
	transform: translateY(var(--tlg-parallax, 0px));
}

/* Notice panels (e.g. Contact Us office move) */
.tlg-notice {
	padding: 28px 32px !important;
	background: var(--tlg-stone);
	border-left: 3px solid var(--tlg-green);
}

.tlg-notice h2 {
	margin: 0 0 8px;
	font-size: clamp(22px, 2.2vw, 28px);
}

.tlg-notice p {
	margin: 0;
}

/* Staff page title sits left like other page titles */
.tlg-staff > .tlg-page-title {
	align-self: flex-start;
}

/* Member logos: one flowing row (BOMA sits beside ULI) */
.tlg-member-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.tlg-member-logos img {
	margin: 0 !important;
}

/* Footer social icons under the Contact Us details */
.site-primary-footer-wrap [data-section="section-fb-social-icons-1"] {
	margin-top: 14px;
}

/* Copyright credit on one line on desktop */
@media (min-width: 922px) {
	.ast-footer-copyright p,
	.ast-footer-copyright {
		white-space: nowrap;
	}
}

/* ---------------------------------------------------------------- 404 page */

.tlg-404 {
	width: 100%;
	padding: clamp(70px, 10vw, 130px) 20px clamp(60px, 8vw, 100px);
	background-color: var(--tlg-navy-deep);
	background-image: var(--tlg-topo-light), linear-gradient(135deg, var(--tlg-navy) 0%, #121b31 100%);
	background-size: 1600px auto, cover;
	background-position: 55% 45%, center;
	color: rgba(255, 255, 255, .86);
	text-align: center;
}

.tlg-404-inner {
	max-width: 720px;
	margin: 0 auto;
}

.tlg-404-code {
	margin: 0;
	font-family: var(--tlg-serif);
	font-size: clamp(110px, 18vw, 200px);
	line-height: .9;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, .55);
	letter-spacing: .02em;
}

.tlg-404-title {
	position: relative;
	margin: 26px 0 14px;
	padding-top: 22px;
	font-size: clamp(28px, 3.4vw, 42px) !important;
	color: #fff !important;
}

.tlg-404-title::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 56px;
	height: 3px;
	background: var(--tlg-green);
	transform: translateX(-50%);
}

.tlg-404-lead {
	margin: 0 auto 30px;
	max-width: 560px;
	font-size: 17px;
	line-height: 1.7;
}

.tlg-404-wrap {
	width: 100%;
}

.tlg-404-form {
	display: flex;
	max-width: 480px;
	margin: 0 auto;
}

.tlg-404-form input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 50px;
	padding: 0 18px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--tlg-ink);
	font-size: 16px;
}

.tlg-404-form button {
	height: 50px;
	padding: 0 24px;
	border: 0;
	border-radius: 0;
	background: var(--tlg-green);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
}

.tlg-404-form button:hover {
	background: #006b32;
}

.tlg-404-links {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 56px 20px 70px;
}

.tlg-404-links ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--tlg-stone-line);
}

.tlg-404-links li {
	margin: 0;
	border-bottom: 1px solid var(--tlg-stone-line);
}

.tlg-404-links a {
	display: block;
	padding: 22px 24px 22px 0;
	text-decoration: none;
	transition: padding-left .3s var(--tlg-ease), background-color .3s;
}

.tlg-404-links a:hover {
	padding-left: 14px;
	background: var(--tlg-stone);
}

.tlg-404-link-title {
	display: block;
	font-family: var(--tlg-serif);
	font-size: 21px;
	color: var(--tlg-ink);
}

.tlg-404-link-desc {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	color: var(--tlg-muted);
}

.tlg-404-call {
	margin: 30px 0 0;
	text-align: center;
	font-size: 15px;
}

.tlg-404-links ul {
	grid-template-columns: repeat(3, 1fr);
}

.tlg-404-links .tlg-404-call a {
	display: inline;
	padding: 0;
	font-weight: 600;
	color: var(--tlg-navy);
}

.tlg-404-links .tlg-404-call a:hover {
	padding: 0;
	background: none;
	text-decoration: underline;
}

@media (max-width: 921px) {
	.tlg-404-links ul {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 544px) {
	.tlg-404-links ul {
		grid-template-columns: 1fr;
	}
}

/* Default skyline banner: keep the Capitol tower in frame when the strip is cropped */
.tlg-page-banner--default img {
	object-position: 22% 0%;
}

.tlg-staff > .tlg-page-title {
	width: 100%;
	text-align: left !important;
}

/* Automatic header banners: anchor to the top so skylines keep their rooftops under the parallax drift */
.tlg-page-banner--auto img {
	object-position: 50% 0%;
}

.tlg-page-banner--auto.tlg-page-banner--default img {
	object-position: 22% 0%;
}
