/* ==========================================================================
   Multifamily Home — main stylesheet
   Extracted from the approved Claude Design build. Inline styles in the
   original are consolidated here into reusable, maintainable classes.
   ========================================================================== */

:root {
  --gold: #B58A32;
  --gold-dark: #9C7424;
  --gold-light: #E8C77A;
  --ink: #171717;
  --muted: #5F5F5F;
  --muted-2: #838383;
  --body-text: #4A4A4A;
  --cream: #FBF7F0;
  --panel: #F8F5EE;
  --bar: #F3EEE4;
  --border: #E8E3D9;
  --border-2: #E0D9C8;
  --border-gold: #DED0AB;
  --white: #FFFFFF;
  --container: 1280px;
  --pad: 32px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--gold-dark); transition: color .2s ease; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); text-wrap: pretty; }
p { text-wrap: pretty; }
select { -webkit-appearance: none; appearance: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.mfh-container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.mfh-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; margin-bottom: 14px; }
.btn-primary { display: inline-block; background: var(--gold); color: #fff; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 16px 30px; border-radius: 2px; border: none; transition: background .2s ease, transform .25s ease; }
.btn-primary:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { display: inline-block; background: transparent; color: var(--ink); border: 1.5px solid var(--border-gold); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 14.5px 30px; border-radius: 2px; transition: background .2s ease, border-color .2s ease, transform .25s ease; }
.btn-outline:hover { background: var(--panel); border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.hero-fade { animation: heroFadeUp .8s ease both; }
.hero-fade.d1 { animation-delay: .1s; }
.hero-fade.d2 { animation-delay: .2s; }
.hero-fade.d3 { animation-delay: .3s; }

/* ---------- Top bar ---------- */
.topbar { background: var(--bar); border-bottom: 1px solid var(--border); padding: 9px var(--pad); }
.topbar__inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 28px; font-size: 12.5px; color: var(--muted); }
.topbar__group { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.topbar__item, .topbar a { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.topbar a:hover { color: var(--gold); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header__inner { max-width: var(--container); margin: 0 auto; padding: 16px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-logo img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 32px; }
.main-nav .menu > li { position: relative; }
.main-nav a { font-size: 13.5px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 6px; display: inline-block; }
.main-nav a:hover { color: var(--gold); }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); vertical-align: middle; opacity: .7; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-parent > a,
.main-nav .current-menu-ancestor > a { color: var(--gold); border-bottom: 2px solid var(--gold); }
/* Dropdown */
.main-nav .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: calc(100% + 10px); left: -14px; min-width: 220px; background: #fff; border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 18px 40px rgba(23,23,23,.14); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 120; }
.main-nav .menu > li:hover > .sub-menu,
.main-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu li { display: block; }
.main-nav .sub-menu a { display: block; padding: 11px 22px; font-size: 12.5px; letter-spacing: .03em; border-bottom: none; color: var(--ink); }
.main-nav .sub-menu a:hover { background: var(--panel); color: var(--gold); }
.header-cta { border: 1.5px solid var(--gold); color: var(--ink); background: transparent; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 12px 24px; border-radius: 2px; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.header-cta:hover { background: var(--gold); color: #fff; }
.nav-toggle { background: none; border: 1px solid var(--border-gold); border-radius: 4px; width: 44px; height: 44px; display: none; align-items: center; justify-content: center; flex-shrink: 0; }
.mobile-nav { display: none; flex-direction: column; padding: 8px var(--pad) 28px; gap: 4px; border-top: 1px solid var(--border); background: #fff; }
.mobile-nav.open { display: flex; }
.mobile-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mobile-nav .menu a { display: block; padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 1px solid #F3EDE2; }
.mobile-nav .sub-menu { list-style: none; margin: 0 0 0 14px; padding: 0; }
.mobile-nav .sub-menu a { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.mobile-nav .current-menu-item > a, .mobile-nav .current_page_item > a { color: var(--gold); }
.mobile-nav .mobile-cta { margin-top: 14px; background: var(--gold); color: #fff; border: none; width: 100%; text-align: center; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; font-weight: 700; padding: 14px 26px; border-radius: 2px; }

@media (max-width: 959px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; min-height: 300px; overflow: hidden; display: flex; align-items: center; background: var(--ink); padding: 40px 0; }
.page-hero--tall { min-height: 340px; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(23,23,23,.85) 20%, rgba(23,23,23,.4) 100%); }
.page-hero--flat .page-hero__overlay { background: linear-gradient(120deg, #171717 40%, #2A2318 100%); }
.page-hero__inner { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); width: 100%; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 { font-size: clamp(30px, 4.2vw, 48px); color: #fff; margin: 0 0 14px; line-height: 1.12; }
.page-hero h1 .accent { color: var(--gold-light); font-style: italic; }
.breadcrumbs { font-size: 13px; color: #E8DFC9; }
.breadcrumbs a { color: #E8DFC9; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { opacity: .6; }
.breadcrumbs .current { color: #fff; }

/* ---------- Section rhythm ---------- */
.section { padding: 90px var(--pad); }
.section--white { background: #fff; }
.section--panel { background: var(--panel); }
.section--cream { background: var(--cream); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section__head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; }
.section__head p { font-size: 15.5px; line-height: 1.8; color: var(--muted); margin: 14px 0 0; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 959px) {
  .grid--6 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 699px) {
  .grid--2, .grid--3, .grid--4, .grid--6 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; height: 100%; display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; color: inherit; }
.card:hover { box-shadow: 0 18px 34px rgba(23,23,23,.08); transform: translateY(-5px); border-color: var(--border-gold); }
.card__media { position: relative; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__badge { position: absolute; top: 12px; left: 12px; color: #fff; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 5px 10px; border-radius: 2px; }
.card__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { font-size: 16.5px; line-height: 1.35; margin: 0; }
.card__meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted-2); }
.card__more { font-size: 12px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }

/* project thumb sizing */
.project-card .card__media { height: 190px; }
.related-card .card__media { height: 170px; }
.blog-card .card__media { height: 210px; }
.blog-card .card__body { padding: 26px 24px; gap: 12px; }
.blog-card h3 { font-family: var(--serif); font-size: 19px; }
.blog-card__tags { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.blog-card__tags .dot { color: #DBD0BA; }
.blog-card__tags .date { color: var(--muted-2); font-weight: 600; }
.blog-card__excerpt { font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0; flex: 1; }

/* placeholder media (no featured image) */
.media-fallback { background: linear-gradient(135deg, #EEE7D8, #F6F1E7); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.media-fallback svg { width: 40px; height: 40px; opacity: .5; }

/* ---------- Filter tabs ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--border); padding-bottom: 30px; }
.filter-tabs a { padding: 10px 20px; border-radius: 2px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--border); color: var(--ink); background: transparent; }
.filter-tabs a.is-active { background: var(--gold); color: #fff; border-color: var(--gold); }
.filter-tabs a:hover { border-color: var(--gold); }

/* ---------- Stats strip ---------- */
.stats-strip { max-width: 1180px; margin: -30px auto 90px; padding: 0 var(--pad); position: relative; z-index: 2; }
.stats-strip__inner { background: #fff; box-shadow: 0 20px 50px rgba(23,23,23,.12); border-radius: 4px; padding: 38px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.stat { display: flex; align-items: center; gap: 16px; }
.stat:not(:last-child) { border-right: 1px solid var(--border); padding-right: 20px; }
.stat__num { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink); }
.stat__label { font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
@media (max-width: 699px) { .stat { border-right: none !important; padding-right: 0 !important; } }

/* ---------- Hero (home) ---------- */
.home-hero { display: flex; align-items: stretch; gap: 40px; flex-wrap: wrap; }
.home-hero__text { flex: 1 1 420px; min-width: 300px; padding: 56px 40px 56px max(32px, calc((100vw - 1280px)/2 + 32px)); display: flex; flex-direction: column; justify-content: center; }
.home-hero__text h1 { font-size: clamp(36px, 4.6vw, 52px); line-height: 1.12; margin: 0 0 20px; }
.home-hero__text h1 .accent { color: var(--gold); font-style: italic; }
.home-hero__lead { font-size: 16.5px; line-height: 1.7; color: var(--muted); max-width: 460px; margin: 0 0 30px; }
.home-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.home-hero__media { flex: 1 1 460px; min-width: 300px; min-height: 430px; overflow: hidden; }
.home-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Split feature (why invest / story) ---------- */
.split { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.split__col { flex: 1 1 420px; min-width: 300px; }
.split__media { position: relative; border-radius: 6px; overflow: hidden; height: 420px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin: 0 0 18px; }
.split p { font-size: 15.5px; line-height: 1.75; color: var(--muted); max-width: 460px; }
.story-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 6px; }
.story-stats .num { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--gold); }
.story-stats .lbl { font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }

/* icon feature tiles */
.feature { }
.feature__icon { width: 44px; height: 44px; border-radius: 50%; border: 1.3px solid var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; transition: background .25s ease; }
.feature:hover .feature__icon { background: var(--gold); }
.feature__title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.feature__desc { font-size: 12.5px; color: var(--muted-2); line-height: 1.6; }

/* service / value tiles */
.tile { border: 1px solid var(--border); border-radius: 6px; padding: 34px 28px; height: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.tile--left { text-align: left; align-items: flex-start; }
.tile:hover { box-shadow: 0 14px 30px rgba(23,23,23,.07); transform: translateY(-5px); border-color: var(--border-gold); }
.tile__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--panel); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.tile__step { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.tile h3 { font-size: 20px; margin: 0 0 10px; }
.tile p { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin: 0; }

/* mission / vision */
.mv-card { background: #fff; border-radius: 6px; padding: 40px; height: 100%; }
.mv-card__icon { width: 48px; height: 48px; border-radius: 50%; border: 1.3px solid var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.mv-card h3 { font-size: 22px; margin: 0 0 12px; }
.mv-card p { font-size: 14.5px; line-height: 1.8; color: var(--muted); margin: 0; }

/* ---------- Invest box ---------- */
.invest-box { border: 1.5px solid var(--gold); border-radius: 6px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 959px) { .invest-box { grid-template-columns: 1fr; } }
.invest-box img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: 5px; }
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink); list-style: none; }
.check-list { padding: 0; margin: 0; }

/* ---------- Forms ---------- */
.mfh-form { display: flex; flex-direction: column; gap: 14px; }
.mfh-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 699px) { .mfh-form .row { grid-template-columns: 1fr; } }
.mfh-form input, .mfh-form select, .mfh-form textarea { padding: 13px 15px; border: 1px solid var(--border); border-radius: 3px; font-size: 13.5px; font-family: inherit; width: 100%; background: #fff; color: var(--ink); }
.mfh-form textarea { resize: vertical; }
.mfh-form input:focus, .mfh-form select:focus, .mfh-form textarea:focus { outline: none; border-color: var(--gold); }
.mfh-form button { background: var(--gold); color: #fff; border: none; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 15px; border-radius: 3px; margin-top: 4px; }
.mfh-form button:hover { background: var(--gold-dark); }

/* contact info cards */
.info-card { border: 1px solid var(--border); border-radius: 6px; padding: 30px 26px; text-align: center; transition: box-shadow .3s ease, transform .3s ease; }
.info-card:hover { box-shadow: 0 14px 30px rgba(23,23,23,.06); transform: translateY(-4px); }
.info-card__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--panel); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.info-card h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.info-card a, .info-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--cream); padding: 36px var(--pad); position: relative; overflow: hidden; }
.cta-strip__inner { max-width: var(--container); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px; position: relative; }
.cta-strip__deco { position: absolute; right: 24px; bottom: 0; opacity: .12; pointer-events: none; }
.cta-strip__title { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; }

/* ---------- Article (single post / project) ---------- */
.article-hero { background: var(--ink); padding: 60px var(--pad) 0; }
.article-hero__inner { max-width: 900px; margin: 0 auto; }
.article-hero .breadcrumbs { margin-bottom: 18px; }
.article-hero__meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-light); margin-bottom: 16px; flex-wrap: wrap; }
.article-hero h1 { font-size: clamp(26px, 3.6vw, 40px); color: #fff; line-height: 1.18; margin: 0 0 18px; }
.article-featured { background: #fff; padding: 0 var(--pad) 20px; }
.article-featured__inner { max-width: 900px; margin: -60px auto 0; position: relative; border-radius: 8px; overflow: hidden; }
.article-featured img { width: 100%; height: 400px; object-fit: cover; }
.article-body { background: #fff; padding: 30px var(--pad) 90px; }
.article-body__inner { max-width: 900px; margin: 0 auto; }
.article-layout { display: flex; gap: 48px; flex-wrap: wrap; }
.article-main { flex: 2 1 480px; min-width: 280px; }
.article-main p { font-size: 16px; line-height: 1.85; color: var(--body-text); margin: 0 0 20px; }
.article-main h2 { font-size: 26px; margin: 34px 0 14px; }
.article-main h3 { font-size: 20px; margin: 28px 0 12px; }
.article-main ul, .article-main ol { color: var(--body-text); line-height: 1.85; padding-left: 22px; }
.article-main img { border-radius: 8px; margin: 24px 0; }
.article-aside { flex: 1 1 260px; min-width: 240px; }
.detail-box { border: 1px solid var(--border); border-radius: 6px; padding: 28px 24px; position: sticky; top: 100px; }
.detail-box h2 { font-size: 17px; margin: 0 0 18px; }
.detail-box__list { display: flex; flex-direction: column; gap: 16px; }
.detail-box__k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); margin-bottom: 4px; }
.detail-box__v { font-size: 14px; color: var(--body-text); line-height: 1.5; }
.detail-box .btn-primary { display: block; text-align: center; margin-top: 22px; padding: 14px 20px; }
.blog-single { max-width: 780px; }

/* article meta / author / share */
.post-author { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.share-row { display: flex; align-items: center; gap: 12px; margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--border); }
.share-row span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); }
.share-row a { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.share-row a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* prev / next */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0 0; }
@media (max-width: 699px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav a { border: 1px solid var(--border); border-radius: 6px; padding: 18px 22px; display: block; }
.post-nav a:hover { border-color: var(--gold); }
.post-nav .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); }
.post-nav .ttl { font-family: var(--serif); font-size: 15px; color: var(--ink); margin-top: 6px; display: block; }
.post-nav .next { text-align: right; }

/* faq blocks converted from original */
.faq-item { border-top: 1px solid var(--border); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item .q { font-family: var(--serif); font-size: 18px; color: var(--ink); margin: 0 0 8px; }
.faq-item .a { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bar); padding: 56px var(--pad) 24px; }
.site-footer__cols { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
@media (max-width: 959px) { .site-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .site-footer__cols { grid-template-columns: 1fr; } }
.site-footer img.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.site-footer p.footer-about { font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 230px; margin: 0 0 18px; }
.footer-social { display: flex; gap: 16px; align-items: center; }
.footer-social a { color: var(--ink); }
.footer-social a:hover { color: var(--gold); }
.footer-col h4 { font-family: var(--sans); font-size: 12.5px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { max-width: var(--container); margin: 0 auto; padding-top: 22px; border-top: 1px solid var(--border-2); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom, .footer-bottom a { font-size: 12.5px; color: var(--muted-2); }
.footer-legal { display: flex; gap: 22px; align-items: center; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Pagination ---------- */
.mfh-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.mfh-pagination .page-numbers { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 3px; font-size: 13.5px; font-weight: 700; color: var(--ink); padding: 0 12px; }
.mfh-pagination .page-numbers.current { background: var(--gold); color: #fff; border-color: var(--gold); }
.mfh-pagination .page-numbers:hover { border-color: var(--gold); }

/* ---------- Search / empty states ---------- */
.empty-state { text-align: center; padding: 80px var(--pad); color: var(--muted-2); }
.empty-state h1 { font-size: 26px; margin: 0 0 12px; }
.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-form input { flex: 1; padding: 13px 15px; border: 1px solid var(--border); border-radius: 3px; font-size: 14px; font-family: inherit; }
.search-form button { background: var(--gold); color: #fff; border: none; padding: 0 22px; border-radius: 3px; font-weight: 700; text-transform: uppercase; font-size: 12.5px; letter-spacing: .05em; }

/* utility for gold text on dark */
.tprose { max-width: 760px; margin: 0 auto; }
.tprose h2 { font-size: clamp(24px,3vw,32px); }

/* contact page form + map layout */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- Global inquiry section ---------- */
.inquiry-section { padding: 70px var(--pad); }
.inquiry-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 899px) { .inquiry-grid { grid-template-columns: 1fr; gap: 32px; } }
.inquiry-intro h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 14px; }
.inquiry-intro p { font-size: 15px; line-height: 1.75; color: var(--muted); margin: 0 0 22px; max-width: 440px; }
.inquiry-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.inquiry-contact li, .inquiry-contact a { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); font-weight: 600; }
.inquiry-form-wrap { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 32px; box-shadow: 0 16px 40px rgba(23,23,23,.06); }
.inquiry-thanks { background: var(--panel); border: 1px solid var(--border-gold); border-radius: 6px; padding: 20px 22px; font-size: 14px; color: var(--ink); }

/* ---------- Popup modal ---------- */
.mfh-popup { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.mfh-popup[hidden] { display: none; }
.mfh-popup__overlay { position: absolute; inset: 0; background: rgba(23,23,23,.62); backdrop-filter: blur(2px); animation: mfhFade .25s ease both; }
.mfh-popup__box { position: relative; z-index: 1; width: 100%; max-width: 520px; background: #fff; border-radius: 10px; padding: 40px; box-shadow: 0 30px 80px rgba(23,23,23,.35); max-height: 92vh; overflow-y: auto; animation: mfhPop .3s cubic-bezier(.2,.8,.2,1) both; }
.mfh-popup__box h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 12px; }
.mfh-popup__box h2 .accent { color: var(--gold); font-style: italic; }
.mfh-popup__box p { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin: 0 0 22px; }
.mfh-popup__close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: none; background: var(--panel); border-radius: 50%; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; }
.mfh-popup__close:hover { background: var(--gold); color: #fff; }
@keyframes mfhFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mfhPop { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
body.mfh-popup-open { overflow: hidden; }

/* ==========================================================================
   MOBILE-FIRST RESPONSIVE ENHANCEMENTS  (added 2026 — tablet & phone polish)
   Safe to keep at the end of the file: later rules intentionally override a
   few earlier declarations for smaller screens.
   ========================================================================== */

/* ---- Fluid side padding + tighter section rhythm ---- */
@media (max-width: 1024px) {
  :root { --pad: 24px; }
  .section { padding: 66px var(--pad); }
}
@media (max-width: 600px) {
  :root { --pad: 18px; }
  .section { padding: 46px var(--pad); }
  .section__head { margin-bottom: 34px; }
}

/* ---- Icon consistency: uniform boxes, centred glyphs, no shrink ---- */
.feature__icon, .tile__icon, .info-card__icon, .mv-card__icon { flex-shrink: 0; }
.feature__icon svg, .tile__icon svg, .info-card__icon svg, .mv-card__icon svg { display: block; }
/* Force identical glyph sizes across every card in a section */
.feature__icon svg { width: 19px; height: 19px; }
.tile__icon svg { width: 24px; height: 24px; }

/* ---- Top bar: keep tidy, drop least-important items first ---- */
@media (max-width: 760px) {
  .topbar { padding: 8px var(--pad); }
  .topbar__inner { justify-content: center; gap: 6px 18px; font-size: 11.5px; }
  .topbar__group { gap: 14px; }
}
@media (max-width: 520px) {
  /* hide the address + hours group, keep tappable phone + email */
  .topbar__group:first-child { display: none; }
}

/* ---- Home hero ---- */
@media (max-width: 900px) {
  .home-hero__text { padding: 44px var(--pad) 38px; flex-basis: auto; }
  .home-hero__media { min-height: 300px; flex-basis: auto; width: 100%; }
}
@media (max-width: 600px) {
  .home-hero__text { padding: 34px var(--pad) 30px; }
  .home-hero__media { min-height: 230px; }
  .home-hero__actions { gap: 10px; }
  .home-hero__actions .btn-primary,
  .home-hero__actions .btn-outline { flex: 1 1 46%; text-align: center; padding-left: 14px; padding-right: 14px; }
}

/* ---- Stats strip ---- */
@media (max-width: 760px) {
  .stats-strip { margin: -20px auto 56px; }
  .stats-strip__inner { padding: 26px 22px; gap: 18px 20px; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .stats-strip__inner { grid-template-columns: 1fr; } }

/* ---- Single project / post: let the detail box flow on small screens ---- */
@media (max-width: 900px) { .detail-box { position: static; } }

/* ---- Article featured image sizing ---- */
@media (max-width: 600px) {
  .article-featured__inner { margin-top: -40px; }
  .article-featured img { height: 240px; }
  .article-hero { padding-top: 44px; }
}

/* ---- Filter tabs: horizontal scroll rather than cramped wrapping ---- */
@media (max-width: 600px) {
  .filter-tabs {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 18px;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tabs a { white-space: nowrap; flex: 0 0 auto; }
}

/* ---- Popup modal ---- */
@media (max-width: 520px) { .mfh-popup__box { padding: 28px 22px; } }

/* ==========================================================================
   HORIZONTAL SWIPE CAROUSELS on phones
   Add the class `mfh-carousel` to any `.grid` you want to become a swipeable
   rail below 768px (see front-page.php: Projects, Why-Invest, Services, Blog).
   On tablet/desktop the element stays a normal grid — this only applies ≤767px.
   ========================================================================== */
@media (max-width: 767px) {
  .mfh-carousel {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: var(--pad);
    /* bleed to the screen edges so the peeking next card sits at the margin */
    margin-left: calc(var(--pad) * -1);
    margin-right: calc(var(--pad) * -1);
    padding: 4px var(--pad) 20px;
    scrollbar-width: none;
  }
  .mfh-carousel::-webkit-scrollbar { display: none; }
  .mfh-carousel > * {
    scroll-snap-align: start;
    flex: 0 0 80%;
    max-width: 330px;
  }
  /* feature tiles have no card chrome by default — give them a card look in the rail */
  .mfh-carousel .feature {
    flex-basis: 64%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 22px 20px;
  }
  .mfh-carousel .tile { flex-basis: 72%; }
}
