/* ==========================================================================
   Wazir Solicitors & Co — Design System 2026
   One shared stylesheet. Vanilla CSS, no framework.
   Fonts: Newsreader + Hanken Grotesk (SIL OFL, self-hosted in fonts/wzr/)
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/wzr/newsreader-var.woff") format("woff");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/wzr/newsreader-italic.woff") format("woff");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/wzr/hanken-grotesk-var.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* colour — taken from the logo (#1860a8 banner blue, #104878 lettering) + the old site's gold (#b59154) */
  --ink-900: #0a2644;         /* deepest navy — utility bar, footer */
  --ink-800: #0f3560;         /* headings */
  --navy: #104878;            /* logo lettering blue */
  --blue: #1860a8;            /* logo banner blue — primary actions */
  --blue-700: #134f8c;
  --blue-50: #eaf1f9;
  --brass: #b59154;           /* old-site gold */
  --brass-700: #86662f;       /* text-safe gold on light surfaces */
  --brass-300: #dcc393;       /* gold on dark surfaces */
  --ivory: #f7f9fc;
  --paper: #ffffff;
  --tint: #f1f5fa;
  --stone: #e6edf6;
  --line: #dde5f0;
  --line-strong: #c3d1e3;
  --text: #16233a;
  --text-2: #44536b;
  --muted: #64738a;
  --on-dark: #f3f6fb;
  --on-dark-2: rgba(243, 246, 251, 0.74);
  --whatsapp: #25d366;

  /* typography */
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: clamp(1.25rem, 1.1rem + 0.45vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.1vw, 3.25rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 2.9vw, 4.125rem);
  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-body: 1.65;
  --tracking-caps: 0.16em;

  /* spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: clamp(4.5rem, 2.75rem + 6vw, 8.5rem);

  /* layout */
  --container: 1280px;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --measure: 66ch;

  /* shape & depth */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(10, 38, 68, 0.06);
  --shadow: 0 10px 30px -12px rgba(10, 38, 68, 0.18);
  --shadow-lg: 0 30px 60px -24px rgba(10, 38, 68, 0.28);

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 800ms;

  /* header */
  --utility-h: 40px;
  --mainbar-h: 84px;
  --mainbar-h-compact: 68px;
  --z-header: 100;
  --z-drawer: 1000;
  --z-float: 90;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--mainbar-h-compact) + 1rem);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--paper);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, picture, svg, iframe { display: block; max-width: 100%; }
.pp__img, .b-card__media picture, .about__frame picture { width: 100%; height: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink-800);
  line-height: var(--lh-snug);
  margin: 0;
  text-wrap: balance;
  font-variation-settings: "opsz" 72;
}
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.005em; font-variation-settings: "opsz" 36; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--blue-700); }
strong { font-weight: 600; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
dl, dd, figure, blockquote { margin: 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--ink-900); color: var(--on-dark);
  padding: 0.75rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; font-size: var(--fs-sm);
}
.skip-link:focus { top: 1rem; color: var(--on-dark); }

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

.icon {
  width: 1em; height: 1em;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--brass-700);
}
.eyebrow::before {
  content: "";
  width: 2rem; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--icon::before { display: none; }
.eyebrow--icon .icon { width: 1.125rem; height: 1.125rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  --btn-bd: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn .icon { width: 1.05rem; height: 1.05rem; transition: transform var(--dur) var(--ease); }
.btn:hover { color: var(--btn-fg); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary:hover { --btn-bg: var(--navy); --btn-bd: var(--navy); box-shadow: 0 8px 20px -10px rgba(10, 38, 68, 0.55); }
.btn--ghost, .btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink-800);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover, .btn--outline:hover { --btn-bd: var(--ink-800); --btn-bg: rgba(16, 72, 120, 0.04); }
.btn--ghost .icon[aria-hidden] { transform: none; }
.btn--sm { min-height: 2.75rem; padding: 0.6rem 1.15rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-800);
  letter-spacing: 0.01em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size var(--dur) var(--ease), color var(--dur-fast);
}
.link-arrow .icon { width: 1rem; height: 1rem; color: var(--brass-700); transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--blue); background-size: 100% 1px; }
.link-arrow:hover .icon { transform: translateX(4px); color: var(--blue); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: calc(var(--utility-h) * -1);
  z-index: var(--z-header);
  background: var(--paper);
}

/* utility bar */
.utility {
  height: var(--utility-h);
  background: var(--ink-900);
  color: var(--on-dark-2);
  font-size: var(--fs-xs);
  letter-spacing: 0.01em;
}
.utility__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.utility__info, .utility__actions { display: flex; align-items: center; gap: 1.75rem; height: 100%; }
.utility__info li, .utility__actions a { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.utility .icon { width: 0.9rem; height: 0.9rem; color: var(--brass-300); }
.utility a { color: var(--on-dark); }
.utility a:hover { color: var(--brass-300); }
.utility__appointment {
  padding-left: 1.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 600;
}
.utility__actions .lang-box {
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  min-width: 120px;
}
/* Google Translate gadget — quiet styling */
.lang-box .goog-te-gadget { font-size: 0 !important; color: transparent !important; line-height: 1; }
.lang-box .goog-te-gadget > span { display: none !important; }
.lang-box .goog-te-gadget select,
.lang-box .goog-te-combo {
  margin: 0 !important;
  font: 500 0.8125rem/1.2 var(--font-sans) !important;
  color: var(--on-dark) !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.4rem !important;
  max-width: 150px;
}
.lang-box .goog-te-combo option { color: var(--text); }

/* main bar */
.mainbar {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled .mainbar { box-shadow: 0 12px 30px -24px rgba(10, 38, 68, 0.45); }
.mainbar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--mainbar-h);
  transition: height var(--dur) var(--ease);
}
.site-header.is-scrolled .mainbar__inner { height: var(--mainbar-h-compact); }
.brand { display: block; flex: none; margin-right: auto; }
.brand img {
  width: auto;
  height: 56px;
  transition: height var(--dur) var(--ease);
}
.site-header.is-scrolled .brand img { height: 48px; }

.primary-nav { display: none; height: 100%; }
.nav-list { display: flex; align-items: stretch; height: 100%; }
.nav-item { position: relative; display: flex; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.95rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
  text-transform: uppercase;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.95rem; right: 0.95rem; bottom: -1px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--ink-900); }
.nav-link:hover::after,
.nav-item.is-open > .nav-link::after,
.nav-item.is-current > .nav-link::after { transform: scaleX(1); }
.nav-link .icon--chev { width: 0.85rem; height: 0.85rem; color: var(--muted); transition: transform var(--dur) var(--ease); }
.nav-item.is-open .icon--chev { transform: rotate(180deg); }

/* dropdown panels */
.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  min-width: 250px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.nav-panel { pointer-events: none; }
.nav-item.is-open > .nav-panel { pointer-events: auto; }
.nav-item.is-open > .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}
.nav-panel--end { left: auto; right: 0; }
.panel-list { padding: 0.75rem 0; }
.panel-list a {
  display: block;
  padding: 0.55rem 1.5rem;
  font-size: var(--fs-sm);
  color: var(--text-2);
  transition: color var(--dur-fast), background-color var(--dur-fast), padding var(--dur) var(--ease);
}
.panel-list a:hover, .panel-list a:focus-visible { color: var(--ink-900); background: var(--tint); padding-left: 1.75rem; }
.panel-list--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  padding: 1rem 0.5rem;
  width: max-content;
}
.panel-list--3 li:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); margin-bottom: 0.5rem; padding-bottom: 0.5rem; }
.panel-list--3 li:first-child a { font-family: var(--font-display); font-size: 1.125rem; color: var(--ink-800); }

.consult-btn { display: none; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.875rem; height: 2.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-800);
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.menu-toggle:hover { border-color: var(--ink-800); background: var(--tint); }
.menu-toggle .icon { width: 1.35rem; height: 1.35rem; }

/* ==========================================================================
   MOBILE DRAWER
   ========================================================================== */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); }
.drawer[hidden] { display: none; }
.drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 38, 68, 0.45);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  display: flex; flex-direction: column;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 420ms var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.drawer__logo img { height: 90px; width: auto; }
.drawer__close {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.drawer__close .icon { width: 1.25rem; height: 1.25rem; }
.side-menu { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0.5rem 1.25rem 1.5rem; }
.m-nav > li { border-bottom: 1px solid var(--line); }
.m-nav a, .m-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.6rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink-800);
  text-align: left;
}
.m-nav > li > a { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; }
.m-nav > li > .m-toggle { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; }
.m-toggle { gap: 1rem; }
.m-toggle .icon {
  flex: none;
  width: 1.75rem; height: 1.75rem;
  padding: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-800);
  transition: transform var(--dur) var(--ease), background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.m-toggle:hover .icon { border-color: var(--ink-800); }
.m-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); background: var(--navy); border-color: var(--navy); color: #fff; }
.m-sub--2 > .m-toggle .icon { width: 1.5rem; height: 1.5rem; padding: 0.32rem; }
.m-list { padding: 0 0 0.75rem; }
.m-list a { min-height: 2.75rem; font-size: 0.975rem; font-weight: 400; color: var(--text-2); padding-left: 0.25rem; }
.m-sub--2 > .m-toggle { min-height: 3rem; font-size: 0.975rem; font-weight: 600; color: var(--text); }
.m-sub--2 + .m-sub--2 { border-top: 1px dashed var(--line); }
.m-sub--2 .m-list { padding-left: 0.85rem; border-left: 1px solid var(--line); margin-left: 0.25rem; }
.m-nav a[aria-current="page"] { color: var(--brass-700); }
.drawer__foot { padding: 1.25rem; border-top: 1px solid var(--line); background: var(--ivory); }
.drawer__contact { margin: 1.1rem 0 1rem; display: grid; gap: 0.55rem; font-size: var(--fs-sm); color: var(--text-2); }
.drawer__contact li, .drawer__contact a { display: flex; align-items: center; gap: 0.6rem; color: var(--text-2); }
.drawer__contact .icon { color: var(--brass-700); }
.social-icons { display: flex; gap: 0.5rem; }
.social-icons a {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-800);
}
.social-icons a:hover { border-color: var(--ink-800); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); }
.section--stone { background: var(--stone); }

.section-head { margin-bottom: clamp(2.5rem, 1.8rem + 2.5vw, 4rem); }
.section-head h2 { max-width: 18ch; }
.section-head__lead {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: var(--fs-lg);
  color: var(--text-2);
}
.section-head--split { display: grid; gap: 1.25rem; }
.section-head--split .section-head__lead { margin-top: 0; }

/* ---------- Features ---------- */
.features__layout { display: grid; gap: 2.5rem; }
.features__grid { display: grid; grid-template-columns: 1fr; }
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature__icon { grid-row: span 2; width: 1.75rem; height: 1.75rem; color: var(--brass-700); margin-top: 0.2rem; }
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--text-2); }

/* ---------- Practice ---------- */
.practice__foot { margin-top: clamp(2rem, 1.5rem + 2vw, 3.25rem); display: flex; justify-content: center; }

/* ---------- About ---------- */
.about__grid { display: grid; gap: 3.5rem; align-items: center; }
.about__media { position: relative; padding: 0 1.25rem 1.25rem 0; }
.about__frame { position: relative; }
.about__frame::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  z-index: -1;
}
.about__frame img { width: 100%; border-radius: var(--radius); aspect-ratio: 757 / 690; object-fit: cover; }
.about__badge {
  position: absolute;
  left: -0.25rem;
  bottom: -0.25rem;
  display: grid;
  gap: 0.2rem;
  padding: 1.15rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about__badge-number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.about__badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.about__content h2 { margin-bottom: 1.5rem; max-width: 16ch; }
.about__content p { color: var(--text-2); max-width: var(--measure); }
.about__lead { font-size: var(--fs-lg); color: var(--text) !important; }
.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem 2rem;
  margin: 2rem 0 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.checklist li { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; color: var(--ink-800); }
.checklist .icon {
  width: 1.5rem; height: 1.5rem;
  padding: 0.3rem;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass-700);
}
.about__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.about__signature { height: 30px; width: auto; opacity: 0.75; }

/* ---------- Testimonials ---------- */
/* ---------- Why ---------- */
.why__grid { counter-reset: why; display: grid; gap: 0; }
.why__item {
  counter-increment: why;
  padding: 2rem 0;
  border-top: 1px solid var(--line-strong);
}
.why__item::before {
  content: counter(why, upper-roman) ".";
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brass-700);
  font-style: italic;
}
.why__item h3 { margin-bottom: 0.75rem; }
.why__item p { color: var(--text-2); font-size: 0.975rem; }

/* ---------- Blog ---------- */
.blog__grid { display: grid; gap: 1.75rem; }
.b-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.b-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); transform: translateY(-3px); }
.b-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); }
.b-card__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease); }
.b-card:hover .b-card__media::after { transform: scaleX(1); }
.b-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.b-card:hover .b-card__media img { transform: scale(1.04); }
.b-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.6rem 1.75rem; }
.b-card__body .link-arrow { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); width: 100%; background: none; }
.b-card__body .link-arrow:hover { background: none; }
.b-card__body h3 { margin-bottom: 0.75rem; line-height: 1.3; }
.b-card__body h3 a { color: var(--ink-800); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur) var(--ease), color var(--dur-fast); }
.b-card__body h3 a:hover { color: var(--blue); background-size: 100% 1px; }
.b-card__body p { flex: 1; color: var(--text-2); font-size: 0.975rem; margin-bottom: 1.25rem; }
.b-card__body .link-arrow { align-self: flex-start; }

/* ---------- CTA ---------- */
.cta-section { padding-bottom: calc(var(--section-y) * 0.5); }
.cta {
  position: relative;
  display: grid;
  overflow: hidden;
  background: var(--navy);
  background-image: radial-gradient(120% 140% at 100% 100%, rgba(29, 102, 168, 0.35) 0%, rgba(29, 102, 168, 0) 60%);
  color: var(--on-dark-2);
  border-radius: var(--radius-lg);
}
.cta {
  gap: 2rem;
  align-items: center;
  padding: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
}
.cta::before {
  content: "";
  position: absolute; top: 0; left: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
  width: 3.5rem; height: 3px;
  background: var(--brass);
}
.cta__content { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: 1rem; }
.cta p { font-size: var(--fs-lg); max-width: 36rem; margin-bottom: 0; }
.cta__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta .btn--primary { --btn-bg: var(--ivory); --btn-fg: var(--ink-900); --btn-bd: var(--ivory); }
.cta .btn--primary:hover { --btn-bg: #fff; --btn-bd: #fff; }
.cta .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.35); }
.cta .btn--ghost:hover { --btn-bd: #fff; --btn-bg: rgba(255, 255, 255, 0.06); }


/* ---------- Visit (info + map) ---------- */
.visit { padding-top: calc(var(--section-y) * 0.5); }
.visit__grid { display: grid; gap: 2.5rem; }
.visit__info { display: grid; align-content: center; }
.info-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.info-item:first-child { border-top: 1px solid var(--line); }
.info-item > .icon { width: 1.4rem; height: 1.4rem; color: var(--brass-700); margin-top: 0.3rem; }
.info-item h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.info-item p { color: var(--text-2); font-size: 0.975rem; }
.visit__map {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 340px;
  background: var(--stone);
}
.visit__map iframe { width: 100%; height: 100%; min-height: 340px; filter: grayscale(0.4) contrast(1.02); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink-900);
  color: var(--on-dark-2);
  font-size: var(--fs-sm);
  padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
}
.footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; padding-bottom: 3rem; }
.footer__col--about, .footer__col--contact { grid-column: 1 / -1; }
.site-footer h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1.25rem;
}
.site-footer p { line-height: 1.7; margin-bottom: 0.6rem; }
.site-footer strong { color: var(--on-dark); font-weight: 600; }
.site-footer ul { display: grid; gap: 0.6rem; }
.site-footer a { color: var(--on-dark-2); }
.site-footer a:hover { color: var(--brass-300); }
.footer__col--about p { max-width: 30rem; }
.social-links { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.social-links a {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--on-dark);
  transition: border-color var(--dur-fast), color var(--dur-fast), background-color var(--dur-fast);
}
.social-links a:hover { border-color: var(--brass-300); color: var(--brass-300); }
.social-links .icon { width: 1rem; height: 1rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 1.5rem; }
.copyright-text { margin: 0 !important; font-size: var(--fs-xs); letter-spacing: 0.02em; color: rgba(244, 241, 234, 0.55); }

/* ==========================================================================
   DISCLAIMER DIALOG
   ========================================================================== */
.disclaimer {
  width: min(720px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}
.disclaimer::backdrop { background: rgba(10, 38, 68, 0.55); backdrop-filter: blur(3px); }
.disclaimer[open] { animation: dialog-in 420ms var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
.disclaimer__body { padding: clamp(1.75rem, 1.2rem + 2vw, 3rem); border-top: 3px solid var(--brass); font-size: 0.975rem; color: var(--text-2); }
.disclaimer-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  line-height: 1.2;
  color: var(--ink-900);
  margin-bottom: 1.25rem !important;
}
.disclaimer ul { margin: 0 0 1.25rem; display: grid; gap: 0.75rem; }
.disclaimer li { position: relative; padding-left: 1.5rem; }
.disclaimer li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.6rem; height: 1px; background: var(--brass); }
.disclaimer__actions { display: flex; justify-content: flex-end; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.disclaimer__actions .btn { min-width: 10rem; letter-spacing: 0.12em; }

/* ==========================================================================
   MOTION: reveal on scroll
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 639.98px) {
  .utility__info, .utility__contact { display: none; }
  .utility__actions { width: 100%; justify-content: space-between; gap: 1rem; }
  .utility__appointment { padding-left: 0; border-left: 0; }
  .brand img { height: 46px; }
  .site-header.is-scrolled .brand img { height: 40px; }
  :root { --mainbar-h: 72px; --mainbar-h-compact: 62px; }
}

@media (min-width: 640px) {
  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
  .feature:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
  .blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .utility__contact { display: none; }
}
@media (min-width: 640px) and (max-width: 1119.98px) {
  .utility__info { display: none; }
  .utility__inner { justify-content: flex-end; }
}

@media (min-width: 900px) {
  .features__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
  .features .section-head { position: sticky; top: calc(var(--mainbar-h-compact) + 2.5rem); margin-bottom: 0; }
  .section-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 3rem; }
  .section-head--split .section-head__lead { justify-self: end; }
  .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3.5rem, 2rem + 4vw, 6.5rem); }
  .visit__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .cta { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }
  .cta__actions { flex-direction: column; align-items: stretch; min-width: 15rem; }
}

@media (min-width: 1024px) {
  .why__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2.25rem; }
  .blog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 3.5rem; }
  .footer__col--about, .footer__col--contact { grid-column: auto; }
}

/* desktop navigation */
@media (min-width: 1120px) {
  .primary-nav { display: block; }
  .menu-toggle { display: none; }
  .brand { margin-right: 0; }
  .primary-nav { margin-left: auto; }
  .consult-btn { display: inline-flex; margin-left: 0.75rem; }
}
@media (min-width: 1120px) and (max-width: 1279.98px) {
  .nav-link { padding: 0 0.7rem; }
  .nav-link::after { left: 0.7rem; right: 0.7rem; }
  .brand img { height: 50px; }
  .site-header.is-scrolled .brand img { height: 44px; }
}
@media (min-width: 1920px) {
  :root { --container: 1360px; }
}

/* ==========================================================================
   PRACTICE AREA — two-level dropdown (headings left, services right)
   ========================================================================== */
.nav-panel--flyout { left: auto; right: -1rem; padding: 0; }
.flyout {
  position: relative;
  width: min(680px, calc(100vw - 4rem));
  min-height: 25rem;
  padding: 0.75rem 0;
}
.flyout__group { width: 18rem; }
.flyout__heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.8rem 1.25rem 0.8rem 1.6rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  color: var(--text);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.flyout__heading::before {
  content: "";
  position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transition: transform var(--dur) var(--ease);
}
.flyout__heading .icon { width: 0.95rem; height: 0.95rem; color: var(--muted); transition: transform var(--dur) var(--ease), color var(--dur-fast); }
.flyout__group.is-active > .flyout__heading { background: var(--tint); color: var(--ink-900); font-weight: 600; }
.flyout__group.is-active > .flyout__heading::before { transform: scaleY(1); }
.flyout__group.is-active > .flyout__heading .icon { color: var(--blue); transform: translateX(3px); }
.flyout__links {
  position: absolute;
  top: 0; bottom: 0; left: 18rem; right: 0;
  padding: 1.1rem 1.25rem;
  border-left: 1px solid var(--line);
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur-fast);
}
.nav-item.is-open .flyout__group.is-active > .flyout__links,
html:not(.js) .nav-item:hover .flyout__group:hover > .flyout__links {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}
.flyout__links a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background-color var(--dur-fast), padding var(--dur) var(--ease);
}
.flyout__links a:hover, .flyout__links a:focus-visible { color: var(--ink-900); background: var(--tint); padding-left: 1.1rem; }

/* ==========================================================================
   TESTIMONIALS — auto-sliding carousel
   ========================================================================== */
.testimonials { background: var(--tint); }
.t-carousel { --per-view: 1; --t-gap: 1.25rem; }
.t-carousel__viewport { overflow: hidden; margin: -1rem; padding: 1rem; }
.t-carousel__track {
  display: flex;
  gap: var(--t-gap);
  transition: transform 800ms var(--ease-in-out);
  will-change: transform;
}
.t-carousel__track.no-anim { transition: none; }
.quote {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--t-gap)) / var(--per-view));
  display: flex; flex-direction: column;
  gap: 1.75rem;
  padding: 2.25rem 2rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.quote:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.quote__mark .icon { width: 2.25rem; height: 2.25rem; color: var(--brass); stroke-width: 1.25; }
.quote blockquote { flex: 1; }
.quote blockquote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-800);
}
.quote__author {
  display: flex; align-items: center; gap: 0.9rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.quote__author img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--brass);
}
.quote__author > span { display: grid; line-height: 1.35; }
.quote__author strong { font-size: var(--fs-sm); color: var(--ink-900); }
.quote__author strong + span { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.t-carousel__controls { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 2rem; }
.t-carousel__dots { display: flex; gap: 0.35rem; }
.t-dot { display: grid; align-items: center; width: 2.25rem; height: 2.75rem; }
.t-dot span { display: block; height: 2px; background: var(--line-strong); transition: background-color var(--dur) var(--ease); }
.t-dot[aria-current="true"] span { background: var(--brass); height: 3px; }
.t-carousel__arrows { display: flex; gap: 0.5rem; }
.round-btn {
  display: grid; place-items: center;
  width: 2.875rem; height: 2.875rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-800);
  background: var(--paper);
  transition: border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast);
}
.round-btn:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.round-btn .icon { width: 1.1rem; height: 1.1rem; }

/* ==========================================================================
   FLOATING ACTIONS
   ========================================================================== */
.sticky-icons { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: var(--z-float); transition: bottom var(--dur) var(--ease); display:none; }
.whatsapp-icon {
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(10, 38, 68, 0.5);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.whatsapp-icon:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(10, 38, 68, 0.55); }
.whatsapp-icon .icon { width: 1.55rem; height: 1.55rem; }

.scroll-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem;
  z-index: var(--z-float);
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink-800);
  box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), bottom var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.scroll-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), bottom var(--dur) var(--ease), visibility 0s; }
.scroll-to-top:hover { border-color: var(--ink-800); }
.scroll-to-top .icon { width: 1.1rem; height: 1.1rem; }

/* desktop rail */
.action-rail { display: none; }

/* mobile / tablet contact bar */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: var(--ink-800);
  box-shadow: 0 -10px 30px -12px rgba(10, 38, 68, 0.45);
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform 420ms var(--ease);
}
.mbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brass); }
.mbar.is-closed { transform: translateY(calc(100% + 1.5rem)); }
.mbar__nav { display: grid; grid-template-columns: repeat(4, 1fr); }
.mbar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.3rem;
  min-height: 4rem;
  padding: 0.55rem 0.25rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em;
  color: #fff;
}
.mbar__item + .mbar__item { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.mbar__item .icon { width: 1.35rem; height: 1.35rem; color: var(--brass-300); }
.mbar__item:hover, .mbar__item:active { color: #fff; background: rgba(255, 255, 255, 0.06); }
.mbar__close {
  position: absolute; right: 0.75rem; top: -1.1rem;
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-800);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.mbar__close .icon { width: 1rem; height: 1rem; }
.mbar__close::after { content: ""; position: absolute; inset: -0.5rem; } /* 48px touch area */

@media (max-width: 1023.98px) {
  body.has-mbar { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
  body.has-mbar .sticky-icons { bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
  body.has-mbar .scroll-to-top { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   NEW COMPONENTS — responsive
   ========================================================================== */
@media (max-width: 639.98px) {
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__actions .btn + .btn { margin-left: 0; }
  .hero__lead { font-size: var(--fs-base); }
  .t-carousel__controls { margin-top: 1.5rem; }
  .t-dot { width: 1.75rem; }
}
@media (max-width: 400px) {
  .t-dot { width: 1.2rem; }
  .t-carousel__dots { gap: 0.25rem; }
  .round-btn { width: 2.75rem; height: 2.75rem; }
}
@media (min-width: 700px) {
  .t-carousel { --per-view: 2; --t-gap: 1.5rem; }
}
@media (min-width: 1024px) {



  .mbar { display: none; }
  body.has-mbar { padding-bottom: 0; }
  .action-rail {
    position: fixed;
    right: 0; top: 50%;
    z-index: var(--z-float);
    display: flex; flex-direction: column;
    transform: translateY(-50%);
    box-shadow: 0 16px 40px -18px rgba(10, 38, 68, 0.55);
    border-radius: var(--radius) 0 0 var(--radius);
  }
  .action-rail__item {
    position: relative;
    display: grid; place-items: center;
    width: 3rem; height: 3rem;
    background: var(--blue);
    color: #fff;
    transition: background-color var(--dur-fast);
  }
  .action-rail__item:first-child { border-radius: var(--radius) 0 0 0; }
  .action-rail__item:last-child { border-radius: 0 0 0 var(--radius); }
  .action-rail__item + .action-rail__item { border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .action-rail__item .icon { width: 1.25rem; height: 1.25rem; }
  .action-rail__item:hover, .action-rail__item:focus-visible { background: var(--navy); color: #fff; }
  .action-rail__label {
    position: absolute;
    right: 100%; top: 0; bottom: 0;
    display: flex; align-items: center;
    padding: 0 1.1rem;
    white-space: nowrap;
    font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
    color: #fff;
    background: var(--navy);
    border-left: 3px solid var(--brass);
    border-radius: var(--radius) 0 0 var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
    pointer-events: none;
  }
  .action-rail__item:hover .action-rail__label,
  .action-rail__item:focus-visible .action-rail__label {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
  }
}
@media (min-width: 1100px) {
  .t-carousel { --per-view: 3; --t-gap: 1.75rem; }
}

/* ==========================================================================
   HERO — statement over the two-court background (New Delhi + London)
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.hero { position: relative; background: var(--ivory); overflow: hidden; isolation: isolate; }
.hero__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; animation: settle 2.8s var(--ease) both; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247, 249, 252, 0) 82%, var(--ivory) 100%); }
.hero__inner { position: relative; z-index: 1; }
.hero__content { padding-block: 1.75rem 2.5rem; }
.hero__content > * { animation: rise 800ms var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: 90ms; }
.hero__content > :nth-child(3) { animation-delay: 180ms; }
.hero__content > :nth-child(4) { animation-delay: 270ms; }
.hero__content > :nth-child(5) { animation-delay: 360ms; }
.hero h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.022em; color: var(--ink-800); margin-bottom: 1.5rem; }
.hero__lead { max-width: 36rem; font-size: var(--fs-lg); line-height: 1.6; color: var(--text-2); margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.hero__actions .btn + .btn { margin-left: -0.5rem; }
.hero__call { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: var(--fs-sm); color: var(--ink-800); font-variant-numeric: tabular-nums; }
.hero__call .icon { width: 2.5rem; height: 2.5rem; padding: 0.6rem; border-radius: 50%; background: var(--blue-50); color: var(--blue); transition: background-color var(--dur-fast), color var(--dur-fast); }
.hero__call:hover .icon { background: var(--blue); color: #fff; }
.hero__counsel { display: flex; align-items: center; gap: 1rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 36rem; }
.hero__counsel p { margin: 0; }
.hero__counsel-seal { flex: none; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--navy); color: var(--brass-300); box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px var(--brass); margin-left: 4px; }
.hero__counsel-seal .icon { width: 1.4rem; height: 1.4rem; }
.hero__counsel-kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-700); }
.hero__counsel-name { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; color: var(--ink-800); }
.hero__counsel-role { font-size: 0.875rem; color: var(--text-2); }
.hero__counsel-role span { color: var(--brass); padding-inline: 0.2rem; }

/* ==========================================================================
   AT A GLANCE — overlapping band
   ========================================================================== */
.creds { position: relative; z-index: 2; background: linear-gradient(180deg, var(--ivory) 50%, var(--paper) 50%); }
.creds__panel {
  position: relative; overflow: hidden;
  color: var(--on-dark);
  background: var(--ink-800);
  background-image:
    radial-gradient(80% 140% at 100% 0%, rgba(24, 96, 168, 0.5) 0%, rgba(24, 96, 168, 0) 60%),
    linear-gradient(135deg, var(--ink-900) 0%, var(--ink-800) 55%, var(--navy) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.creds__panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--brass), var(--brass-300), var(--brass)); }
.creds__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.creds__item { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.5rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.creds__item:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.1); }
.creds__item dd { margin: 0; }
.creds__label { order: 1; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-2); }
.creds__num { order: 0; font-family: var(--font-display); font-size: clamp(2.75rem, 2.1rem + 2.4vw, 4.25rem); line-height: 1; letter-spacing: -0.03em; color: var(--brass-300); font-variant-numeric: lining-nums tabular-nums; }
.creds__note { order: 2; font-size: 0.875rem; line-height: 1.5; color: rgba(243, 246, 251, 0.62); }
.creds__offices { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0; padding: 1.1rem 1.25rem; font-size: 0.875rem; color: var(--on-dark-2); }
.creds__offices strong { color: #fff; font-weight: 600; }
.creds__offices .icon { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; color: var(--brass-300); }

/* ==========================================================================
   PRACTICE — expanding panel deck
   ========================================================================== */
.practice { background: var(--paper); }
.pp-deck { display: grid; gap: 1rem; }
.pp__link {
  position: relative; display: block;
  min-height: 17rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff;
  background: var(--ink-800);
  isolation: isolate;
}
.pp__img { position: absolute; inset: 0; z-index: -2; }
.pp__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pp__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 38, 68, 0.35) 0%, rgba(10, 38, 68, 0.78) 38%, rgba(10, 38, 68, 0.96) 100%); transition: background-color 600ms var(--ease); }
.pp__num { position: absolute; top: 1.1rem; left: 1.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; color: var(--brass-300); font-variant-numeric: tabular-nums; }
.pp__spine { display: none; }
.pp__content { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 0.5rem; padding: 1.5rem 1.25rem 1.4rem; }
.pp__title { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 2rem); line-height: 1.15; color: #fff; }
.pp__desc { font-size: 0.9375rem; line-height: 1.55; color: rgba(243, 246, 251, 0.85); }
.pp__more { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 0.35rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-300); }
.pp__more .icon { width: 1rem; height: 1rem; transition: transform var(--dur) var(--ease); }
.pp__link:hover .pp__more .icon, .pp__link:focus-visible .pp__more .icon { transform: translateX(4px); }
.pp__link:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.practice__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2rem; }
.practice__hint { display: none; }

@media (min-width: 640px) and (max-width: 1023.98px) {
  .pp-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp:first-child { grid-column: 1 / -1; }
  .pp__link { min-height: 19rem; }
}
@media (min-width: 1024px) {
  .pp-deck { display: flex; gap: 0.5rem; height: clamp(30rem, 26rem + 8vw, 36rem); }
  .pp { flex: 1 1 0; min-width: 0; transition: flex-grow 750ms var(--ease-in-out); }
  .pp.is-active { flex-grow: 7; }
  .pp__link { height: 100%; min-height: 0; }
  .pp__shade { background: rgba(10, 38, 68, 0.82); }
  .pp.is-active .pp__shade { background: linear-gradient(180deg, rgba(10, 38, 68, 0.05) 0%, rgba(10, 38, 68, 0.35) 45%, rgba(10, 38, 68, 0.92) 100%); }
  .pp.is-active .pp__img img { transform: scale(1.03); }
  .pp__num { left: 50%; transform: translateX(-50%); top: 1.35rem; transition: left 600ms var(--ease), transform 600ms var(--ease); }
  .pp.is-active .pp__num { left: 1.75rem; transform: none; }
  .pp__spine {
    display: block;
    position: absolute; left: 50%; bottom: 1.5rem;
    transform: translateX(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    max-height: calc(100% - 5rem);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.01em;
    color: #fff;
    transition: opacity 300ms var(--ease);
  }
  .pp.is-active .pp__spine { opacity: 0; }
  .pp__content {
    width: 30rem; max-width: calc(100% - 1rem);
    padding: 2rem 2rem 2rem 1.75rem;
    opacity: 0; transform: translateY(14px);
    transition: opacity 300ms var(--ease), transform 300ms var(--ease);
    pointer-events: none;
  }
  .pp.is-active .pp__content { opacity: 1; transform: none; transition: opacity 500ms var(--ease) 280ms, transform 600ms var(--ease) 280ms; }
  .pp__content::before { content: ""; display: block; width: 3rem; height: 3px; margin-bottom: 0.75rem; background: var(--brass); }
  .pp:not(.is-active) .pp__link:hover .pp__shade { background: rgba(10, 38, 68, 0.68); }
  .practice__hint { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.875rem; color: var(--muted); }
  .practice__hint .icon { width: 1rem; height: 1rem; color: var(--brass-700); }
}

/* ==========================================================================
   QUALIFICATIONS — milestones + certification strip
   ========================================================================== */
.quals-section { background: var(--tint); }
.milestones { position: relative; display: grid; gap: 0; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.milestones::before { content: ""; position: absolute; left: 0.45rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: linear-gradient(180deg, var(--brass), var(--brass-300)); }
.ms { position: relative; display: grid; grid-template-columns: 1fr; align-content: start; padding: 0 0 1.75rem 2.25rem; }
.ms:last-child { padding-bottom: 0; }
.ms__node { position: absolute; left: 0; top: 0.45rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--brass); box-shadow: 0 0 0 4px var(--tint); }
.ms__year { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--ink-800); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.ms__title { margin-top: 0.6rem; font-size: 1.2rem; line-height: 1.3; color: var(--ink-800); }
.ms__detail { margin: 0.35rem 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--text-2); }

.cert-strip {
  display: grid; gap: 1.25rem;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.cert-strip__media { margin: 0; }
.cert-strip__media img { width: 100%; border-radius: var(--radius); }
.cert-strip .eyebrow { margin-bottom: 0.6rem; }
.cert-strip__title { font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.9rem); margin-bottom: 0.6rem; }
.cert-strip__body > p:not(.eyebrow) { font-size: 0.9375rem; color: var(--text-2); }
.cert-strip__body strong { color: var(--ink-900); }
.cert-strip__meta { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; font-size: 0.875rem; font-weight: 600; color: var(--ink-800); }
.cert-strip__meta li { display: inline-flex; align-items: center; gap: 0.55rem; }
.cert-strip__meta .icon { width: 1.1rem; height: 1.1rem; color: var(--brass-700); }

@media (min-width: 900px) {
  .milestones { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem; }
  .milestones::before { left: 0; right: 0; top: calc(2.75rem + 0.875rem + 0.5rem - 1px); bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--brass), var(--brass-300) 50%, var(--brass)); }
  .ms { padding: 0; }
  .ms__node { position: static; margin: 0.875rem 0 0; order: 1; }
  .ms__year { order: 0; font-size: 2.75rem; height: 2.75rem; }
  .ms__title { order: 2; margin-top: 1.25rem; }
  .ms__detail { order: 3; }
  .cert-strip { grid-template-columns: 15rem minmax(0, 1fr) auto; align-items: center; gap: 2.25rem; padding: 1.5rem 2rem 1.5rem 1.5rem; margin-top:100px; }
  .cert-strip__meta { flex-direction: column; gap: 0.85rem; padding-left: 2rem; border-left: 1px solid var(--line); }
}

/* ==========================================================================
   Page-level responsive for hero / band / rail
   ========================================================================== */
@media (max-width: 639.98px) {
  .creds__item { padding: 1.25rem 1rem; }
  .creds__offices { padding: 1rem; }
}
@media (min-width: 640px) and (max-width: 899.98px) {
  .hero__media { aspect-ratio: auto; height: min(52vw, 400px); }
}
@media (min-width: 900px) {
  .hero__media {
    position: absolute; inset: 0 0 0 auto; width: 62%; aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 14%, rgba(0, 0, 0, 0.92) 28%, #000 36%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 14%, rgba(0, 0, 0, 0.92) 28%, #000 36%);
  }
  .hero__media img { object-position: 40% 50%; }
  .hero__media::after { background: linear-gradient(0deg, var(--ivory) 0%, rgba(247, 249, 252, 0) 26%); }
  .hero__inner { display: flex; align-items: center; min-height: clamp(580px, calc(100vh - var(--mainbar-h) - var(--utility-h) - 20px), 740px); padding-bottom: 5rem; }
  .hero__content { max-width: 48rem; padding-block: 3.25rem 2rem; }
  .creds { margin-top: -4.5rem; background: linear-gradient(180deg, transparent 50%, var(--paper) 50%); }
}
@media (min-width: 1024px) {
  .creds__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .creds__item { padding: 2rem 2rem 1.75rem; border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, 0.1); }
  .creds__item:last-child { border-right: 0; }
  .creds__offices { justify-content: center; padding: 1rem 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  /* quick-action rail on the LEFT edge */
  .action-rail--left { left: 0; right: auto; border-radius: 0 var(--radius) var(--radius) 0; }
  .action-rail--left .action-rail__item:first-child { border-radius: 0 var(--radius) 0 0; }
  .action-rail--left .action-rail__item:last-child { border-radius: 0 0 var(--radius) 0; }
  .action-rail--left .action-rail__label {
    left: 100%; right: auto;
    border-left: 0; border-right: 3px solid var(--brass);
    border-radius: 0 var(--radius) var(--radius) 0;
    transform: translateX(-10px);
  }
}
@media (min-width: 1440px) {
  .hero__media { width: 60%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__content > *, .hero__media img { animation: none !important; }
}


/* ==========================================================================
   INTERNAL PAGES — components built on the locked design system
   (page hero, content layout, prose, sidebar, contact strip, legacy content)
   ========================================================================== */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(60% 120% at 100% 0%, rgba(24, 96, 168, 0.08) 0%, rgba(24, 96, 168, 0) 70%), var(--ivory);
  border-bottom: 1px solid var(--line);
}
.page-hero__media { display: none; }
.page-hero__inner { position: relative; z-index: 1; padding-block: 2.25rem 2.5rem; }
.page-hero h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-800);
  animation: rise 700ms var(--ease) both;
}
.page-hero__sub {
  max-width: 44rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
  line-height: 1.45;
  color: var(--text-2);
  animation: rise 700ms var(--ease) 120ms both;
}
.crumbs { margin-bottom: 1.1rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; }
.crumbs li { display: inline-flex; align-items: center; color: var(--muted); }
.crumbs li + li::before { content: ""; width: 0.35rem; height: 0.35rem; margin: 0 0.7rem; border-top: 1.5px solid var(--brass); border-right: 1.5px solid var(--brass); transform: rotate(45deg); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--blue); }
.crumbs li[aria-current] { color: var(--ink-800); font-weight: 600; }
@media (min-width: 900px) {
  .page-hero__media {
    display: block;
    position: absolute; inset: 0 0 0 auto; width: 52%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 35%, #000 70%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 35%, #000 70%);
    opacity: 0.55;
  }
  .page-hero__media picture, .page-hero__media img { width: 100%; height: 100%; }
  .page-hero__media img { object-fit: cover; object-position: 45% 70%; }
  .page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ivory) 0%, rgba(247, 249, 252, 0.2) 60%); }
  .page-hero__inner { padding-block: 3.5rem 3.75rem; min-height: 17rem; display: flex; flex-direction: column; justify-content: center; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* print */
@media print {
  .utility, .primary-nav, .menu-toggle, .consult-btn, .drawer, .action-rail, .mbar,
  .sticky-icons, .scroll-to-top, .visit__map, .disclaimer { display: none !important; }
  .site-header { position: static; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
