/*
Theme Name: McDaniel Home Loans
Theme URI: https://lenderpro.io/
Author: Harris Tech Solutions
Author URI: https://harristechsolutions.com/
Description: Ground-up editorial theme for McDaniel Home Loans (Aaron McDaniel, NMLS# 298596). Newsreader serif + Archivo sans + IBM Plex Mono type system, warm ink and paper palette, no stock photography, native WordPress Posts for the Blog.
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mcdaniel-home-loans
*/

/* ==========================================================================
   McDaniel Home Loans , v3 ground-up rebuild, ported into a WordPress theme
   Type system : Newsreader (editorial serif, opsz 6-72, true italics)
                 + Archivo (structured grotesque, body/UI)
                 + IBM Plex Mono (analytical accent: labels, numerals, data)
   Palette     : warm ink + warm paper + the brand's existing gold, no pure
                 black/white, one accent used deliberately per view.
   Philosophy  : asymmetric editorial composition, no repeated card grids,
                 real embedded video/widgets stand in for photography.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink:            #17130d;
  --ink-soft:       #2a231a;
  --ink-line:       rgba(248, 244, 233, 0.16);
  --ink-line-soft:  rgba(248, 244, 233, 0.08);

  --paper:          #f8f4e9;
  --paper-deep:     #ece1c6;
  --paper-card:     #fffdf7;
  --paper-line:     rgba(23, 19, 13, 0.14);
  --paper-line-soft: rgba(23, 19, 13, 0.08);

  --gold:           #b6902c;
  --gold-soft:      #d8b45a;
  --gold-deep:      #86651c;
  --gold-wash:      rgba(182, 144, 44, 0.1);

  --mute-on-paper:  #6c6152;
  --mute-on-ink:    #cabfa6;

  --font-serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-sans:  'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'IBM Plex Mono', 'SF Mono', Menlo, monospace;

  --measure: 62ch;
  --edge: clamp(1.5rem, 5vw, 4rem);
  --radius-sm: 3px;
  --radius-md: 5px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold-soft); color: var(--ink); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: 12px 20px;
  font-family: var(--font-mono); font-size: 0.8rem;
}
.skip-link:focus { left: var(--edge); }

.container { width: min(94%, 1240px); margin-inline: auto; }
.container-narrow { width: min(92%, 900px); margin-inline: auto; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--gold-deep);
  display: block;
}
.on-ink .eyebrow { color: var(--gold-soft); }
.on-ink .eyebrow::before { background: var(--gold-soft); }

.display {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.on-ink .display { color: var(--paper); }
.display em { font-style: italic; font-weight: 500; color: var(--gold-deep); }
.on-ink .display em { color: var(--gold-soft); }

h1.display { font-size: clamp(2.6rem, 6vw, 5rem); }
h2.display { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3.display { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }

.lede {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--mute-on-paper);
  max-width: 46ch;
}
.on-ink .lede { color: var(--mute-on-ink); }

p.body-copy, .prose p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--mute-on-paper);
}
.on-ink .mono-label { color: var(--mute-on-ink); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), background 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  box-shadow: 0 10px 28px -10px rgba(182, 144, 44, 0.55);
  transform: translateY(-2px);
}

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--paper-line);
}
.btn-line:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.on-ink .btn-line { color: var(--paper); border-color: var(--ink-line); }
.on-ink .btn-line:hover { border-color: var(--paper); }

.btn-ghost-ink {
  background: transparent;
  color: var(--paper);
  border-color: var(--ink-line);
}
.btn-ghost-ink:hover { border-color: var(--gold-soft); color: var(--gold-soft); transform: translateY(-2px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 78px;
  display: flex; align-items: center;
  background: rgba(23, 19, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--ink-line-soft);
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
}
.site-header.is-scrolled {
  background: rgba(23, 19, 13, 0.93);
  border-bottom-color: var(--ink-line);
}
.nav-inner {
  width: min(94%, 1320px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px; line-height: 1;
  color: var(--paper);
}
.nav-logo img {
  height: 32px; width: auto; display: block; flex: none;
}
.nav-logo .lockup { display: flex; flex-direction: column; line-height: 1; }
.nav-logo .name {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 1.28rem; letter-spacing: 0.01em;
}
.nav-logo .sub {
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold-soft); margin-top: 4px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-sans); font-size: 0.86rem; font-weight: 500;
  color: var(--mute-on-ink);
  position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold-soft); transition: right 220ms var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--paper); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
/* WordPress core nav-menu current-item classes, kept in sync with the .is-active look above */
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a,
.nav-links li.current-menu-parent > a {
  color: var(--paper);
}
.nav-links li.current-menu-item > a::after,
.nav-links li.current_page_item > a::after,
.nav-links li.current-menu-parent > a::after {
  right: 0;
}
.nav-ctas { display: flex; align-items: center; gap: 12px; }
.nav-ctas .btn { padding: 11px 20px; font-size: 0.82rem; }

.nav-toggle {
  display: none; background: none; border: none; padding: 8px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--paper); margin: 5px 0;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

/* Social icons ride at the end of the primary nav list, mobile-only (the
   footer carries the persistent, always-visible row on every breakpoint). */
.nav-links li.nav-social { display: none; }

@media (max-width: 900px) {
  .nav-links, .nav-ctas .btn-ghost-ink { display: none; }
  .nav-toggle { display: block; }
  /* height is explicit (not bottom:0): .site-header has backdrop-filter,
     which per spec makes it the containing block for fixed-position
     descendants, so bottom:0 was resolving against the header's own 78px
     box (collapsing this panel to ~80px tall with hero content bleeding
     through) instead of the viewport. calc(100vh - 78px) sidesteps that
     entirely since vh units are always viewport-relative. Found via mobile
     QA 2026-08-03, confirmed by inspecting the collapsed getBoundingClientRect. */
  .site-header.is-menu-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    position: fixed; top: 78px; left: 0; right: 0;
    height: calc(100vh - 78px);
    overflow-y: auto;
    background: var(--ink); padding: 40px var(--edge);
  }
  .site-header.is-menu-open .nav-links a { font-size: 1.1rem; }
  .site-header.is-menu-open .nav-links li.nav-social { display: block; margin-top: 12px; }
}

/* ---------- Section rhythm ---------- */
.section { position: relative; }
.section-pad     { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-pad-lg  { padding-block: clamp(6rem, 12vw, 10rem); }
.section-pad-sm  { padding-block: clamp(3rem, 6vw, 4.5rem); }

.on-paper { background: var(--paper); color: var(--ink); }
.on-paper-deep { background: var(--paper-deep); color: var(--ink); }
.on-ink { background: var(--ink); color: var(--paper); }

.rule { height: 1px; background: var(--paper-line); border: none; margin: 0; }
.on-ink .rule { background: var(--ink-line); }

/* topographic / survey-line texture, low opacity, single light source top-left */
.texture-ink {
  position: relative;
  background-image:
    radial-gradient(ellipse 900px 600px at 12% 0%, rgba(216, 180, 90, 0.16), transparent 60%),
    linear-gradient(165deg, #201a11 0%, #17130d 55%, #100d08 100%);
}
.texture-ink::before {
  content: '';
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700' viewBox='0 0 900 700'%3E%3Cg fill='none' stroke='%23d8b45a' stroke-width='1' stroke-opacity='0.22'%3E%3Cpath d='M-40 560 C 140 500, 220 610, 380 540 S 640 460, 820 520 940 470 1040 510'/%3E%3Cpath d='M-60 460 C 120 400, 240 500, 400 430 S 660 360, 860 420 980 380 1060 410'/%3E%3Cpath d='M-40 640 C 160 600, 260 690, 440 630 S 700 560, 900 620 1000 590 1080 610'/%3E%3Cpath d='M-20 340 C 180 300, 260 380, 460 330 S 720 270, 880 320'/%3E%3C/g%3E%3Cg fill='%23d8b45a' fill-opacity='0.5'%3E%3Ccircle cx='120' cy='120' r='2'/%3E%3Ccircle cx='210' cy='96' r='2'/%3E%3Ccircle cx='170' cy='176' r='2'/%3E%3Cpath d='M120 120 L210 96 L170 176 Z' fill='none' stroke='%23d8b45a' stroke-width='0.75' stroke-opacity='0.4'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -60px top -20px;
  background-size: 640px auto;
}
.texture-ink > * { position: relative; z-index: 1; }

.grain-paper { position: relative; }
.grain-paper::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: repeating-linear-gradient(180deg, var(--paper-line-soft) 0, var(--paper-line-soft) 1px, transparent 1px, transparent 3px);
  mask-image: linear-gradient(180deg, black, transparent 85%);
}
.grain-paper > * { position: relative; z-index: 1; }

/* ---------- Hero (video, asymmetric) ---------- */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--ink); }
.hero-media video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
}
/* full-bleed YouTube "cover" crop technique: oversize + center + no pointer events */
.hero-media iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;      /* 16:9 */
  min-height: 100%; min-width: 177.78vh; /* 16:9 */
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}

/* contained 16:9 embed (testimonial video) */
.video-embed {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--ink); border-radius: var(--radius-md);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(178deg, rgba(23,19,13,0.2) 0%, rgba(23,19,13,0.62) 46%, rgba(16,13,8,0.96) 100%),
    linear-gradient(100deg, rgba(23,19,13,0.55) 0%, transparent 46%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: min(94%, 1320px); margin-inline: auto; margin-top: auto;
  padding-block: clamp(6rem, 16vw, 9rem) clamp(3rem, 7vw, 4.5rem);
  padding-left: clamp(1.5rem, 6vw, 5.5rem);
  display: grid; grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr); gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}
.hero-copy { max-width: 46ch; }
/* Fix carried from v3-rebuild QA: .hero has no .on-ink ancestor, so h1.display
   was inheriting the default var(--ink) (near-black) text color against the
   darkened video backdrop, near-illegible except for the <em> portion (which
   has its own gold override). Scope the paper color directly to the hero. */
.hero-copy h1.display { color: var(--paper); }
.hero-copy .lede { margin-top: 22px; color: var(--mute-on-ink); }
.hero-copy .btn-row { margin-top: 34px; }
.hero-aside {
  justify-self: end; align-self: end;
  border-left: 1px solid var(--ink-line);
  padding-left: clamp(1.25rem, 2.4vw, 2rem);
  max-width: 30ch;
}
.hero-aside p { font-family: var(--font-mono); font-size: 0.78rem; color: var(--mute-on-ink); line-height: 1.9; }
.hero-aside .num { color: var(--gold-soft); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-aside { display: none; }
}

/* ---------- Trust strip (rule-divided row, not badges) ---------- */
.trust-strip {
  position: relative; z-index: 1;
  border-top: 1px solid var(--ink-line);
  background: rgba(16, 13, 8, 0.55);
}
.trust-row {
  width: min(94%, 1320px); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  padding: 20px clamp(0.75rem, 2vw, 1.5rem);
  border-left: 1px solid var(--ink-line);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.03em;
  color: var(--mute-on-ink);
}
.trust-item:first-child { border-left: none; }
.trust-item strong { display: block; color: var(--paper); font-family: var(--font-sans); font-size: 0.94rem; font-weight: 600; margin-bottom: 4px; letter-spacing: 0; }
@media (max-width: 760px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-left: none; border-top: 1px solid var(--ink-line); }
}

/* ---------- Editorial split (bio / asymmetric two-col) ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.split-reverse > :first-child { order: 2; }
.split-reverse > :last-child { order: 1; }
@media (max-width: 820px) {
  .split, .split-reverse { grid-template-columns: 1fr; }
  .split-reverse > * { order: initial !important; }
}

.drop-cap:first-letter {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 3.4em;
  float: left;
  line-height: 0.82;
  padding-right: 0.09em;
  padding-top: 0.06em;
  color: var(--gold-deep);
}

.pull-figure {
  border-top: 1px solid var(--paper-line);
  padding-top: 22px;
}
.pull-figure blockquote {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.4; color: var(--ink);
  margin: 0 0 14px;
}
.pull-figure cite { font-family: var(--font-mono); font-size: 0.76rem; color: var(--mute-on-paper); font-style: normal; }

/* ---------- Stepper (process steps, alternating asymmetric indent) ---------- */
.stepper { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: minmax(90px, 0.9fr) minmax(0, 5fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(2rem, 5vw, 3.25rem);
  border-top: 1px solid var(--paper-line);
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--paper-line); }
.step-num {
  font-family: var(--font-mono); font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--gold-wash); line-height: 1; font-weight: 500;
  -webkit-text-stroke: 1px var(--gold-deep);
  color: transparent;
}
.step-body h3 { margin-bottom: 12px; }
.step-body .lede { max-width: 60ch; margin-top: 0; color: var(--mute-on-paper); }
.step-body ul { margin-top: 18px; display: grid; gap: 10px; max-width: 56ch; }
.step-body li {
  font-size: 0.98rem; color: var(--ink-soft); padding-left: 22px; position: relative; line-height: 1.55;
}
.step-body li::before {
  content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 1px; background: var(--gold-deep);
}
/* Removed per Robert's request: v3-rebuild originally staggered even steps
   (2, 4) with extra left margin on .step-body for an alternating zigzag
   look. All 4 steps now align to one clean left column instead. */
@media (max-width: 700px) {
  .step { grid-template-columns: 1fr; }
}

/* ---------- Differentiator list (distinct from stepper: horizontal rule-list, no watermark numeral) ---------- */
.diff-list { display: flex; flex-direction: column; }
.diff-item {
  display: grid; grid-template-columns: 64px minmax(0,1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-block: 26px;
  border-top: 1px solid var(--ink-line);
}
.diff-item:last-child { border-bottom: 1px solid var(--ink-line); }
.diff-item .num { font-size: 1.05rem; color: var(--gold-soft); padding-top: 4px; }
.diff-item h3 { color: var(--paper); font-size: 1.15rem; font-family: var(--font-sans); font-weight: 600; margin-bottom: 8px; }
.diff-item p { color: var(--mute-on-ink); font-size: 0.98rem; line-height: 1.6; max-width: 52ch; }

/* ---------- Index grid (glossary-style 2-col list, distinct from stepper + diff-list) ---------- */
.index-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.5rem, 4vw, 3rem); }
.index-item { padding-block: 26px; border-top: 1px solid var(--paper-line); }
.index-item .mono-label { display: block; margin-bottom: 10px; }
.index-item h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }
.index-item p { color: var(--mute-on-paper); font-size: 0.95rem; line-height: 1.6; max-width: 42ch; }
@media (max-width: 700px) { .index-grid { grid-template-columns: 1fr; } }

/* ---------- Widget panel (Homebot / Experience.com host) ---------- */
.widget-panel {
  border-top: 1px solid var(--ink-line);
  padding-top: 22px;
  min-height: 340px;
}
.widget-panel .mono-label { display: block; margin-bottom: 16px; }
#homebot_homeowner, #ss-custom-reviews-widget-root { min-height: 300px; }

/* Light card wrapper for third-party widgets that render dark-on-white and
   don't self-theme for a dark section (Homebot needs this; the original
   live site wraps it the same way). Use on .on-ink sections only. */
.widget-card {
  background: var(--paper-card);
  border: 1px solid var(--gold-wash);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  min-height: 340px;
}
.widget-card .mono-label { display: block; margin-bottom: 16px; color: var(--mute-on-paper); }

/* ---------- Data viz: horizontal stacked bracket bar (real chart, not a bare list) ---------- */
.bracket-chart { display: grid; gap: 14px; margin-block: 8px 4px; }
.bracket-row { display: grid; grid-template-columns: 84px 1fr 70px; align-items: center; gap: 14px; }
.bracket-row .mono-label { text-align: right; }
.bracket-track { position: relative; height: 10px; background: var(--paper-deep); border-radius: 6px; overflow: hidden; }
.bracket-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 6px; }
.bracket-row .num { font-size: 0.82rem; color: var(--mute-on-paper); }

/* ---------- Lead capture (asymmetric split panel) ---------- */
.lead-panel {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 860px) { .lead-panel { grid-template-columns: 1fr; } }

.form-stack { display: grid; gap: 16px; max-width: 480px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute-on-paper); }
.field input {
  border: none; border-bottom: 1px solid var(--paper-line); background: transparent;
  padding: 12px 2px; font-size: 1rem; color: var(--ink);
  transition: border-color 200ms var(--ease);
}
.field input:focus { border-color: var(--gold-deep); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--mute-on-paper); margin-top: 4px; }
.form-success { display: none; font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; padding: 20px 0; }

/* ---------- FAQ (index-numbered rule list, no boxed cards) ---------- */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--paper-line);
  padding-block: 4px;
}
.faq-item:last-of-type { border-bottom: 1px solid var(--paper-line); }
.faq-item summary {
  display: grid; grid-template-columns: 52px minmax(0,1fr) 24px;
  align-items: baseline; gap: 16px;
  padding-block: 22px;
  cursor: pointer; list-style: none;
  font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .num { color: var(--gold-deep); font-size: 0.85rem; }
.faq-item summary .toggle-glyph {
  font-family: var(--font-mono); text-align: right; color: var(--mute-on-paper);
  transition: transform 200ms var(--ease);
}
.faq-item[open] summary .toggle-glyph { transform: rotate(45deg); }
.faq-answer { padding: 0 0 30px 68px; max-width: 62ch; }
.faq-answer p { margin-bottom: 12px; font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }
.faq-answer ul { margin: 12px 0 12px 68px; display: grid; gap: 8px; }
.faq-answer li { list-style: disc; font-size: 0.98rem; color: var(--ink-soft); line-height: 1.6; }

.inline-cta {
  margin: 12px 0 34px 0;
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 26px;
}
.inline-cta h3.display { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 8px; }
.inline-cta p { color: var(--mute-on-paper); max-width: 48ch; margin-bottom: 18px; }
@media (max-width: 620px) {
  .faq-item summary { grid-template-columns: 34px minmax(0,1fr) 20px; }
  .faq-answer, .inline-cta { padding-left: 0; margin-left: 0; }
  .faq-answer ul { margin-left: 18px; }
}

/* ---------- Final CTA (the one deliberately centered, dominant moment) ---------- */
.final-cta { text-align: center; }
.final-cta .display { max-width: 18ch; margin-inline: auto; }
.final-cta .lede { margin-inline: auto; text-align: center; max-width: 48ch; }
.final-cta .btn-row { justify-content: center; margin-top: 30px; }

/* ---------- Service area band ---------- */
.area-band { position: relative; }
.area-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; }
.area-links a { font-family: var(--font-mono); font-size: 0.82rem; color: var(--gold-deep); border-bottom: 1px solid transparent; }
.area-links a:hover { border-color: var(--gold-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); }
.footer-grid {
  display: grid; grid-template-columns: minmax(0,5fr) repeat(3, minmax(0,2.3fr));
  gap: clamp(2rem, 5vw, 3rem);
  padding-block: clamp(3rem, 6vw, 5rem) 2.5rem;
}
/* Never had a mobile breakpoint (found via mobile QA 2026-08-03): the 4
   columns squeezed into a 375px viewport, clipping "817-689-3112" and
   "Disclosures" against the edge. Stack to 2-up, then 1-up, matching the
   breakpoints already used elsewhere (.index-grid, .post-grid). */
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand .brand-lockup { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-lockup img { height: 30px; width: auto; flex: none; }
.footer-brand .name { font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; }
.footer-brand p { font-size: 0.9rem; color: var(--mute-on-ink); line-height: 1.7; margin-top: 12px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--mute-on-ink); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid var(--ink-line);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px;
}
.equal-housing { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--mute-on-ink); }
.equal-housing svg { width: 18px; height: 18px; flex: none; }
.footer-bottom p { font-size: 0.82rem; color: var(--mute-on-ink); max-width: 640px; }
.footer-legal { padding-bottom: clamp(2rem, 4vw, 3rem); }
.footer-legal p { font-size: 0.76rem; color: rgba(202, 191, 166, 0.65); line-height: 1.7; max-width: 900px; }

/* ---------- Social icon row (header + footer) ---------- */
.social-row { display: flex; align-items: center; gap: 14px; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--ink-line); color: var(--mute-on-ink);
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.social-row a:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.social-row svg { width: 16px; height: 16px; }
.footer-col .social-row { margin-top: 4px; }

/* ---------- Blog index & related posts (card system) ---------- */
.cat-chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.cat-chip {
  background: var(--paper-card); border: 1px solid var(--paper-line);
  color: var(--ink); padding: 9px 18px;
  border-radius: 999px; font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: border-color 200ms var(--ease), color 200ms var(--ease), background 200ms var(--ease);
}
.cat-chip:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.cat-chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.post-card {
  display: flex; flex-direction: column;
  background: var(--paper-card); border: 1px solid var(--paper-line);
  border-radius: 14px; overflow: hidden;
  transition: transform 280ms var(--ease), border-color 280ms var(--ease), box-shadow 280ms var(--ease);
}
.post-card:hover { transform: translateY(-4px); border-color: var(--gold-deep); box-shadow: 0 18px 40px -20px rgba(23,19,13,0.25); }

.post-cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background:
    radial-gradient(circle at 26% 22%, var(--gold-wash), transparent 55%),
    linear-gradient(150deg, var(--ink-soft), var(--ink));
}
.post-cover::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(248,244,233,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248,244,233,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
}
.post-cover .cat-mark {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: var(--gold); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
}
.post-cover .cover-mark {
  position: absolute; bottom: 12px; right: 16px; z-index: 1;
  font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--gold-soft); opacity: 0.55;
}
/* swap in a real photo later: add class="post-cover has-thumb" style="background-image:url(...)" */
.post-cover.has-thumb { background: var(--ink); background-size: cover; background-position: center; }
.post-cover.has-thumb::before { opacity: 0.15; }

.post-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-body h3.display { font-size: 1.2rem; margin-bottom: 10px; transition: color 200ms var(--ease); }
.post-card:hover .post-card-body h3.display { color: var(--gold-deep); }
.post-card-body .excerpt { color: var(--mute-on-paper); font-size: 0.92rem; line-height: 1.55; margin-bottom: 16px; flex: 1; }
.post-card-body .post-meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--mute-on-paper);
  padding-top: 14px; border-top: 1px solid var(--paper-line); margin-top: auto;
}
.post-card-body .post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--mute-on-paper); opacity: 0.6; }
.post-card-body .post-meta .read { color: var(--gold-deep); font-weight: 600; }

.featured-post {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--paper-card); border: 1px solid var(--paper-line); border-radius: 18px;
  overflow: hidden; margin-bottom: clamp(2rem, 4vw, 3rem);
  transition: transform 280ms var(--ease), border-color 280ms var(--ease), box-shadow 280ms var(--ease);
}
.featured-post:hover { transform: translateY(-4px); border-color: var(--gold-deep); box-shadow: 0 24px 60px -24px rgba(23,19,13,0.3); }
.featured-post .post-cover { aspect-ratio: auto; min-height: 320px; }
.featured-post .post-card-body { padding: clamp(2rem, 4vw, 3rem); }
.featured-post .eyebrow { margin-bottom: 16px; }
.featured-post h2.display { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.featured-post .lede { margin-bottom: 20px; max-width: 52ch; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .post-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .post-cover { min-height: 220px; }
}

/* ---------- Blog pagination ---------- */
.blog-pagination {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 26px; border-top: 1px solid var(--paper-line);
  font-family: var(--font-mono); font-size: 0.82rem;
}
.blog-pagination a { color: var(--gold-deep); }
.blog-pagination a:hover { text-decoration: underline; }
.blog-pagination .is-disabled { color: var(--mute-on-paper); opacity: 0.5; }

/* ---------- Post article template ---------- */
.post-hero { padding-top: clamp(7rem, 14vw, 9rem); }
.post-meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-bottom: 20px; }
.post-meta-row span { font-family: var(--font-mono); font-size: 0.76rem; color: var(--mute-on-paper); }
.post-hero h1.display { max-width: 20ch; }
.post-hero .lede { margin-top: 20px; max-width: 60ch; }

.prose { max-width: var(--measure); }
.prose h2 { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 500; margin: 2.4em 0 0.7em; }
.prose p { margin-bottom: 1.3em; }
.prose ul { margin: 1.2em 0 1.4em 1.2em; display: grid; gap: 8px; }
.prose li { list-style: disc; line-height: 1.6; }
.prose blockquote {
  margin: 2em 0; padding-left: 26px; border-left: 2px solid var(--gold);
  font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--ink);
}
/* WordPress core content defaults, in case a future post uses the block editor's built-in image/caption/alignment markup */
.prose img { border-radius: var(--radius-md); margin: 1.6em 0; }
.prose .wp-caption, .prose figure { margin: 1.6em 0; }
.prose .wp-caption-text, .prose figcaption { font-family: var(--font-mono); font-size: 0.78rem; color: var(--mute-on-paper); margin-top: 8px; }
.prose .alignleft { float: left; margin: 0.4em 1.6em 1em 0; }
.prose .alignright { float: right; margin: 0.4em 0 1em 1.6em; }
.prose .aligncenter { display: block; margin: 1.6em auto; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 640ms var(--ease), transform 640ms var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.mt-lg { margin-top: clamp(2rem, 4vw, 3.5rem); }
.center-narrow { max-width: 620px; margin-inline: auto; text-align: center; }

/* ---------- WordPress core alignment classes (safety net) ---------- */
.alignwide { max-width: 1240px; margin-inline: auto; }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
