/* ==========================================================================
   TLG Legal Group — Design System
   Brand: Navy #061223 · Royal Blue #033C97 · Gold #D9A454 · Light Gold #F5ECB7
          Silver #CABAA7 · Dark Text #0B1220 · Light Gray #F4F5F7
   Type:  Cinzel (headings) · Lato (body)
   ========================================================================== */

/* ---------- Self-hosted fonts ----------
   Fallback faces are size-matched to Cinzel/Lato so text does not jump when the web font arrives (CLS). */
@font-face { font-family: "Cinzel"; src: url("/assets/fonts/cinzel-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/fonts/lato-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/fonts/lato-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"); size-adjust: 127.4%; ascent-override: 76.9%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: "Lato Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); size-adjust: 98.4%; ascent-override: 100.6%; descent-override: 21.3%; line-gap-override: 0%; }

:root {
  /* Brand primitives */
  --navy: #061223;
  --navy-2: #0b1a33;
  --navy-3: #12264a;
  --royal: #033c97;
  --gold: #d9a454;
  --gold-hover: #e4b670;
  --gold-light: #f5ecb7;
  --silver: #cabaa7;
  --white: #ffffff;
  --ink: #0b1220;
  --gray: #f4f5f7;

  /* Semantic tokens */
  --bg: var(--white);
  --surface: var(--white);
  --surface-alt: var(--gray);
  --text: var(--ink);
  --text-muted: #4a5568;          /* 7.4:1 on white */
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.84);
  --accent-ink: #8a6421;          /* gold tone that passes 4.5:1 on white */
  --border: #e2e5eb;
  --border-dark: rgba(255, 255, 255, 0.14);
  --focus: #d9a454;
  --error: #b42318;
  --success: #067647;

  /* Type */
  --font-head: "Cinzel", "Cinzel Fallback", "Times New Roman", serif;
  --font-body: "Lato", "Lato Fallback", Arial, sans-serif;

  /* Spacing (8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(6, 18, 35, 0.06), 0 1px 3px rgba(6, 18, 35, 0.08);
  --shadow-md: 0 10px 30px -12px rgba(6, 18, 35, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(6, 18, 35, 0.45);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 600ms;

  --container: 1920px;
  --gutter: clamp(20px, 5vw, 96px);
  --header-h: 84px;

  /* z-index scale */
  --z-header: 40;
  --z-drawer: 100;
  --z-mobilebar: 30;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: 0.005em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--gold); color: var(--navy); padding: 12px 18px; font-weight: 700; text-decoration: none; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--s-8); }
@media (min-width: 1024px) { .section { padding-block: var(--s-9); } }
.section--alt { background: var(--surface-alt); }
.section--dark { background: var(--navy); color: var(--text-on-dark); }
.section--dark .lead, .section--dark p { color: var(--text-on-dark-muted); }
.section--tight { padding-block: var(--s-7); }

.grid { display: grid; gap: var(--s-5); }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1440px) { .grid { gap: var(--s-6); } #post-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 1023px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
.lawyer-grid .lawyer-card__photo { background: var(--white); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
  margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--gold); flex: none; box-shadow: 0 0 0 3px rgba(217, 164, 84, 0.22); }
.section--dark .eyebrow, .on-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--gold-light); }

.h-display { font-size: clamp(2.15rem, 5.2vw, 4.4rem); line-height: 1.08; font-weight: 600; }
.h-1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.h-2 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); }
.h-3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
.lead { font-size: clamp(1.0625rem, 1.3vw, 1.2rem); color: var(--text-muted); line-height: 1.75; max-width: 62ch; }
.muted { color: var(--text-muted); }
.gold { color: var(--gold); }
.text-center { text-align: center; }
.text-center .lead { margin-inline: auto; }

.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
.section-head--split { align-items: end; }
@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; gap: var(--s-8); }
}
.section-head h2 { text-wrap: balance; }

.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--royal); text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 0.4em 0 0.4em 1.2em; border-left: 3px solid var(--gold); font-family: var(--font-body); font-style: italic; font-size: 1.2rem; line-height: 1.65; color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: inherit; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease, box-shadow var(--dur) ease;
}
.btn .icon { width: 1.05em; height: 1.05em; transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon--arrow { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.98); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy); --btn-bd: var(--gold); box-shadow: 0 8px 24px -10px rgba(217, 164, 84, 0.7); }
.btn--gold:hover { --btn-bg: var(--gold-hover); --btn-bd: var(--gold-hover); }
.btn--ghost-light { --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, 0.55); }
.btn--ghost-light:hover { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-bd: var(--white); }
.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--white); --btn-bd: var(--navy); }
.btn--navy:hover { --btn-bg: var(--royal); --btn-bd: var(--royal); }
.btn--ghost-navy { --btn-fg: var(--navy); --btn-bd: var(--navy); }
.btn--ghost-navy:hover { --btn-bg: var(--navy); --btn-fg: var(--white); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem;
  color: var(--royal); text-decoration: none; letter-spacing: 0.02em; min-height: 44px;
}
.link-arrow .icon { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow:hover .icon { transform: translateX(4px); }
.section--dark .link-arrow, .on-dark .link-arrow { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h);
  transition: background-color var(--dur) ease, box-shadow var(--dur) ease, height var(--dur) ease;
}
.site-header.is-scrolled { background: rgba(6, 18, 35, 0.94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); box-shadow: 0 1px 0 var(--border-dark); --header-h: 72px; height: 72px; }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); min-height: 44px; }
.brand img { width: 52px; height: 52px; transition: width var(--dur) ease, height var(--dur) ease; }
.is-scrolled .brand img { width: 44px; height: 44px; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.06em; }
.brand__sub { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-light); margin-top: 4px; }

.nav { display: none; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 12px;
  color: rgba(255, 255, 255, 0.86); text-decoration: none; font-size: 1rem; font-weight: 400; letter-spacing: 0.02em;
  border-radius: var(--radius-sm); background: none; border: 0; cursor: pointer;
  transition: color var(--dur-fast) ease;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--gold); }
.nav__link[aria-current="page"] { font-weight: 700; }
.nav__link .icon { width: 14px; height: 14px; transition: transform var(--dur) ease; }

.nav__item--has-menu { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; list-style: none;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease, visibility var(--dur-fast);
}
.submenu a { display: block; padding: 10px 14px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: 1rem; }
.submenu a small { display: block; color: var(--text-muted); font-size: 0.85rem; }
.submenu a:hover, .submenu a:focus-visible { background: var(--gray); }
.nav__item--has-menu:hover .submenu,
.nav__item--has-menu:focus-within .submenu,
.nav__item--has-menu.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.nav__item--has-menu.is-closed .submenu { opacity: 0; visibility: hidden; }
.nav__item--has-menu.is-open > .nav__link .icon,
.nav__item--has-menu:hover > .nav__link .icon { transform: rotate(180deg); }

.header-cta { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-dark); border-radius: var(--radius-sm); color: var(--white); cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }

@media (min-width: 1120px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; min-height: 46px; padding: 10px 20px; }
  .menu-toggle { display: none; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; padding: 16px 20px 32px;
  transform: translateX(100%); visibility: hidden;
  transition: transform 320ms var(--ease-out), visibility 320ms;
  overflow-y: auto;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.drawer__list { list-style: none; margin-top: var(--s-5); display: grid; gap: 2px; }
.drawer__list a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 8px 4px; font-family: var(--font-head); font-size: 1.25rem; text-decoration: none; border-bottom: 1px solid var(--border-dark); }
.drawer__list a[aria-current="page"] { color: var(--gold); }
.drawer__sub { list-style: none; padding: 4px 0 8px 16px; }
.drawer__sub a { font-family: var(--font-body); font-size: 1rem; min-height: 48px; color: var(--text-on-dark-muted); border-bottom: 0; }
.drawer__foot { margin-top: auto; padding-top: var(--s-6); display: grid; gap: var(--s-3); }
.drawer__foot p { color: var(--text-on-dark-muted); font-size: 0.95rem; }
body.drawer-open { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero-wrap { padding: 0; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white);
  background: var(--navy);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 18, 35, 0.75) 0%, rgba(6, 18, 35, 0.15) 22%, rgba(6, 18, 35, 0.2) 55%, rgba(6, 18, 35, 0.92) 100%),
    linear-gradient(90deg, rgba(6, 18, 35, 0.97) 0%, rgba(6, 18, 35, 0.86) 38%, rgba(3, 60, 151, 0.28) 72%, rgba(6, 18, 35, 0.4) 100%);
}
@media (max-width: 767px) {
  .hero::before { background: linear-gradient(90deg, rgba(6, 18, 35, 0.97) 0%, rgba(6, 18, 35, 0.86) 50%, rgba(6, 18, 35, 0.6) 100%); }
  .hero__media img { object-position: center 35%; }
}
.hero__inner { padding-top: calc(var(--header-h) + 48px); padding-bottom: var(--s-6); display: grid; gap: var(--s-7); }
.hero__content { max-width: 820px; }
.hero__title { margin-top: var(--s-2); text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--gold); }
.hero__lead { margin-top: var(--s-5); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: rgba(255, 255, 255, 0.84); max-width: 58ch; line-height: 1.7; }
.hero__ctas { margin-top: var(--s-6); }
.hero__assure { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); list-style: none; }
.hero__assure li { display: inline-flex; align-items: center; gap: 8px; }
.hero__assure .icon { color: var(--gold); width: 16px; height: 16px; }

.hero__bottom { display: grid; gap: var(--s-5); align-items: end; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: var(--s-5); }
.hero__tags { display: flex; flex-wrap: wrap; gap: 6px 28px; list-style: none; font-size: 1rem; color: rgba(255, 255, 255, 0.88); }
.hero__tags a { text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; gap: 6px; }
.hero__tags a::before { content: "+"; color: var(--gold); font-weight: 700; }
.hero__tags a:hover { color: var(--gold); }
.hero__statement { display: none; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.45; text-align: right; color: rgba(255, 255, 255, 0.92); }
.hero__statement span { display: block; }
.hero__statement span:last-child { color: var(--gold); }
@media (min-width: 1024px) {
  .hero__bottom { grid-template-columns: 1fr auto; }
  .hero__statement { display: block; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white); background: var(--navy);
  padding: calc(var(--header-h) + 56px) 0 var(--s-8);
}
@media (min-width: 768px) { .page-hero { padding-bottom: var(--s-9); } }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0.9; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 18, 35, 0.97) 0%, rgba(6, 18, 35, 0.86) 50%, rgba(6, 18, 35, 0.6) 100%); }
.page-hero h1 { max-width: 22ch; text-wrap: balance; }
.page-hero .lead { color: rgba(255, 255, 255, 0.84); margin-top: var(--s-4); }
.page-hero .btn-row { margin-top: var(--s-6); }
/* Split page hero: sharp framed photo beside the text */
@media (min-width: 1024px) { .page-hero--split::before { background: linear-gradient(90deg, rgba(6, 18, 35, 0.97) 0%, rgba(6, 18, 35, 0.9) 55%, rgba(6, 18, 35, 0.8) 100%); } }
@media (max-width: 1023px) { .page-hero__photo { display: none; } }
.page-hero__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .page-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: var(--s-8); } }
.page-hero__photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow-lg); outline: 1px solid rgba(217, 164, 84, 0.55); outline-offset: 10px; }
@media (min-width: 1024px) { .page-hero__photo { aspect-ratio: 4 / 3.4; max-height: 580px; } }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.breadcrumbs { list-style: none; padding: 0; margin-top: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); margin-bottom: var(--s-5); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, 0.4); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); text-decoration: underline; }

/* ---------- Trust strip ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-block: 1px solid var(--border); }
.fact { padding: var(--s-5) var(--s-4); border-right: 1px solid var(--border); }
.fact:nth-child(2n) { border-right: 0; }
.fact:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
.fact__num { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--navy); font-weight: 600; line-height: 1.1; }
.fact__label { margin-top: 8px; font-size: 1rem; color: var(--text-muted); line-height: 1.45; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact { padding: var(--s-6) var(--s-5); border-bottom: 0 !important; border-right: 1px solid var(--border) !important; }
  .fact:last-child { border-right: 0 !important; }
}

/* ---------- Practice cards ---------- */
.practice-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-6) var(--s-5) var(--s-5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.practice-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold); border-radius: var(--radius) var(--radius) 0 0; transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.practice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.practice-card:hover::before { transform: scaleX(1); }
.practice-card__icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--navy); color: var(--gold); border-radius: 8px; margin-bottom: var(--s-2); }
.practice-card__icon .icon { width: 26px; height: 26px; }
.practice-card__title { font-size: 1.25rem; color: var(--navy); }
.practice-grid { --pg-gap: var(--s-5); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--pg-gap); }
.practice-grid > .practice-card { flex: 1 1 100%; }
@media (min-width: 700px) { .practice-grid > .practice-card { flex: 0 0 calc((100% - var(--pg-gap)) / 2); } }
@media (min-width: 1024px) { .practice-grid > .practice-card { flex-basis: calc((100% - 2 * var(--pg-gap)) / 3); } }
@media (min-width: 1500px) { .practice-grid { --pg-gap: var(--s-6); } .practice-grid > .practice-card { flex-basis: calc((100% - 4 * var(--pg-gap)) / 5); } }
.practice-card__for { font-size: 1.0625rem; color: var(--ink); font-weight: 700; line-height: 1.5; }
.practice-card__desc { font-size: 1.0625rem; color: var(--text-muted); line-height: 1.65; }
.practice-card .link-arrow { margin-top: auto; padding-top: var(--s-2); }

/* ---------- Split / media ---------- */
.split { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-9); } .split--reverse > :first-child { order: 2; } }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 4.2; }
.media-frame__badge {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: rgba(6, 18, 35, 0.9); backdrop-filter: blur(6px); color: var(--white);
  padding: 16px 20px; border-radius: var(--radius); border-left: 3px solid var(--gold);
}
.media-frame__badge strong { font-family: var(--font-head); font-size: 1.05rem; display: block; }
.media-frame__badge span { font-size: 0.95rem; color: var(--text-on-dark-muted); }

.checklist { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checklist .tick { width: 28px; height: 28px; border-radius: 50%; background: rgba(217, 164, 84, 0.16); color: var(--accent-ink); display: grid; place-items: center; margin-top: 1px; }
.checklist .tick .icon { width: 16px; height: 16px; stroke-width: 2.5; }
.section--dark .checklist .tick { color: var(--gold); }
.checklist strong { display: block; color: var(--ink); }
.section--dark .checklist strong { color: var(--white); }

/* ---------- TLG Standard ---------- */
.standard { position: relative; overflow: hidden; }
.standard::after {
  content: ""; position: absolute; right: -180px; top: 50%; width: 620px; height: 620px; transform: translateY(-50%);
  background: url("/assets/img/logo-256.png") center / contain no-repeat; opacity: 0.05; pointer-events: none;
}
.standard__steps { display: grid; gap: 1px; background: var(--border-dark); border: 1px solid var(--border-dark); border-radius: var(--radius); overflow: hidden; margin-bottom: var(--s-8); }
@media (min-width: 700px) { .standard__steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .standard__steps { grid-template-columns: repeat(4, 1fr); } }
.standard__step { background: var(--navy); padding: var(--s-6) var(--s-5); }
.standard__step .num { font-family: var(--font-head); color: var(--gold); font-size: 1rem; letter-spacing: 0.1em; }
.standard__step h3 { font-size: 1.4rem; margin-top: var(--s-3); color: var(--white); }
.standard__step p { margin-top: var(--s-3); font-size: 1.0625rem; line-height: 1.65; }

.commitments { display: grid; gap: var(--s-5); }
@media (min-width: 700px) { .commitments { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .commitments { grid-template-columns: repeat(5, 1fr); } }
.commitment { border-top: 1px solid var(--gold); padding-top: var(--s-4); }
.commitment h3 { font-size: 1.1rem; letter-spacing: 0.12em; color: var(--gold); }
.commitment p { margin-top: var(--s-2); font-size: 1.0625rem; line-height: 1.65; }

.quote-block { margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--border-dark); text-align: center; }
.quote-block blockquote { margin: 0 auto; max-width: 30em; font-family: var(--font-head); font-size: clamp(1.2rem, 2.2vw, 1.65rem); line-height: 1.5; color: var(--white); }
.quote-block cite { display: block; margin-top: var(--s-4); font-style: normal; font-size: 0.875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); }

/* ---------- Lawyers ---------- */
.lawyer-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: box-shadow var(--dur) ease, transform var(--dur) var(--ease-out); }
.lawyer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.lawyer-card__photo { position: relative; aspect-ratio: 4 / 4; overflow: hidden; background: var(--navy-2); }
.lawyer-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform 700ms var(--ease-out); }
.lawyer-card:hover .lawyer-card__photo img { transform: scale(1.03); }
.lawyer-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.lawyer-card__name { font-size: 1.25rem; color: var(--navy); line-height: 1.3; }
.lawyer-card__role { font-size: 0.9375rem; color: var(--accent-ink); font-weight: 700; letter-spacing: 0.02em; }
.lawyer-card__bio { font-size: 1.0625rem; color: var(--text-muted); line-height: 1.65; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chip { font-size: 0.8125rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--gray); color: var(--navy); border: 1px solid var(--border); letter-spacing: 0.02em; }
.section--dark .chip { background: rgba(255, 255, 255, 0.06); color: var(--white); border-color: var(--border-dark); }
.lawyer-card__actions { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Full lawyer profile (about page) */
.profile { display: grid; gap: var(--s-6); padding-block: var(--s-7); border-top: 1px solid var(--border); }
.profile:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .profile { grid-template-columns: minmax(300px, 400px) 1fr; gap: var(--s-8); } }
@media (min-width: 1400px) { .profile .prose { max-width: 80ch; } .profile__areas { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.profile__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--navy-2); box-shadow: var(--shadow-md); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
@media (min-width: 900px) { .profile__aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.profile__aside .btn { margin-top: var(--s-4); }
.profile h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--navy); }
.profile__role { margin-top: var(--s-2); color: var(--accent-ink); font-weight: 700; }
.profile__areas { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
@media (min-width: 700px) { .profile__areas { grid-template-columns: repeat(2, 1fr); } }
.area-mini { padding: var(--s-4) var(--s-5); background: var(--gray); border-radius: var(--radius); border-left: 3px solid var(--gold); }
.area-mini h4 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; color: var(--navy); }
.area-mini p { font-size: 1rem; color: var(--text-muted); margin-top: 4px; line-height: 1.6; }
.meta-list { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.meta-list li { display: grid; grid-template-columns: 140px 1fr; gap: var(--s-3); font-size: 1.0625rem; padding-bottom: var(--s-3); border-bottom: 1px dashed var(--border); }
.meta-list li span:first-child { font-weight: 700; color: var(--navy); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 3px; }
@media (max-width: 599px) { .meta-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Process ---------- */
.steps { display: grid; gap: var(--s-5); list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: var(--s-6) var(--s-5) var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step__num { font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: var(--gold); opacity: 0.95; }
.step h3 { margin-top: var(--s-4); font-size: 1.2rem; color: var(--navy); }
.step p { margin-top: var(--s-2); font-size: 1.0625rem; color: var(--text-muted); line-height: 1.65; }

/* ---------- Branch cards ---------- */
.branch-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--dur) ease; }
.branch-card:hover { box-shadow: var(--shadow-md); }
.branch-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.branch-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.branch-card:hover .branch-card__media img { transform: scale(1.04); }
.branch-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.branch-card__city { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); }
.branch-card h3 { font-size: 1.25rem; color: var(--navy); }
.info-list { list-style: none; display: grid; gap: 10px; font-size: 1rem; }
.info-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--text-muted); line-height: 1.55; }
.info-list .icon { width: 18px; height: 18px; color: var(--royal); margin-top: 3px; }
.info-list a { text-decoration: none; color: var(--ink); font-weight: 700; }
.info-list a:hover { color: var(--royal); text-decoration: underline; }
.section--dark .info-list li, .on-dark .info-list li, .info-list.on-dark li { color: var(--text-on-dark-muted); }
.section--dark .info-list .icon, .on-dark .info-list .icon, .info-list.on-dark .icon { color: var(--gold); }
.section--dark .info-list a, .on-dark .info-list a, .info-list.on-dark a { color: var(--white); }
.branch-card__actions { margin-top: auto; padding-top: var(--s-3); display: flex; flex-wrap: wrap; gap: 4px 18px; border-top: 1px solid var(--border); }

.placeholder-media {
  width: 100%; height: 100%; display: grid; place-items: center; gap: 8px; text-align: center; padding: 24px;
  background: radial-gradient(circle at 30% 20%, var(--navy-3), var(--navy) 70%);
  color: var(--gold-light);
}
.placeholder-media img { width: 88px; height: 88px; opacity: 0.95; }
.placeholder-media span { font-family: var(--font-head); font-size: 1rem; letter-spacing: 0.06em; }

/* ---------- Booking ---------- */
.booking { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .booking { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-8); align-items: start; } }
.booking__aside .contact-methods { margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.contact-method {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--border-dark); border-radius: var(--radius);
  text-decoration: none; transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.contact-method:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(217, 164, 84, 0.6); }
.contact-method__icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(217, 164, 84, 0.14); color: var(--gold); display: grid; place-items: center; }
.contact-method strong { display: block; color: var(--white); font-size: 1rem; }
.contact-method span { font-size: 0.9375rem; color: var(--text-on-dark-muted); }

.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: var(--s-6) var(--s-5); box-shadow: var(--shadow-lg); }
@media (min-width: 768px) { .form-card { padding: var(--s-7); } }
.form-card h3 { font-size: 1.35rem; color: var(--navy); }
.form-card > p { margin-top: var(--s-2); color: var(--text-muted); font-size: 1rem; }
.form-grid { display: grid; gap: var(--s-4) var(--s-4); margin-top: var(--s-5); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field legend { font-size: 0.9375rem; font-weight: 700; color: var(--navy); }
.field .req { color: var(--error); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 1rem;
  background: var(--white); border: 1.5px solid #c9ced8; border-radius: 6px; color: var(--ink);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23061223' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9aa3b2; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(3, 60, 151, 0.18); }
.field .hint { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
.field .error-msg { font-size: 0.875rem; color: var(--error); font-weight: 700; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field.has-error .error-msg { display: block; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.9375rem; color: var(--text-muted); line-height: 1.55; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); }
.consent a { color: var(--royal); }
.consent.has-error { color: var(--error); }
.form-actions { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.form-note { font-size: 0.875rem; color: var(--text-muted); display: flex; gap: 8px; align-items: flex-start; }
.form-note .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--royal); }
.form-status { display: none; padding: 14px 16px; border-radius: 8px; font-size: 1rem; line-height: 1.55; }
.form-status.is-visible { display: block; }
.form-status--error { background: #fef3f2; color: var(--error); border: 1px solid #fecdca; }
.form-status--success { background: #ecfdf3; color: var(--success); border: 1px solid #abefc6; }
.form-status a { color: inherit; font-weight: 700; }
.error-summary { display: none; margin-top: var(--s-4); padding: 14px 16px; border: 2px solid var(--error); border-radius: 8px; background: #fef3f2; }
.error-summary.is-visible { display: block; }
.error-summary h4 { font-family: var(--font-body); font-size: 1rem; color: var(--error); }
.error-summary ul { margin-top: 6px; padding-left: 1.2em; font-size: 0.95rem; }
.error-summary a { color: var(--error); }
.hp { position: absolute; left: -9999px; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
.btn[aria-busy="true"] .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-3); max-width: 880px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color var(--dur) ease, box-shadow var(--dur) ease; }
.faq details[open] { border-color: rgba(217, 164, 84, 0.7); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 18px 22px; min-height: 64px; font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--gray); display: grid; place-items: center; transition: transform var(--dur) var(--ease-out), background-color var(--dur) ease; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--gold); }
.faq .faq__a { padding: 0 22px 20px; color: var(--text-muted); line-height: 1.7; }
.faq .faq__a > * + * { margin-top: 0.8em; }
.faq .faq__a a { color: var(--royal); }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow var(--dur) ease, transform var(--dur) var(--ease-out); }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.post-meta { font-size: 0.875rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.post-meta .cat { color: var(--accent-ink); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.post-card h3 { font-size: 1.2rem; color: var(--navy); line-height: 1.35; }
.post-card p { font-size: 1.0625rem; color: var(--text-muted); line-height: 1.65; }
.post-card .link-arrow { margin-top: auto; }

.cover-placeholder { width: 100%; height: 100%; min-height: 180px; display: flex; align-items: flex-end; padding: 20px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 55%, var(--royal) 100%); color: var(--gold-light); position: relative; overflow: hidden; }
.cover-placeholder .icon { position: absolute; right: -10px; top: -10px; width: 160px; height: 160px; color: rgba(217, 164, 84, 0.18); stroke-width: 1; }
.cover-placeholder span { font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.14em; position: relative; }

/* Social media / Facebook Page Plugin */
.social { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .social { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: var(--s-9); } }
.fb-card { width: 100%; max-width: 560px; margin-inline: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.fb-card__bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--navy); color: var(--white); font-weight: 700; }
.fb-card__bar .icon { color: var(--gold); }
.fb-card__bar a { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--gold-light); font-size: 0.875rem; font-weight: 400; text-decoration: none; }
.fb-card__bar a:hover { text-decoration: underline; }
@media (max-width: 479px) { .fb-card__bar a { display: none; } }
.fb-frame { display: flex; justify-content: center; padding: 16px; min-height: 712px; background: var(--gray); }
.fb-frame iframe { display: block; border: 0; max-width: 100%; background: var(--white); }
.fb-fallback { padding: 12px 16px 16px; text-align: center; font-size: 0.875rem; color: var(--text-muted); }
.fb-fallback a { color: var(--royal); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--white); color: var(--navy); font-weight: 700; font-size: 0.9375rem; cursor: pointer; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.chip-btn:hover { border-color: var(--navy); }
.chip-btn[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.post-card[hidden] { display: none; }

.article { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .article { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-8); } .article .prose { max-width: 80ch; } }
@media (min-width: 1400px) { .article { grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s-9); } }
.article__cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8; margin-bottom: var(--s-6); background: var(--navy); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__aside { display: grid; gap: var(--s-5); align-content: start; }
@media (min-width: 1024px) { .article__aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: var(--s-5); }
.aside-card h3 { font-size: 1.1rem; }
.aside-card p { color: var(--text-on-dark-muted); font-size: 1rem; margin-top: var(--s-2); line-height: 1.6; }
.aside-card .btn { margin-top: var(--s-4); width: 100%; }
.aside-card--light { background: var(--gray); color: var(--ink); }
.aside-card--light p { color: var(--text-muted); }
.aside-card--light ul { list-style: none; margin-top: var(--s-3); display: grid; gap: 4px; }
.aside-card--light a { color: var(--royal); text-decoration: none; font-weight: 700; font-size: 1rem; display: inline-block; padding: 6px 0; }
.aside-card--light a:hover { text-decoration: underline; }
.disclaimer-box { margin-top: var(--s-7); padding: var(--s-4) var(--s-5); background: var(--gray); border-radius: var(--radius); font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- Services page ---------- */
.jump-nav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: var(--s-6); }
.jump-nav a { display: inline-flex; min-height: 40px; align-items: center; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; font-size: 0.9375rem; text-decoration: none; color: var(--white); transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease; }
.jump-nav a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.service { display: grid; gap: var(--s-6); padding-block: var(--s-8); border-top: 1px solid var(--border); }
.service:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 1024px) { .service { grid-template-columns: minmax(340px, 0.75fr) 1.5fr; gap: var(--s-8); } }
.service__head .practice-card__icon { margin-bottom: var(--s-4); }
.service__head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--navy); }
.service__head p { margin-top: var(--s-3); color: var(--text-muted); }
.service__head .btn { margin-top: var(--s-5); }
@media (min-width: 1024px) { .service__head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.service__cols { display: grid; gap: var(--s-5); }
@media (min-width: 700px) { .service__cols { grid-template-columns: 1fr 1fr; } }
.panel { padding: var(--s-5); border-radius: var(--radius); background: var(--gray); }
.panel h3 { font-family: var(--font-body); font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); font-weight: 700; margin-bottom: var(--s-3); }
.panel ul { list-style: none; display: grid; gap: 10px; }
.panel li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 1.0625rem; line-height: 1.55; }
.panel li .icon { width: 18px; height: 18px; color: var(--accent-ink); margin-top: 3px; stroke-width: 2.25; }
.panel--outline { background: var(--white); border: 1px solid var(--border); }
.service__lawyers { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; font-size: 0.95rem; color: var(--text-muted); }
.avatar-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; padding: 4px 12px 4px 4px; border: 1px solid var(--border); border-radius: 999px; min-height: 44px; }
.avatar-link img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center 15%; }
.avatar-link:hover { border-color: var(--gold); }

/* ---------- Areas ---------- */
.area-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.area-list li { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--border); font-size: 0.95rem; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 3; background: var(--gray); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Office gallery: uniform tiles on every branch page (2 per row on phones, ~300px tiles on larger screens) */
.gallery { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(280px, calc(50% - 6px)), 1fr)); }
@media (min-width: 900px) { .gallery { gap: var(--s-4); } }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: var(--ratio, 3 / 4); background: var(--gray); }
.gallery__open { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__open img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.gallery__open:hover img, .gallery__open:focus-visible img { transform: scale(1.04); }
.gallery__open:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.gallery__zoom { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(6, 18, 35, 0.75); color: var(--white); opacity: 0.85; transition: opacity var(--dur) ease, background-color var(--dur) ease; }
.gallery__zoom .icon { width: 18px; height: 18px; }
.gallery__open:hover .gallery__zoom { opacity: 1; background: var(--gold); color: var(--navy); }
.gallery figure.contain-light { background: var(--white); border: 1px solid var(--border); }
.gallery figure.contain-dark { background: var(--navy); }
.gallery figure.contain-light img, .gallery figure.contain-dark img { object-fit: contain; }
.gallery__hint { margin-top: var(--s-4); font-size: 0.9375rem; color: var(--text-muted); }

/* Lightbox */
body.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); padding: 72px var(--s-5) var(--s-5); background: rgba(6, 18, 35, 0.95); opacity: 0; transition: opacity 220ms ease; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: var(--s-3); min-width: 0; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: var(--white); }
.lightbox__caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; color: var(--text-on-dark-muted); font-size: 0.9375rem; text-align: center; max-width: 70ch; }
.lightbox__count { color: var(--gold-light); font-weight: 700; letter-spacing: 0.08em; }
.lightbox__btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: var(--white); cursor: pointer; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.lightbox__btn[hidden] { visibility: hidden; display: grid; }
.lightbox__close { position: absolute; top: 14px; right: 14px; }
@media (max-width: 699px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 68px var(--s-4) var(--s-5); }
  .lightbox__figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__img { max-height: calc(100dvh - 220px); }
  .lightbox__prev { grid-row: 2; justify-self: end; }
  .lightbox__next { grid-row: 2; justify-self: start; }
}

/* FAQ sections: intro column stays in view while reading 10 answers */
@media (min-width: 1024px) {
  .faq-layout { align-items: start; }
  .faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
}

.jurisdictions { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin-top: var(--s-5); }
.jurisdictions li { font-family: var(--font-head); font-size: 1.05rem; color: var(--white); display: inline-flex; align-items: center; gap: 10px; }
.jurisdictions li::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 60%, var(--royal) 130%); color: var(--white); padding: var(--s-7) var(--s-5); display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; padding: var(--s-8) var(--s-8); } }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 380px; height: 380px; background: url("/assets/img/logo-256.png") center / contain no-repeat; opacity: 0.07; pointer-events: none; }
.cta-band h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); text-wrap: balance; max-width: 22ch; }
.cta-band p { color: var(--text-on-dark-muted); margin-top: var(--s-3); max-width: 56ch; }
.cta-band .btn-row { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--text-on-dark-muted); padding-top: var(--s-9); font-size: 1rem; }
.footer-grid { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-7); } }
.site-footer h2 { font-family: var(--font-body); font-size: 0.875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: var(--s-4); font-weight: 700; }
.footer-links { list-style: none; display: grid; gap: 2px; }
.footer-links a { text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.footer-links a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand p { margin-top: var(--s-4); max-width: 34ch; line-height: 1.7; }
.footer-brand .tagline { font-family: var(--font-head); color: var(--white); font-size: 1.05rem; }
.socials { display: flex; gap: 8px; margin-top: var(--s-5); }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border-dark); border-radius: 50%; color: var(--white); transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease; }
.socials a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-offices { padding-bottom: var(--s-8); margin-bottom: var(--s-8); border-bottom: 1px solid var(--border-dark); }
.footer-offices__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: var(--s-6); }
.site-footer .footer-offices__head h2 { font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: 0.01em; text-transform: none; color: var(--white); margin: 0; font-weight: 600; }
.footer-offices__head p { color: var(--text-on-dark-muted); }

/* Office card: NAP + Google Maps embed (footer, contact, branch pages) */
.office-grid { display: grid; gap: var(--s-5); }
.office-card { display: grid; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.office-card__map { position: relative; aspect-ratio: 4 / 3.4; background: var(--gray); }
@media (min-width: 1100px) { .office-card__map { aspect-ratio: 16 / 11; } }
.office-card__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.office-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.office-card__name { font-size: 1.2rem; color: var(--navy); line-height: 1.3; }
.office-card__actions { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 0 20px; }
.office-card--dark { background: var(--navy-2); border-color: var(--border-dark); }
.office-card--dark .office-card__map { background: var(--navy-3); }
.office-card--dark .office-card__name { color: var(--white); }
.office-card--dark .info-list li { color: var(--text-on-dark-muted); }
.office-card--dark .info-list .icon { color: var(--gold); }
.office-card--dark .info-list a { color: var(--white); }
.office-card--dark .office-card__actions { border-top-color: var(--border-dark); }
.office-card--dark .link-arrow { color: var(--gold); }
/* Tablet: one office per row, map beside the details */
@media (min-width: 700px) and (max-width: 1099px) {
  .office-card { grid-template-columns: 1.1fr 1fr; }
  .office-card__map { aspect-ratio: auto; min-height: 260px; }
}
/* Desktop: three offices side by side */
@media (min-width: 1100px) { .office-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-bottom { margin-top: var(--s-8); padding-block: var(--s-6); border-top: 1px solid var(--border-dark); display: grid; gap: var(--s-4); font-size: 0.875rem; line-height: 1.65; }
.footer-bottom .legal { max-width: 110ch; }
.footer-bottom .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom a { color: var(--white); }

/* ---------- Mobile action bar ---------- */
.mobile-bar { position: fixed; inset: auto 0 0 0; z-index: var(--z-mobilebar); display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(6, 18, 35, 0.96); backdrop-filter: blur(8px); border-top: 1px solid var(--border-dark); transform: translateY(110%); transition: transform var(--dur) var(--ease-out); }
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { min-height: 48px; padding: 8px 10px; font-size: 0.875rem; gap: 6px; }
@media (min-width: 900px) { .mobile-bar { display: none; } }
@media (max-width: 899px) { .site-footer { padding-bottom: 80px; } }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.center-row { display: flex; justify-content: center; margin-top: var(--s-7); }
.stack-sm > * + * { margin-top: var(--s-3); }
