/*
Theme Name: Garden State Divorce
Author: Garden State Divorce
Description: Custom classic theme for Garden State Divorce.
Version: 1.0
*/

/*
  Garden State Divorce — shared stylesheet
  ----------------------------------------
  One stylesheet for all pages. Semantic, class-based, no inline styles.

  Structure: global styles first (tokens, reset, layout shell, buttons and
  other small shared primitives, header/footer, and larger components reused
  across more than one template), then one section per page template. Each
  section carries its own desktop, tablet (900px), and phone (640px) rules
  together, rather than collecting all responsive overrides in one place at
  the end — so everything relevant to a given page lives in one spot.

  Contents:
    GLOBAL
      1.  Design tokens (:root)
      2.  Reset & base
      3.  Layout shell (canvas + card)
      4.  Buttons, badges, stars, links, recognitions, kicker, brand, placeholder
      5.  Header / nav / mobile menu
      6.  Footer
      7.  Shared page components (page-hero, toolbar, attorney-row card,
          pagination, breadcrumb, guide-callout — each used by more than
          one template; see the comment on each for exactly which)
    PAGES
      8.  Home page (front-page.php)
      9.  Directory / attorney archive (archive-attorney.php)
      10. Attorney profile (single-attorney.php)
      11. County / city location pages (taxonomy-attorney_location.php)
      12. Blog post (single.php)
      13. Contact / "Talk to us" (template-contact.php)
      14. 404 page (404.php)
*/

/* ==========================================================================
   GLOBAL
   ========================================================================== */

/* -------------------------------------------------------------- 1. Tokens */
:root {
  --green:        #2E6F40;
  --green-dark:   #1f4d39;
  --green-tint:   #eef4ee;
  --green-line:   #d3e2d7;
  --panel:        #f5faf6;
  --gold:         #c79a3a;

  --ink:          #16201b;
  --ink-strong:   #1b2420;
  --ink-2:        #222a26;
  --text:         #3c463f;
  --muted:        #5c645c;
  --muted-2:      #717a71;
  --muted-3:      #8a938a;

  --canvas:       #e7e7e3;
  --border:       #e2e7e1;
  --border-2:     #e6ebe5;
  --border-3:     #eef2ef;
  --placeholder:  #e9f4ec;
  --placeholder-line: #cfe6d6;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shell-max: 1650px;
  --radius-card: 20px;
  --radius-md: 17.5px;
  --radius-sm: 12.5px;

  /* Site logo (Customize > Site Identity), used in header.php/footer.php.
     Change this one value to resize the logo everywhere it appears. */
  --logo-max-height: 47.25px;

  /* content caps at --content-max and centers; band backgrounds stay full-width.
     --pad-x resolves to the larger of the min gutter or the leftover half-margin. */
  --content-max: 1600px;
  --gutter: 55px;
  --pad-x: max(var(--gutter), calc((100% - var(--content-max)) / 2));
}

@media (max-width: 640px) {
  :root { --gutter: 22.5px; }
}

/* ---------------------------------------------------------- 2. Reset/base */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-2);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); }
a:hover { color: var(--green-dark); }

img { max-width: 100%; display: block; }

/* ------------------------------------------------------- 3. Layout shell */
/* Full-bleed: the page fills the viewport edge-to-edge. Each band below sets its
   own background and uses --pad-x, which keeps inner content within --content-max. */
.site-canvas { min-height: 100vh; }
.site-shell { width: 100%; }

/* horizontal-padding helper shared by full-width bands */
.px { padding-left: var(--pad-x); padding-right: var(--pad-x); }

.divide-b { border-bottom: 1.25px solid var(--border); }

/* ------------------------------- 4. Buttons / badges / stars / etc (global) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18.75px;
  padding: 17.5px 32.5px;
  border-radius: var(--radius-sm);
  border: 1.25px solid transparent;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}
.btn--primary { background: var(--green); color: #f1f6f1; }
.btn--primary:hover { background: var(--green-dark); color: #f1f6f1; }
.btn--onDark { background: #ffffff; color: var(--green-dark); }
.btn--onDark:hover { background: #f1f6f1; color: var(--green-dark); }
.btn--ghost { background: #fff; color: var(--ink-2); border-color: #d6ddd6; }
.btn--sm { font-size: 17.5px; padding: 15px 27.5px; }

/* pill badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.625px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-tint);
  border: 1.25px solid var(--green-line);
  border-radius: 1248.75px;
  padding: 7.5px 16.25px;
  white-space: nowrap;
}

/* text link with trailing arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8.75px;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 18.125px;
  text-decoration: none;
}
.link-arrow--muted { color: var(--green); font-weight: 500; }

.icon { flex-shrink: 0; }

/* gold star (inline svg gets this class) */
.star { fill: var(--gold); flex-shrink: 0; }

/* recognition line-item (star + label [+ detail]). Grid, not flex: the star
   only spans the label's row (grid-row:1, centered within just that row),
   while the detail line sits in row 2 below it, indented under the label. */
.recognition { display: grid; grid-template-columns: auto 1fr; column-gap: 12.5px; }
.recognition > .star { grid-row: 1; align-self: center; }
.recognition__label { grid-column: 2; font-size: 17.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.recognition__detail { grid-column: 2; font-size: 15.625px; color: var(--muted-2); line-height: 1.45; margin-top: 2.5px; }

/* eyebrow / kicker */
.kicker {
  font-family: var(--serif);
  font-size: 18.75px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--green);
}

/* square/round brand mark */
.brand { display: flex; align-items: center; gap: 12.5px; }
.brand__mark {
  width: 37.5px; height: 37.5px;
  border-radius: 11.25px;
  background: var(--green);
  color: #eaf2ec;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 18.75px;
}
.brand__name { font-family: var(--serif); font-size: 22.5px; font-weight: 600; color: var(--ink-strong); }
.brand--sm .brand__mark { width: 32.5px; height: 32.5px; border-radius: 10px; font-size: 16.25px; }
.brand--sm .brand__name { font-size: 18.75px; }

/* uploaded Site Identity logo (falls back to .brand above if none is set) */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: var(--logo-max-height); width: auto; }

/* image placeholder (striped) */
.placeholder {
  background: var(--placeholder);
  background-image: repeating-linear-gradient(135deg, #e0efe5, #e0efe5 8.75px, var(--placeholder) 8.75px, var(--placeholder) 17.5px);
  display: flex; align-items: flex-end; justify-content: center;
}
.placeholder__label {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px; letter-spacing: .08em; color: #8ba394;
  padding-bottom: 12.5px;
}

/* ----------------------------------------------- 5. Header / nav / menu */
/* One <nav> = one WP wp_nav_menu() output. Inline bar on desktop; the same
   list becomes a full-screen overlay on mobile via body.menu-open. */
.site-header {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 25px var(--pad-x);
  border-bottom: 1.25px solid var(--border);
  background: #ffffff;
}
.site-menu { display: flex; align-items: center; gap: 37.5px; font-size: 17.5px; }
.nav-link { color: #4f574f; text-decoration: none; font-weight: 500; }
.nav-link:hover { color: var(--green); }
.nav-link.is-active { color: var(--green); }
.nav-cta { background: var(--green); color: #f1f6f1; padding: 12.5px 25px; border-radius: 11.25px; font-weight: 600; text-decoration: none; }
.nav-cta:hover { background: var(--green-dark); color: #f1f6f1; }

.nav-toggle {
  display: none;
  width: 55px; height: 55px;
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-strong);
  background: none; border: none; padding: 0;
}
.nav-toggle .icon-close { display: none; }

@media (max-width: 900px) {
  /* burger shows on tablet and phone; the single .site-menu becomes a full-screen overlay */
  .nav-toggle { display: inline-flex; }
  .site-menu { display: none; }

  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; }
  /* .site-menu is a sibling of .nav-toggle inside .site-header, so its
     full-screen z-index:1000 overlay would otherwise paint over the
     toggle button (which has no z-index of its own) and hide it. */
  body.menu-open .nav-toggle { position: relative; z-index: 1001; }
  body.menu-open .nav-toggle .icon-open { display: none; }
  body.menu-open .nav-toggle .icon-close { display: inline-flex; }
  body.menu-open .site-menu {
    display: flex; position: fixed; inset: 0; z-index: 1000;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #ffffff; padding: 105px 27.5px 27.5px; overflow-y: auto;
  }
  body.menu-open .nav-link,
  body.menu-open .nav-cta {
    font-family: var(--serif); font-size: 35px; font-weight: 600;
    padding: 22.5px 0;
  }
  body.menu-open .nav-link { color: var(--ink); border-bottom: 1.25px solid var(--border-3); }
  body.menu-open .nav-link.is-active { color: var(--green); }
  body.menu-open .nav-cta { background: none; color: var(--ink); border-radius: 0; }
}

@media (max-width: 640px) {
  .site-header { padding: 17.5px 22.5px; }
}

/* --------------------------------------------------------------- 6. Footer */
.site-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 25px;
  padding: 35px var(--pad-x);
  border-top: 1.25px solid var(--border);
  background: var(--panel);
}
.site-footer__links { display: flex; align-items: center; gap: 32.5px; font-size: 16.875px; color: var(--muted); font-weight: 500; }
.site-footer__links a { color: var(--muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--green); }
.site-footer__copy { font-size: 16.25px; color: var(--muted-3); }

@media (max-width: 900px) {
  /* stack + center the footer on tablet and phone */
  .site-footer { flex-direction: column; text-align: center; }
  .site-footer__links { justify-content: center; flex-wrap: wrap; }
}

/* ------------------------------------------------- 7. Shared page components
   Each of these is used by more than one template — kept here instead of
   under a single page section so there's exactly one definition to edit.
   ========================================================================== */

/* .page-hero / .page-hero__title / .page-hero__lede
   Used by: directory index (archive-attorney.php), county/city location
   pages (taxonomy-attorney_location.php), 404 page (404.php). */
.page-hero { padding: 80px var(--pad-x) 65px; border-bottom: 1.25px solid var(--border); }
.page-hero__title { font-family: var(--serif); font-size: 42.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; line-height: 1.12; margin: 0; }
.page-hero__lede { font-size: 18.75px; color: var(--muted); margin-top: 20px; max-width: 750px; line-height: 1.55; }

@media (max-width: 640px) {
  .page-hero__title { font-size: 33.75px; }
}

/* .toolbar — result count.
   Used by: directory index, county/city location pages. */
.toolbar { display: flex; align-items: center; justify-content: space-between; padding: 25px var(--pad-x); border-bottom: 1.25px solid var(--border-2); }
.toolbar__count { font-size: 18.125px; color: var(--text); }
.toolbar__count strong { font-weight: 700; color: var(--ink); }

/* .attorney-row — the attorney card, output by template-parts/attorney-card.php.
   Used by: directory index, county/city location pages. */
.attorney-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 32.5px; align-items: center;
  padding: 32.5px var(--pad-x);
  border-bottom: 1.25px solid var(--border-2);
}
.attorney-row:hover { background: var(--panel); }
.attorney-row__photo { position: relative; overflow: hidden; width: 130px; height: 130px; border-radius: 15px; border: 1.25px solid var(--placeholder-line); padding-bottom: 10px; }
.attorney-row__photo .placeholder__label { padding-bottom: 10px; }
.attorney-row__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.attorney-row__name { font-family: var(--serif); font-size: 25px; font-weight: 600; color: var(--ink); }
.attorney-row__firm { font-size: 17.5px; color: var(--muted); margin-top: 3.75px; }
.attorney-row__meta { font-size: 16.875px; color: var(--muted-2); margin-top: 12.5px; }
.attorney-row__creds { display: grid; grid-template-columns: 1fr 1fr; gap: 7.5px 27.5px; margin-top: 15px; max-width: 650px; }
.attorney-row__cred { display: flex; align-items: center; gap: 10px; font-size: 16.25px; color: #2c342e; }
.attorney-row__actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 215px; }
.attorney-row__actions .btn { justify-content: center; }
.attorney-row__website { display: flex; align-items: center; justify-content: center; gap: 7.5px; font-size: 16.25px; color: var(--green); font-weight: 500; text-decoration: none; }

@media (max-width: 900px) {
  .attorney-row__creds { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .attorney-row { grid-template-columns: 105px 1fr; column-gap: 20px; row-gap: 20px; padding: 25px 22.5px; }
  .attorney-row__photo { width: 105px; height: 105px; }
  .attorney-row__actions { grid-column: 1 / -1; min-width: 0; }
}

/* .pagination
   Used by: directory index, county/city location pages. */
.pagination { display: flex; align-items: center; justify-content: center; gap: 7.5px; padding: 32.5px var(--pad-x) 42.5px; }
.pagination a, .pagination span {
  width: 42.5px; height: 42.5px; border-radius: 11.25px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17.5px; text-decoration: none;
  background: #fff; border: 1.25px solid #d6ddd6; color: #46504a;
}
.pagination .is-current { background: var(--green); color: #eef5ef; border-color: var(--green); font-weight: 600; }

/* .breadcrumb / .breadcrumb__sep / .breadcrumb__current
   Used by: attorney profile (single-attorney.php), county/city location
   pages (taxonomy-attorney_location.php). */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 11.25px;
  padding: 20px var(--pad-x);
  border-bottom: 1.25px solid #eef2ef;
  font-size: 16.25px;
}
.breadcrumb a {
  color: var(--green-dark);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #bcd6c4;
  text-underline-offset: 3px;
}
.breadcrumb a:hover { text-decoration-color: var(--green); }

/* chevron between crumbs */
.breadcrumb__sep { color: #b3bcb4; flex-shrink: 0; }

/* the current page — plain text, never a link */
.breadcrumb__current { color: var(--muted-2); }

@media (max-width: 640px) {
  .breadcrumb { padding: 17.5px 22.5px; font-size: 15px; flex-wrap: wrap; }
}

/* .guide-callout — divorce-guide promo, output by template-parts/guide-callout.php.
   Used by: directory index, county/city location pages, home page. */
.guide-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 37.5px var(--pad-x);
  border-top: 1.25px solid var(--border-2);
  background: var(--panel);
}
.guide-callout__text { max-width: 825px; }
.guide-callout__kicker {
  font-size: 14.375px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}
.guide-callout__title {
  font-family: var(--serif);
  font-size: 27.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 8.75px 0 0;
}
.guide-callout__lede {
  font-size: 18.125px;
  color: var(--muted);
  line-height: 1.55;
  margin: 10px 0 0;
  text-wrap: pretty;
}
.guide-callout .btn { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 900px) {
  .guide-callout { gap: 28px; }
}

@media (max-width: 640px) {
  /* callout stacks: text over button */
  .guide-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 17.5px;
    padding: 32.5px 22.5px;
  }
  .guide-callout__title { font-size: 23.75px; }
  .guide-callout__lede { font-size: 16.875px; }
}

/* ==========================================================================
   PAGES
   ========================================================================== */

/* -------------------------------------------------- 8. Home page (front-page.php) */
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: center;
  padding: 95px var(--pad-x) 85px;
  border-bottom: 1.25px solid var(--border);
}
.hero__title {
  font-family: var(--serif);
  font-size: 57.5px; font-weight: 600; color: var(--ink);
  letter-spacing: -.015em; line-height: 1.08;
  margin: 27.5px 0 0; max-width: 700px;
}
.hero__lede { font-size: 20px; color: var(--muted); margin-top: 25px; max-width: 650px; line-height: 1.6; }
.hero__actions { display: flex; align-items: center; gap: 22.5px; margin-top: 40px; flex-wrap: wrap; }

.trust-panel { background: var(--panel); border: 1.25px solid #e2ebe4; border-radius: var(--radius-md); padding: 32.5px 35px; }
.trust-panel__title { font-size: 15.625px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.trust-panel__list { display: flex; flex-direction: column; gap: 17.5px; margin-top: 20px; }

.section { padding: 80px var(--pad-x); border-bottom: 1.25px solid var(--border); }
.section__title {
  font-family: var(--serif);
  font-size: 37.5px; font-weight: 600; color: var(--ink);
  letter-spacing: -.01em; margin: 12.5px 0 0; line-height: 1.15;
  max-width: 750px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; margin-top: 55px; }

.pillar__icon {
  width: 55px; height: 55px; border-radius: 13.75px;
  background: var(--green-tint); border: 1.25px solid var(--green-line);
  display: flex; align-items: center; justify-content: center; color: var(--green);
}
.pillar__title { font-size: 21.25px; font-weight: 600; color: var(--ink); margin-top: 22.5px; }
.pillar__body { font-size: 18.125px; color: var(--muted); line-height: 1.6; margin-top: 11.25px; }

/* "Browse by location" — hairline, three-column treatment. Distinct from
   .location-links (the inline-link version on the directory index, section 9). */
.location-grid {
  padding: 70px var(--pad-x);
  border-bottom: 1.25px solid var(--border-2);
}
.location-grid__eyebrow {
  font-family: var(--serif);
  font-size: 18.75px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--green);
}
.location-grid__heading {
  font-family: var(--serif);
  font-size: 37.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.15;
  margin: 12.5px 0 0;
}
/* one block per taxonomy (counties, cities) */
.location-grid__block { margin-top: 40px; }
.location-grid__block + .location-grid__block { margin-top: 32.5px; }
.location-grid__label {
  font-size: 14.375px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7e8c81;
  font-weight: 700;
  margin-bottom: 2.5px;
}
/* Multi-column, so names read alphabetically DOWN each column rather than
   across rows. A CSS grid would order them across. */
.location-grid__columns {
  columns: 3;
  column-gap: 42.5px;
}
.location-grid__columns a {
  display: block;
  break-inside: avoid;
  text-decoration: none;
  padding: 13.75px 0;
  border-bottom: 1.25px solid var(--border-2);
}
.location-grid__county {
  font-size: 17.5px;
  font-weight: 600;
  color: var(--ink-strong);
}
.location-grid__city {
  font-size: 16.875px;
  color: var(--muted);
}
.location-grid__columns a:hover { color: var(--green); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 55px 22.5px; }
  .location-grid { padding: 55px var(--pad-x); }
  .location-grid__columns { columns: 2; }
  .location-grid__heading { font-size: 32.5px; }
}

@media (max-width: 640px) {
  .hero__title { font-size: 38.75px; }
  .section { padding: 55px 22.5px; }
  .section__title { font-size: 30px; }
  .grid-3 { grid-template-columns: 1fr; }
  .location-grid { padding: 45px 22.5px; }
  .location-grid__columns { columns: 1; }
}

/* ---------------------------- 9. Directory / attorney archive (archive-attorney.php)
   page-hero, toolbar, attorney-row, pagination, and guide-callout are shared
   components — see section 7. Only this page's own "Browse by location"
   inline-link block is defined here. */
.location-links {
  padding: 32.5px var(--pad-x) 35px;
  border-bottom: 1.25px solid var(--border-2);
}
.location-links__heading {
  font-family: var(--serif);
  font-size: 23.75px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 22.5px;
}
/* one row per taxonomy (counties, cities) */
.location-links__row { max-width: 1125px; }
.location-links__row + .location-links__row { margin-top: 20px; }
/* the small uppercase "Counties" / "Cities" label */
.location-links__label {
  display: block;
  font-size: 14.375px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7e8c81;
  font-weight: 700;
  margin-bottom: 5px;
}
/* the inline run of links */
.location-links__list {
  font-size: 17.5px;
  line-height: 2;
  color: var(--text);
}
.location-links__list a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.location-links__list a:hover { text-decoration-color: var(--green); }
/* counties read slightly heavier than cities */
.location-links__county { font-weight: 600; text-decoration-color: #bcd6c4; }
.location-links__city { text-decoration-color: #d3ddd6; }
/* dot separator; hidden after the last item so the term loop stays simple */
.location-links__sep { color: #b3bcb4; padding: 0 11.25px; }
.location-links__item:last-child .location-links__sep { display: none; }

@media (max-width: 640px) {
  .location-links { padding: 27.5px 22.5px 30px; }
  .location-links__heading { font-size: 21.25px; }
  .location-links__list { font-size: 16.25px; }
}

/* ------------------------ 10. Attorney profile (single-attorney.php)
   breadcrumb is a shared component — see section 7. */
.profile-hero {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 47.5px;
  padding: 32.5px var(--pad-x) 50px;
  border-bottom: 1.25px solid var(--border-2);
}
.profile-hero__photo { width: 310px; height: 375px; border-radius: var(--radius-md); overflow: hidden; border: 1.25px solid var(--placeholder-line); }
.profile-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile-hero__firm { font-size: 15.625px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.profile-hero__name { font-family: var(--serif); font-size: 52.5px; font-weight: 600; color: var(--ink); line-height: 1.05; margin: 10px 0 0; letter-spacing: -.01em; }
.profile-hero__meta { font-size: 18.75px; color: var(--muted); margin-top: 15px; }
.profile-hero__recognitions { display: grid; grid-template-columns: 1fr 1fr; gap: 11.25px 32.5px; margin-top: 27.5px; max-width: 700px; }
.profile-hero__actions { display: flex; align-items: center; gap: 15px; margin-top: 35px; flex-wrap: wrap; }

.profile-body { display: grid; grid-template-columns: 1fr 425px; gap: 55px; padding: 50px var(--pad-x) 57.5px; }
.profile-main__heading { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); }
.profile-main__heading + .prose { margin-top: 17.5px; }
.prose { display: flex; flex-direction: column; gap: 20px; }
.prose p { margin: 0; font-size: 19.375px; line-height: 1.66; color: var(--text); }
.profile-main__heading.mt { margin-top: 47.5px; }

.assoc { display: flex; flex-direction: column; margin-top: 20px; }
.assoc__item { display: flex; justify-content: space-between; align-items: baseline; gap: 25px; padding: 16.25px 0; border-top: 1.25px solid var(--border-3); }
.assoc__name { font-size: 18.125px; color: var(--ink-2); font-weight: 600; line-height: 1.35; }
.assoc__role { font-size: 16.25px; color: var(--muted-2); margin-top: 2.5px; }
.assoc__years { font-size: 16.25px; color: var(--muted-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

.profile-sidebar { display: flex; flex-direction: column; gap: 22.5px; }
.card { border: 1.25px solid var(--border-2); border-radius: var(--radius-md); padding: 27.5px; }
.card--tinted { background: #f9fbf9; }
.card__title { font-family: var(--serif); font-size: 22.5px; font-weight: 600; color: var(--ink); }
.office__firm { font-size: 17.5px; color: var(--ink-2); font-weight: 600; margin-top: 15px; }
.office__addr { font-size: 17.5px; color: var(--muted); line-height: 1.5; margin-top: 7.5px; }
.office__maplink { display: inline-flex; align-items: center; gap: 7.5px; margin-top: 10px; font-size: 16.25px; color: var(--green); font-weight: 500; text-decoration: none; }
.office__contact { display: flex; align-items: center; gap: 10px; margin-top: 17.5px; font-size: 17.5px; color: var(--text); }
.office__contact--email { margin-top: 11.25px; word-break: break-all; }
.office__ratings { display: flex; flex-direction: column; gap: 17.5px; margin-top: 20px; padding-top: 20px; border-top: 1.25px solid var(--border-2); }
.rating__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rating__score { font-size: 17.5px; color: var(--ink-2); font-weight: 600; }
.rating__meta { font-size: 16.25px; color: var(--muted-3); }
.rating__meta .frac { color: #9aa39a; }
.rating__kind { margin-top: 3.75px; padding-left: 28.75px; font-size: 15.625px; color: var(--muted-3); }

.edu { margin-top: 15px; display: flex; flex-direction: column; gap: 17.5px; }
.edu__school { font-size: 17.5px; color: var(--ink-2); font-weight: 600; line-height: 1.35; }
.edu__line { font-size: 16.25px; color: var(--muted-2); margin-top: 2.5px; }

.dirlinks { margin-top: 17.5px; display: flex; flex-direction: column; gap: 2.5px; }
.dirlinks__item { display: flex; align-items: center; justify-content: space-between; gap: 12.5px; padding: 13.75px 0; border-top: 1.25px solid var(--border-3); text-decoration: none; }
.dirlinks__item span { font-size: 17.5px; color: var(--ink-2); font-weight: 600; }

.verified { font-size: 15px; color: #9aa39a; text-align: center; }

@media (max-width: 900px) {
  .profile-body { grid-template-columns: 1fr; }
  .profile-hero__recognitions { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .profile-hero { grid-template-columns: 1fr; gap: 30px; }
  .profile-hero__photo { width: 100%; height: auto; aspect-ratio: 248 / 300; }
  .profile-hero__name { font-size: 37.5px; }
}

/* ------------------ 11. County / city location pages (taxonomy-attorney_location.php)
   breadcrumb, page-hero, toolbar, attorney-row, pagination, and guide-callout
   are shared components — see section 7. Only this page's own "Browse by
   city" block is defined here. */
.city-links {
  padding: 32.5px var(--pad-x) 35px;
  border-bottom: 1.25px solid var(--border-2);
}
.city-links__title {
  font-family: var(--serif);
  font-size: 23.75px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 17.5px;
}
.city-links__list {
  font-size: 17.5px;
  line-height: 2;
  color: var(--text);
  max-width: 1125px;
}
.city-links__list a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-color: #d3ddd6;
  text-underline-offset: 3px;
}
.city-links__list a:hover { text-decoration-color: var(--green); }
/* dot between cities; hidden after the last one so the loop needs no
   conditional markup */
.city-links__sep { color: #b3bcb4; padding: 0 11.25px; }
.city-links__item:last-child .city-links__sep { display: none; }

@media (max-width: 640px) {
  .city-links { padding: 27.5px 22.5px 30px; }
  .city-links__title { font-size: 21.25px; }
  .city-links__list { font-size: 16.25px; }
}

/* -------------------------------------------------- 12. Blog post (single.php)
   guide-callout (used by the CTA at the bottom of some posts' surrounding
   pages) is a shared component — see section 7; the CTA band below is
   exclusive to this template. */
.post-header {
  padding: 50px var(--pad-x) 40px;
  border-bottom: 1.25px solid var(--border-2);
}
.post-header__kicker {
  font-size: 15.625px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}
.post-header__title {
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 12.5px 0 0;
  max-width: 950px;
}
.post-header__meta {
  font-size: 16.875px;
  color: var(--muted-2);
  margin-top: 20px;
}

/* body: article + TOC rail */
.post-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 70px;
  padding: 50px var(--pad-x) 75px;
  align-items: start;
}

.post-content { max-width: 900px; min-width: 0; }

.post-content h2 {
  font-family: var(--serif);
  font-size: 31.25px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin: 47.5px 0 17.5px;
  scroll-margin-top: 30px;
}
.post-content > h2:first-child { margin-top: 0; }

.post-content h3 {
  font-family: var(--serif);
  font-size: 23.75px;
  font-weight: 600;
  color: var(--ink-strong);
  line-height: 1.3;
  margin: 27.5px 0 12.5px;
}

.post-content p,
.post-content li {
  font-size: 18.75px;
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}
.post-content p { margin: 0 0 20px; }
.post-content ul,
.post-content ol { margin: 0 0 20px; padding-left: 27.5px; }
.post-content li { margin-bottom: 7.5px; }

.post-content a { color: var(--green-dark); text-underline-offset: 3px; }
.post-content a:hover { color: var(--green); }

.post-content blockquote {
  margin: 27.5px 0;
  padding: 22.5px 27.5px;
  background: var(--panel);
  border-radius: var(--radius-md);
  font-size: 19.375px;
  line-height: 1.6;
  color: var(--ink-strong);
}
.post-content blockquote p:last-child { margin-bottom: 0; }

/* buttons at the end of the article — reuses .btn from section 4 */
.post-actions { display: flex; gap: 17.5px; flex-wrap: wrap; margin-top: 10px; }

/* table of contents — sticky on desktop only. NOTE: any ancestor with
   overflow:hidden breaks position:sticky — use overflow:clip if a theme
   wrapper needs clipping. */
.post-toc {
  position: sticky;
  top: 30px;
  align-self: start;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
.post-toc__inner {
  border: 1.25px solid var(--border-2);
  border-radius: var(--radius-md);
  padding: 27.5px;
  background: #f9fbf9;
}
.post-toc__title {
  font-family: var(--serif);
  font-size: 18.75px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 15px;
}
.post-toc__list { list-style: none; margin: 0; padding: 0; }
.post-toc__list li { margin: 0; }
.post-toc__list a {
  display: block;
  font-size: 16.25px;
  color: #4f574f;
  text-decoration: none;
  padding: 7.5px 0;
}
.post-toc__list a:hover { color: var(--green); }
.post-toc__list a.is-active { color: var(--green); font-weight: 600; }

/* "Ready to talk to a lawyer" CTA band, below the article content */
.cta-band {
  background: var(--green);
  padding: 75px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-band__title { font-family: var(--serif); font-size: 37.5px; font-weight: 600; color: #f4f8f4; letter-spacing: -.01em; line-height: 1.14; max-width: 700px; }
.cta-band__body { font-size: 18.75px; color: #cfe0d3; margin-top: 15px; max-width: 650px; line-height: 1.55; }

@media (max-width: 900px) {
  .post-body { grid-template-columns: 1fr; gap: 40px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 55px 22.5px; }
  /* TOC moves above the article and stops being sticky */
  .post-toc {
    position: static;
    order: -1;
    max-height: none;
    overflow: visible;
  }
  .post-header__title { font-size: 42.5px; }
}

@media (max-width: 640px) {
  .post-header { padding: 40px 22.5px 32.5px; }
  .post-body { padding: 40px 22.5px 60px; }
  .post-header__title { font-size: 33.75px; }
  .post-content h2 { font-size: 26.25px; }
  .post-content h3 { font-size: 21.25px; }
  .post-toc__list a { padding: 10px 0; }
}

/* --------------------------------- 13. Contact / "Talk to us" (template-contact.php) */
.contact-header { padding: 95px var(--pad-x) 25px; text-align: center; }
.contact-header__title { font-family: var(--serif); font-size: 52.5px; font-weight: 600; color: var(--ink); letter-spacing: -.015em; line-height: 1.1; margin: 27.5px 0 0; }
.contact-header__lede { font-size: 20px; color: var(--muted); margin: 22.5px auto 0; max-width: 650px; line-height: 1.6; }

.email-cta-wrap { padding: 45px var(--pad-x) 10px; display: flex; justify-content: center; }
.email-cta { background: var(--panel); border: 1.25px solid #e2ebe4; border-radius: var(--radius-md); padding: 40px 50px; text-align: center; max-width: 700px; width: 100%; }
.email-cta__label { font-size: 15.625px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.email-cta__address { font-family: var(--serif); font-size: 32.5px; font-weight: 600; color: var(--green); margin-top: 15px; word-break: break-word; text-decoration: none; }
.email-cta .btn { margin-top: 27.5px; }

.reasons-wrap { padding: 55px var(--pad-x) 95px; }
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 1125px; margin: 0 auto; }
.reason { border: 1.25px solid var(--border-2); border-radius: var(--radius-md); padding: 37.5px 37.5px 40px; }
.reason__icon { width: 55px; height: 55px; border-radius: 13.75px; background: var(--green-tint); border: 1.25px solid var(--green-line); display: flex; align-items: center; justify-content: center; color: var(--green); }
.reason__title { font-family: var(--serif); font-size: 25px; font-weight: 600; color: var(--ink); margin-top: 22.5px; }
.reason__body { font-size: 18.125px; color: var(--muted); line-height: 1.6; margin-top: 11.25px; }

@media (max-width: 640px) {
  .contact-header__title { font-size: 37.5px; }
  .reasons { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- 14. 404 page (404.php)
   page-hero__title / page-hero__lede are shared components — see section 7. */
.not-found {
  padding: 120px var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.not-found .page-hero__title,
.not-found .page-hero__lede { margin-left: auto; margin-right: auto; }
.not-found .page-hero__lede { margin-top: 16px; }
.not-found .btn { margin-top: 32px; }
