/* ==========================================================================
   BRAVIOT — Global Styles
   Brand: Navy Ink #212549 · Floral White #FFFAF0 · Sage #5E7E6E
   Type: TT Lakes Neue (licensed) with Manrope fallback
   ========================================================================== */

/* -------- Webfont — TT Lakes Neue (drop .woff2 files in /assets/fonts/) ---- */
/* Until the licensed font files are added, the system gracefully falls back  */
/* to Manrope (loaded via the HTML <head>). Uncomment when ready:             */
/*
@font-face {
  font-family: 'TT Lakes Neue';
  src: url('/assets/fonts/TTLakesNeue-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TT Lakes Neue';
  src: url('/assets/fonts/TTLakesNeue-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TT Lakes Neue';
  src: url('/assets/fonts/TTLakesNeue-DemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TT Lakes Neue';
  src: url('/assets/fonts/TTLakesNeue-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
*/

/* -------- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, video { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; color: inherit; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* -------- Design tokens -------------------------------------------------- */
:root {
  /* Colour palette — brand exact */
  --ink:        #212549;
  --ink-90:    rgba(33, 37, 73, 0.90);
  --ink-70:    rgba(33, 37, 73, 0.70);
  --ink-60:    rgba(33, 37, 73, 0.60);
  --ink-40:    rgba(33, 37, 73, 0.40);
  --ink-20:    rgba(33, 37, 73, 0.20);
  --ink-10:    rgba(33, 37, 73, 0.10);
  --ink-05:    rgba(33, 37, 73, 0.05);

  --bg:        #FFFAF0;   /* Floral White — main bg */
  --bg-2:      #F5EFE2;   /* Warm Off-White — alternate sections */
  --bg-3:      #EDE6D6;   /* Warm Linen — footer */
  --white:     #FFFFFF;

  --sage:      #5E7E6E;
  --sage-light: #EBF0ED;

  /* Whatsapp brand colour (used in floater) */
  --whatsapp:  #25D366;

  /* Type — body uses Outfit (geometric sans), display headings use Cormorant Garamond (refined serif) */
  --font-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Layout */
  --max-w:     1180px;
  --nav-h:     72px;
  --nav-h-sm:  64px;

  /* Motion */
  --t-fast:    140ms;
  --t-base:    220ms;
  --t-slow:    420ms;
  --ease:      cubic-bezier(.2, .7, .2, 1);

  /* Elevation */
  --shadow-1:  0 1px 2px rgba(33, 37, 73, 0.04), 0 1px 3px rgba(33, 37, 73, 0.06);
  --shadow-2:  0 4px 12px rgba(33, 37, 73, 0.06), 0 2px 6px rgba(33, 37, 73, 0.04);
  --shadow-3:  0 12px 32px rgba(33, 37, 73, 0.10), 0 4px 12px rgba(33, 37, 73, 0.06);
}

/* -------- Base ----------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

/* -------- Type scale ----------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); font-weight: 400; line-height: 1.12; letter-spacing: -0.005em; }
h4, h5, h6 { font-family: var(--font-sans); color: var(--ink); font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); font-weight: 400; }
h1 em { font-style: italic; font-weight: 300; color: var(--sage); }
h2 { font-size: clamp(1.65rem, 4vw, 2.5rem); font-weight: 400; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 400; }
h4 { font-size: 1.05rem; }
p  { color: var(--ink-70); line-height: 1.7; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}
.lead { font-size: 1.05rem; line-height: 1.7; color: var(--ink-70); max-width: 60ch; }
.rule { width: 36px; height: 2px; background: var(--sage); margin: 0.8rem 0 1.25rem; border: 0; }

/* -------- Layout helpers ------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .wrap { padding: 0 2rem; } }

.section    { padding: 4rem 0; }
.section-lg { padding: 5.5rem 0; }
.section-sm { padding: 2.5rem 0; }

.section-tinted { background: var(--bg-2); }
.section-ink    { background: var(--ink); color: var(--bg); }
.section-ink h1, .section-ink h2, .section-ink h3, .section-ink h4 { color: var(--bg); }
.section-ink p  { color: rgba(255, 250, 240, 0.7); }
.section-ink .eyebrow { color: var(--sage-light); opacity: 0.85; }

/* -------- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1.5px solid transparent;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease), color var(--t-base) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary   { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-90); }
.btn-outline   { background: transparent; color: var(--ink); border-color: var(--ink-20); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink-05); }
.btn-sage      { background: var(--sage); color: var(--bg); }
.btn-sage:hover { background: #4f6c5d; }
.btn-link      { background: transparent; color: var(--ink); padding: 0.5rem 0; min-height: auto; letter-spacing: 0.1em; }
.btn-link:hover { color: var(--sage); }

.arrow-out::after { content: '→'; font-weight: 400; letter-spacing: 0; transition: transform var(--t-base) var(--ease); }
.arrow-out:hover::after { transform: translateX(4px); }

/* -------- Navigation ----------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  background: rgba(255, 250, 240, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ink-10);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h-sm); }
@media (min-width: 768px) { .nav-inner { height: var(--nav-h); } }

.nav-logo { display: inline-flex; align-items: center; height: 38px; flex-shrink: 0; margin-right: 2.75rem; }
.nav-logo img { height: 28px; width: auto; }
@media (min-width: 768px) { .nav-logo img { height: 34px; } }

.nav-list { display: none; gap: 1.6rem; align-items: center; }
@media (min-width: 980px) { .nav-list { display: flex; } }

.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-70);
  padding: 0.6rem 0;
  white-space: nowrap;
  transition: color var(--t-base) var(--ease);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--sage);
}
.nav-caret { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform var(--t-base); }
.nav-item:hover .nav-caret { transform: rotate(225deg); margin-top: 1px; }

.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--bg);
  border: 1px solid var(--ink-10);
  box-shadow: var(--shadow-3);
  padding: 1.75rem;
  min-width: 720px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all var(--t-base) var(--ease);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem 2rem;
}
@media (max-width: 1100px) {
  .nav-dropdown { min-width: 580px; grid-template-columns: 1fr 1fr; }
  .nav-dd-immigration { grid-column: 1 / -1; padding-top: 0.75rem; border-top: 1px solid var(--ink-10); margin-top: 0.5rem; }
  .nav-dd-immigration .nav-dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 1.25rem; }
}
.nav-dd-immigration .nav-dd-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dd-group { }
.nav-dd-heading { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.7rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--ink-10); }
.nav-dd-link { display: block; padding: 0.35rem 0; font-size: 0.86rem; color: var(--ink-70); font-weight: 500; transition: color var(--t-base) var(--ease); }
.nav-dd-link:hover { color: var(--ink); }

.nav-cta {
  display: none;
  background: var(--ink); color: var(--bg);
  padding: 0.65rem 1.4rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 4px;
  transition: background var(--t-base) var(--ease);
}
.nav-cta:hover { background: var(--ink-90); }
@media (min-width: 980px) { .nav-cta { display: inline-flex; align-items: center; } }

/* Hamburger */
.ham { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; }
.ham span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease); }
@media (min-width: 980px) { .ham { display: none; } }

/* Mobile menu */
.mob {
  position: fixed; inset: 0; z-index: 900;
  background: var(--ink); color: var(--bg);
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
  display: flex; flex-direction: column;
}
.mob.open { transform: translateX(0); }
.mob-head { display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin-bottom: 1.5rem; }
.mob-head .mob-logo-img { height: 26px; width: auto; }
.mob-x { width: 44px; height: 44px; color: rgba(255,250,240,0.8); font-size: 1.8rem; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.mob-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mob-nav-item { border-bottom: 1px solid rgba(255,250,240,0.1); }
.mob-nav-link {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
  padding: 1rem 0.25rem;
  color: rgba(255,250,240,0.85);
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  text-align: left;
}
.mob-sub { display: none; padding: 0 0 1rem 1rem; }
.mob-sub.open { display: block; }
.mob-sub a { display: block; padding: 0.55rem 0; font-size: 0.84rem; color: rgba(255,250,240,0.65); }
.mob-sub-heading { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); margin: 0.85rem 0 0.4rem; }

/* Mobile footer "Get in touch" — clean stacked panel */
.mob-foot { margin-top: auto; padding-top: 2rem; }
.mob-foot-title { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
.mob-foot-grid { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
.mob-foot-row {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255,250,240,0.06);
  border: 1px solid rgba(255,250,240,0.08);
  border-radius: 6px;
  color: var(--bg);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background var(--t-base) var(--ease);
}
.mob-foot-row:hover { background: rgba(255,250,240,0.1); }
.mob-foot-row .icon { width: 32px; height: 32px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,250,240,0.08); color: var(--sage-light); }
.mob-foot-row .icon svg { width: 16px; height: 16px; }
.mob-foot-row .label { font-size: 0.68rem; color: rgba(255,250,240,0.5); display: block; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1px; }
.mob-foot-row .value { color: var(--bg); }
.mob-foot-row.whatsapp { background: var(--whatsapp); color: white; border-color: transparent; }
.mob-foot-row.whatsapp:hover { background: #1faf52; }
.mob-foot-row.whatsapp .icon { background: rgba(255,255,255,0.18); color: white; }
.mob-foot-row.whatsapp .label { color: rgba(255,255,255,0.78); }
.mob-foot-row.whatsapp .value { color: white; font-weight: 600; }

/* Language switcher */
/* Language switcher (desktop) — current-flag button + hover dropdown */
.lang-switch { position: relative; display: inline-block; margin-right: 0.6rem; }
.lang-current {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.6rem; border-radius: 4px;
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--ink-70); background: transparent; border: 1.5px solid transparent;
  transition: all var(--t-base) var(--ease);
  cursor: pointer;
}
.lang-current:hover,
.lang-switch:focus-within .lang-current { color: var(--ink); background: var(--ink-05); border-color: var(--ink-10); }
.lang-current-code { line-height: 1; }
.lang-flag { width: 20px; height: auto; border-radius: 2px; flex-shrink: 0; display: block; }
.lang-caret { width: 10px; height: 6px; opacity: 0.7; transition: transform var(--t-fast) var(--ease); }
.lang-switch:hover .lang-caret,
.lang-switch:focus-within .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 150px; padding: 0.3rem;
  background: var(--bg); border: 1px solid var(--ink-10); border-radius: 6px;
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast) var(--ease);
  z-index: 900;
}
.lang-switch:hover .lang-menu,
.lang-switch:focus-within .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-opt {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.7rem; border-radius: 4px;
  font-size: 0.8rem; color: var(--ink-70); white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-opt:hover { background: var(--ink-05); color: var(--ink); }
.lang-opt .lang-flag { width: 22px; }
@media (max-width: 979px) { .lang-switch { display: none; } }

/* Mobile fall-back classes (kept for mobile lang-switch-mob) */
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.55rem; border-radius: 4px;
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--ink-60); background: transparent; border: 1.5px solid transparent;
  transition: all var(--t-base) var(--ease);
}
.lang-btn:hover { color: var(--ink); background: var(--ink-05); }
.lang-btn.active { color: var(--ink); background: var(--ink-05); border-color: var(--ink-10); }

.lang-switch-mob {
  display: flex; gap: 0.5rem; margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,250,240,0.1);
}
.lang-switch-mob .lang-btn {
  flex: 1; justify-content: center;
  color: rgba(255,250,240,0.7);
  border-color: rgba(255,250,240,0.15);
  background: rgba(255,250,240,0.04);
}
.lang-switch-mob .lang-btn.active {
  color: var(--bg); border-color: var(--sage); background: rgba(94,126,110,0.2);
}

/* -------- Hero ----------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--nav-h-sm) + 3.5rem); padding-bottom: 4rem; }
@media (min-width: 768px) { .hero { padding-top: calc(var(--nav-h) + 5rem); padding-bottom: 6rem; } }
.hero .eyebrow-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.hero .eyebrow-row::before { content: ''; width: 32px; height: 1.5px; background: var(--sage); display: block; }
.hero h1 { max-width: 18ch; margin-bottom: 1.5rem; }
.hero h1 em { font-style: normal; color: var(--sage); }
.hero .lead { margin-bottom: 2.5rem; }
.hero-buttons { display: flex; flex-direction: column; gap: 0.8rem; }
@media (min-width: 480px) { .hero-buttons { flex-direction: row; flex-wrap: wrap; } }

/* Page heading (non-home) */
.page-head {
  background: var(--bg-2);
  padding: calc(var(--nav-h-sm) + 3rem) 0 3rem;
  border-bottom: 1px solid var(--ink-10);
}
@media (min-width: 768px) { .page-head { padding: calc(var(--nav-h) + 4.5rem) 0 4rem; } }
.page-head h1 { margin-bottom: 1rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; font-size: 0.72rem; color: var(--ink-60); margin-bottom: 1.5rem; letter-spacing: 0.06em; }
.breadcrumbs a { color: var(--ink-60); transition: color var(--t-base); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span.sep { color: var(--ink-40); }

/* -------- Trust bar ------------------------------------------------------ */
.trust {
  background: var(--ink); color: var(--bg);
  display: grid; grid-template-columns: 1fr; align-items: stretch;
}
@media (min-width: 640px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  padding: 1rem 1.25rem;
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,250,240,0.65);
  border-bottom: 1px solid rgba(255,250,240,0.08);
  justify-content: center;
}
@media (min-width: 640px) {
  .trust-item { border-bottom: 0; border-right: 1px solid rgba(255,250,240,0.08); }
  .trust-item:last-child { border-right: 0; }
}
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }

/* -------- Cards (expertise, blog, team) --------------------------------- */
.card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
}
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card-grid.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.card-grid.card-grid-tight { gap: 0.85rem; margin-top: 1rem; }
.card-grid.card-grid-tight .card { padding: 1.4rem 1.25rem; gap: 0.55rem; }
.card-grid.card-grid-tight .card h3 { font-size: 1.1rem; }
.card-grid.card-grid-tight .card p { font-size: 0.85rem; line-height: 1.55; }

.visa-routes-band { background: var(--bg-2); padding-top: 2.5rem; padding-bottom: 3.5rem; }
.visa-routes-band .visa-grid-section { padding: 0; }
.visa-routes-band .visa-grid-section .eyebrow { margin-bottom: 0.4rem; }

.card-grid.cols-4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--ink-05);
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.8rem;
  position: relative;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  color: inherit; text-decoration: none;
}
.card-clickable, a.card { cursor: pointer; }
a.card:hover { transform: translateY(-2px); }
.card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0;
  height: 2px; background: var(--sage);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-slow) var(--ease);
}
.card:hover { border-color: var(--ink-10); box-shadow: var(--shadow-2); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.08rem; }
.card p { font-size: 0.9rem; color: var(--ink-60); line-height: 1.6; }
.card-cta { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin-top: auto; padding-top: 0.4rem; }
.card-cta::after { content: '→'; transition: transform var(--t-base) var(--ease); }
.card:hover .card-cta::after { transform: translateX(4px); }

/* Practice category cards (larger, two-tone) */
.cat-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
.cat-card {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 2.25rem 2rem;
  background: var(--white);
  border: 1px solid var(--ink-10);
  position: relative;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.cat-card .num { font-size: 0.72rem; letter-spacing: 0.22em; color: var(--sage); font-weight: 600; }
.cat-card h3 { font-size: 1.5rem; }
.cat-card ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 1.25rem; margin-top: 0.5rem; }
.cat-card ul li { font-size: 0.86rem; color: var(--ink-70); padding-left: 0.85rem; position: relative; line-height: 1.7; }
.cat-card ul li::before { content: ''; position: absolute; left: 0; top: 0.65rem; width: 5px; height: 5px; background: var(--sage); border-radius: 50%; }
.cat-card .card-cta { margin-top: 1rem; }

/* -------- Two-column split sections ------------------------------------- */
.split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.split-illustration { /* deprecated */ display: none; }

/* ==========================================================================
   Video band (home page) — video sits only behind the hero (16:9 framing
   so the full video frame is visible without zoom/cropping). The expertise
   section is on the regular page background below.
   ========================================================================== */
.video-band {
  position: relative;
  background: var(--ink);
  padding-top: var(--nav-h-sm);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 768px) { .video-band { padding-top: var(--nav-h); } }

/* Hero+video container — keeps a natural 16:9 video aspect on wide screens,
   and just enough vertical room on narrow screens for the text */
.video-hero-stage {
  position: relative;
  width: 100%;
  /* aspect-ratio matches the source video so cover doesn't crop heavily */
  aspect-ratio: 16 / 9;
  min-height: 480px;
  max-height: 78vh;
  overflow: hidden;
}
@media (max-width: 767px) {
  .video-hero-stage { aspect-ratio: 4/5; min-height: 560px; max-height: none; }
}

.video-band .video-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  /* cover at matching aspect ratio = video edges align with stage edges,
     no zoom-in or cropping of the subject */
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Brand-aligned tint over the video.
   Stronger on the left where the hero text sits, lighter on the right so the
   imagery still reads. Plus a soft top-to-bottom darken for legibility. */
.video-band .video-band-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(33,37,73,0.78) 0%,
      rgba(33,37,73,0.62) 30%,
      rgba(33,37,73,0.32) 55%,
      rgba(33,37,73,0.18) 100%),
    linear-gradient(180deg,
      rgba(33,37,73,0.25) 0%,
      rgba(33,37,73,0.18) 50%,
      rgba(33,37,73,0.40) 100%);
}

/* Hero on top of video */
.hero-on-video {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; align-items: center;
  padding: 2rem 0;
  color: var(--bg);
}
@media (min-width: 768px) { .hero-on-video { padding: 3rem 0; } }
.hero-grid-single { display: block; max-width: 720px; width: 100%; }
.hero-on-video .hero-text { color: var(--bg); }
.hero-on-video h1 {
  color: var(--bg);
  text-shadow: 0 2px 28px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.35);
  /* Let the container width drive wrapping; produces 2–3 natural lines */
  max-width: none;
  margin-bottom: 1.75rem;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.22;
  font-weight: 400;
}
.hero-on-video h1 em { color: #d8b87a; font-style: italic; font-weight: 300; }
.hero-on-video .lead {
  color: rgba(255,250,240,0.95);
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
  max-width: 56ch;
  margin-bottom: 2rem;
  font-size: 1rem;
}
@media (min-width: 768px) { .hero-on-video .lead { font-size: 1.05rem; } }
.hero-on-video .hero-buttons { display: flex; flex-direction: column; gap: 0.85rem; }
@media (min-width: 480px) { .hero-on-video .hero-buttons { flex-direction: row; flex-wrap: wrap; } }

.btn-outline-light {
  background: rgba(255,250,240,0.05);
  color: var(--bg);
  border-color: rgba(255,250,240,0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
  background: rgba(255,250,240,0.15);
  border-color: var(--bg);
  color: var(--bg);
}

/* Expertise section is now BELOW the video band — uses the regular page
   background. Override the dark/video styles */
.expertise-on-video { position: relative; padding-top: 5rem; padding-bottom: 5rem; }
.expertise-on-video h2 { color: var(--ink); text-shadow: none; }
.expertise-on-video .lead { color: var(--ink-70); text-shadow: none; }

.cat-card-on-video {
  background: var(--white);
  border: 1px solid var(--ink-05);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}
.cat-card-on-video:hover {
  border-color: var(--ink-10);
  box-shadow: var(--shadow-2);
}

/* ==========================================================================
   page-head with background photo (used on About Us → Royal Courts of Justice)
   Band aspect-ratio matches the photo (3:4 portrait) so cover shows the
   ENTIRE photo, no cropping — towers, building, entrance, signs, lampposts,
   taxi and zebra all visible together.
   ========================================================================== */
.page-head-photo {
  position: relative;
  background: var(--ink);
  color: var(--bg);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  /* Band aspect matches the new photo (2400/1580, ~1.52:1) so cover shows
     the ENTIRE photo edge to edge with no cropping — sky, full spire, twin
     towers, rose window, entrance arch, RCJ signs, lampposts, pedestrians
     and trees all visible together. Image is pre-cropped to this ratio. */
  aspect-ratio: 2400 / 1580;
  width: 100%;
}
.page-head-photo .page-head-photo-inner {
  height: 100%;
  padding-top: calc(var(--nav-h-sm) + 1.25rem);
  padding-bottom: 2rem;
  display: flex; flex-direction: column;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .page-head-photo .page-head-photo-inner {
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 3.5rem;
  }
}
.page-head-photo-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
}

/* Photo fills the entire band — cover, focused on the lower portion so the
   entrance arch, "Royal Courts of Justice" signs and the black cab are visible. */
.page-head-photo::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('/assets/images/royal-courts.jpg?v=20');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Soft navy tint — keeps text readable while preserving photo atmosphere */
.page-head-photo-tint {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(33,37,73,0.55) 0%,
      rgba(33,37,73,0.20) 25%,
      rgba(33,37,73,0.30) 65%,
      rgba(33,37,73,0.75) 100%);
}

.page-head-photo-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  min-height: 60vh;
}

/* Breadcrumb + eyebrow at the very top, heading + lead at the bottom — keeps
   the centre of the band clear for the photo. */
.page-head-photo .breadcrumbs { margin-bottom: 0; }
.page-head-photo .eyebrow { margin-bottom: 0; }
.page-head-photo-inner h1 { margin-top: auto; max-width: 24ch; }
.page-head-photo-inner .lead { max-width: 56ch; }

/* Type colour overrides */
/* Text colors — light on dark/photo background */
.page-head-photo .breadcrumbs { color: rgba(255,250,240,0.85); }
.page-head-photo .breadcrumbs a { color: rgba(255,250,240,0.85); }
.page-head-photo .breadcrumbs a:hover { color: var(--bg); }
.page-head-photo .breadcrumbs .sep { color: rgba(255,250,240,0.45); }
.page-head-photo .eyebrow { color: #e6efe4; }
.page-head-photo h1 {
  color: var(--bg);
  text-shadow: 0 2px 28px rgba(0,0,0,0.65), 0 1px 6px rgba(0,0,0,0.55);
}
.page-head-photo .lead {
  color: rgba(255,250,240,0.95);
  text-shadow: 0 1px 12px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.5);
}

/* Royal Courts photo in principles card — natural integration */
.principles-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-2), var(--sage-light));
}
.principles-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.02) saturate(0.92);
  /* gentle bottom fade so it merges into the card */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 88%, rgba(0,0,0,0.85) 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 88%, rgba(0,0,0,0.85) 100%);
}
.principles-photo-fallback {
  width: 100%; height: 100%;
  align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--ink-60);
  padding: 1rem;
  flex-direction: column;
}
.principles-photo-fallback small { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-top: 0.4rem; }

/* ==========================================================================
   Reveal-on-scroll animation (subtle)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s cubic-bezier(0.2,0.7,0.2,1), transform 0.85s cubic-bezier(0.2,0.7,0.2,1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children of cat-grid + team-grid + card-grid when revealed */
.reveal > .cat-card,
.reveal > .team-card,
.reveal > .card { transition-delay: 0ms; }
.cat-grid.reveal.is-in > .cat-card:nth-child(2),
.team-grid.reveal.is-in > .team-card:nth-child(2),
.card-grid.reveal.is-in > .card:nth-child(2) { transition-delay: 120ms; }
.card-grid.reveal.is-in > .card:nth-child(3) { transition-delay: 240ms; }
.card-grid.reveal.is-in > .card:nth-child(4) { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .video-band .video-bg { display: none; }
  .video-band { background: var(--ink); }
}

/* Hero with illustration on the right — illustration blends with page bg, no hard frame */
.hero-with-art { padding-bottom: 3rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } }

.hero-art {
  position: relative;
  aspect-ratio: 4/3;
  display: flex; align-items: stretch; justify-content: stretch;
  /* No background or border — illustration sits on the page colour */
  /* Soft mask fades the bottom edge into the page */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
}
.hero-art svg { width: 100%; height: 100%; display: block; }

/* Subtle ambient atmosphere ring (soft glow behind the illustration) */
.hero-art::before {
  content: '';
  position: absolute; inset: 8% 12%;
  background: radial-gradient(ellipse at 60% 40%, var(--sage-light) 0%, transparent 60%);
  opacity: 0.55;
  z-index: 0; pointer-events: none;
}
.hero-art svg { position: relative; z-index: 1; }
@media (max-width: 880px) {
  .hero-art { aspect-ratio: 5/3; margin-top: 1rem; opacity: 0.9; }
}

/* Home — fully clickable cat-cards */
a.cat-card { color: inherit; text-decoration: none; cursor: pointer; }
a.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
a.cat-card .card-cta { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin-top: 1rem; transition: color var(--t-base); }
a.cat-card .card-cta::after { content: '→'; transition: transform var(--t-base); }
a.cat-card:hover .card-cta { color: var(--ink); }
a.cat-card:hover .card-cta::after { transform: translateX(4px); }

/* Operating principles card on home (replaces former quote block) */
.home-art-card {
  background: var(--white);
  border: 1px solid var(--ink-10);
  padding: 1.75rem 1.75rem 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.principles-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  /* No background — illustration sits on the card with the spotlight gradient defined inside */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 85%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 85%, transparent 100%);
}
.principles-img svg { width: 100%; height: 100%; display: block; }
.principles-list { display: flex; flex-direction: column; gap: 0.85rem; padding-top: 1.25rem; border-top: 1px solid var(--ink-10); }

/* Text-only variant (no header photo) — gives the principles room to breathe */
.home-art-card-textonly { padding: 2.25rem 2rem; gap: 1.5rem; }
.principles-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ink-10);
}
.home-art-card-textonly .principles-list { border-top: none; padding-top: 0; gap: 1.25rem; }
.principles-list-expanded .principle .num { width: 36px; height: 36px; font-size: 0.78rem; }
.principles-list-expanded .principle strong { font-size: 1rem; margin-bottom: 0.2rem; }
.principles-list-expanded .principle span { font-size: 0.88rem; line-height: 1.55; }
.principle { display: flex; gap: 1rem; align-items: flex-start; }
.principle .num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sage-light); color: var(--sage); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; flex-shrink: 0; }
.principle strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--ink); margin-bottom: 0.05rem; }
.principle span { font-size: 0.82rem; color: var(--ink-60); }

/* Editorial quote block (used in home split where the image used to be) */
.split-quote {
  background: var(--bg-2);
  border-left: 3px solid var(--sage);
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.split-quote .eyebrow { margin-bottom: 0; }
.hero-quote { margin: 0; }
.hero-quote p { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; line-height: 1.3; color: var(--ink); font-style: italic; margin-bottom: 0.8rem; }
.hero-quote cite { font-style: normal; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-60); font-weight: 500; }
.split-quote-foot { display: grid; grid-template-columns: 1fr; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-10); }
@media (min-width: 480px) { .split-quote-foot { grid-template-columns: repeat(3, 1fr); } }
.split-quote-foot div { display: flex; flex-direction: column; gap: 0.1rem; }
.split-quote-foot strong { font-size: 0.82rem; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.split-quote-foot span { font-size: 0.74rem; color: var(--ink-60); }

/* -------- Feature list -------------------------------------------------- */
.feat-list { display: flex; flex-direction: column; }
.feat { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--ink-10); }
.feat:first-child { padding-top: 0; }
.feat:last-child  { border-bottom: 0; }
.feat-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--sage-light); display: inline-flex; align-items: center; justify-content: center; color: var(--sage); font-weight: 600; font-size: 0.9rem; }
.feat h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
.feat p  { font-size: 0.88rem; margin: 0; }

/* -------- Stats band ---------------------------------------------------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 2.5rem 1.5rem; text-align: center; border-right: 1px solid rgba(255,250,240,0.08); border-bottom: 1px solid rgba(255,250,240,0.08); }
@media (min-width: 640px) { .stat { border-bottom: 0; } .stat:nth-child(4) { border-right: 0; } }
.stat-n { font-size: 2.4rem; font-weight: 600; line-height: 1.1; display: block; color: var(--bg); letter-spacing: -0.02em; }
.stat-l { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,250,240,0.6); margin-top: 0.5rem; display: block; }

/* -------- CTA band ------------------------------------------------------ */
.cta-band {
  background: var(--bg-2);
  border-top: 1px solid var(--ink-10); border-bottom: 1px solid var(--ink-10);
  padding: 4rem 0; text-align: center;
}
.cta-band h2 { max-width: 22ch; margin: 0 auto 1rem; }
.cta-band .lead { margin: 0 auto 2rem; }
.cta-band .buttons { display: inline-flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 480px) { .cta-band .buttons { flex-direction: row; } }

/* -------- Team ---------------------------------------------------------- */
.team-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 600px) { .team-grid { grid-template-columns: 1fr 1fr; max-width: 820px; } }
.team-card { background: var(--white); border: 1px solid var(--ink-05); display: flex; flex-direction: column; transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease); color: inherit; text-decoration: none; cursor: pointer; }
.team-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: var(--ink-10); }
.team-card:hover .team-card-cta { color: var(--ink); }
.team-card:hover .team-card-cta::after { transform: translateX(4px); }
.team-card-cta { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); transition: color var(--t-base) var(--ease); }
.team-card-cta::after { content: '→'; transition: transform var(--t-base) var(--ease); }
.team-photo { aspect-ratio: 1; background: var(--sage-light); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initials { font-size: 3.4rem; font-weight: 300; color: var(--ink-20); }
.team-accent { height: 2px; background: linear-gradient(to right, var(--sage), var(--ink)); }
.team-info { padding: 1.5rem 1.5rem 1.75rem; }
.team-info h3 { margin-bottom: 0.15rem; font-size: 1.25rem; }
.team-role { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.85rem; }
.team-info p { font-size: 0.9rem; margin-bottom: 0.85rem; }
.team-links { display: flex; gap: 0.85rem; flex-wrap: wrap; font-size: 0.74rem; letter-spacing: 0.06em; }
.team-links a { color: var(--ink-70); border-bottom: 1px solid var(--ink-20); padding-bottom: 1px; transition: color var(--t-base), border-color var(--t-base); }
.team-links a:hover { color: var(--ink); border-color: var(--ink); }

/* Team detail page */
.team-detail-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 880px) { .team-detail-grid { grid-template-columns: minmax(260px, 320px) 1fr; gap: 4rem; align-items: start; } }
.team-detail-photo { aspect-ratio: 4/5; background: var(--sage-light); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.team-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-detail-photo .team-initials { font-size: 5rem; }
.team-detail h1 { margin-bottom: 0.3rem; }
.team-detail .team-role { display: block; margin-bottom: 1.5rem; }
.team-detail h3 { margin-top: 2rem; margin-bottom: 0.85rem; font-size: 1.05rem; font-weight: 600; }
.team-detail p { margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.75; }
.team-detail ul { margin: 0 0 1rem 0; }
.team-detail ul li { padding-left: 1.1rem; position: relative; margin-bottom: 0.35rem; font-size: 0.92rem; color: var(--ink-70); line-height: 1.6; }
.team-detail ul li::before { content: ''; position: absolute; left: 0; top: 0.6rem; width: 5px; height: 5px; background: var(--sage); border-radius: 50%; }

/* -------- Practice page (article-style) ---------------------------------- */
.article-body { max-width: 760px; }
.article-body h2 { margin-top: 2.5rem; margin-bottom: 0.8rem; font-size: 1.55rem; }
.article-body h3 { margin-top: 1.75rem; margin-bottom: 0.6rem; font-size: 1.2rem; }
.article-body p  { margin-bottom: 1rem; font-size: 1rem; line-height: 1.8; }
.article-body ul { margin: 0 0 1.25rem 0; }
.article-body ul li { padding-left: 1.2rem; position: relative; margin-bottom: 0.4rem; line-height: 1.65; }
.article-body ul li::before { content: ''; position: absolute; left: 0; top: 0.65rem; width: 6px; height: 6px; background: var(--sage); border-radius: 50%; }
.article-body blockquote { border-left: 3px solid var(--sage); padding: 0.4rem 0 0.4rem 1.25rem; margin: 1.5rem 0; font-size: 1.05rem; color: var(--ink-70); font-style: italic; }
.article-aside { background: var(--bg-2); padding: 1.75rem; border-left: 3px solid var(--sage); margin: 2rem 0; }
.article-aside h3 { margin: 0 0 0.5rem; }
.article-aside p  { margin-bottom: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--ink-10); margin-top: 2.5rem; }
.faq-item { border-bottom: 1px solid var(--ink-10); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  padding: 1.25rem 0;
  font-size: 1rem; font-weight: 600; color: var(--ink);
}
.faq-toggle { width: 20px; height: 20px; flex-shrink: 0; position: relative; }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; background: var(--ink-60); transition: transform var(--t-base) var(--ease); }
.faq-toggle::before { top: 9px; left: 0; right: 0; height: 2px; }
.faq-toggle::after  { top: 0; bottom: 0; left: 9px; width: 2px; }
.faq-item.open .faq-toggle::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-slow) var(--ease); }
.faq-a-inner { padding: 0 0 1.25rem; color: var(--ink-70); line-height: 1.7; font-size: 0.95rem; max-width: 70ch; }
.faq-item.open .faq-a { max-height: 600px; }

/* -------- Sidebar (practice pages, contact) ----------------------------- */
.with-sidebar { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 980px) { .with-sidebar { grid-template-columns: 1fr 320px; } }
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card { background: var(--white); border: 1px solid var(--ink-10); padding: 1.5rem; }
.sidebar-card h4 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
.sidebar-card ul li { padding: 0.5rem 0; border-bottom: 1px solid var(--ink-05); font-size: 0.92rem; }
.sidebar-card ul li:last-child { border-bottom: 0; }
.sidebar-card ul li a { color: var(--ink-70); transition: color var(--t-base); }
.sidebar-card ul li a:hover { color: var(--ink); }
.sidebar-card ul li.active a { color: var(--ink); font-weight: 600; }

/* -------- Contact / forms ----------------------------------------------- */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
.contact-card { background: var(--white); border: 1px solid var(--ink-10); padding: 1.75rem; }
.contact-card h4 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.85rem; }
.contact-card .row { display: flex; gap: 0.85rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--ink-05); font-size: 0.95rem; }
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .row .label { color: var(--ink-60); min-width: 80px; font-size: 0.82rem; }
.contact-card .row a { color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.field label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-70); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--ink-10);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  transition: border-color var(--t-base) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); }
.field textarea { resize: vertical; min-height: 140px; }
.field-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.82rem; color: var(--ink-70); line-height: 1.5; margin-bottom: 1.2rem; }
.consent input { margin-top: 0.2rem; flex-shrink: 0; }
.no-engagement-notice {
  background: var(--bg-2);
  border-left: 3px solid var(--sage);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--ink-70);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

/* -------- WhatsApp floater ---------------------------------------------- */
.whatsapp-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 700;
  width: 58px; height: 58px;
  background: var(--whatsapp); color: white;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(33, 37, 73, 0.15);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.whatsapp-float:hover { transform: scale(1.06); box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45), 0 3px 10px rgba(33, 37, 73, 0.2); }
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float::after {
  content: 'Chat on WhatsApp';
  position: absolute; right: calc(100% + 0.75rem); top: 50%;
  transform: translateY(-50%);
  background: var(--ink); color: var(--bg);
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em;
  padding: 0.45rem 0.75rem; border-radius: 4px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity var(--t-base) var(--ease);
}
.whatsapp-float:hover::after { opacity: 1; }
@media (max-width: 600px) { .whatsapp-float::after { display: none; } }

/* -------- Footer --------------------------------------------------------- */
.footer { background: var(--bg-3); color: var(--ink); padding: 4rem 0 2rem; border-top: 1px solid var(--ink-10); }
.footer-top { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; } }
.footer-brand img { height: 38px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.9rem; color: var(--ink-70); max-width: 32ch; margin-bottom: 1.25rem; }
.footer-whatsapp { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.6rem 1rem; background: var(--whatsapp); color: white; border-radius: 4px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; }
.footer-whatsapp svg { width: 18px; height: 18px; }
.footer h5 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
.footer ul li { padding: 0.3rem 0; }
.footer ul li a { font-size: 0.9rem; color: var(--ink-70); transition: color var(--t-base); }
.footer ul li a:hover { color: var(--ink); }

.footer-contact { font-size: 0.9rem; color: var(--ink-70); }
.footer-contact p { color: var(--ink-70); margin-bottom: 0.4rem; }
.footer-contact a { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--ink-10);
  padding-top: 1.75rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  align-items: flex-start;
  font-size: 0.78rem; color: var(--ink-60);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-bottom a { color: var(--ink-70); }
.footer-bottom a:hover { color: var(--ink); }
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
/* Footer trust badges row — SRA digital badge + Law Society crest */
.footer-badges { display: inline-flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-sra-badge { width: 150px; flex-shrink: 0; line-height: 0; }
.footer-sra-badge > div { max-width: 150px !important; }
.footer-lawsociety {
  display: inline-flex; align-items: center;
  /* blends the badge with the warm-linen footer: white background of the
     supplied artwork drops out, leaving only the black crest + wordmark */
  mix-blend-mode: multiply;
}
.footer-lawsociety img {
  height: 84px; width: auto; display: block;
  opacity: 0.92;
  transition: opacity var(--t-base) var(--ease);
}
.footer-lawsociety:hover img { opacity: 1; }

.footer-sra {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-70);
  background: var(--white);
  border: 1px solid var(--ink-10);
  padding: 0.45rem 0.8rem; border-radius: 3px;
}
.footer-sra::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }


/* -------- Header right-side contact column ---------------------------- */
.nav-contact {
  display: none;
  flex-direction: column;
  gap: 0.18rem;
  font-size: 0.7rem;
  color: var(--ink-70);
  line-height: 1.3;
  margin-left: 1.25rem;
  margin-right: 0.6rem;
  text-align: right;
}
@media (min-width: 1200px) { .nav-contact { display: flex; } }
.nav-contact-row {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--ink-70);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.nav-contact-row > svg { width: 12px; height: 12px; opacity: 0.7; flex-shrink: 0; }
.nav-contact-row:hover { color: var(--ink); }
.nav-contact-row-static { cursor: default; }
.nav-contact-row-static:hover { color: var(--ink-70); }

/* -------- Cookie banner -------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 950;
  max-width: 480px;
  padding: 1.1rem 1.25rem;
  background: var(--ink); color: var(--bg);
  border-radius: 8px;
  box-shadow: var(--shadow-3);
  font-size: 0.85rem;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { color: rgba(255,250,240,0.85); margin-bottom: 0.85rem; }
.cookie-banner a { color: var(--bg); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-actions button {
  padding: 0.5rem 1rem; border-radius: 4px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background var(--t-fast), color var(--t-fast);
}
.cookie-accept { background: var(--bg); color: var(--ink); border: none; }
.cookie-accept:hover { background: var(--bg-2); }
.cookie-decline { background: transparent; color: var(--bg); border: 1.5px solid rgba(255,250,240,0.35); }
.cookie-decline:hover { border-color: var(--bg); }

/* -------- Footer policies row ------------------------------------------- */
.footer-policies {
  border-top: 1px solid var(--ink-10);
  padding-top: 1.75rem;
  margin-bottom: 1.75rem;
}
.footer-policies h5 {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sage);
  margin-bottom: 1rem;
}
.footer-policies ul {
  display: flex; flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  list-style: none; padding: 0;
}
.footer-policies ul li { padding: 0; position: relative; }
.footer-policies ul li + li::before {
  content: '\B7';
  position: absolute; left: -0.85rem; color: var(--ink-20);
}
.footer-policies ul li a {
  font-size: 0.85rem; color: var(--ink-70);
  transition: color var(--t-base);
}
.footer-policies ul li a:hover { color: var(--ink); }

/* -------- Policy document pages ----------------------------------------- */
.policy-doc { max-width: 760px; margin: 0 auto; }
.policy-doc h2 {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 400;
  margin: 2.25rem 0 0.85rem;
  color: var(--ink);
}
.policy-doc h2:first-child { margin-top: 0; }
.policy-doc h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem; font-weight: 600;
  margin: 1.75rem 0 0.6rem;
  color: var(--ink);
}
.policy-doc h4 {
  font-family: var(--font-sans);
  font-size: 0.92rem; font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--ink-90);
}
.policy-doc p {
  font-size: 0.95rem; line-height: 1.75;
  color: var(--ink-70);
  margin-bottom: 1rem;
}
.policy-doc ul {
  margin: 0.5rem 0 1.25rem 0;
  padding-left: 0;
  list-style: none;
}
.policy-doc ul li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem; line-height: 1.7;
  color: var(--ink-70);
  margin-bottom: 0.4rem;
}
.policy-doc ul li::before {
  content: '';
  position: absolute; left: 0; top: 0.65rem;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--sage);
}
.policy-doc a {
  color: var(--ink); text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--ink-20);
  transition: text-decoration-color var(--t-fast);
}
.policy-doc a:hover { text-decoration-color: var(--ink); }
.policy-doc strong { color: var(--ink-90); font-weight: 600; }
.policy-doc .policy-table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: 0.92rem; line-height: 1.55;
}
.policy-doc .policy-table th,
.policy-doc .policy-table td {
  border: 1px solid var(--ink-10);
  padding: 0.65rem 0.85rem;
  text-align: left; vertical-align: top;
}
.policy-doc .policy-table th {
  background: var(--sage-light);
  font-weight: 600; color: var(--ink-90);
}
.policy-doc .policy-table tr:nth-child(even) td { background: rgba(0,0,0,0.015); }
@media (max-width: 600px) { .policy-doc .policy-table { font-size: 0.82rem; } .policy-doc .policy-table th, .policy-doc .policy-table td { padding: 0.5rem 0.55rem; } }


/* -------- Footer social icons ----------------------------------------- */
.footer-social {
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: 1px solid var(--ink-20);
  color: var(--ink-70);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.footer-social a:hover {
  color: var(--ink); border-color: var(--ink); background: var(--ink-05);
}
.footer-social svg { width: 16px; height: 16px; display: block; }

/* -------- Team profile social icons (email + LinkedIn) ---------------- */
.team-social {
  display: flex; align-items: center; gap: 0.55rem;
}
.team-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--ink-20);
  color: var(--ink-70);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.team-social-link:hover {
  color: var(--ink); border-color: var(--ink); background: var(--ink-05);
}
.team-social-link svg { width: 16px; height: 16px; display: block; }


/* -------- Article author bio card (E-E-A-T) --------------------------- */
.article-author-card {
  border-top: 1px solid var(--ink-10);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}
.article-author-card h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; }
.article-author-meta p { font-size: 0.92rem; }

/* -------- FAQ accordion (homepage + per-page) ------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--ink-10);
  border-radius: 6px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.faq-item[open] { border-color: var(--ink-20); box-shadow: var(--shadow-1); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--sage);
  transition: transform var(--t-fast) var(--ease);
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer {
  padding: 0 1.4rem 1.25rem;
}
.faq-answer p { font-size: 0.93rem; line-height: 1.7; color: var(--ink-70); margin: 0; }
.faq-answer a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-20); text-underline-offset: 2px; }

/* -------- Glossary ---------------------------------------------------- */
.glossary-index {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 1rem; margin-bottom: 2.5rem;
  border: 1px solid var(--ink-10); border-radius: 6px;
  background: var(--bg-2);
}
.glossary-index a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--bg); border: 1px solid var(--ink-10); border-radius: 4px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem;
  color: var(--ink-70);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-