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

:root {
  --navy:       #0F204F;
  --navy-mid:   #242836;
  --navy-light: #2E3347;
  --blue:       #0066FF;
  --blue-light: #408cff;
  --blue-hover: #0052CC;
  --blue-dim:   rgba(0,102,255,0.1);
  --blue-line:  rgba(0,102,255,0.3);
  --warm:       #F2EFE9;
  --warm-mid:   #EDE8DF;
  --warm-dark:  #E0D9CE;
  --text:       #1B1F2A;
  --body:       #3D3A35;
  --muted:      #7A7670;
  --faint:      #B0AB9F;
  --border:     #D8D2C8;
  --wpadminbar: 0px;
  --controls-h: 67px;
}

/* JS-obfuscated email elements (see assets/js/email-obfuscate.js) — hidden until JS
   fills them in, so a disabled/blocked script leaves nothing rather than an empty
   half-populated link; the <noscript> fallback next to each one covers that case. */
.sam-email-js { display: none; }

/* WordPress admin toolbar offset — keeps the fixed nav below it when logged in. */
body.admin-bar { --wpadminbar: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar { --wpadminbar: 46px; }
}

html { font-size: 16px; overflow-x: hidden; }
body { font-family: 'DM Sans', sans-serif; background: var(--warm); color: var(--text); -webkit-font-smoothing: antialiased; padding-top: 74px; }

/* ── NAV ── */
.nav {
  position: fixed; top: var(--wpadminbar); left: 0; right: 0; z-index: 200;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 74px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo { display: flex; flex-direction: column; text-decoration: none; }
.nav-logo-top,
.nav-logo-chambers { font-family: 'Century Gothic', 'Questrial', sans-serif; font-size: 22px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; line-height: 1.35; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; text-decoration: none; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current-page-ancestor > a,
.nav-links .current-menu-ancestor > a,
.nav-links a.active { color: var(--blue); }
.nav-cta { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; padding: 9px 22px; background: var(--blue); border: 1px solid var(--blue); color: #fff; text-decoration: none; transition: background 0.15s, opacity 0.15s; }
.nav-cta:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; align-items: flex-end; gap: 5px; }
.nav-hamburger span { display: block; height: 1.5px; background: rgba(255,255,255,0.7); }
.nav-hamburger span:nth-child(1) { width: 22px; }
.nav-hamburger span:nth-child(2) { width: 16px; }
.nav-hamburger span:nth-child(3) { width: 22px; }
.mobile-menu { display: none; background: var(--navy-mid); border-bottom: 1px solid rgba(255,255,255,0.07); padding: 16px 24px; }
.mobile-menu.open { display: block; position: fixed; top: calc(74px + var(--wpadminbar)); left: 0; right: 0; z-index: 199; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { display: block; border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-menu li:last-child { border-bottom: none; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 18px; color: rgba(255,255,255,0.65); text-decoration: none; letter-spacing: 0.04em; }
.mobile-menu a:hover,
.mobile-menu .current-menu-item > a,
.mobile-menu .current-page-ancestor > a,
.mobile-menu .current-menu-ancestor > a { color: var(--blue); }

/* ── PAGE HERO ── */
.page-hero {
  background: var(--navy); padding: 60px 48px 52px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 40%;
  background: linear-gradient(to right, transparent, rgba(0,102,255,0.04));
  pointer-events: none;
}
.hero-kicker {
  font-size: 16px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 18px; font-weight: 300;
  display: flex; align-items: center; gap: 12px;
}
.hero-kicker::after { content: ''; display: block; width: 32px; height: 1px; background: var(--blue-line); }
.page-h1 { font-size: clamp(32px, 5.5vw, 58px); font-weight: 300; color: #fff; line-height: 1.05; letter-spacing: -0.025em; }
.page-h1 strong { font-weight: 600; }
.page-desc { font-size: 18px; color: rgba(255,255,255,0.95); margin-top: 16px; max-width: 540px; line-height: 1.9; font-weight: 300; }

/* ── CONTROLS ── */
.controls {
  background: var(--warm-mid);
  border-bottom: 1px solid var(--border);
  padding: 14px 48px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  position: sticky; top: calc(74px + var(--wpadminbar)); z-index: 100;
}
.filter-label {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; font-weight: 300;
}
.ctrl-select {
  appearance: none; background: #fff;
  border: 1px solid var(--border);
  padding: 8px 30px 8px 14px; font-size: 14px;
  color: var(--text); font-family: 'DM Sans', sans-serif;
  cursor: pointer; letter-spacing: 0.03em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230066FF' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  transition: border-color 0.15s;
  min-width: 180px;
}
.ctrl-select:focus { outline: none; border-color: var(--blue-line); }
.ctrl-select option { background: #fff; color: var(--text); }
.sort-group { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sort-label { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); font-weight: 300; }
.sort-btn { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); background: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; padding: 0; transition: color 0.15s; }
.sort-btn.active { color: var(--blue); font-weight: 500; }
.sort-btn:hover { color: var(--muted); }
.sort-div { color: var(--border); }

/* ── SIDEBAR FILTER BUTTON + CLOSE (mobile only) ── */
.sb-filter-btn { display: none; }
.sb-close { display: none; }
.sidebar-backdrop { display: none; }

/* ── BODY ── */
.page-body { display: flex; }

/* ── SIDEBAR ── */
.sidebar {
  width: 280px; flex-shrink: 0;
  background: var(--warm-mid);
  border-right: 1px solid var(--border);
  padding: 32px 24px;
  height: calc(100vh - 74px - var(--wpadminbar) - var(--controls-h));
  position: sticky; top: calc(74px + var(--wpadminbar) + var(--controls-h));
  overflow-y: auto;
}
.sb-section { margin-bottom: 32px; }
.sb-title {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px; font-weight: 300;
  display: flex; align-items: center; justify-content: space-between;
}
.sb-clear {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: none; border: none; cursor: pointer;
  padding: 0; font-weight: 400; transition: color 0.15s;
}
.sb-clear:hover { color: var(--blue); }
.sb-check { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; cursor: pointer; }
.sb-check:hover .sb-lbl { color: var(--blue); }
.sb-box {
  width: 13px; height: 13px; border: 1px solid var(--border);
  flex-shrink: 0; background: #fff; transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.sb-check:hover .sb-box { border-color: var(--blue-line); }
.sb-check.sb-active .sb-box {
  background: var(--blue); border-color: var(--blue);
}
.sb-check.sb-active .sb-box::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/9px no-repeat;
}
.sb-check.sb-active .sb-lbl { color: var(--blue); font-weight: 500; }
.sb-lbl { font-size: 16px; color: var(--body); transition: color 0.15s; user-select: none; }

/* ── MAIN ── */
.main { flex: 1; padding: 36px 40px; min-width: 0; }

.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; margin-top: 36px; }
.sec-head:first-child { margin-top: 0; }
.sec-name { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--text); white-space: nowrap; text-transform: uppercase; }
.sec-line { flex: 1; height: 1px; background: var(--border); }
.sec-count { font-size: 11px; color: var(--faint); white-space: nowrap; letter-spacing: 0.08em; }

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.b-card { background: #fff; border: 1px solid var(--border); overflow: hidden; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; position: relative; }
.b-card:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(15,32,79,0.08); }
.b-card:hover .b-name { color: var(--blue); }
.b-card-link { position: absolute; inset: 0; z-index: 0; }
.b-meta { position: relative; z-index: 1; }

.b-photo {
  width: 100%; aspect-ratio: 3/4;
  background: var(--navy); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.b-photo-init { font-size: 44px; font-weight: 300; color: rgba(0,102,255,0.2); letter-spacing: -0.02em; user-select: none; }
.b-photo-over { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(15,32,79,0.7) 100%); pointer-events: none; }
.b-badge { position: absolute; top: 0; left: 0; background: var(--blue); color: #fff; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; padding: 8px 16px; font-weight: 600; z-index: 2; pointer-events: none; }
.b-name-badge { font-weight: 400; color: var(--blue); font-size: 0.85em; letter-spacing: 0.06em; }

.b-body { padding: 12px 14px 14px; }
.b-name { font-size: 20px; font-weight: 500; color: var(--text); line-height: 1.3; margin-bottom: 3px; transition: color 0.15s; }
.b-meta { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--border); }
.b-meta-row { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; }
.b-meta-row:last-child { margin-bottom: 0; }
.b-meta-label { font-size: 13px; letter-spacing: 0.03em; color: var(--faint); flex-shrink: 0; }
.b-meta-value { font-size: 13px; letter-spacing: 0.01em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.b-meta-email { color: var(--blue); text-decoration: none; }
.b-meta-email:hover { text-decoration: underline; }

/* ── FOOTER ── */
.footer { background: var(--navy); padding: 56px 48px 32px; }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo-name { font-family: 'Century Gothic', 'Questrial', sans-serif; font-size: 14px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.footer-logo-sub { font-family: 'Century Gothic', 'Questrial', sans-serif; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; font-weight: 400; }
.footer-rule { width: 32px; height: 1px; background: var(--blue-line); margin-bottom: 18px; }
.footer-desc { font-size: 12.5px; color: rgba(255,255,255,0.85); line-height: 1.9; font-weight: 300; }
.footer-col-title { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(0,102,255,0.95); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 12.5px; color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.2); }

/* ── HERO (photo background) ── */
.hero {
  min-height: 86vh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 80px 48px 64px;
  position: relative; overflow: hidden;
  background: var(--navy);
}
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-carousel { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  /* transition duration is set by JS from Customizer values */
}
.hero-slide.is-active { opacity: 1; }
.hero-photo-placeholder {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    #1c2c4d,
    #1c2c4d 18px,
    #223456 18px,
    #223456 36px
  );
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 64px;
  z-index: 0;
}
.hero-photo-label {
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border: 1px dashed rgba(255,255,255,0.3);
  padding: 14px 24px;
  background: rgba(15,32,79,0.5);
  max-width: 320px;
  text-align: center;
  line-height: 1.6;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(15,32,79,0.96) 0%,
    rgba(15,32,79,0.85) 35%,
    rgba(15,32,79,0.35) 60%,
    rgba(15,32,79,0) 75%
  );
  z-index: 1;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; text-align: left; }

/* ── HERO ANIMATIONS ── */
@keyframes heroFadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero-eyebrow {
  font-size: 16px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blue-light); font-weight: 300;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 16px;
  opacity: 0;
  animation: heroFadeIn 1s ease forwards 0.1s;
}
.hero-eyebrow::after {
  content: ''; display: block; width: 40px; height: 1px; background: var(--blue-line);
}
.hero-h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 300; color: #fff;
  line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: 28px;
  opacity: 0;
  animation: heroFadeInUp 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards 0.4s;
}
.hero-h1 strong { font-weight: 600; }
.hero-h1 em { font-style: italic; color: var(--blue); font-weight: 300; }
.hero-rule {
  width: 40px; height: 2px; background: var(--blue);
  margin: 0 0 28px;
  opacity: 0;
  animation: heroFadeIn 0.8s ease forwards 1s;
}
.hero-p {
  font-size: 18px; font-weight: 300; color: rgba(255,255,255,0.90);
  line-height: 1.85; max-width: 520px; margin: 0 0 40px;
  opacity: 0;
  animation: heroFadeIn 0.9s ease forwards 1.2s;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeIn 0.9s ease forwards 1.4s;
}
.btn-gold {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; padding: 13px 32px;
  background: var(--blue); color: #fff; border: none; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: opacity 0.15s;
}
.btn-gold:hover { opacity: 0.88; }
.btn-ghost {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 400; padding: 13px 32px;
  background: transparent; color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.3); cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.hero-scroll {
  display: flex; align-items: center; gap: 10px;
  margin-top: 56px;
  position: relative; z-index: 2;
  opacity: 0;
  animation: heroFadeIn 0.8s ease forwards 1.7s;
}
.hero-scroll-label {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.hero-scroll-line {
  width: 40px; height: 1px; background: linear-gradient(to right, rgba(255,255,255,0.6), transparent);
}

/* ── SECTIONS ── */
.section { padding: 88px 48px; }
.section.section--flush-top { padding-top: 0; }
.section-navy     { background: #fff; }
.section-navy-mid { background: var(--navy-mid); }
.section-warm     { background: var(--warm); }
.section-white    { background: #fff; }

.section-label,
.section-label-light {
  font-size: 18px; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 300; margin-bottom: 16px;
}
.section-label       { color: var(--blue); }
.section-label-light { color: rgba(0,102,255,0.65); }

.section-h2,
.section-h2-light {
  font-size: clamp(28px, 4vw, 44px); font-weight: 300;
  color: var(--text); line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 56px;
}
.section-h2 strong,
.section-h2-light strong { font-weight: 600; }
.section-h2-light strong { color: var(--blue); }

/* ── ABOUT (full width, with angled wedge) ── */
.about-section {
  background: var(--warm);
  padding: 88px 48px;
  position: relative;
}
.about-wedge {
  position: absolute;
  top: 0; left: 0;
  width: 200px; height: 100%;
  background: var(--navy);
  clip-path: polygon(0 0, 0 0, 100% 100%, 0 100%);
  z-index: 0;
  overflow: hidden;
  opacity: 0.18;
}
.about-wedge::before {
  content: '';
  position: absolute;
  top: 0; left: 100%;
  width: 60px; height: 100%;
  background: linear-gradient(to right, rgba(15,32,79,0.18), transparent);
  pointer-events: none;
}
.about-wedge::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--blue);
  opacity: 0.06;
  clip-path: polygon(0 0, 8% 0, 100% 92%, 100% 100%, 0 100%);
}
.about-content {
  position: relative; z-index: 2;
  max-width: 720px;
  margin: auto;
}
.about-body {
  font-size: 15px; color: var(--body); line-height: 1.9; font-weight: 300;
}
.about-body + .about-body { margin-top: 20px; }
.about-rule { width: 40px; height: 2px; background: var(--blue); margin: 28px 0; }
.about-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 28px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--blue); padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.about-read-more:hover { color: var(--blue); }

/* ── SCROLL REVEAL ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal="right"] {
  transform: translateX(50px);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ── Expertise Modal ── */
.expertise-modal {
  position: fixed;
  inset: 0;
  top: calc(74px + var(--wpadminbar));
  z-index: 190;
  background: #fff;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.expertise-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.expertise-modal-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 48px 80px;
}
.expertise-modal-close {
  position: fixed;
  top: calc(84px + var(--wpadminbar));
  right: 40px;
  background: none;
  border: none;
  color: rgba(0,0,0,0.3);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 191;
  transition: color 0.2s;
  padding: 4px 8px;
}
.expertise-modal-close:hover { color: var(--text); }
/* Expertise link: never shows current-menu-item blue; only highlights when modal is open */
.nav-links a[href*="areas-of-practice"],
.nav-links .current-menu-item > a[href*="areas-of-practice"],
.nav-links .current-page-ancestor > a[href*="areas-of-practice"] { color: #fff; }
body.expertise-modal-open .nav-links a[href*="areas-of-practice"] { color: var(--blue-light); }
@media (max-width: 980px) {
  .expertise-modal { top: calc(74px + var(--wpadminbar)); }
  .expertise-modal-inner { padding: 24px 24px 60px; }
  .expertise-modal-close { top: calc(90px + var(--wpadminbar)); right: 24px; z-index: 210; }
}

/* ── EXPERTISE (bullet list) ── */
.ex-intro { font-size: 15px; color: var(--muted); line-height: 1.9; font-weight: 300; max-width: 680px; margin-bottom: 48px; }
.ex-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0 48px;
}
.ex-col { list-style: none; }
.ex-item { border-bottom: 1px solid var(--border); }
.ex-item-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 11px 0;
}
.ex-item-left { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.ex-bullet { color: var(--blue); font-size: 13px; flex-shrink: 0; line-height: 1; transform: rotate(8deg); }
.ex-link {
  font-size: 15px; font-weight: 400; color: var(--text);
  text-decoration: none; transition: color 0.15s;
}
.ex-link:hover { color: var(--blue); }
.ex-plus {
  width: 18px; height: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: 14px; font-weight: 300;
  cursor: pointer; background: none; border: none; padding: 0; font-family: inherit;
  transition: color 0.15s, transform 0.2s ease;
}
.ex-plus:hover { color: var(--blue); }
.ex-plus.is-open { transform: rotate(45deg); color: var(--blue); }
.ex-children {
  list-style: none;
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
  padding-left: 24px; margin-left: 2px;
  border-left: 2px solid var(--blue-line);
}
.ex-children.is-open { max-height: 600px; padding-bottom: 10px; }
.ex-child { padding: 7px 0; }
.ex-child + .ex-child { border-top: 1px solid var(--border); }
.ex-child-link {
  font-size: 14px; font-weight: 400; color: var(--muted);
  text-decoration: none; transition: color 0.15s;
}
.ex-child-link:hover { color: var(--blue); }

/* ── BARRISTERS PREVIEW (homepage teaser — bp- prefix avoids collision with archive .b-card) ── */
.b-preview-grid {
  overflow: hidden;
  width: 100%;
  margin-bottom: 44px;
}
.bp-track {
  display: flex;
  gap: 20px;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.bp-track .b-card { flex: 0 0 calc(25% - 15px); }
.view-all-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--blue); padding-bottom: 2px;
}

/* ── BARRISTER PROFILE (single-barrister.php) ── */
.bp-hero {
  background: #fff;
  padding: 64px 48px 72px;
  border-bottom: 1px solid var(--border);
}
.bp-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
.bp-photo-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--warm-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bp-photo-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.bp-photo-init {
  font-family: 'Century Gothic', 'Questrial', sans-serif;
  font-size: 64px; font-weight: 300; letter-spacing: 0.08em;
  color: var(--faint);
}
.bp-details { padding-top: 12px; }
.bp-eyebrow {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); font-weight: 500; margin-bottom: 14px;
}
.bp-name {
  font-family: 'Century Gothic', 'Questrial', sans-serif;
  font-size: clamp(28px, 3.5vw, 46px); font-weight: 300;
  color: var(--text); letter-spacing: -0.01em; line-height: 1.1;
  margin-bottom: 28px;
}
.bp-badge {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  margin-left: 10px;
}
.bp-credentials {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 28px;
}
.bp-cred-row {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 14px;
}
.bp-cred-row dt { color: var(--muted); font-weight: 400; white-space: nowrap; }
.bp-cred-row dd { color: var(--text); font-weight: 500; }
.bp-rule {
  width: 40px; height: 1px;
  background: var(--border);
  margin-bottom: 28px;
}
.bp-contact {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 32px;
}
.bp-contact-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--body);
  text-decoration: none; transition: color 0.15s;
}
.bp-contact-item:hover { color: var(--blue); }
.bp-contact-icon {
  font-size: 10px; letter-spacing: 0.1em; font-weight: 600;
  color: var(--blue); width: 16px; flex-shrink: 0;
}
.bp-cv-btn {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--navy);
  border: 1px solid var(--border);
  padding: 10px 22px; text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  margin-bottom: 32px;
}
.bp-cv-btn:hover { border-color: var(--navy); color: var(--navy); }
.bp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-tag {
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--muted); border: 1px solid var(--border);
  border-radius: 2px; padding: 5px 12px;
  text-decoration: none; transition: color 0.15s, border-color 0.15s;
}
.bp-tag:hover { color: var(--blue); border-color: var(--blue-line); }

/* Bio + Cases body */
.bp-body {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.bp-section-title {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); font-weight: 600;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.bp-section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--blue-line);
}
.bp-rich-text { font-size: 18px; line-height: 1.85; color: var(--body); }
.wp-block-paragraph { font-size: 18px; }
.bp-rich-text p { margin-bottom: 1.2em; }
.bp-rich-text p:last-child { margin-bottom: 0; }
.bp-rich-text ul, .bp-rich-text ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.bp-rich-text li { margin-bottom: 0.4em; }
.bp-rich-text strong { font-weight: 600; color: var(--text); }
.bp-rich-text em { font-style: italic; }

.bp-back-bar {
  background: var(--warm);
  border-top: 1px solid var(--border);
  padding: 20px 48px;
}
.bp-back {
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; font-weight: 500;
  transition: color 0.15s;
}
.bp-back:hover { color: var(--text); }

/* Responsive */
@media (max-width: 860px) {
  .bp-hero { padding: 40px 24px 56px; }
  .bp-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .bp-photo-wrap { max-width: 240px; }
  .bp-body { padding: 48px 24px; }
  .bp-back-bar { padding: 16px 24px; }
}

/* ── NEWS ── */
.news-grid {
  display: grid; grid-template-columns: 5fr 3fr 3fr;
  gap: 1px; background: var(--border);
}
.news-featured {
  background: #fff; padding: 44px;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px;
  border-top: 3px solid var(--blue);
}
.news-tag,
.news-card-tag {
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue); font-weight: 300;
}
.news-tag { margin-bottom: 14px; }
.news-card-tag { letter-spacing: 0.2em; margin-bottom: 10px; }
.news-title {
  font-size: 19px; font-weight: 400; color: var(--text); line-height: 1.45;
  margin-bottom: 10px;
}
.news-date { font-size: 10px; color: var(--faint); letter-spacing: 0.1em; }
.news-body { font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 12px; font-weight: 300; }
.news-card { background: var(--warm); padding: 32px 28px; }
.news-card-title { font-size: 15px; font-weight: 400; color: var(--text); line-height: 1.45; margin-bottom: 10px; }
.news-card-date { font-size: 10px; color: var(--faint); letter-spacing: 0.1em; }
.news-card-body { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 10px; font-weight: 300; }

/* ── CTA ── */
.cta {
  background: var(--blue); padding: 60px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-title { font-size: clamp(20px, 3vw, 30px); font-weight: 300; color: #fff; letter-spacing: -0.01em; }
.cta-title strong { font-weight: 600; }
.cta-sub { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 6px; font-weight: 300; }
.btn-navy {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; padding: 14px 32px;
  background: var(--navy); color: #fff; border: none; cursor: pointer;
  text-decoration: none; display: inline-block; white-space: nowrap;
  transition: opacity 0.15s;
}
.btn-navy:hover { opacity: 0.85; }

/* ── CLERK PAGE ── */
.detail-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: start;
}
.detail-card {
  background: var(--warm-mid);
  border: 1px solid var(--border);
  padding: 36px 32px;
}
.detail-profile {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: start;
}
.detail-profile-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--warm-mid);
}
.detail-profile-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top; display: block;
}
.detail-profile-details { padding-top: 8px; }
.detail-below-profile {
  margin-top: 64px; padding-top: 56px;
  border-top: 1px solid var(--border);
  max-width: 960px;
  margin-left: auto; margin-right: auto;
}
.detail-avatar {
  width: 72px; height: 72px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 300; color: rgba(0,102,255,0.3);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.detail-avatar--full {
  width: 100%; height: 100%;
  font-size: 80px; margin-bottom: 0;
}
.detail-bio {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 18px; color: var(--body); line-height: 1.85; font-weight: 300;
}
.detail-text { font-size: 18px; color: var(--body); line-height: 1.85; font-weight: 300; }
.detail-bio p { margin-bottom: 14px; }
.detail-bio p:last-child { margin-bottom: 0; }
.detail-name {
  font-size: 20px; font-weight: 500; color: var(--text);
  margin-bottom: 6px; line-height: 1.2;
}
.detail-role {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--blue); font-weight: 300;
  margin-bottom: 28px;
}
.detail-divider { width: 32px; height: 1px; background: var(--border); margin-bottom: 22px; }
.detail-card-intro { font-size: 13px; color: var(--body); line-height: 1.8; font-weight: 300; margin-bottom: 22px; }
.contact-address-row { align-items: flex-start; }
.contact-address-row .detail-label {
  display: flex; align-items: center; gap: 5px; padding-top: 1px;
}
.contact-icon {
  width: 11px; height: 11px; color: var(--blue); flex-shrink: 0;
}
.contact-address {
  font-style: normal; line-height: 1.75;
  border-left: 2px solid var(--blue-line);
  padding-left: 10px; margin-top: 2px;
}
.contact-map {
  display: block; width: 100%; height: 100%; min-height: 420px; border: none;
}
.contact-below-map {
  margin-top: 56px; padding-top: 48px;
  border-top: 1px solid var(--border);
}

/* ── CONTACT PAGE BRIGHTENED OVERRIDES ── */
.contact-page .detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  box-shadow: 0 6px 28px rgba(0,0,0,0.07);
}
.contact-page .detail-divider { display: none; }
.contact-page .detail-card-intro {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.contact-page .detail-row {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.contact-page .detail-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.contact-page .detail-label {
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--blue); font-weight: 500;
}

/* ── PARKING GRID ── */
.parking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.parking-card {
  background: var(--warm-mid);
  border: 1px solid var(--border);
  padding: 24px 20px;
}
.parking-card-name {
  font-size: 13px; font-weight: 500;
  color: var(--text);
  margin-bottom: 14px; line-height: 1.3;
}
.parking-card-name a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--blue-line);
  transition: color 0.15s, border-color 0.15s;
}
.parking-card-name a:hover { color: var(--blue); border-color: var(--blue); }
.parking-card-address {
  font-style: normal; font-size: 13px;
  color: var(--body); line-height: 1.75; font-weight: 300;
  border-left: 2px solid var(--blue-line);
  padding-left: 10px; margin-bottom: 14px;
}
.parking-card-tel {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--body); font-weight: 300;
}
.detail-row { margin-bottom: 16px; }
.detail-row:last-child { margin-bottom: 0; }
.detail-label {
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint); font-weight: 300; display: block; margin-bottom: 3px;
}
.detail-value { font-size: 18px; color: var(--body); text-decoration: none; display: block; overflow-wrap: break-word; padding-right: 16px; }
a.detail-value:hover { color: var(--blue); }
.detail-content p,
.page-content p { font-size: 18px; color: var(--body); line-height: 1.9; font-weight: 300; margin-bottom: 20px; }
.detail-content p:last-child { margin-bottom: 0; }
.detail-content h2,
.page-content h2 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 300; color: var(--text); letter-spacing: -0.02em; margin-bottom: 14px; margin-top: 40px; }
.detail-content h2:first-child,
.page-content h2:first-child { margin-top: 0; }
.detail-content h2 strong,
.page-content h2 strong { font-weight: 600; }
.detail-content h3,
.page-content h3 { font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 10px; margin-top: 28px; }
.detail-content h3:first-child,
.page-content h3:first-child { margin-top: 0; }
.detail-content ul,
.page-content ul { padding-left: 20px; margin-bottom: 20px; }
.detail-content li,
.page-content li { font-size: 15px; color: var(--body); line-height: 1.9; font-weight: 300; margin-bottom: 6px; }
.page-content { max-width: 1200px; margin: 0 auto; }
.section-inner  { max-width: 1200px; margin: 0 auto; }

/* Clearfix so floated images don't escape the content container */
.page-content::after { content: ''; display: table; clear: both; }

/* Float the wp-block-image WRAPPER div so subsequent flex-container blocks
   (wp-block-group) establish a BFC and sit beside the float rather than behind it. */
.page-content .wp-block-image:has(figure.alignleft) {
  float: left; margin: 4px 28px 20px 0; max-width: 45%;
}
.page-content .wp-block-image:has(figure.alignright) {
  float: right; margin: 4px 0 20px 28px; max-width: 45%;
}
/* Figure inside the wrapper — reset its own float so we don't double-float */
.page-content .wp-block-image figure.alignleft,
.page-content .wp-block-image figure.alignright {
  float: none; margin: 0; max-width: 100%;
}
/* Images inside aligned wrappers */
.page-content .wp-block-image:has(figure.alignleft) img,
.page-content .wp-block-image:has(figure.alignright) img,
.page-content .wp-block-media-text__media img {
  width: 100%; height: auto; display: block;
}
/* Center-only images */
.page-content figure.aligncenter,
.page-content .wp-block-image.aligncenter { margin: 24px auto; text-align: center; }

/* Full-width image breakout — escapes the constrained .page-content column */
.page-content .wp-block-image.alignfull,
.page-content figure.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.page-content .wp-block-image.alignfull img,
.page-content figure.alignfull img {
  width: 100%;
  height: auto;
  display: block;
}

/* Media & Text block */
.page-content .wp-block-media-text { margin-bottom: 24px; }


/* ── RESPONSIVE ── */
@media (min-width: 1400px) {
  .bp-track .b-card { flex-basis: calc(20% - 16px); }
  .main { max-width: 1200px; }
}
@media (max-width: 1024px) {
  .section { padding: 72px 32px; }
  .about-section { padding: 64px 32px; }
  .about-wedge { width: 120px; }
  .ex-cols { grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
  .bp-track .b-card { flex-basis: calc(33.333% - 14px); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-featured { grid-column: span 2; }
}
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .nav { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 768px) {
  .detail-wrap { grid-template-columns: 1fr; gap: 40px; }
  .detail-profile { grid-template-columns: 1fr; gap: 40px; }
  .detail-profile-photo { max-width: 360px; }
  .detail-below-profile { margin-top: 40px; padding-top: 40px; }
  .page-hero { padding: 44px 20px 40px; }
  .controls { padding: 12px 20px; top: calc(66px + var(--wpadminbar)); }
  .sidebar {
    position: fixed; top: calc(74px + var(--wpadminbar)); left: 0;
    height: calc(100vh - 74px - var(--wpadminbar)); width: 300px;
    z-index: 250; transform: translateX(-100%);
    transition: transform 0.28s ease; overflow-y: auto;
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-backdrop {
    display: block; position: fixed; inset: 0;
    background: rgba(0,0,0,0.45); z-index: 249;
    opacity: 0; pointer-events: none;
    transition: opacity 0.28s ease;
  }
  .sidebar-backdrop.is-visible { opacity: 1; pointer-events: auto; }
  .sb-filter-btn {
    display: flex; align-items: center; gap: 6px;
    background: none; border: 1px solid var(--border);
    padding: 6px 14px; font-size: 13px; font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--body);
    cursor: pointer; font-weight: 500;
  }
  .sb-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; background: none;
    border: 1px solid var(--border); font-size: 20px;
    color: var(--muted); cursor: pointer; line-height: 1;
  }
  .main { padding: 24px 20px; }
  .footer { padding: 48px 20px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }

  /* Homepage-specific overrides */
  .hero { min-height: 92vh; padding: 64px 24px 80px; }
  .hero::before {
    background: linear-gradient(
      to bottom,
      rgba(15,32,79,0.55) 0%,
      rgba(15,32,79,0.92) 55%,
      rgba(15,32,79,0.97) 100%
    );
  }
  .hero-photo-placeholder { justify-content: center; padding-right: 0; }
  .hero-h1 { font-size: 38px; }
  .section { padding: 56px 20px; }
  .about-section { padding: 48px 20px; }
  .about-wedge { display: none; }
  .about-content { margin-left: 0; max-width: 100%; }

  /* About page — floated images go full-width and stack */
  .page-content .wp-block-image:has(figure.alignleft),
  .page-content .wp-block-image:has(figure.alignright) {
    float: none; margin: 0 0 24px 0; max-width: 100%; width: 100%;
  }
  /* Override block-editor inline width style on the img element */
  .page-content .wp-block-image:has(figure.alignleft) img,
  .page-content .wp-block-image:has(figure.alignright) img {
    width: 100% !important; height: auto !important;
  }
  /* Media & Text block — stack vertically */
  .page-content .wp-block-media-text {
    grid-template-columns: 1fr !important;
  }
  .page-content .wp-block-media-text .wp-block-media-text__media { grid-row: 1; }
  .page-content .wp-block-media-text .wp-block-media-text__content { grid-row: 2; }
  .ex-cols { grid-template-columns: 1fr; gap: 0; }
  .bp-track .b-card { flex-basis: calc(50% - 10px); }
  .news-grid { grid-template-columns: 1fr; }
  .news-featured { grid-column: span 1; }
  .cta { padding: 44px 20px; }
}
@media (max-width: 520px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ctrl-select { font-size: 11px; min-width: 0; flex: 1; }
  .sort-group { display: none; }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-gold, .btn-ghost { width: 100%; text-align: center; }
  .bp-track .b-card { flex-basis: calc(50% - 10px); }
}
