/*
Theme Name: Proudfoot & Associates
Theme URI: https://proudfootassociates.com
Author: Binary Glyph
Author URI: https://binaryglyph.com
Description: Custom block theme for Proudfoot & Associates, Inc. — civil engineers serving Northwest Ohio since 1887.
Version: 0.9.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: proudfoot-associates
*/

/* ════════════════════════════════════════════════════════════════
   PROUDFOOT & ASSOCIATES — THEME STYLESHEET
   Phase B: token bridge + shared chrome CSS (base, typography,
   buttons, layout, eyebrow, sections, header, footer, responsive),
   ported verbatim from the locked mockups.
   Page-specific component CSS (cards, timeline, project entries)
   is appended in Phase C alongside each block pattern.
   ════════════════════════════════════════════════════════════════ */

/* ─── Self-hosted webfonts: Inter + JetBrains Mono (assets/fonts/).
   Serif (Display/H1, wordmark, ampersand) uses the system font stack. ─── */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/jetbrains-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/jetbrains-mono-500.woff2') format('woff2'); }

/* ─── Token bridge ───────────────────────────────────────────────
   theme.json drives the block editor; these raw custom properties
   let the mockup CSS (written against tokens.css) port verbatim.
   Same values as theme.json — single source of truth, two forms. */
:root {
  --orange:      #d44f28;
  --orange-dark: #a83a1c;
  --teal:        #3b818c;
  --black:       #010101;
  --white:       #ffffff;
  --buffalo:     #171526;
  --gray-95:     #f5f5f5;
  --gray-90:     #e5e5e5;
  --gray-70:     #b3b3b3;
  --gray-50:     #808080;
  --gray-30:     #4d4d4d;
  --gray-15:     #262626;
  --space-1:       4px;
  --space-2:       8px;
  --space-3:      12px;
  --space-4:      16px;
  --space-5:      24px;
  --space-6:      32px;
  --space-8:      48px;
  --space-10:     64px;
  --space-12:     96px;
  --space-16:    128px;
  --font-sans:   'Inter', sans-serif;
  --font-serif:  'Times New Roman', Times, serif;
  --font-mono:   'JetBrains Mono', monospace;
  --font-futura: 'Futura PT', 'Futura', 'Trebuchet MS', sans-serif;
  --wordmark:    'Times New Roman', serif;
}

/* ─── Base ─── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--black);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--black); }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

/* Top-level page elements and full-width page sections sit flush — no blockGap between them */
.wp-site-blocks > *,
.wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }

/* ─── Typography hierarchy (Style Guide §03) ─── */
.display, h1.display { font-family: var(--font-serif); font-size: clamp(40px, 5.4vw, 64px); font-weight: 400; line-height: 1.08; letter-spacing: -0.005em; color: var(--black); }
.h1, h1 { font-family: var(--font-serif); font-size: clamp(34px, 4vw, 48px); font-weight: 400; line-height: 1.12; letter-spacing: -0.005em; color: var(--black); }
.h2, h2 { font-family: var(--font-sans); font-size: clamp(26px, 3.2vw, 32px); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--black); }
.h3, h3 { font-family: var(--font-sans); font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--black); }
.h4, h4 { font-family: var(--font-sans); font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: 0.02em; text-transform: uppercase; color: var(--black); }
.body { font-size: 16px; line-height: 1.6; color: var(--gray-30); }
.body-lg { font-size: 18px; line-height: 1.6; color: var(--gray-30); }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--gray-30); }
.eyebrow-label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); }
.meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-50); }

/* ─── Brand-name treatment (Display & H1 only) ─── */
.pfa-name { font-family: var(--wordmark); font-weight: 400; }
.pfa-name .amp { font-family: 'Book Antiqua', Palatino, serif; font-style: italic; color: var(--teal); }

/* ─── Buttons — native wp:button blocks (Style Guide §05) ─── */
.wp-block-button .wp-block-button__link { font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: var(--space-3) var(--space-6); border: 2px solid transparent; border-radius: 0; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.wp-block-button.btn-lg .wp-block-button__link { padding: var(--space-4) var(--space-8); font-size: 16px; }
.wp-block-button.btn-primary .wp-block-button__link { background: var(--orange); border-color: var(--orange); color: var(--white); }
.wp-block-button.btn-primary .wp-block-button__link:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }
.wp-block-button.btn-secondary .wp-block-button__link { background: var(--black); border-color: var(--black); color: var(--white); }
.wp-block-button.btn-secondary .wp-block-button__link:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.wp-block-button.btn-ghost .wp-block-button__link { background: transparent; border-color: var(--black); color: var(--black); }
.wp-block-button.btn-ghost .wp-block-button__link:hover { background: var(--black); color: var(--white); }
.wp-block-button.btn-on-dark.btn-secondary .wp-block-button__link { background: transparent; border-color: var(--white); color: var(--white); }
.wp-block-button.btn-on-dark.btn-secondary .wp-block-button__link:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.wp-block-button.btn-on-dark.btn-ghost .wp-block-button__link { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }
.wp-block-button.btn-on-dark.btn-ghost .wp-block-button__link:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ─── Layout container ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-6); }

/* ─── Eyebrow with rule (Style Guide §05) — single element, rule via ::before ─── */
.rule-eyebrow { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); }
.rule-eyebrow::before { content: ""; width: var(--space-6); height: 1px; background: var(--teal); flex-shrink: 0; }
.section--dark .rule-eyebrow,
.section--dark-soft .rule-eyebrow,
.section--blueprint .rule-eyebrow,
.hero .rule-eyebrow { color: rgba(255,255,255,0.95); }
.section--blueprint .rule-eyebrow::before,
.hero .rule-eyebrow::before { background: rgba(255,255,255,0.95); }

/* ─── Section types (Style Guide §06) ─── */
.section { padding: var(--space-12) 0; }
.section--white { background: var(--white); color: var(--black); }
.section--blueprint {
  background-color: var(--teal);
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNDAiIGhlaWdodD0iMjQwIiB2aWV3Qm94PSIwIDAgMjQwIDI0MCI+PGRlZnM+PHBhdHRlcm4gaWQ9ImJwIiB4PSIwIiB5PSIwIiB3aWR0aD0iMjQwIiBoZWlnaHQ9IjI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDQwIEwgMjQwIDQwIE0gMCA4MCBMIDI0MCA4MCBNIDAgMTIwIEwgMjQwIDEyMCBNIDAgMTYwIEwgMjQwIDE2MCBNIDAgMjAwIEwgMjQwIDIwMCBNIDQwIDAgTCA0MCAyNDAgTSA4MCAwIEwgODAgMjQwIE0gMTIwIDAgTCAxMjAgMjQwIE0gMTYwIDAgTCAxNjAgMjQwIE0gMjAwIDAgTCAyMDAgMjQwIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMC41IiBvcGFjaXR5PSIwLjA4Ii8+PHBhdGggZD0iTSAwIDAgTCAyNDAgMCBNIDAgMjQwIEwgMjQwIDI0MCBNIDAgMCBMIDAgMjQwIE0gMjQwIDAgTCAyNDAgMjQwIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMSIgb3BhY2l0eT0iMC4xOCIvPjxjaXJjbGUgY3g9IjEyMCIgY3k9IjEyMCIgcj0iMiIgZmlsbD0iI2ZmZmZmZiIgb3BhY2l0eT0iMC4yNSIvPjxwYXRoIGQ9Ik0gMTE2IDEyMCBMIDEyNCAxMjAgTSAxMjAgMTE2IEwgMTIwIDEyNCIgc3Ryb2tlPSIjZmZmZmZmIiBzdHJva2Utd2lkdGg9IjAuNiIgb3BhY2l0eT0iMC4zIi8+PHRleHQgeD0iMTI0IiB5PSIxMTYiIGZvbnQtZmFtaWx5PSJtb25vc3BhY2UiIGZvbnQtc2l6ZT0iNiIgZmlsbD0iI2ZmZmZmZiIgb3BhY2l0eT0iMC4yMiI+MTIwLDEyMDwvdGV4dD48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIyNDAiIGhlaWdodD0iMjQwIiBmaWxsPSJ1cmwoI2JwKSIvPjwvc3ZnPg==");
  background-size: 240px 240px;
  color: var(--white);
}
.section--dark { background: var(--black); color: var(--white); }
.section--dark-soft { background: var(--gray-15); color: var(--white); }
.section-lead { font-size: 17px; line-height: 1.6; max-width: 720px; color: var(--gray-30); }
.section--blueprint .section-lead, .section--dark .section-lead, .section--dark-soft .section-lead { color: rgba(255,255,255,0.88); }
.section--blueprint h2, .section--dark h2, .section--dark-soft h2 { color: var(--white); }
.section h2 { max-width: 760px; }

/* ─── Site header ─── */
.site-header { background: var(--white); border-bottom: 1px solid var(--gray-90); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-5); padding-bottom: var(--space-5); gap: var(--space-6); }
.header-logo { display: block; width: 240px; height: 56px; background: url("assets/logos/pfa-logo-horz.svg") no-repeat left center; background-size: contain; text-decoration: none; flex-shrink: 0; }
.header-nav { display: flex; align-items: center; gap: var(--space-6); }
.header-nav a { font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--black); text-decoration: none; padding-bottom: var(--space-1); transition: color 0.15s, border-color 0.15s; border-bottom: 2px solid transparent; }
.header-nav a:hover { color: var(--teal); border-bottom-color: var(--teal); }
.header-nav a.active, .header-nav .current-menu-item a { color: var(--teal); border-bottom-color: var(--teal); }
.header-phone { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--black); text-decoration: none; padding: var(--space-3) var(--space-4); border: 1px solid var(--black); white-space: nowrap; }
.header-phone:hover { background: var(--black); color: var(--white); }

/* ─── Site footer ─── */
.site-footer { background: var(--black); color: var(--white); padding: var(--space-12) 0 var(--space-6); position: relative; overflow: hidden; }
.footer-flourish { position: absolute; right: var(--space-6); bottom: var(--space-6); width: var(--space-12); height: var(--space-12); background: url("assets/logos/pfa-brand-flourish-rev.svg") no-repeat center; background-size: contain; opacity: 0.18; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-10); margin-bottom: var(--space-10); }
.footer-col h5 { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin-bottom: var(--space-4); }
.footer-brand-img { display: block; width: 200px; height: 140px; background: url("assets/logos/pfa-logo-footer.svg") no-repeat left top; background-size: contain; margin-bottom: var(--space-5); text-decoration: none; }
.footer-address { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.78); }
.footer-address a { color: rgba(255,255,255,0.78); text-decoration: none; }
.footer-address a:hover { color: var(--teal); }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: var(--space-2); }
.footer-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer-nav a:hover { color: var(--teal); }
.footer-cert-row { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-cert-note { margin-top: var(--space-3); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,0.15); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); position: relative; z-index: 2; }

/* ─── Certification badges — Variant C inline pill (design-system/badges.css) ─── */
.cert-c { display: inline-flex; align-items: stretch; border: 1px solid var(--black); background: var(--white); font-family: var(--font-sans); }
.cert-c__abbr { background: var(--black); color: var(--white); padding: 8px 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; display: flex; align-items: center; }
.cert-c__label { padding: 8px 14px; font-size: 12px; font-weight: 500; color: var(--black); letter-spacing: 0.02em; display: flex; align-items: center; }
.cert-c--reverse { border-color: var(--white); background: transparent; }
.cert-c--reverse .cert-c__abbr { background: var(--white); color: var(--black); }
.cert-c--reverse .cert-c__label { color: var(--white); }

/* ════════════════════════════════════════════════════════════════
   PHASE C — COMPONENT PATTERNS
   ════════════════════════════════════════════════════════════════ */

/* ─── Hero — image (Style Guide §05) ─── */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; background: var(--black) center / cover no-repeat; color: var(--white); }
.hero--home { background-image: url("assets/images/home-hero-construction.webp"); }
.hero--about { background-image: url("assets/images/about-hero-surveyors.webp"); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(1,1,1,0.30), rgba(1,1,1,0.78)); z-index: 0; }
.hero > .container { position: relative; z-index: 1; }
.hero .hero-content { max-width: 820px; padding: var(--space-12) 0; }
.hero .display, .hero h1 { color: var(--white); margin-bottom: var(--space-6); }
.hero-lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; max-width: 640px; margin-bottom: var(--space-8); color: rgba(255,255,255,0.92); }
.hero-cta-group { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ─── Page-intro — text-only hero for interior pages ─── */
.section--page-intro { padding-top: var(--space-16); padding-bottom: var(--space-12); }
.page-header { max-width: 880px; }
.page-header h1 { margin-bottom: var(--space-5); }
.page-header .intro-lead { font-size: 19px; line-height: 1.6; color: var(--gray-30); max-width: 780px; }

/* ─── Service cards (Style Guide §05) ─── */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.service-card { background: var(--white); border: 1px solid var(--gray-90); display: flex; flex-direction: column; text-decoration: none; transition: border-color 0.18s, transform 0.18s; }
.service-card:hover { border-color: var(--black); transform: translateY(-2px); }
.service-card .card-img { aspect-ratio: 3/2; background: var(--gray-95); display: flex; align-items: center; justify-content: center; color: var(--gray-50); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; overflow: hidden; }
.service-card .card-img picture, .service-card .card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card .card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.service-card .card-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); font-weight: 500; }
.service-card .card-title { font-family: var(--font-sans); font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--black); }
.service-card .card-desc { font-size: 14px; line-height: 1.55; color: var(--gray-30); flex: 1; }
.section--blueprint .service-card { border-color: rgba(255,255,255,0.15); }
.section--blueprint .service-card:hover { border-color: var(--white); }

/* Expandable service card variant (details/summary) */
.service-card--expandable { transition: border-color 0.18s, background-color 0.18s; }
.service-card--expandable > summary { display: block; cursor: pointer; list-style: none; }
.service-card--expandable > summary::-webkit-details-marker { display: none; }
.service-card--expandable > summary::marker { display: none; }
.service-card--expandable > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.service-card--expandable[open] { border-color: var(--teal); }
.section--blueprint .service-card--expandable[open] { border-color: var(--white); }
.service-card--expandable[open]:hover { transform: none; }
.service-card--expandable .service-card__toggle { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); padding-top: var(--space-3); border-top: 1px solid var(--gray-90); margin-top: var(--space-2); transition: color 0.15s; }
.service-card--expandable .toggle-label::before { content: "Show details"; }
.service-card--expandable[open] .toggle-label::before { content: "Hide details"; }
.service-card--expandable .toggle-icon { width: 12px; height: 12px; margin-left: auto; flex-shrink: 0; transition: transform 0.25s ease; }
.service-card--expandable[open] .toggle-icon { transform: rotate(180deg); }
.service-card--expandable .service-card__expanded-wrap { overflow: hidden; transition: height 0.25s ease; }
.service-card--expandable .service-card__expanded { padding: var(--space-5); border-top: 1px solid var(--gray-90); }
.service-card--expandable .service-card__expanded p { font-size: 14px; line-height: 1.65; color: var(--gray-30); }
.service-card--expandable .service-card__expanded p + p { margin-top: var(--space-3); }
.service-card--expandable .service-card__expanded ul { list-style: none; padding: 0; margin: var(--space-4) 0 0; columns: 2; column-gap: var(--space-6); }
.service-card--expandable .service-card__expanded li { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-30); padding: var(--space-2) 0; break-inside: avoid; border-bottom: 1px solid var(--gray-90); }
@media (prefers-reduced-motion: reduce) {
  .service-card--expandable .service-card__expanded-wrap,
  .service-card--expandable .toggle-icon,
  .service-card--expandable { transition: none; }
}

/* ─── Project entry (narrative portfolio) ─── */
.projects-header { max-width: 880px; margin: 0 auto; }
.project-entry { background: var(--white); max-width: 880px; margin-inline: auto; display: flex; flex-direction: column; }
.project-entry__media { aspect-ratio: 3/2; overflow: hidden; background: var(--gray-95); margin: 0; }
.project-entry__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-entry__media--pair { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--gray-90); }
.project-entry__media--pair img { aspect-ratio: 3 / 2; height: auto; }
.project-entry__body { padding: var(--space-8); }
.project-entry__title { font-family: var(--font-sans); font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; line-height: 1.2; color: var(--black); margin-bottom: var(--space-4); }
.project-entry__description { font-size: 16px; line-height: 1.65; color: var(--gray-30); }

/* ─── Section divider with flourish ─── */
.section-divider-flourish { display: flex; align-items: center; gap: var(--space-4); }
.section-divider-flourish .line { flex: 1; height: 1px; background: var(--black); }
.section-divider-flourish img { height: var(--space-6); width: auto; opacity: 0.55; }
.section--blueprint .section-divider-flourish .line { background: rgba(255,255,255,0.25); }
.section--blueprint .section-divider-flourish img { opacity: 0.85; }

/* ─── Service card link (non-expandable home cards) ─── */
.service-card .card-link { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); text-decoration: none; padding-top: var(--space-3); border-top: 1px solid var(--gray-90); margin-top: var(--space-2); transition: color 0.15s; }
.service-card .card-link:hover { color: var(--black); }

/* ─── List card — ODOT prequalifications (Style Guide §05) ─── */
.list-card { background: var(--white); border: 1px solid var(--gray-90); padding: var(--space-6); }
.list-card .list-label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-bottom: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px dashed var(--gray-90); }
.prequal-card { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-8); align-items: start; padding: var(--space-8); }
.prequal-card .prequal-meta .prequal-title { font-family: var(--font-sans); font-size: 24px; font-weight: 600; line-height: 1.25; margin: 0 0 var(--space-3); }
.prequal-card .prequal-meta p { font-size: 14px; line-height: 1.55; color: var(--gray-30); }
.prequal-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-6); }
.prequal-list li { font-family: var(--font-sans); font-size: 14px; line-height: 1.45; color: var(--black); padding-left: var(--space-4); position: relative; }
.prequal-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 1px; background: var(--teal); }

/* ─── Heritage split (About — blueprint section) ─── */
.heritage-split { gap: var(--space-10); }
.heritage-mark { display: flex; align-items: center; justify-content: center; padding: var(--space-8); }
.heritage-mark img { height: 240px; width: auto; }
.heritage-content h2 { color: var(--white); }
.heritage-content p { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.92); }
.heritage-content .pull-emphasis { font-family: var(--font-serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; color: var(--white); padding-left: var(--space-5); border-left: 2px solid rgba(255,255,255,0.5); max-width: 640px; }

/* ─── Certification credential card (Variant A — About credentials) ─── */
.cert-card-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.cert-a { display: inline-flex; border: 2px solid var(--black); font-family: var(--font-sans); background: var(--white); min-height: 88px; }
.cert-a__seal { background: var(--black); color: var(--white); padding: 14px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 84px; }
.cert-a__abbr { font-size: 26px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; }
.cert-a__rule { width: 22px; height: 1px; background: var(--teal); margin: 7px 0; }
.cert-a__cert { font-size: 9px; font-weight: 600; letter-spacing: 0.22em; color: var(--teal); }
.cert-a__body { padding: 14px 20px; display: flex; flex-direction: column; justify-content: center; min-width: 220px; }
.cert-a__title { font-size: 14px; font-weight: 600; color: var(--black); letter-spacing: 0.01em; line-height: 1.3; }

/* ─── Careers (About — dark CTA) ─── */
.careers-block { display: grid; grid-template-columns: 2.2fr 1fr; gap: var(--space-10); align-items: center; }
.careers-block h2 { color: var(--white); }
.careers-block .body { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.85); max-width: 600px; }
.careers-block .careers-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); line-height: 1.7; }
.careers-block .careers-meta a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.25); transition: color 0.15s, border-color 0.15s; }
.careers-block .careers-meta a:hover { color: var(--teal); border-bottom-color: var(--teal); }
.careers-block .cta-stack { display: flex; flex-direction: column; gap: var(--space-3); }

/* ─── Split hero (Contact) ─── */
.hero-split { background: var(--white); border-bottom: 1px solid var(--gray-90); }
.hero-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; }
.hero-split-content { padding: var(--space-16) var(--space-10) var(--space-12) 0; }
.hero-split-content h1 { margin-bottom: var(--space-6); }
.hero-split-content .hero-lead { font-size: 19px; line-height: 1.6; max-width: 540px; color: var(--gray-30); }
.hero-split-image { background: var(--gray-95); position: relative; aspect-ratio: 1/1; border-left: 1px solid var(--gray-90); overflow: hidden; }
.hero-split-image picture, .hero-split-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── Contact info + office card ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-10); align-items: start; }
.office-card { background: var(--white); border: 1px solid var(--gray-90); padding: var(--space-8); }
.office-card .list-label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-bottom: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px dashed var(--gray-90); }
.office-card .firm-name { font-family: var(--font-sans); font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--black); margin-bottom: var(--space-4); }
.office-card dl { display: grid; grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--gray-90); }
.office-card dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-50); margin-bottom: var(--space-1); }
.office-card dd { font-size: 15px; line-height: 1.55; color: var(--black); margin: 0; }
.office-card dd a { color: var(--black); text-decoration: none; border-bottom: 1px solid var(--gray-90); }
.office-card dd a:hover { color: var(--teal); border-bottom-color: var(--teal); }
.office-card .pending { color: var(--gray-50); font-style: italic; }

/* ─── WPForms — Contact form (styled to the site system) ─── */
.contact-grid .wpforms-container { margin: 0; }
.contact-grid .wpforms-form { background: var(--gray-95); padding: var(--space-8); }
.contact-grid .wpforms-field-container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.contact-grid .wpforms-field { margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.contact-grid .wpforms-field-textarea { grid-column: 1 / -1; }
.contact-grid .wpforms-field-label { font-family: var(--font-mono); font-size: 10px !important; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-30); margin: 0; line-height: 1.4; }
.contact-grid .wpforms-required-label { color: var(--gray-50); }
.contact-grid .wpforms-field input[type="text"],
.contact-grid .wpforms-field input[type="email"],
.contact-grid .wpforms-field input[type="tel"],
.contact-grid .wpforms-field select,
.contact-grid .wpforms-field textarea { border: 1px solid var(--black); background: var(--white); border-radius: 0; padding: var(--space-3) var(--space-4); font-family: var(--font-sans); font-size: 14px; color: var(--black); width: 100%; box-shadow: none; transition: border-color 0.15s, box-shadow 0.15s; }
.contact-grid .wpforms-field input:focus,
.contact-grid .wpforms-field select:focus,
.contact-grid .wpforms-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.contact-grid .wpforms-field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.contact-grid .wpforms-field input.wpforms-error,
.contact-grid .wpforms-field select.wpforms-error,
.contact-grid .wpforms-field textarea.wpforms-error { border-color: var(--orange); }
.contact-grid .wpforms-field label.wpforms-error { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: none; color: var(--orange); margin-top: var(--space-1); }
.contact-grid .wpforms-submit-container { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--gray-90); }
.contact-grid button.wpforms-submit { font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: var(--space-3) var(--space-6); border: 2px solid var(--orange) !important; border-radius: 0; background-color: var(--orange) !important; color: var(--white) !important; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.contact-grid button.wpforms-submit:hover { background-color: var(--orange-dark) !important; border-color: var(--orange-dark) !important; }

/* ─── Pre-footer dark callout (Contact) ─── */
.pre-footer-callout { display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.pre-footer-callout .pre-footer-text h3 { color: var(--white); }
.pre-footer-callout .pre-footer-text p:not(.rule-eyebrow) { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.55; max-width: 640px; }

/* ─── History split (Home / About) ─── */
.history-split { gap: var(--space-10); }
.history-img { aspect-ratio: 4 / 3; background: var(--gray-95); overflow: hidden; }
.history-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.history-content p { font-size: 16px; line-height: 1.65; color: var(--gray-30); }
.history-coda { max-width: 880px; }
.history-lead { font-size: 16px; line-height: 1.65; color: var(--gray-30); max-width: 540px; }

/* ─── Strip suffix ─── */
.strip-num .strip-suffix { font-size: 0.55em; vertical-align: top; color: var(--teal); margin-left: 2px; }

/* ─── Callout — dark CTA highlight ─── */
.callout-highlight-block { display: grid; grid-template-columns: 2.2fr 1fr; gap: var(--space-10); align-items: center; }
.callout-highlight-block h2 { color: var(--white); }
.callout-highlight-block .body { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.85); max-width: 600px; }
.callout-highlight-block .cta-stack { display: flex; flex-direction: column; gap: var(--space-3); }
.cta-stack .wp-block-button { width: 100%; }
.cta-stack .wp-block-button .wp-block-button__link { display: block; text-align: center; }

/* ─── Fact strip (credentials) ─── */
.callout-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--black); border-bottom: 2px solid var(--black); }
.strip-cell { padding: var(--space-6) var(--space-5); text-align: center; border-right: 1px solid var(--gray-90); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.strip-cell:last-child { border-right: none; }
.strip-num { font-family: var(--font-serif); font-size: clamp(40px, 5vw, 56px); font-weight: 400; line-height: 1; color: var(--orange); }
.strip-label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-top: var(--space-3); }
/* Credential strip (Projects) — strip cells hold abbreviations, not numerals → Inter */
.credential-strip .strip-num { font-family: var(--font-sans); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--black); }

/* ─── Client row ─── */
.client-row { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--black); border-bottom: 2px solid var(--black); }
.client-cell { padding: var(--space-6) var(--space-4); text-align: center; border-right: 1px solid var(--gray-90); display: flex; align-items: center; justify-content: center; min-height: 120px; }
.client-cell:last-child { border-right: none; }
.client-name { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--black); line-height: 1.35; }
.client-row-secondary { border-top: none; }
.client-row + .client-row { margin-block-start: 0; }

/* ─── Heritage timeline ─── */
.owner-timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--black); border-bottom: 2px solid var(--black); }
.owner-cell { padding: var(--space-6) var(--space-5); text-align: center; border-right: 1px solid var(--gray-90); display: flex; flex-direction: column; align-items: center; }
.owner-cell:last-child { border-right: none; }
.owner-year { font-family: var(--font-serif); font-size: clamp(36px, 4vw, 48px); font-weight: 400; line-height: 1; color: var(--orange); }
.owner-name { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-top: var(--space-3); }
.owner-role { font-size: 13px; color: var(--gray-30); margin-top: var(--space-2); line-height: 1.45; max-width: 220px; }

/* ─── Responsive (shared chrome + components) ─── */
@media (max-width: 960px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .prequal-card { grid-template-columns: 1fr; gap: var(--space-5); padding: var(--space-6); }
  .prequal-list { grid-template-columns: 1fr; }
  .heritage-mark img { height: 180px; }
  .careers-block { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-split-grid { grid-template-columns: 1fr; }
  .hero-split-content { padding: var(--space-12) 0 var(--space-10); }
  .hero-split-image { border-left: none; border-top: 1px solid var(--gray-90); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .contact-grid .wpforms-field-container { grid-template-columns: 1fr; gap: var(--space-4); }
  .contact-grid .wpforms-form { padding: var(--space-6); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .callout-highlight-block { grid-template-columns: 1fr; gap: var(--space-6); }
  .callout-strip { grid-template-columns: repeat(2, 1fr); }
  .strip-cell:nth-child(2) { border-right: none; }
  .strip-cell:nth-child(1), .strip-cell:nth-child(2) { border-bottom: 1px solid var(--gray-90); }
  .owner-timeline { grid-template-columns: repeat(2, 1fr); }
  .owner-cell:nth-child(2) { border-right: none; }
  .owner-cell:nth-child(1), .owner-cell:nth-child(2) { border-bottom: 1px solid var(--gray-90); }
  .client-row { grid-template-columns: repeat(3, 1fr); }
  .client-cell:nth-child(3n) { border-right: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-10) 0; }
  .section--page-intro { padding-top: var(--space-12); padding-bottom: var(--space-10); }
  .page-header .intro-lead { font-size: 17px; }
  .hero .hero-content { padding: var(--space-10) 0; }
  .hero-split-content { padding: var(--space-10) 0 var(--space-8); }
  .hero-split-content .hero-lead { font-size: 17px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card--expandable .service-card__expanded ul { columns: 1; }
  .project-entry__media--pair { grid-template-columns: 1fr; }
  .project-entry__body { padding: var(--space-6); }
  .callout-strip, .owner-timeline { grid-template-columns: 1fr; }
  .strip-cell, .owner-cell { border-right: none; border-bottom: 1px solid var(--gray-90); }
  .strip-cell:last-child, .owner-cell:last-child { border-bottom: none; }
  .client-row { grid-template-columns: repeat(2, 1fr); }
  .client-cell:nth-child(3n) { border-right: 1px solid var(--gray-90); }
  .client-cell:nth-child(2n) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ─── Header: mobile/tablet chrome (added 2026-05-28) ─────────────────
   Breakpoint 1079px chosen so the WP-block-nav inline links never collide
   with the logo + phone button. Desktop layout needs ~982px of content
   space inside .container — so we collapse below 1080px viewport. */
@media (max-width: 1079px) {
  .site-header .container {
    gap: var(--space-3);
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }
  /* Swap the horizontal lockup for the logomark (buffalo on the orb). */
  .header-logo {
    width: 44px;
    height: 44px;
    background-image: url("assets/logos/pfa-logomark.svg");
    background-position: center;
  }
  /* Phone stays visible at every mobile/tablet width; sized down to fit. */
  .header-phone {
    font-size: 12px;
    padding: var(--space-2) var(--space-3);
  }
  /* Reorder so the layout reads: [logomark] · [phone, centered] · [hamburger]
     (Parent uses justify-content: space-between, so changing order alone
     repositions the children visually.) */
  .header-phone { order: 2; }
  .header-nav   { order: 3; }

  /* Force the WP navigation block's hamburger to fire at this breakpoint.
     Default WP behavior is ~600px, which would leave the inline 5-link
     menu rendered in the 600–1079px range — too wide to fit alongside
     the logo and phone. We hide the inline container (when not open as
     a modal) and show the hamburger button regardless. */
  .header-nav .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }
  .header-nav .wp-block-navigation__responsive-container:not(.is-menu-open):not(.has-modal-open) {
    display: none !important;
  }
}
