/*
Theme Name: BL Dubai
Description: Custom lightweight theme for bldubai.com. Requires the BL Dubai Core plugin.
Author: GSPIKES
Version: 2.0.0
Requires PHP: 8.0
Text Domain: bldubai
*/

:root {
	--cream: #f6f1e4;
	--cream-2: #efe7d3;
	--ink: #121412;
	--ink-2: #1d1e1b;
	--ink-3: #2a2a26;
	--gold: #b8925a;
	--gold-2: #d6b98a;
	--gold-dark: #8f6d3d;
	--line: #d9ccae;
	--text: #2b2b27;
	--muted: #6d6a60;
	--white: #fff;
	--wa: #1fa855;
	--serif: "Lora", Georgia, "Times New Roman", serif;
	--sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 14px;
	--wrap: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 16px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1.1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; background: var(--ink); color: #fff; padding: 8px 14px; clip: auto; width: auto; height: auto; }
.eyebrow { font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; display: block; }
.lead { font-size: 1.12rem; color: var(--ink-3); }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: 600 .92rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: .2s; white-space: nowrap; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); color: #fff; }
.btn--ghost { border-color: var(--gold); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--gold); color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178a45; color: #fff; }
.btn--xs { padding: 7px 14px; font-size: .78rem; }
.btn--block { width: 100%; }
.on-dark .btn--ghost { color: #fff; }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__name { font: 700 1.5rem/1 var(--serif); letter-spacing: .14em; color: var(--ink); }
.brand__name span { color: var(--gold); }
.brand__tag { font: 500 .62rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; }
.nav a:hover, .nav .current-menu-item > a { color: var(--gold-dark); }
.header-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
@media (max-width: 1020px) {
	.nav-toggle { display: block; }
	.nav { position: fixed; inset: 76px 0 0 0; background: var(--cream); padding: 24px; transform: translateX(100%); transition: transform .25s; margin: 0; overflow-y: auto; }
	.nav.is-open { transform: none; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
	.header-cta { display: none; }
	.nav .header-cta--mobile { display: flex; margin-top: 20px; flex-direction: column; }
}
@media (min-width: 1021px) { .header-cta--mobile { display: none !important; } }

/* Hero */
.hero { background: var(--ink); color: #e9e3d4; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1000px 500px at 85% 20%, rgba(184,146,90,.18), transparent 60%); pointer-events: none; }
.hero__in { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; padding: 72px 0 64px; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { color: #cfc8b6; font-size: 1.1rem; max-width: 600px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(184,146,90,.35); margin-top: 40px; padding-top: 24px; gap: 16px; }
.hero__stat b { display: block; font: 700 1.9rem/1.1 var(--serif); color: var(--gold-2); }
.hero__stat span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #a39d8c; }
.agent-card { background: var(--ink-2); border: 1px solid rgba(184,146,90,.4); border-radius: var(--radius); overflow: hidden; }
.agent-card__photo { aspect-ratio: 4/5; background: linear-gradient(160deg, #26261f, #121412); display: grid; place-items: center; }
.agent-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.agent-card__mono { font: 700 3.4rem/1 var(--serif); color: var(--gold); letter-spacing: .1em; }
.agent-card__body { padding: 20px 22px 24px; }
.agent-card__name { font: 700 1.3rem/1.2 var(--serif); color: #fff; margin: 0; }
.agent-card__title { color: var(--gold-2); font-size: .85rem; margin: 4px 0 16px; }
.agent-card__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.agent-card__btns .btn { padding: 11px 10px; font-size: .82rem; }
@media (max-width: 900px) { .hero__in { grid-template-columns: 1fr; padding: 48px 0; } .hero__aside { max-width: 380px; } }

/* Sections */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--ink); color: #d8d1bf; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--white { background: #fff; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.section__head h2 { margin: 0; }
.section__head h2 small { font: italic 400 .9rem var(--sans); color: var(--muted); margin-left: 10px; }

/* Project cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.pcard { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid #ebe2cc; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(18,20,18,.1); color: inherit; }
.pcard__img { aspect-ratio: 3/2; background: var(--cream-2); position: relative; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--gold-2); font: 600 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; }
.pcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pcard__area { font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.pcard__title { font: 700 1.2rem/1.25 var(--serif); color: var(--ink); margin: 0 0 6px; }
.pcard__types { font-size: .86rem; color: var(--muted); margin: 0 0 14px; }
.pcard__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: end; border-top: 1px solid #efe7d6; padding-top: 12px; }
.pcard__price small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pcard__price b { font: 700 1.05rem var(--sans); color: var(--ink); }
.pcard__units { font-size: .8rem; color: var(--gold-dark); font-weight: 600; }

/* Area cards */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 24px 0; }
.area-card { display: flex; flex-direction: column; padding: 20px; background: #fff; border: 1px solid #ebe2cc; border-left: 3px solid var(--gold); border-radius: 10px; text-decoration: none; color: var(--ink); transition: .2s; }
.area-card:hover { background: var(--ink); color: #fff; }
.area-card__name { font: 700 1.05rem var(--serif); }
.area-card__count { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.area-card:hover .area-card__count { color: var(--gold-2); }

/* Project page */
.p-hero { position: relative; background: var(--ink); color: #fff; min-height: 460px; display: flex; align-items: end; }
.p-hero__img { position: absolute; inset: 0; }
.p-hero__img img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,20,18,.95) 0%, rgba(18,20,18,.15) 65%); }
.p-hero__in { position: relative; z-index: 1; padding: 120px 0 40px; width: min(var(--wrap), 100% - 40px); }
.p-hero h1 { color: #fff; margin-bottom: 10px; }
.p-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #ddd5c3; font-size: .95rem; }
.p-hero__meta b { color: var(--gold-2); font-weight: 600; }
.crumbs { font-size: .8rem; color: #bdb5a3; margin-bottom: 14px; }
.crumbs a { color: #e6dcc4; text-decoration: none; }
.crumbs--light { color: var(--muted); padding-top: 22px; }
.crumbs--light a { color: var(--gold-dark); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.layout__side { position: sticky; top: 100px; }
@media (max-width: 1020px) { .layout { grid-template-columns: 1fr; } .layout__side { position: static; } }

/* Availability strip (mirrors sales sheet design) */
.avail { border-top: 6px solid var(--gold); display: grid; grid-template-columns: 1fr 170px 1.6fr; background: #fff; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; margin: -30px 0 40px; position: relative; z-index: 2; box-shadow: 0 18px 40px rgba(18,20,18,.12); }
.avail__name { background: var(--ink); color: #fff; padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; border-bottom-left-radius: var(--radius); }
.avail__name .eyebrow { margin-bottom: 6px; }
.avail__name h2 { color: #fff; font-size: 1.35rem; margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.avail__name p { font-size: .82rem; color: #bdb5a3; margin: 4px 0 0; }
.avail__handover { border: 1px solid var(--gold); border-radius: 10px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.avail__handover small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.avail__handover b { font: 700 1.05rem var(--sans); color: #fff; }
.avail__count { background: linear-gradient(160deg, #26241f, #161714); color: #fff; text-align: center; display: flex; flex-direction: column; justify-content: center; padding: 20px 12px; }
.avail__count b { font: 700 2.6rem/1 var(--serif); color: var(--gold-2); }
.avail__count small { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #bdb5a3; margin: 8px 0 14px; display: block; }
.avail__count hr { width: 46px; border: 0; border-top: 2px solid var(--gold); margin: 0 auto 14px; }
.avail__count strong { font-size: 1.05rem; }
.avail__table { padding: 18px 22px; }
.avail__table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.avail__table th { font: 600 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); text-align: left; padding: 6px 6px 10px; border-bottom: 2px solid var(--line); }
.avail__table td { padding: 9px 6px; border-bottom: 1px solid #efe7d6; }
.avail__table td.num, .avail__table th.num { text-align: right; }
.avail__note { font-size: .74rem; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 860px) { .avail { grid-template-columns: 1fr; margin-top: 0; border-radius: var(--radius); } .avail__name { border-radius: 0; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 0 0 36px; }
.facts div { background: #fff; padding: 16px 18px; }
.facts small { display: block; font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.facts b { font-weight: 600; color: var(--ink); font-size: .95rem; }

.content { font-size: 1.02rem; }
.content h2 { margin-top: 1.6em; }
.content ul li { margin-bottom: .4em; }
.block { margin: 46px 0; }
.block > h2 { border-bottom: 1px solid var(--line); padding-bottom: 12px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery a { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 10px; background: var(--cream-2); }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 620px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.tabs__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs__nav button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 18px; font: 500 .86rem var(--sans); cursor: pointer; }
.tabs__nav button[aria-selected="true"] { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.tabs__panel { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid #ebe2cc; }
.tabs__panel[hidden] { display: none; }
.tabs__panel img { margin-inline: auto; max-height: 640px; width: auto; }

.amen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.amen figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.amen img { width: 100%; height: 100%; object-fit: cover; }
.amen figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(0deg, rgba(18,20,18,.85), transparent); color: #fff; font: 600 .9rem var(--serif); }
@media (max-width: 620px) { .amen { grid-template-columns: 1fr 1fr; } }

.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.dl { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #ebe2cc; border-radius: 10px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.dl:hover { border-color: var(--gold); color: var(--ink); }
.dl__icon { width: 38px; height: 38px; border-radius: 8px; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; font: 700 .62rem var(--sans); flex-shrink: 0; }
.dl small { display: block; color: var(--muted); font-size: .75rem; }
.dl--locked { opacity: .75; }

.map { border-radius: 12px; overflow: hidden; border: 1px solid #ebe2cc; aspect-ratio: 16/8; background: var(--cream-2); }
.map iframe { width: 100%; height: 100%; border: 0; }

.faq details { background: #fff; border: 1px solid #ebe2cc; border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font: 600 1rem var(--serif); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--gold); font: 400 1.4rem/1 var(--sans); }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details > div { padding: 0 20px 16px; color: var(--text); }

/* Side card */
.side-card { background: var(--ink); color: #d8d1bf; border-radius: var(--radius); overflow: hidden; }
.side-card__top { display: flex; gap: 14px; align-items: center; padding: 20px; border-bottom: 1px solid rgba(184,146,90,.3); }
.side-card__avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--ink-3); display: grid; place-items: center; font: 700 1.1rem var(--serif); color: var(--gold); flex-shrink: 0; border: 2px solid var(--gold); }
.side-card__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(3.4); transform-origin: 50% 9px; }
.side-card__name { font: 700 1.1rem var(--serif); color: #fff; margin: 0; }
.side-card__title { font-size: .78rem; color: var(--gold-2); margin: 2px 0 0; }
.side-card__body { padding: 20px; display: grid; gap: 10px; }
.side-card__body p { font-size: .88rem; margin: 0 0 6px; }
.side-card__body .btn { width: 100%; }

/* Inventory table */
.bl-inv__filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.bl-inv__filters select, .bl-inv__filters input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 400 .9rem var(--sans); min-width: 150px; }
.bl-inv__count { margin-left: auto; font-weight: 600; color: var(--gold-dark); font-size: .9rem; }
.bl-inv__scroll { overflow-x: auto; background: #fff; border-radius: 12px; border: 1px solid #ebe2cc; max-height: 720px; overflow-y: auto; }
.bl-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 760px; }
.bl-table th { position: sticky; top: 0; background: var(--ink); color: var(--gold-2); font: 600 .68rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-align: left; padding: 12px 10px; cursor: default; }
.bl-table th[data-sort] { cursor: pointer; }
.bl-table th.num { text-align: right; }
.bl-table td { padding: 10px; border-bottom: 1px solid #f0e9da; vertical-align: middle; }
.bl-table tbody tr:hover { background: #fbf8f0; }
.bl-table__view { max-width: 220px; font-size: .8rem; color: var(--muted); }
.bl-updated { font-size: .88rem; color: var(--muted); }

.bl-locked { text-align: center; background: var(--ink); color: #d8d1bf; border-radius: var(--radius); padding: 40px 28px; border: 1px solid rgba(184,146,90,.4); }
.bl-locked h3 { color: #fff; margin: 12px 0 8px; }
.bl-locked p { max-width: 540px; margin: 0 auto 22px; }
.bl-locked__icon { color: var(--gold); display: inline-flex; }
.bl-locked__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bl-locked .btn--ghost { color: #fff; }

/* Forms */
.bl-form { background: #fff; border: 1px solid #ebe2cc; border-radius: var(--radius); padding: 28px; }
.bl-form--narrow { max-width: 460px; }
.bl-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 20px; }
@media (max-width: 620px) { .bl-form__grid { grid-template-columns: 1fr; } }
.bl-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.bl-form__grid label { margin: 0; }
.bl-form input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: 400 1rem var(--sans); background: #fdfbf6; }
.bl-form input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.bl-form__note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.bl-hp { position: absolute; left: -9999px; }
.bl-alert { background: #fff; border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; }
.bl-alert ul { margin: 0; padding-left: 18px; }
.bl-alert--error { border-color: #b3402a; background: #fdf1ee; }
.bl-alert--ok { border-color: var(--wa); background: #eef9f1; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: var(--ink-2); border: 1px solid rgba(184,146,90,.3); border-radius: var(--radius); padding: 28px; }
.step::before { counter-increment: s; content: "0" counter(s); font: 700 2rem var(--serif); color: var(--gold); display: block; margin-bottom: 14px; }
.step h3 { color: #fff; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Archive filter bar */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.filterbar select, .filterbar input { padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 400 .9rem var(--sans); }

/* Posts */
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid #ebe2cc; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.post-card__img { aspect-ratio: 16/9; background: var(--ink); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px; }
.post-card h3 { margin-bottom: 8px; }
.article { max-width: 780px; margin-inline: auto; }
.article .content img { border-radius: 12px; }
.article .content table { width: 100%; border-collapse: collapse; background: #fff; margin-bottom: 1.4em; font-size: .92rem; }
.article .content th, .article .content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.article .content th { background: var(--ink); color: var(--gold-2); }
.article .content blockquote { border-left: 3px solid var(--gold); margin: 1.4em 0; padding: 6px 0 6px 20px; font-family: var(--serif); font-size: 1.1rem; }
.page-head { padding: 50px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.page-head p { max-width: 760px; }
.cta-band { background: var(--ink); border-radius: var(--radius); padding: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; color: #d8d1bf; margin: 50px 0; border: 1px solid rgba(184,146,90,.4); }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 1.5rem; }
.cta-band p { margin: 0; }
.cta-band__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--ink); color: #a39d8c; padding: 64px 0 28px; font-size: .9rem; border-top: 6px solid var(--gold); }
.site-footer a { color: #d8d1bf; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { color: var(--gold); font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid #2c2c27; margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .78rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 40px 0; }
.pagination .page-numbers { padding: 10px 15px; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--gold-2); }

.lightbox { position: fixed; inset: 0; background: rgba(10,10,9,.94); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 8px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; padding: 10px 18px; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 10px; top: 50%; }
.lightbox__next { right: 10px; top: 50%; }

/* ---------- v2: lead form, offer box, project summaries ---------- */
.lead-gate { position: fixed; inset: 0; z-index: 200; background: rgba(12,13,11,.82); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.lead-gate[hidden] { display: none; }
.lead-gate__box { background: var(--cream); border-top: 6px solid var(--gold); border-radius: var(--radius); padding: 34px 30px 26px; width: min(460px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.lead-gate__box .brand__name { font-size: 1.2rem; display: block; margin-bottom: 18px; }
.lead-gate__box h2 { font-size: 1.55rem; margin-bottom: 8px; }
.lead-gate__box > p { font-size: .92rem; color: var(--muted); }
.lead-gate__box label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.lead-gate__box input { padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; font: 400 1rem var(--sans); background: #fff; }
.lead-gate__box input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.lead-gate__error { background: #fdf1ee; border-left: 3px solid #b3402a; padding: 10px 12px; border-radius: 6px; font-size: .86rem; }
.lead-gate__note { font-size: .75rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
body.has-gate { overflow: hidden; }

.offer-box { background: #fff; border: 1px solid #ebe2cc; border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 22px 20px; margin-bottom: 18px; }
.offer-box h3 { font-size: 1.15rem; margin-bottom: 14px; }
.offer-box label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.offer-box select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font: 400 .95rem var(--sans); margin-bottom: 12px; background: #fdfbf6; }
.offer-box__note { font-size: .76rem; color: var(--muted); margin: 10px 0 0; }
.summary-link { margin-top: 14px; font-size: .9rem; text-align: center; }

.summary-list { display: grid; gap: 8px; margin-top: 24px; }
.summary-row { display: grid; grid-template-columns: 1.4fr 1fr .7fr 1fr; gap: 12px; align-items: center; background: #fff; border: 1px solid #ebe2cc; border-left: 3px solid var(--gold); border-radius: 10px; padding: 14px 18px; text-decoration: none; color: var(--text); font-size: .9rem; }
.summary-row strong { font-family: var(--serif); color: var(--ink); font-size: 1.02rem; }
.summary-row:hover { background: var(--ink); color: #d8d1bf; }
.summary-row:hover strong { color: #fff; }
@media (max-width: 720px) { .summary-row { grid-template-columns: 1fr 1fr; } }
.facts--summary { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .facts--summary { grid-template-columns: repeat(2, 1fr); } }
.points { list-style: none; padding: 0; }
.points li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid #ece3cf; }
.points li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 2px; background: var(--gold); }

/* ---------- Homepage agent card size (Nov 1, 2026) ---------- */
.hero__aside { width: 100%; max-width: 380px; justify-self: center; }

/* ---------- Agent headshot on Contact / About (Nov 1, 2026) ---------- */
.side-card--portrait .side-card__avatar { width: 88px; height: 88px; flex: 0 0 88px; }
.side-card--portrait .side-card__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: none; }

/* ---------- Mobile overflow fixes (Nov 1, 2026) ---------- */
/* Grid/flex children must be allowed to shrink, otherwise wide tables push the page sideways. */
.layout__main, .layout__side, .avail > *, .hero__in > *, .grid > * { min-width: 0; }
.avail { grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1.6fr); }
.avail__table, .bl-inv__scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.content table, .entry-content table, .summary table { max-width: 100%; }
img, iframe, video, embed { max-width: 100%; }
@media (max-width: 1020px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
	.avail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
	/* Tables inside written content scroll inside their own box on phones. */
	.content table, .entry-content table, .summary table, .avail__table table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
	.bl-table { min-width: 640px; }
	.content, .entry-content { overflow-wrap: anywhere; }
}
.btn { max-width: 100%; }
@media (max-width: 720px) { .btn { white-space: normal; text-align: center; line-height: 1.3; } }
/* Safety net: never let the page itself scroll sideways (clip keeps sticky elements working). */
html, body { max-width: 100%; overflow-x: clip; }

