/*
Theme Name: Loft Royal Oak Intelligence
Theme URI: https://loftroyaloak.com/
Author: Loft Royal Oak
Author URI: https://loftroyaloak.com/
Description: A mobile-first Royal Oak loft development directory and lead-generation theme for buyers, renters, sellers, and a featured local real estate professional.
Version: 1.1.4
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: loft-royal-oak
Tags: custom-logo, custom-menu, featured-images, one-column, two-columns, accessibility-ready, block-styles, wide-blocks
*/

:root {
  --ink: #131313;
  --ink-2: #1c1c1b;
  --ink-3: #262624;
  --paper: #f5f0e7;
  --paper-2: #ebe2d4;
  --white: #fffdf8;
  --copper: #b86f3a;
  --copper-dark: #7f4526;
  --gold: #d4a65c;
  --sage: #87927b;
  --line: rgba(255, 253, 248, .16);
  --line-dark: rgba(19, 19, 19, .16);
  --muted: #bdb7ad;
  --success: #305e45;
  --danger: #8c2f2f;
  --shadow: 0 20px 60px rgba(0, 0, 0, .16);
  --radius: 20px;
  --radius-sm: 10px;
  --max: 1240px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
a { color: var(--copper-dark); text-underline-offset: 3px; }
a:hover { color: var(--copper); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}
.skip-link:focus {
  clip: auto !important; clip-path: none; height: auto; width: auto;
  top: 10px; left: 10px; z-index: 10000; padding: 10px 14px; background: var(--white); color: var(--ink);
}

.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-sm { padding: 48px 0; }
.section-dark { color: var(--white); background: var(--ink); position: relative; overflow: hidden; }
.section-dark::after {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
}
.section-dark > * { position: relative; z-index: 1; }
.section-paper { background: var(--paper-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-weight: 800; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--copper);
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
h1, h2, h3, h4 { line-height: 1.08; margin: 0 0 .55em; letter-spacing: -.025em; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h1 { font-size: clamp(2.65rem, 7vw, 6.3rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.2em; }
.lead { font-size: clamp(1.12rem, 2.2vw, 1.42rem); line-height: 1.55; max-width: 760px; }
.micro { font-size: .82rem; line-height: 1.5; color: #6d675e; }
.text-muted { color: #746e65; }
.section-dark .text-muted, .section-dark .micro { color: var(--muted); }

.button,
.wp-element-button,
input[type="submit"] {
  appearance: none; border: 1px solid transparent; border-radius: 999px; padding: 13px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--copper); color: var(--white); font-weight: 800; line-height: 1.2;
  text-decoration: none; box-shadow: 0 8px 22px rgba(127, 69, 38, .18);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover, input[type="submit"]:hover { color: var(--white); background: var(--copper-dark); transform: translateY(-1px); }
.button-outline { background: transparent; border-color: currentColor; box-shadow: none; }
.button-outline:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: var(--ink-3); }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: var(--paper-2); color: var(--ink); }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.text-link { font-weight: 800; text-decoration-thickness: 2px; }

/* Header */
.site-topbar { background: var(--ink); color: var(--white); border-bottom: 1px solid var(--line); }
.site-topbar .wrap { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.site-topbar a { color: var(--white); text-decoration: none; font-weight: 800; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(245, 240, 231, .94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-dark); }
.site-header__inner { min-height: 82px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.site-brand:hover { color: var(--ink); }
.site-brand__mark { width: 48px; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--ink); position: relative; font-family: var(--serif); font-weight: 800; }
.site-brand__mark::after { content: ""; position: absolute; inset: 5px -6px -6px 5px; border-right: 2px solid var(--copper); border-bottom: 2px solid var(--copper); }
.site-brand__text { display: grid; line-height: .9; text-transform: uppercase; letter-spacing: .06em; font-weight: 900; }
.site-brand__text small { color: var(--copper); font-size: .63rem; letter-spacing: .18em; margin-top: 7px; }
.custom-logo-link img { max-height: 54px; width: auto; display: block; }
.primary-nav ul { display: flex; align-items: center; justify-content: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 800; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--copper-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { color: var(--ink); font-weight: 900; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; border: 0; padding: 8px; background: transparent; color: var(--ink); }
.menu-toggle span { display: block; width: 27px; height: 2px; background: currentColor; margin: 5px 0; }

/* Hero */
.home-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); min-height: min(800px, 86vh); display: grid; align-items: center; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 16% 10%, rgba(184,111,58,.24), transparent 38%), linear-gradient(110deg, rgba(19,19,19,.96) 18%, rgba(19,19,19,.72) 58%, rgba(19,19,19,.35)); z-index: 1; }
.home-hero::after { content: ""; position: absolute; inset: 0; opacity: .17; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; z-index: 1; }
.hero-collage { position: absolute; inset: 0; display: grid; grid-template-columns: 1.2fr .8fr; gap: 4px; opacity: .52; }
.hero-collage__main, .hero-collage__stack > div { background-size: cover; background-position: center; }
.hero-collage__stack { display: grid; grid-template-rows: 1fr 1fr; gap: 4px; }
.home-hero .wrap { position: relative; z-index: 3; padding-block: 84px; }
.home-hero__content { max-width: 860px; }
.home-hero h1 span { color: var(--copper); font-style: italic; }
.home-hero .lead { color: #e4ddd4; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 30px 0 34px; padding: 0; list-style: none; }
.hero-proof li { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 800; }
.hero-proof li::before { content: "✓"; color: var(--gold); }
.hero-index { position: absolute; right: 0; bottom: -25px; font-family: var(--serif); font-size: clamp(8rem, 22vw, 20rem); line-height: .7; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); z-index: -1; }

.quick-answer { border-left: 5px solid var(--copper); background: var(--white); color: var(--ink); padding: 26px 28px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: var(--shadow); }
.quick-answer h2, .quick-answer h3 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 10px; }
.quick-answer p:last-child { margin-bottom: 0; }
.section-dark .quick-answer { background: rgba(255,255,255,.08); color: var(--white); box-shadow: none; }

/* Layout cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 38px; }
.section-heading > div { max-width: 820px; }
.card { background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 35px rgba(0,0,0,.07); }
.path-card { padding: 30px; text-decoration: none; color: var(--ink); position: relative; min-height: 320px; display: flex; flex-direction: column; }
.path-card__number { font-family: var(--serif); font-size: 4.8rem; line-height: .8; color: var(--paper-2); position: absolute; right: 20px; top: 20px; }
.path-card h3 { font-family: var(--serif); font-size: 2rem; max-width: 11ch; position: relative; }
.path-card p { color: #645f57; }
.path-card .text-link { margin-top: auto; }
.path-card:hover { border-color: rgba(184,111,58,.6); transform: translateY(-3px); transition: .2s ease; }

.loft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.loft-card { background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-height: 100%; box-shadow: 0 14px 38px rgba(0,0,0,.07); transition: transform .2s ease, box-shadow .2s ease; }
.loft-card:hover { transform: translateY(-5px); box-shadow: 0 22px 52px rgba(0,0,0,.13); }
.loft-card__image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); position: relative; }
.loft-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.loft-card:hover .loft-card__image img { transform: scale(1.035); }
.loft-card__badge { position: absolute; top: 15px; left: 15px; padding: 6px 10px; background: rgba(19,19,19,.86); color: var(--white); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.loft-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.loft-card__address { color: var(--copper-dark); font-size: .77rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.loft-card h3 { font-family: var(--serif); font-size: 1.7rem; margin-top: 8px; }
.loft-card h3 a { color: var(--ink); text-decoration: none; }
.loft-card p { color: #69635b; font-size: .93rem; }
.loft-card__meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; }
.loft-card__meta span { border: 1px solid var(--line-dark); border-radius: 999px; padding: 5px 9px; font-size: .72rem; font-weight: 800; color: #5a554e; }

/* Search/filter */
.loft-filter { display: grid; grid-template-columns: 1fr auto; gap: 12px; background: var(--white); padding: 14px; border: 1px solid var(--line-dark); border-radius: 999px; max-width: 780px; box-shadow: 0 12px 35px rgba(0,0,0,.07); }
.loft-filter input { border: 0; background: transparent; padding: 8px 14px; min-width: 0; }
.loft-filter button { border-radius: 999px; border: 0; background: var(--ink); color: var(--white); font-weight: 800; padding: 10px 18px; }
.filter-count { margin: 14px 0 0; color: #6c665e; font-size: .88rem; }

/* Agent */
.agent-panel { display: grid; grid-template-columns: .7fr 1.3fr; min-height: 520px; border-radius: 28px; overflow: hidden; background: var(--ink); color: var(--white); box-shadow: var(--shadow); }
.agent-panel__visual { min-height: 420px; position: relative; background: linear-gradient(145deg, var(--copper-dark), var(--ink-3)); display: grid; place-items: center; overflow: hidden; }
.agent-panel__visual::before, .agent-panel__visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.15); transform: rotate(45deg); }
.agent-panel__visual::before { width: 300px; height: 300px; }
.agent-panel__visual::after { width: 470px; height: 470px; }
.agent-panel__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; position: absolute; inset: 0; }
.agent-monogram { position: relative; z-index: 2; width: 170px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.55); font-family: var(--serif); font-size: 4rem; background: rgba(19,19,19,.35); }
.agent-panel__content { padding: clamp(36px, 6vw, 78px); display: flex; flex-direction: column; justify-content: center; }
.agent-panel__content .lead { color: #ddd5ca; }
.agent-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 30px; }
.agent-stat { border-top: 1px solid var(--line); padding-top: 14px; }
.agent-stat strong { display: block; font-family: var(--serif); font-size: 1.55rem; color: var(--gold); }
.agent-stat span { font-size: .78rem; color: var(--muted); }

/* Forms */
.lead-shell { background: var(--white); border-radius: 26px; border: 1px solid var(--line-dark); padding: clamp(26px, 5vw, 52px); box-shadow: var(--shadow); }
.lead-shell--dark { background: var(--ink-2); color: var(--white); border-color: var(--line); }
.lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 800; font-size: .86rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid rgba(19,19,19,.2); background: var(--white); color: var(--ink);
  border-radius: var(--radius-sm); padding: 13px 14px; min-height: 50px;
}
.form-field textarea { min-height: 126px; resize: vertical; }
.lead-shell--dark .form-field input, .lead-shell--dark .form-field select, .lead-shell--dark .form-field textarea { background: #292927; color: var(--white); border-color: rgba(255,255,255,.22); }
.form-consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; line-height: 1.5; color: #6a645c; }
.lead-shell--dark .form-consent { color: var(--muted); }
.form-consent input { margin-top: 4px; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-status { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 800; }
.form-status--success { background: #e3f0e8; color: var(--success); border: 1px solid #a8c7b5; }
.form-status--error { background: #f4e1e1; color: var(--danger); border: 1px solid #d8a4a4; }
.lro-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }


/* Article comparison tables */
.table-scroll { width: 100%; overflow-x: auto; margin: 28px 0; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); background: var(--white); }
.prose .table-scroll table { width: 100%; min-width: 820px; border-collapse: collapse; margin: 0; font-size: .92rem; }
.prose .table-scroll th, .prose .table-scroll td { padding: 15px 16px; border-bottom: 1px solid var(--line-dark); text-align: left; vertical-align: top; }
.prose .table-scroll th { background: var(--ink); color: var(--white); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; }
.prose .table-scroll tbody tr:last-child td { border-bottom: 0; }
.prose .table-scroll tbody tr:nth-child(even) td { background: var(--paper); }
.prose .table-scroll td:first-child { min-width: 180px; font-weight: 800; }

/* Single development */
.loft-hero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.loft-hero__media { position: absolute; inset: 0; }
.loft-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.loft-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19,19,19,.96) 10%, rgba(19,19,19,.74) 62%, rgba(19,19,19,.35)); }
.loft-hero__inner { min-height: 650px; padding-block: 90px; display: flex; align-items: end; position: relative; z-index: 2; }
.loft-hero h1 { max-width: 950px; }
.loft-address { display: flex; align-items: center; gap: 10px; color: #ded6ca; font-weight: 700; margin: 18px 0 28px; }
.loft-address::before { content: "⌖"; color: var(--gold); font-size: 1.3rem; }
.fact-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line-dark); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.fact { background: var(--white); padding: 22px clamp(18px, 3vw, 32px); }
.fact span { display: block; font-size: .67rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; color: var(--copper-dark); margin-bottom: 5px; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.12rem; line-height: 1.25; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: clamp(34px, 7vw, 90px); align-items: start; }
.prose h2 { margin-top: 1.35em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .65em; }
.sticky-aside { position: sticky; top: 115px; display: grid; gap: 20px; }
.info-box { background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 24px; }
.info-box h3 { font-family: var(--serif); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { padding-left: 27px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--copper-dark); font-weight: 900; }
.map-frame { border: 0; width: 100%; min-height: 430px; display: block; filter: grayscale(.5) contrast(1.04); }
.map-shell { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); background: var(--white); }
.map-caption { padding: 12px 16px; font-size: .78rem; color: #6b655c; }

/* FAQs */
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius-sm); padding: 0 20px; }
.faq-list summary { list-style: none; cursor: pointer; font-weight: 900; padding: 20px 36px 20px 0; position: relative; line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--copper); font-size: 1.5rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding-bottom: 20px; color: #5f5a53; }
.section-dark .faq-list details { background: var(--ink-2); border-color: var(--line); }
.section-dark .faq-list details p { color: #d2cbc1; }

/* Archive/page hero */
.page-hero { background: var(--ink); color: var(--white); padding: clamp(70px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 700px; height: 700px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -260px; top: -380px; box-shadow: 0 0 0 90px rgba(255,255,255,.018), 0 0 0 180px rgba(255,255,255,.018); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 1000px; }
.page-hero .lead { color: #ddd5ca; }
.breadcrumbs { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 24px; }
.breadcrumbs a { color: #d7cfc4; text-decoration: none; }
.breadcrumbs span { color: var(--copper); }

.step-list { counter-reset: steps; display: grid; gap: 18px; }
.step { counter-increment: steps; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding: 24px; background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius); }
.step::before { content: counter(steps, decimal-leading-zero); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-family: var(--serif); font-size: 1.2rem; }
.step p:last-child { margin-bottom: 0; }

.callout { background: var(--copper); color: var(--white); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); }
.callout h2 { max-width: 790px; }
.callout a { color: var(--white); }
.notice { border: 1px dashed rgba(19,19,19,.35); border-radius: var(--radius-sm); padding: 16px 18px; background: rgba(255,255,255,.35); font-size: .86rem; }

.idx-slot { border: 2px dashed rgba(19,19,19,.25); border-radius: var(--radius); padding: 32px; background: rgba(255,255,255,.5); text-align: center; }
.idx-slot strong { display: block; font-family: var(--serif); font-size: 1.4rem; margin-bottom: 5px; }

/* Footer */
.footer-cta { background: var(--copper); color: var(--white); }
.footer-cta .wrap { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 34px; }
.footer-cta h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 8px; }
.footer-cta p { margin: 0; color: #f8e8dc; }
.site-footer { background: #0e0e0e; color: var(--white); padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr 1fr; gap: 42px; }
.site-footer h3 { color: var(--gold); font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #ddd5ca; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-brand p { color: var(--muted); max-width: 370px; }
.site-footer .site-brand { color: var(--white); }
.site-footer .site-brand__mark { border-color: var(--white); }
.site-footer .site-brand:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: 54px; padding-top: 24px; color: #999188; font-size: .75rem; }
.mobile-actions { display: none; }

/* WordPress */
.alignwide { width: min(1140px, calc(100% + 180px)); max-width: calc(100vw - 40px); margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.wp-caption, .gallery-caption { color: #6b655c; font-size: .8rem; }
.sticky { border-color: var(--copper); }
.bypostauthor { font-weight: inherit; }
.post-card { padding: 28px; background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius); }
.post-meta { color: #756f67; font-size: .82rem; }
.pagination { margin-top: 36px; display: flex; gap: 8px; }
.pagination .page-numbers { padding: 8px 13px; background: var(--white); border: 1px solid var(--line-dark); border-radius: 8px; text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--white); }

@media (max-width: 1080px) {
  .site-header__inner { grid-template-columns: auto auto; justify-content: space-between; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line-dark); padding: 18px 20px 26px; box-shadow: 0 20px 30px rgba(0,0,0,.12); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 0; align-items: stretch; }
  .primary-nav li { border-bottom: 1px solid var(--line-dark); }
  .primary-nav a { display: block; padding: 14px 4px; font-size: 1.02rem; }
  .header-actions .button { display: none; }
  .loft-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .content-layout { grid-template-columns: 1fr; }
  .sticky-aside { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 65px; }
  .wrap, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .site-topbar .wrap { justify-content: center; text-align: center; min-height: 38px; }
  .site-topbar span:last-child { display: none; }
  .site-header__inner { min-height: 70px; }
  .site-brand__mark { width: 42px; }
  .site-brand__text { font-size: .86rem; }
  .header-phone { display: none; }
  .hero-collage { grid-template-columns: 1fr; }
  .hero-collage__stack { display: none; }
  .home-hero { min-height: 720px; }
  .home-hero .wrap { padding-block: 64px; }
  .hero-proof { display: grid; gap: 8px; }
  .section-heading { display: block; }
  .section-heading .button { margin-top: 18px; }
  .grid-2, .grid-3, .grid-4, .loft-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 280px; }
  .agent-panel { grid-template-columns: 1fr; }
  .agent-panel__visual { min-height: 320px; }
  .agent-stats { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
  .form-field--full, .form-consent, .form-actions { grid-column: auto; }
  .fact-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .loft-hero__inner { min-height: 550px; padding-block: 60px; }
  .footer-cta .wrap { display: block; }
  .footer-cta .button-row { margin-top: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .mobile-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); border-top: 1px solid var(--line); }
  .mobile-actions a { min-height: 64px; display: flex; align-items: center; justify-content: center; color: var(--white); text-decoration: none; font-weight: 900; }
  .mobile-actions a:last-child { background: var(--copper); }
  .loft-filter { grid-template-columns: 1fr; border-radius: var(--radius); }
  .loft-filter button { width: 100%; }
  .step { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Blog and article enhancements — v1.1.0 */
.blog-grid { align-items: stretch; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card__image img { transform: scale(1.035); }
.post-card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.post-card__body h2 { font-size: clamp(1.55rem, 2.4vw, 2.15rem); }
.post-card__body .text-link { margin-top: auto; }
.article-hero h1 { max-width: 1040px; font-size: clamp(2.5rem, 6vw, 5.5rem); }
.article-featured { margin: 0 0 48px; }
.article-featured img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-content h2 { margin-top: 1.65em; }
.article-content h3 { margin-top: 1.45em; }
.article-content > p:first-of-type { font-size: 1.2rem; line-height: 1.65; }
@media (max-width: 720px) {
  .post-card__body { padding: 22px; }
  .article-featured { margin-bottom: 32px; }
}
