/*
Theme Name: Bedford+Co — Legal
Theme URI: https://bedfordandco.net
Author: Bedford+Co
Author URI: https://bedfordandco.net
Description: Typography-led WordPress theme for law firms and other professional practices chosen on credibility. A high-contrast serif display face over a clean sans body, generous whitespace, a narrow reading measure and one restrained accent. Built on the Bedford+Co Editorial design theme. Demo content: a fictional Fresno law firm. No page builder, no custom field plugins, no framework.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
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: bedfordco-legal
Tags: business, professional-services, legal, editorial, typography, one-column, custom-menu, featured-images
*/

/* ==========================================================================
   1. DESIGN TOKENS
   --------------------------------------------------------------------------
   CLIENT SWAP: edit the BRAND block. Every colour in this file is a token
   defined here — there are no colour literals below :root.
   Every text/background pairing was measured against WCAG AA (table in
   THEME-README.md). If the accent changes, re-check it on --color-primary
   and --color-primary-deep, and re-derive --color-accent-ink for light
   backgrounds (a bright accent almost never passes on white).
   ========================================================================== */

:root {

  /* --- BRAND (edit per client) ------------------------------------------ */
  --color-primary: #5a1f2d;          /* oxblood — CTA band, buttons, rules */
  --color-primary-hover: #732a3c;
  --color-primary-deep: #3b121d;     /* footer and sticky consult half */
  --color-accent: #d1aa63;           /* brass — on dark only (eyebrows, "&", button hover) */
  --color-accent-ink: #7a5817;       /* brass for text on white/muted */

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;   /* high-contrast text serif with a true italic */
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* --- SURFACES ---------------------------------------------------------- */
  --color-bg: #ffffff;
  --color-muted: #efecec;            /* pale stone: cool-neutral, lets oxblood and brass lead */
  --color-mark: #e6e2e3;             /* the giant hero ampersand and 404 numerals */
  --color-white: #ffffff;
  --color-none: transparent;

  /* --- TEXT -------------------------------------------------------------- */
  --color-text: #1d1a1b;
  --color-text-soft: #5a5557;
  --color-on-dark: #ffffff;
  --color-on-dark-soft: rgba(255, 255, 255, 0.78);
  --color-on-dark-strong: rgba(255, 255, 255, 0.9);   /* text over photo washes */
  --color-on-accent: #3b121d;

  /* --- LINES & EFFECTS --------------------------------------------------- */
  --color-line: rgba(90, 31, 45, 0.14);
  --color-line-strong: rgba(90, 31, 45, 0.6);    /* form borders: 3:1 non-text contrast */
  --color-line-dark: rgba(255, 255, 255, 0.16);
  --color-numeral: rgba(90, 31, 45, 0.22);       /* decorative step numerals */
  --color-quote-mark: rgba(90, 31, 45, 0.15);    /* spec: primary at 15% */
  --color-focus: #5a1f2d;
  --color-focus-ring: rgba(90, 31, 45, 0.22);
  --overlay-photo: rgba(59, 18, 29, 0.6);       /* page-hero photo wash — lightest that keeps white text AA on the demo photos (4.74:1 worst) */
  --overlay-cta: rgba(59, 18, 29, 0.65);          /* CTA band photo wash — lightest that keeps white text AA on the demo photos (4.69:1 worst) */
  --color-scrim: rgba(59, 18, 29, 0.55);         /* page dim behind the mobile menu */
  --shadow-bar: 0 -2px 16px rgba(59, 18, 29, 0.25);

  --color-ok-bg: #e6f3ea;
  --color-ok: #2f7a4f;
  --color-ok-text: #1d5234;
  --color-error-bg: #fbeceb;
  --color-error: #b3261e;
  --color-error-text: #8a2119;

  /* --- SPACING (8px base) ----------------------------------------------- */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 80px;
  --sp-8: 96px;
  --sp-9: 120px;

  /* Section rhythm — Editorial spec values, fluid mobile → desktop */
  --pad-hero-top: clamp(5rem, 9vw, 8.75rem);         /* 80 → 140 */
  --pad-hero-bottom: clamp(4rem, 8vw, 7.5rem);       /* 64 → 120 */
  --pad-section: clamp(4rem, 8vw, 7.5rem);           /* 64 → 120  primary */
  --pad-section-sm: clamp(3.5rem, 6.5vw, 6rem);      /* 56 → 96   secondary */
  --pad-footer-top: clamp(4rem, 6vw, 5rem);          /* 64 → 80 */

  --container: 1120px;               /* 1040px of content inside the gutters */
  --gutter: clamp(1rem, 4vw, 2.5rem);                /* 16 on phones */
  --measure: 680px;                  /* body paragraphs never run full width */
  --header-h: 88px;

  /* --- TYPE SCALE -------------------------------------------------------- */
  --fs-h1: clamp(2.5rem, 4.4vw + 1rem, 5rem);           /* 40 → 80 */
  --fs-h1-page: clamp(2.5rem, 3.6vw + 1rem, 4.25rem);   /* 40 → 68, interior pages */
  --fs-h2: clamp(1.875rem, 2vw + 1.25rem, 3.5rem);      /* 30 → 56 */
  --fs-h3: clamp(1.375rem, 0.8vw + 1.1rem, 2rem);       /* 22 → 32 */
  --fs-h4: clamp(1.125rem, 0.4vw + 1rem, 1.375rem);     /* 18 → 22 */
  --fs-body: clamp(1.0625rem, 0.15vw + 1rem, 1.125rem); /* 17 → 18 */
  --fs-lead: clamp(1.125rem, 0.3vw + 1.05rem, 1.25rem); /* 18 → 20 */
  --fs-quote: clamp(1.375rem, 0.8vw + 1.1rem, 1.875rem);/* 22 → 30, pull quotes */
  --fs-eyebrow: 0.75rem;                                 /* 12 */
  --fs-small: 0.875rem;                                  /* 14 */
  --fs-btn: 0.875rem;                                    /* 14 */
  --fs-stat: clamp(2.75rem, 3vw + 1.5rem, 4rem);        /* 44 → 64 */

  --radius: 2px;
  --transition: 0.2s ease;
  --transition-slow: 0.5s ease-out;

  --z-sticky-bar: 999;
  --z-header: 1000;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 767px) {
  body { padding-bottom: 60px; }   /* clears the sticky call bar */
}

img,
svg,
video { max-width: 100%; height: auto; display: block; }

figure,
blockquote,
dl,
dd { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  color: inherit;
  text-wrap: balance;
}

/* Headlines sit, they don't float: tight tracking, tight leading. */
h1 { font-size: var(--fs-h1); font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; letter-spacing: 0; }

/* Measure lives on the paragraph, never the section (spec lesson learned). */
p { margin: 0 0 20px; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--sp-2); padding-left: 1.25em; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.section--primary :focus-visible,
.page-hero--has-image :focus-visible,
.about__facts :focus-visible,
.site-footer :focus-visible,
.sticky-cta :focus-visible { outline-color: var(--color-accent); }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-2);
  z-index: 1100;
  padding: 12px 20px;
  background: var(--color-primary);
  color: var(--color-on-dark);
  font-weight: 700;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Vertical rhythm comes from these classes only — never per-section padding. */
.section { padding-block: var(--pad-section); }
.section--tight { padding-block: var(--pad-section-sm); }
.section--muted { background-color: var(--color-muted); }

/* The colour moment: oxblood field, white type (CTA band). Child colours are
   set explicitly rather than trusted to inherit. */
.section--primary { background-color: var(--color-primary); color: var(--color-on-dark); }
.section--primary h2,
.section--primary h3 { color: var(--color-on-dark); }
.section--primary p { color: var(--color-on-dark-soft); }

/* ENGINE: two plain white sections back to back would stack ~240px of white. */
.section:not(.section--muted):not(.section--primary)
  + .section:not(.section--muted):not(.section--primary) {
  padding-top: var(--sp-5);
}

/* Same join under the white homepage hero. */
.hero + .section:not(.section--muted):not(.section--primary) { padding-top: var(--sp-6); }

/* Spec: eyebrow → h2 12px, h2 → body 20–24px, headline → content 48–56px. */
.section__head { max-width: 760px; margin-bottom: clamp(3rem, 5vw, 3.5rem); }
.section__head p { margin-top: var(--sp-3); font-size: var(--fs-lead); color: var(--color-text-soft); }

/* Eyebrows: accent use #1 (brass-ink on light, brass on oxblood). */
.eyebrow {
  display: block;
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
}
.section--primary .eyebrow,
.page-hero--has-image .eyebrow { color: var(--color-accent); }

/* Quiet secondary link: underlined, with an arrow that eases right on hover. */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color var(--transition), text-decoration-thickness var(--transition);
}
.text-link::after { content: "\2192"; transition: transform var(--transition); }
.text-link:hover { color: var(--color-primary-hover); text-decoration-thickness: 2px; }
.text-link:hover::after { transform: translateX(4px); }

/* ==========================================================================
   4. BUTTONS — understated, square-shouldered, uppercase (spec)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 19px 32px;
  border: 1px solid var(--color-none);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-btn);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.btn--small { padding: 14px 22px; }

/* On white and muted */
.btn--primary { background-color: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-dark); }
.btn--primary:hover { background-color: var(--color-primary-hover); border-color: var(--color-primary-hover); color: var(--color-on-dark); }

.btn--outline { background: var(--color-none); border-color: var(--color-primary); color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: var(--color-on-dark); }

/* On oxblood: white button; brass fill on hover (accent use #3). */
.btn--light { background-color: var(--color-white); border-color: var(--color-white); color: var(--color-primary); }
.btn--light:hover { background-color: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }

.btn__icon { width: 16px; height: 16px; flex: none; fill: currentColor; }

/* ==========================================================================
   5. SITE HEADER — white, quiet
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: var(--color-bg);
  box-shadow: 0 1px 0 var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--header-h);
}

.site-brand { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-decoration: none; line-height: 1; }

.site-brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-text);
}
@media (max-width: 480px) {
  .site-brand__name { font-size: 1.25rem; }
}

/* The signature (accent use #2): the ampersand in brass italic, wherever the
   business name is set — header, footer, and huge and pale in the hero. */
.brand-amp { font-style: italic; font-weight: 500; color: var(--color-accent-ink); }

.site-brand__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.site-nav { display: none; }
.site-nav ul { display: flex; align-items: center; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.site-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-text);
  transition: color var(--transition);
}
.site-nav a:hover { color: var(--color-primary-hover); }
.site-nav .current-menu-item > a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

.header-phone {
  display: none;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-primary);
}
.header-phone:hover { text-decoration: underline; }

.header-actions .btn { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 12px;
  background: var(--color-none);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-text); transition: transform var(--transition), opacity var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  /* ENGINE: off-canvas drawer — 75% wide, full height, slides in from the
     right. Lives inside the sticky header, so the toggle (raised above it)
     doubles as the close button. The rest of the page is dimmed by the
     drawer's own spread shadow; tapping it closes the menu (main.js). */
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 75%;
  padding: calc(var(--header-h) + var(--sp-2)) var(--gutter) var(--sp-7);
  background: var(--color-bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  box-shadow: 0 0 0 100vmax var(--color-none);
  transition: transform 0.3s ease, box-shadow 0.3s ease, visibility 0s linear 0.3s;
}
.mobile-nav.is-open {
  transform: none;
  visibility: visible;
  box-shadow: 0 0 0 100vmax var(--color-scrim);
  transition: transform 0.3s ease, box-shadow 0.3s ease, visibility 0s;
}
.nav-toggle { position: relative; z-index: 3; }   /* ENGINE: stays on top of the drawer as its close button */

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav.is-open { transition: none; }
}
.mobile-nav ul { margin: 0 0 var(--sp-4); padding: 0; list-style: none; }
.mobile-nav li { border-bottom: 1px solid var(--color-line); }
.mobile-nav li a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: var(--color-text);
}
.mobile-nav .btn { display: flex; width: 100%; }
.mobile-nav__link {
  display: block;
  margin-top: var(--sp-3);
  font-weight: 700;
  text-align: center;
  color: var(--color-primary);
  text-underline-offset: 6px;
}

@media (min-width: 1000px) {
  .site-nav { display: block; }
  .header-actions .btn { display: inline-flex; white-space: nowrap; }
  .site-brand__name { white-space: nowrap; }
  .nav-toggle,
  .mobile-nav { display: none; }
}

/* Between 1000 and 1200px the nav, phone and button don't fit on one line.
   The number is still in the hero, the footer and (on phones) the call bar. */
@media (min-width: 1200px) {
  .header-phone { display: inline-block; }
}

/* ==========================================================================
   6. HERO — typographic (Option A) or framed split (Option B). Never animated.
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* ENGINE: never let a child widen the page */
  overflow: hidden;                        /* clips the ampersand mark */
  background-color: var(--color-bg);
}

.hero__panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: var(--pad-hero-top) var(--gutter) var(--pad-hero-bottom);
  /* Align the text with the site container's left edge at any width. */
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}

.hero__content { max-width: 860px; }

.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--color-primary); }

.hero__sub {
  margin-top: 28px;
  max-width: 40rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--color-text-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  margin-top: 40px;
}

.hero__phone {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-primary);
}
.hero__phone:hover { color: var(--color-primary-hover); }
.hero__phone-label {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

/* Trust line: bar admission, consultation, fees — separated by middots, no rule. */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: var(--sp-6) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-soft);
}
/* Separator sits BEFORE each item, in its own 26px slot. The list is shifted
   left by one slot and clip-path hides that slot, so the dot of whichever item
   starts a line is cut off while the text stays aligned with the column.
   Result: no dot ever dangles at a line end or leads a line, at any width. */
.hero__trust { margin-left: -26px; clip-path: inset(0 0 0 26px); }
.hero__trust li::before { content: "\00b7"; display: inline-block; width: 26px; text-align: center; }

/* The one decorative moment: the brand ampersand, enormous and pale.
   Text over it is still AA (measured, see README). */
.hero__mark {
  position: absolute;
  right: -0.04em;
  bottom: -0.34em;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(17rem, 46vw, 46rem);
  font-style: italic;   /* the serif has a true italic — a giant italic ampersand is the signature */
  font-weight: 500;
  line-height: 1;
  color: var(--color-mark);
  pointer-events: none;
  user-select: none;
}

/* Framed photo: clean vertical divide, no overlay — the image is framed,
   not washed. ENGINE: no min-height on the media column; combined with
   aspect-ratio it once forced a 427px minimum width on 375px phones. */
.hero__media { display: flex; min-width: 0; padding: 0 var(--gutter) var(--pad-hero-bottom); }
.hero__frame { position: relative; flex: 1; min-width: 0; aspect-ratio: 4 / 3; }
.hero__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 960px) {
  .hero__panel { min-height: calc(76vh - var(--header-h)); }
  .hero--split { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); }
  .hero--split .hero__panel { padding-right: var(--sp-6); }
  .hero__media {
    padding: var(--pad-hero-top) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) var(--pad-hero-bottom) 0;
  }
  .hero__frame { aspect-ratio: auto; }
}

/* ==========================================================================
   7. SERVICES — grouped entries (home) and stacked rows (Services page)
   --------------------------------------------------------------------------
   No icons, no card boxes, no hairlines between rows: a 4px oxblood left
   border anchors each entry (spec "full-width stacked rows").
   ========================================================================== */

.offer__groups { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .offer__groups { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); } }

.offer__group-title {
  font-size: var(--fs-h3);
  font-style: italic;
  font-weight: 600;
  color: var(--color-primary);
}
.offer__group-intro { margin-top: 12px; color: var(--color-text-soft); }

.offer__list { display: grid; gap: var(--sp-4); margin: var(--sp-5) 0 0; padding: 0; list-style: none; }

.offer__entry { padding: 4px 0 4px var(--sp-3); border-left: 4px solid var(--color-primary); }
.offer__title { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.005em; }
.offer__entry p { margin-top: 8px; font-size: 1.0625rem; color: var(--color-text-soft); }

.offer__more { margin-top: var(--sp-6); }

/* Services page */
.offer__chapter + .offer__chapter { margin-top: var(--sp-9); }
.section__head--compact h2 { font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.75rem); }

.offer__rows { display: grid; gap: var(--sp-5); margin: 0; padding: 0; list-style: none; }

.offer__row {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-1) 0 var(--sp-1) var(--sp-4);
  border-left: 4px solid var(--color-primary);
}
.offer__row-lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--color-text); }
.offer__row-body p:not(.offer__row-lead) { color: var(--color-text-soft); }

@media (min-width: 860px) {
  .offer__row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-6); padding-left: var(--sp-5); }
}

/* ==========================================================================
   8. ABOUT — text left, facts panel (and optional framed photo) right
   ========================================================================== */

.about__grid { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 960px) { .about__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-7); } }

/* Pull quote: one per page, explicit margins so it never collapses into the
   paragraphs around it (spec lesson learned). */
.pullquote { margin: 40px 0; }
.pullquote blockquote {
  margin: 0;
  padding: 4px 0 4px 28px;
  border-left: 4px solid var(--color-primary);
}
.pullquote blockquote p {
  font-family: var(--font-display);
  font-size: var(--fs-quote);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
}
.pullquote figcaption {
  margin-top: var(--sp-2);
  padding-left: 32px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.about__body { color: var(--color-text-soft); }

.about__aside { display: flex; flex-direction: column; }

.about__facts {
  position: relative;
  padding: clamp(2.5rem, 4vw, 3rem);   /* 40 → 48 */
  background-color: var(--color-primary);
  color: var(--color-on-dark);
}
.about__facts-title {
  margin-bottom: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.about__points { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.about__points li {
  position: relative;
  padding-left: 28px;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-on-dark);
}
.about__points li::before { content: "\2014"; position: absolute; left: 0; color: var(--color-on-dark-soft); }

/* Photo variant (ENGINE: photo bound via CSS variable, never inline style).
   The photo is framed, not washed — no text sits on it — and the facts panel
   overlaps its lower edge. */
.about__photo {
  aspect-ratio: 4 / 5;
  background-color: var(--color-muted);
  background-image: var(--about-image);
  background-size: cover;
  background-position: center;
}
.about--story .about__photo { background-image: var(--about-panel-image); }   /* never borrows the homepage photo */
.about__aside--photo .about__facts { margin: calc(var(--sp-6) * -1) 0 0 var(--sp-3); }

@media (min-width: 960px) {
  .about__aside--photo .about__facts { margin-left: calc(var(--sp-6) * -1); margin-right: var(--sp-5); }
}

/* ==========================================================================
   9. TESTIMONIALS — featured pull quote + two columns, no cards
   ========================================================================== */

.testimonial--featured { max-width: 860px; }
.testimonial--featured .testimonial__quote p {
  max-width: none;
  font-family: var(--font-display);
  font-size: var(--fs-quote);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text);
}

.testimonial__quote { margin: 0; }
.testimonial__quote p { font-style: italic; color: var(--color-text); }

/* Em dash separates quote from attribution (spec). */
.testimonial__cite { margin-top: var(--sp-3); font-size: 0.9375rem; }
.testimonial__cite::before { content: "\2014\00a0"; color: var(--color-text-soft); }
.testimonial__cite strong { font-weight: 700; color: var(--color-text); }
.testimonial__cite span { color: var(--color-text-soft); }
.testimonial__cite span::before { content: ", "; }

.testimonials__grid { display: grid; gap: var(--sp-6); margin-top: var(--sp-8); }
@media (min-width: 860px) { .testimonials__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); } }

.testimonials__grid .testimonial { position: relative; padding-top: 56px; }
.testimonials__grid .testimonial::before {
  content: "\201C";
  position: absolute;
  top: -12px;
  left: -4px;
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-quote-mark);
}
.testimonials__grid .testimonial__quote p { font-size: 1.0625rem; line-height: 1.75; }

.testimonials__note {
  margin-top: var(--sp-7);
  font-size: var(--fs-small);
  color: var(--color-text-soft);
}

/* ==========================================================================
   9b. TEAM — portraits and short bios, no card boxes
   ========================================================================== */

.team__list { display: grid; gap: var(--sp-7); margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .team__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); } }

.team__portrait { aspect-ratio: 4 / 5; margin-bottom: var(--sp-3); background-color: var(--color-muted); }
.team__portrait img { width: 100%; height: 100%; object-fit: cover; }
.team__portrait--empty { display: flex; align-items: center; justify-content: center; background-color: var(--color-primary); }
.team__monogram {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-accent);
}

.team__name { font-size: var(--fs-h3); }
.team__role {
  margin: 4px 0 var(--sp-2);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
}
.team__bio { font-size: 1.0625rem; color: var(--color-text-soft); }
.team__handles {
  display: grid;
  gap: 2px;
  margin: var(--sp-2) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.6;
}
.team__bar { margin: var(--sp-2) 0 0; font-size: var(--fs-small); font-weight: 600; color: var(--color-text-soft); }

/* ==========================================================================
   10. PROCESS — genuinely sequential, so numbered (spec)
   ========================================================================== */

.process__list { display: grid; gap: var(--sp-6); margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .process__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6) var(--sp-7); } }

.process__number {
  display: block;
  margin-bottom: var(--sp-2);
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 500;
  line-height: 1;
  color: var(--color-numeral);
}
.process__step h3 { margin-bottom: 12px; font-size: clamp(1.375rem, 0.5vw + 1.2rem, 1.625rem); }
.process__step p { color: var(--color-text-soft); }

/* ==========================================================================
   11. CTA — oxblood block, white type (spec Option B)
   --------------------------------------------------------------------------
   With a {page-slug}-cta.jpg the photo sits under a 0.78 deep-oxblood wash.
   ENGINE: no top border on a photo band — the wash (inset: 0) only covers
   the padding box, so a border would leave a 1px strip of unwashed photo.
   Measure the worst 5% of pixels under the text before shipping a photo.
   ========================================================================== */

.cta-banner { position: relative; padding-block: clamp(5rem, 9vw, 8.5rem); }   /* 80 → 136, a step taller */

.cta-banner__inner { position: relative; z-index: 1; max-width: 820px; text-align: center; }
.cta-banner h2 { margin-inline: auto; max-width: 18ch; }
.cta-banner__sub { margin: var(--sp-3) auto 0; font-size: var(--fs-lead); line-height: 1.6; }

.cta-banner__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-3) var(--sp-4); margin-top: 40px; }

.cta-banner__phone {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-on-dark);
  text-decoration: underline;
  text-decoration-color: var(--color-line-dark);
  text-underline-offset: 8px;
  transition: text-decoration-color var(--transition);
}
.cta-banner__phone:hover { text-decoration-color: var(--color-on-dark); }

.cta-banner--has-image { background-image: var(--cta-image); background-size: cover; background-position: center; }
.cta-banner--has-image::before { content: ""; position: absolute; inset: 0; background-color: var(--overlay-cta); }
.cta-banner--has-image .cta-banner__sub { color: var(--color-on-dark); }

/* ==========================================================================
   12. COMMON QUESTIONS — white panels on muted, no hairlines
   ========================================================================== */

.faq__grid { display: grid; gap: var(--sp-5); }
@media (min-width: 960px) {
  .faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-7); align-items: start; }
  .faq__head { margin-bottom: 0; }
}

.faq__list { display: grid; gap: 12px; }

.faq__item { background-color: var(--color-bg); }
.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  padding: 24px 32px;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 0.4vw + 1rem, 1.3125rem);
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "+";
  flex: none;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-primary);
}
.faq__item[open] .faq__question::after { content: "\2212"; }
.faq__question:hover { color: var(--color-primary); }
.faq__answer { padding: 0 32px 28px; }
.faq__answer p { color: var(--color-text-soft); }

@media (max-width: 480px) {
  .faq__question { padding: 20px 24px; }
  .faq__answer { padding: 0 24px 24px; }
}

/* ==========================================================================
   13. STATS — the record, set in the display serif (muted band)
   ========================================================================== */

.stats__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5) var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 860px) { .stats__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); } }

.stats__item { display: flex; flex-direction: column; gap: 12px; min-height: 104px; }   /* stops collapse on mobile */

.stats__number {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  white-space: nowrap;
}

.stats__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--color-text-soft);
}

/* ==========================================================================
   14. SERVICE AREA
   ========================================================================== */

.service-area__grid { display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 900px) { .service-area__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); } }

.service-area h2 + p { margin-top: var(--sp-3); color: var(--color-text-soft); }

/* Towns as a typographic line, not a widget. */
.service-area__cities {
  display: flex;
  flex-wrap: wrap;
  margin: var(--sp-4) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-text);
}
.service-area__cities li:not(:last-child)::after { content: "\00b7"; margin: 0 12px; font-style: normal; color: var(--color-text-soft); }

.service-area__map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; filter: grayscale(0.6); }

/* ==========================================================================
   15. CONTACT FORM
   ========================================================================== */

.contact__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-7); } }

.contact__details { display: grid; gap: var(--sp-4); align-content: start; }
.contact__row dt {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.contact__row dd {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.contact__row dd a { text-decoration: none; color: var(--color-primary); }
.contact__row dd a:hover { text-decoration: underline; }

.form { display: grid; gap: var(--sp-3); }
.form__row { display: grid; gap: var(--sp-3); }
@media (min-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.form__field { display: grid; gap: 8px; margin: 0; max-width: none; }
.form__field label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.form__field label .required { color: var(--color-accent-ink); }

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 15px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.form__field ::placeholder { color: var(--color-text-soft); opacity: 1; }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-focus-ring); }

.form__hp { position: absolute; left: -9999px; opacity: 0; }
.form__submit { margin: var(--sp-1) 0 0; }
.form__note { font-size: var(--fs-small); color: var(--color-text-soft); }

.form__alert { max-width: none; margin-bottom: var(--sp-3); padding: 16px 20px; border-left: 4px solid; font-weight: 600; }
.form__alert--ok { background: var(--color-ok-bg); border-color: var(--color-ok); color: var(--color-ok-text); }
.form__alert--error { background: var(--color-error-bg); border-color: var(--color-error); color: var(--color-error-text); }

/* ==========================================================================
   16. PAGE HERO (inner pages) — muted and typographic, or photo (Option C)
   ========================================================================== */

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50vh;               /* ENGINE: 50vh shows the same photo slice on every 16:9 screen */
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  background-color: var(--color-muted);
}
.page-hero > .container { width: 100%; }
.page-hero h1 { max-width: 18ch; font-size: var(--fs-h1-page); }
.page-hero__lead { margin-top: var(--sp-3); max-width: 38rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--color-text-soft); }
.page-hero__actions { margin-top: var(--sp-4); }
.page-hero__meta { margin-top: var(--sp-2); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-soft); }

.page-hero--post { min-height: 0; }

/* Photo: under a flat deep-oxblood wash at 0.6.
   ENGINE: photo via CSS variable + ::before wash, and no top border.
   Measure text contrast on the real photo before launch. */
.page-hero--has-image { background-image: var(--page-hero-image); background-size: cover; background-position: center; color: var(--color-on-dark); }
.page-hero--has-image::before { content: ""; position: absolute; inset: 0; background-color: var(--overlay-photo); }
.page-hero--has-image > .container { position: relative; z-index: 1; }
.page-hero--has-image h1 { color: var(--color-on-dark); }
.page-hero--has-image .page-hero__lead,
.page-hero--has-image .page-hero__meta { color: var(--color-on-dark); }

/* Per-photo crop adjustments, keyed on the page-slug-{slug} body class.
   Page heroes are wide, short strips on desktop, so a centered crop can cut
   the subject. Lower percentage = photo moves down, showing more of its top.
   Add one line per photo once the real images are in, e.g.
   @media (min-width: 768px) {
     .page-slug-service-area .page-hero--has-image { background-position: center 20%; }
   } */
@media (min-width: 768px) {
  .page-slug-about .page-hero--has-image { background-position: center 90%; }   /* show the reception desk, lower right */
}

/* ==========================================================================
   17. POSTS, PAGES, 404
   ========================================================================== */

.entry-content > * { max-width: var(--measure); }
.entry-content > * + * { margin-top: 20px; }
.entry-content > .alignwide,
.entry-content > .alignfull,
.entry-content > figure { max-width: none; }
.entry-content h2 { margin-top: var(--sp-5); font-size: clamp(1.75rem, 1.4vw + 1.1rem, 2.5rem); }
.entry-content h3 { margin-top: var(--sp-4); }
.entry-content a { color: var(--color-primary); }
.entry-content blockquote {
  padding: 4px 0 4px 28px;
  border-left: 4px solid var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--fs-quote);
  font-style: italic;
  line-height: 1.4;
}

.post-list { display: grid; gap: var(--sp-6); }
@media (min-width: 760px) { .post-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6) var(--sp-7); } }

.post-card { padding: var(--sp-1) 0 var(--sp-1) var(--sp-4); border-left: 4px solid var(--color-primary); }
.post-card__date { margin-bottom: 8px; font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-ink); }
.post-card h2 { margin-bottom: 12px; font-size: var(--fs-h3); }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { color: var(--color-primary); }
.post-card p { color: var(--color-text-soft); }
.post-card__more a { font-weight: 700; color: var(--color-primary); text-underline-offset: 6px; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-6); }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--color-line-strong); border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-dark); }

.error-404 { text-align: center; }
.error-404__code {
  margin: 0 auto;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(7rem, 20vw, 13rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.9;
  color: var(--color-mark);
}
.error-404 h1 { margin: var(--sp-2) auto 0; font-size: var(--fs-h1-page); }
.error-404 p { margin: var(--sp-3) auto 0; color: var(--color-text-soft); }
.error-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-5); }

/* ==========================================================================
   18. FOOTER — deep oxblood, no top border (spec)
   ========================================================================== */

.site-footer {
  padding-top: var(--pad-footer-top);
  padding-bottom: var(--sp-5);
  background-color: var(--color-primary-deep);
  color: var(--color-on-dark-soft);
}
.site-footer p { color: var(--color-on-dark-soft); }

.site-footer__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--sp-7); } }

.site-footer__brand {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1vw + 1.2rem, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--color-on-dark);
}
.site-footer__brand .brand-amp { color: var(--color-accent); }

.site-footer__tagline { margin-top: var(--sp-2); max-width: 40ch; font-size: 0.9375rem; line-height: 1.65; }

.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer__credentials { margin-top: var(--sp-3); font-size: var(--fs-small); line-height: 1.6; }
.site-footer__credentials li + li { margin-top: 4px; }

.site-footer__links { display: grid; gap: var(--sp-5); }
@media (min-width: 560px) { .site-footer__links { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--sp-5); } }

.site-footer__heading {
  margin-bottom: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-on-dark-soft);
}

.site-footer nav li + li { margin-top: 12px; }
.site-footer a { text-decoration: none; color: var(--color-on-dark); transition: color var(--transition); }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }

.site-footer__phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.2;
}
.site-footer__contact { margin-top: var(--sp-2); font-size: 0.9375rem; line-height: 1.6; overflow-wrap: anywhere; }
.site-footer__contact li + li { margin-top: 8px; }

.site-footer__disclaimer {
  margin-top: var(--sp-6);
  max-width: 62ch;
  font-size: 0.8125rem;
  line-height: 1.65;
}
.site-footer__disclaimer + .site-footer__bottom { margin-top: var(--sp-3); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--color-line-dark);
  font-size: 0.8125rem;
}
.site-footer__bottom p { margin: 0; }

/* ==========================================================================
   19. STICKY MOBILE CALL BAR — oxblood and deep oxblood, no accent
   ========================================================================== */

.sticky-cta { display: flex; position: fixed; inset: auto 0 0; z-index: var(--z-sticky-bar); height: 60px; box-shadow: var(--shadow-bar); }

.sticky-cta__call,
.sticky-cta__quote {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: var(--fs-btn);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-on-dark);
}
.sticky-cta__call { background: var(--color-primary); }
.sticky-cta__quote { flex: 0 1 44%; background: var(--color-primary-deep); }
.sticky-cta svg { width: 17px; height: 17px; fill: currentColor; }

@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ==========================================================================
   20. SCROLL REVEAL — single fade-and-rise, no stagger; never on the hero
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--transition-slow), transform var(--transition-slow); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .text-link:hover::after { transform: none; }
}

@media print {
  .site-header, .sticky-cta, .mobile-nav, .cta-banner, .hero__mark { display: none; }
  body { padding-bottom: 0; }
}
