/* ───────────────────────────────────────────────────────────
   sjgb-shim.css — Compatibility layer
   Maps inner-page editorial class names + CSS vars to the
   homepage design system (sjgb-design.css). Loaded after
   sjgb-design.css so it can re-skin existing markup without
   touching the HTML.
   ─────────────────────────────────────────────────────────── */

/* ── Mobile overflow safety net ──
   Use `overflow-x: clip` (not `hidden`) so it does NOT create a scroll
   container — `position: sticky` on the header keeps working. */
html, body { overflow-x: clip; }

/* ── Variable bridge: inner-page tokens → homepage tokens ── */
:root {
  --bone:        #fefcf5;
  --bone-warm:   #f5f0e4;
  --paper:       #f5f0e4;
  --cream:       #f5f0e4;
  --stone:       #ebe4d3;
  --ink:         #1a1f1a;
  --ink-soft:    #2c322c;
  --forest:      #1e2a1f;
  --forest-2:    #151d16;
  --moss:        #2d3b2e;
  --sage:        #6b7a64;
  --brass:       #b09450;
  --brass-deep:  #8a7340;
  --brass-light: #d4b876;
  --warm-gray:   #6b6a62;
  --soft-gray:   #b8b2a3;
  --rule:        rgba(26, 31, 26, 0.12);
  --rule-soft:   rgba(26, 31, 26, 0.06);
  --display:     'Fraunces', Georgia, serif;
  --sans:        'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:        'Libre Franklin', monospace;
  --frame:       clamp(20px, 4vw, 32px);
  --page-max:    1240px;
  --ease:        cubic-bezier(.2, .7, .2, 1);
  --ease-snap:   cubic-bezier(.4, 0, .1, 1);
}

/* ── Base typography (override Cormorant/Inter pages) ── */
body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Page header (top of every inner page) ── */
.page-header {
  padding: 80px 0 56px;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.page-header-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}
.page-header-meta {
  font-family: var(--display);
  font-style: italic;
  color: var(--warm-gray);
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}
.page-header-meta .num {
  font-family: var(--display);
  font-style: italic;
  color: var(--brass);
  font-size: 18px;
}
.page-header-meta .divider {
  width: 32px; height: 1px;
  background: var(--brass);
  display: block;
}
.page-header-body { min-width: 0; }
.page-header-body .eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.page-header-body .eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--brass);
}
.page-header-body h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 900px;
}
.page-header-body h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
}
.page-header-body .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--warm-gray);
  margin: 0 0 32px;
  max-width: 640px;
  font-weight: 300;
}
.page-header-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
/* Default: stack city/region on its own line, hide inline comma */
.page-header-meta .meta-sep { display: none; }
.page-header-meta .meta-line { display: block; }
@media (max-width: 880px) {
  .page-header { padding: 56px 0 40px; }
  .page-header-wrap { grid-template-columns: 1fr; gap: 24px; }
  .page-header-meta {
    /* Use inline-flex so text nodes (e.g. "San Jose") don't become flex items
       and acquire stray gap. The numerical prefix and divider are explicit
       <span> elements that flow inline. */
    display: block;
    padding-top: 0;
    font-size: 12px;
  }
  .page-header-meta .num { display: inline; margin-right: 8px; }
  .page-header-meta .divider { display: inline-block; width: 20px; vertical-align: middle; margin: 0 8px 3px; }
  .page-header-meta br { display: none; }
  .page-header-meta .meta-line { display: inline; }
  .page-header-meta .meta-sep { display: inline; }
}

/* ── Prose section (main content blocks) ── */
.prose-section {
  padding: 88px 0;
  background: var(--cream);
}
.prose-section.alt { background: var(--bone-warm); }
.prose-section.dark {
  background: var(--forest);
  color: var(--cream);
}
.prose-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.prose-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.prose-intro .eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.prose-intro .eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--brass);
}
.prose-intro h2,
.h-section,
.display.h-section {
  font-family: var(--display);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.prose-intro h2 em,
.h-section em,
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
}
.prose-intro .body,
.prose-intro p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--warm-gray);
  margin: 0;
  max-width: 520px;
}
.prose-section.dark .prose-intro h2 { color: var(--cream); }
.prose-section.dark .prose-intro .body,
.prose-section.dark .prose-intro p { color: var(--soft-gray); }
.prose-section.dark .prose-intro .eyebrow { color: var(--soft-gray); }
.prose-section.dark .prose-intro .eyebrow::before { background: var(--brass-light); }
@media (max-width: 880px) {
  .prose-section { padding: 64px 0; }
  .prose-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
}

/* Long-form prose body inside prose-section (paragraphs, headings, lists) */
.prose-section .body,
.prose-section p.body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--warm-gray);
  max-width: 64ch;
  margin: 0 0 16px;
}
.prose-section h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  margin: 32px 0 12px;
  color: var(--ink);
}
.prose-section h3 em { font-style: italic; color: var(--brass); }
.prose-section ul, .prose-section ol {
  color: var(--warm-gray);
  line-height: 1.7;
  padding-left: 22px;
  margin: 0 0 16px;
  max-width: 64ch;
}
.prose-section li { margin-bottom: 6px; }
.prose-section .body a,
.prose-section p:not(.eyebrow) a,
.prose-section li a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}
.prose-section .body a:hover,
.prose-section p:not(.eyebrow) a:hover,
.prose-section li a:hover { text-decoration-color: var(--ink); }
/* Hub-card and info-card links get cleaner styling — no per-word underlines */
.prose-section .hub-card a,
.prose-section .info-card a,
.prose-section .hub-card,
.prose-section .info-card a:not(.btn) {
  text-decoration: none;
}
.prose-section.dark .body,
.prose-section.dark p.body,
.prose-section.dark p,
.prose-section.dark ul, .prose-section.dark ol { color: var(--soft-gray); }
.prose-section.dark h3 { color: var(--cream); }

/* ── Info card grid ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.info-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.info-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .info-grid, .info-grid.cols-3, .info-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .info-grid, .info-grid.cols-3, .info-grid.cols-4 { grid-template-columns: 1fr; }
}

.info-card {
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.info-card:hover { border-color: var(--brass); }
.info-card-n,
.info-card .info-card-n {
  font-family: var(--display);
  font-style: italic;
  color: var(--brass);
  font-size: 16px;
  display: block;
  margin-bottom: 16px;
}
.info-card h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.info-card h3 em { font-style: italic; color: var(--brass); }
.info-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--warm-gray);
  margin: 0;
}
.info-card p + p { margin-top: 12px; }
.prose-section.dark .info-card { background: var(--forest-2); border-color: rgba(245,240,228,0.12); }
.prose-section.dark .info-card h3 { color: var(--cream); }
.prose-section.dark .info-card p { color: var(--soft-gray); }

/* ── Buttons (existing inner-page classes) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 2px;
  line-height: 1;
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-forest, .btn-primary {
  background: var(--forest);
  color: var(--cream);
}
.btn-forest:hover, .btn-primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
}
.btn-brass, .btn-gold {
  background: var(--brass-light);
  color: var(--forest-2);
  font-weight: 500;
}
.btn-brass:hover, .btn-gold:hover {
  background: #e0c489;
  transform: translateY(-1px);
}
.btn-line, .btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-line:hover, .btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-ghost, .btn-outline-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--cream);
}
.btn-ghost:hover, .btn-outline-light:hover {
  background: var(--cream);
  color: var(--forest);
}
.btn-large { padding: 18px 36px; font-size: 15px; }

/* ── Tags (used on services hub) ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: var(--bone);
  border: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-gray);
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.2s ease;
}
.tag:hover { border-color: var(--brass); color: var(--ink); background: var(--cream); }

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 32px 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.breadcrumb a { color: var(--warm-gray); text-decoration: none; transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--brass); }
.breadcrumb .current { color: var(--ink); }
.breadcrumb .divider { margin: 0 10px; color: var(--brass); }

/* ── Services hub cards ── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 780px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  overflow: hidden;
  min-height: 320px;
}
.hub-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--brass);
  transition: width 0.4s ease;
}
.hub-card:hover { background: #fff; transform: translateY(-2px); border-color: var(--brass); }
.hub-card:hover::before { width: 100%; }
.hub-card .hub-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--brass-deep);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.hub-card h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}
.hub-card h3 em { font-style: italic; color: var(--brass); }
.hub-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--warm-gray);
  margin: 0 0 20px;
  flex-grow: 1;
}
.hub-card .hub-link {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  transition: color 0.2s ease;
}
.hub-card:hover .hub-link { color: var(--brass-deep); }

/* ── Close (final CTA on inner pages) ── */
.close {
  padding: 96px 0;
  background: var(--forest);
  color: var(--cream);
  text-align: center;
}
.close-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}
.close .eyebrow {
  color: var(--soft-gray);
  justify-content: center;
  margin-bottom: 24px;
}
.close .eyebrow::before { background: var(--brass-light); }
.close-h, .close h2 {
  font-family: var(--display);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0 0 20px;
}
.close-h em, .close h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass-light);
}
.close-sub {
  font-size: 17px;
  color: var(--soft-gray);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.close-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.close-foot {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(245,240,228,0.12);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--soft-gray);
}
.close-phone { color: var(--brass-light); text-decoration: none; }
.close-phone:hover { color: var(--cream); }
.close-sep { color: var(--soft-gray); opacity: 0.5; }
@media (max-width: 720px) { .close { padding: 64px 0; } }

/* ── FAQ-seo ── */
.faq-seo {
  background: var(--bone-warm);
  padding: 88px 0;
  border-top: 1px solid var(--rule);
}
.faq-seo > * { max-width: 820px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
.faq-seo .eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0;
}
.faq-seo .eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--brass);
}
.faq-seo h2 {
  font-family: var(--display);
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 40px;
}
.faq-seo h2 em { font-style: italic; font-weight: 400; color: var(--brass); }
.faq-seo-item {
  border-top: 1px solid var(--rule);
  padding: 0;
}
.faq-seo-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-seo-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 40px 24px 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
  position: relative;
  line-height: 1.35;
}
.faq-seo-item summary::-webkit-details-marker { display: none; }
.faq-seo-item summary::after {
  content: '+';
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--brass);
  transition: transform 0.2s ease;
}
.faq-seo-item[open] summary::after { content: '–'; }
.faq-seo-answer {
  padding: 0 40px 28px 0;
  color: var(--warm-gray);
  font-size: 15px;
  line-height: 1.7;
  max-width: 70ch;
}

/* ── Footer ── */
footer.foot {
  background: var(--forest-2);
  color: var(--cream);
  padding: 72px 0 32px;
}
footer.foot .foot-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
footer.foot .foot-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(245,240,228,0.12);
}
footer.foot .foot-brand-col .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
  margin-bottom: 16px;
}
footer.foot .brand-mark {
  width: 36px; height: 36px;
  background: var(--brass);
  color: var(--forest-2);
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0;
}
footer.foot .brand-mark .letters { color: var(--forest-2); }
footer.foot .brand-text { display: inline-flex; flex-direction: column; line-height: 1.2; }
footer.foot .brand-name {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--cream);
}
footer.foot .brand-meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft-gray);
  margin-top: 2px;
}
footer.foot .foot-about {
  font-size: 14px;
  color: var(--soft-gray);
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 320px;
}
footer.foot .foot-about em { font-family: var(--display); color: var(--brass-light); }
footer.foot .foot-contact {
  font-size: 14px;
  color: var(--soft-gray);
  line-height: 1.7;
}
footer.foot .foot-contact a {
  color: var(--brass-light);
  text-decoration: none;
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  margin-bottom: 6px;
}
footer.foot .foot-contact a:hover { color: var(--cream); }
footer.foot .foot-contact .addr { display: block; }
footer.foot .foot-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brass-light);
  margin: 0 0 18px;
}
footer.foot .foot-col ul { list-style: none; padding: 0; margin: 0; }
footer.foot .foot-col li { margin-bottom: 10px; font-size: 14px; color: var(--soft-gray); }
footer.foot .foot-col a {
  color: var(--soft-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}
footer.foot .foot-col a:hover { color: var(--brass-light); }
footer.foot .foot-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--soft-gray);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 16px;
}
footer.foot .foot-bottom a { color: var(--soft-gray); text-decoration: none; }
footer.foot .foot-bottom a:hover { color: var(--brass-light); }
@media (max-width: 880px) {
  footer.foot .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  footer.foot .foot-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Mobile bar (bottom of inner pages) ── */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bone);
  border-top: 1px solid var(--rule);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  /* Below sticky header (100) and well below modal (200), above page content */
  z-index: 80;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.mobile-bar .call,
.mobile-bar .quote {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Ensure ≥44px tap target */
  min-height: 44px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 2px;
  line-height: 1;
}
.mobile-bar .quote {
  background: var(--brass-light);
  border-color: var(--brass-light);
  color: var(--forest-2);
}
@media (max-width: 720px) {
  .mobile-bar { display: flex; }
  /* Reserve space so sticky bar never covers content/forms */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ── Modal (used by openQuote) ── */
.mback {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20, 24, 18, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mback.is-open,
.mback.on { display: flex; }
.mbox {
  background: var(--bone);
  border-radius: 4px;
  width: 100%;
  max-width: 520px;
  padding: 40px;
  position: relative;
  box-shadow: 0 8px 40px rgba(26, 31, 26, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}
.mbox::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brass), var(--brass-light), var(--brass));
  border-radius: 4px 4px 0 0;
}
.mx {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: transparent; border: none; cursor: pointer;
  color: var(--warm-gray);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.mx:hover { background: var(--rule); color: var(--ink); }
.mbox .eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mbox .eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--brass);
}
.mbox h3 {
  font-family: var(--display);
  font-size: 28px; font-weight: 400; line-height: 1.2;
  margin: 8px 0 8px;
  color: var(--ink);
}
.mbox h3 em { font-style: italic; color: var(--brass); }
.mbox .body { color: var(--warm-gray); font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 10px;
  font-weight: 500;
}
.form-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.form-pill {
  padding: 10px 16px;
  background: var(--cream);
  border: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
}
.form-pill:hover { border-color: var(--brass); }
.form-pill.on { background: var(--forest); color: var(--brass-light); border-color: var(--forest); }
.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
}
.form-input:focus { outline: none; border-color: var(--forest); }
.form-submit {
  width: 100%;
  margin-top: 10px;
  padding: 16px 24px;
  background: var(--forest);
  color: var(--cream);
  border: none;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease;
}
.form-submit:hover { background: var(--ink); }
.mwin { display: none; text-align: center; padding: 16px 0; }
.mwin.is-on, .mwin.on, .mbox.is-win .mwin { display: block; }
.mwin svg { width: 56px; height: 56px; color: var(--brass); margin: 0 auto 16px; }
.mwin .eyebrow { justify-content: center; }
.mwin h3 { color: var(--ink); }
.mwin p { color: var(--warm-gray); margin: 0 0 24px; font-size: 15px; line-height: 1.6; }

/* ── Reveal animation (preserves existing .rev / .in classes) ── */
.rev { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rev.in { opacity: 1; transform: none; }

/* ── Page-specific layout helpers (preserved class names) ── */

/* Contact page */
.contact-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; padding: 0 24px; }
}
@media (max-width: 480px) {
  .contact-grid { padding: 0 16px; gap: 32px; }
}
.contact-row {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}
.contact-row:last-child { border-bottom: 1px solid var(--rule); }
.contact-row-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-gray);
  font-weight: 500;
}
.contact-row-value {
  font-family: var(--display);
  font-size: 17px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.contact-row-value a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brass); align-self: flex-start; }
.contact-row-value a:hover { color: var(--brass-deep); }
.contact-row-value .faint,
.faint {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--warm-gray);
  font-style: normal;
}
@media (max-width: 640px) {
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Contact form additional styles */
.capture-form {
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 36px 32px;
}
.capture-form .form-head { margin-bottom: 24px; }
.capture-form .form-head .eyebrow { margin-bottom: 14px; }
.capture-form .form-head h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
}
.capture-form .form-head h3 em { font-style: italic; color: var(--brass); }
.capture-form .form-head p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--warm-gray);
  margin: 0;
}
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.form-textarea:focus { outline: none; border-color: var(--forest); }
.form-foot {
  margin-top: 14px;
  font-size: 12px;
  color: var(--warm-gray);
  text-align: center;
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .capture-form { padding: 28px 22px; }
}

/* Drop cap (used in About / How it works long-form intros) */
.dropcap::first-letter {
  font-family: var(--display);
  font-style: italic;
  font-size: 64px;
  font-weight: 400;
  color: var(--brass);
  float: left;
  line-height: 0.95;
  margin: 6px 14px 0 0;
}

/* Generic horizontal rules */
hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

/* Prevent any horizontal overflow without breaking position: sticky */
html, body { max-width: 100vw; overflow-x: clip; }

/* ── Services hub: featured card + meta strip + descriptions ── */
.hub-grid .hub-card.feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
  min-height: auto;
  padding: 40px;
  background: linear-gradient(180deg, var(--bone) 0%, var(--cream) 100%);
}
@media (max-width: 880px) {
  .hub-grid .hub-card.feature { grid-template-columns: 1fr; gap: 20px; padding: 32px 26px; }
}
.hub-card .hub-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--warm-gray);
  margin: 0 0 20px;
  flex-grow: 1;
}
.hub-card .hub-desc strong { color: var(--ink); font-weight: 500; }
.hub-card .hub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 20px;
}
.hub-card .hub-meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
  font-weight: 500;
  white-space: nowrap;
}
.hub-card .hub-cta {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  transition: color 0.2s ease;
  margin-top: auto;
}
.hub-card .hub-cta .arrow { transition: transform 0.2s ease; }
.hub-card:hover .hub-cta { color: var(--brass-deep); }
.hub-card:hover .hub-cta .arrow { transform: translateX(3px); }

/* ── Contextual links section (services / neighborhoods band) ── */
.context-links {
  padding: 80px 0;
  background: var(--bone-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cl-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.cl-wrap > div:first-child h3 {
  font-family: var(--display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.cl-wrap > div:first-child h3 em { font-style: italic; color: var(--brass); }
.cl-list {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--warm-gray);
  max-width: 64ch;
}
.cl-list a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 4px;
}
.cl-list a:hover { text-decoration-color: var(--ink); }
.nbr-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nbr-grid a {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.nbr-grid a:hover {
  border-color: var(--brass);
  background: var(--cream);
  color: var(--brass-deep);
}
@media (max-width: 880px) {
  .context-links { padding: 56px 0; }
  .cl-wrap { grid-template-columns: 1fr; gap: 28px; }
}
