:root {
  --night: #0D141C;
  --navy: #1C2B3A;
  --ink: #24384C;
  --cream: #F1EBDD;
  --paper: #E6DDC8;
  --gilt: #B08D57;
  --seal: #7B1E1E;
  --muted: rgba(241, 235, 221, 0.68);
  --line: rgba(241, 235, 221, 0.16);
  --gilt-line: rgba(176, 141, 87, 0.36);
  --font-display: 'Amiri', Georgia, serif;
  --font-roman: 'Cinzel', Georgia, serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.72;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; letter-spacing: 0; }

.bidi {
  display: inline-block;
  unicode-bidi: isolate;
}

.av-container {
  width: min(1240px, calc(100% - 44px));
  margin-inline: auto;
}

/* Symmetrical 3-Column Chambers Navbar */
.av-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 80;
  background: rgba(13, 20, 28, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gilt-line);
}

.av-nav-bar {
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.av-nav-side {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  font-size: 13.5px;
}

.av-nav-end {
  justify-content: flex-end;
}

.av-nav-side a:not(.av-btn) {
  color: rgba(241, 235, 221, 0.82);
  position: relative;
  padding: 4px 0;
}

.av-nav-side a:not(.av-btn):hover { color: var(--gilt); }

.av-crest {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.av-monogram {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gilt);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gilt);
}

.av-brand-txt {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0;
}

.av-brand-en {
  font-family: var(--font-roman);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gilt);
  margin-inline-start: 6px;
}

/* Double-Inset Gilt Buttons */
.av-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 2px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: background 0.3s, color 0.3s, transform 0.15s;
  white-space: nowrap;
}

.av-btn::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid currentColor;
  opacity: 0.45;
  transition: inset 0.3s var(--ease), opacity 0.3s;
  pointer-events: none;
}

.av-btn:hover::after {
  inset: 5px;
  opacity: 0.85;
}

.av-btn-gilt {
  background: var(--gilt);
  color: var(--night);
}

.av-btn-line {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(241, 235, 221, 0.48);
  color: var(--cream);
}

.av-btn-book {
  padding: 9px 16px;
  font-size: 12.5px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--gilt);
  color: var(--gilt);
}

/* 1. Wax Rosette Seal Hero with Raking Tungsten Light */
.av-hero {
  position: relative;
  min-height: 100svh;
  padding: 102px 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}

.av-seal-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  filter: brightness(0.72) contrast(1.06);
}

.av-raking-light {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(460px circle at var(--lx, 50%) var(--ly, 50%), rgba(255, 226, 173, 0.28), rgba(13, 20, 28, 0.62) 68%),
    linear-gradient(to top, rgba(13, 20, 28, 0.92) 0%, rgba(13, 20, 28, 0.25) 38%, rgba(13, 20, 28, 0.45) 100%);
}

.av-hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.av-timecode-tag {
  padding: 7px 14px;
  background: rgba(13, 20, 28, 0.86);
  border: 1px solid var(--gilt-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cream);
}

.av-hero-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-block: auto;
  padding-block: 24px;
}

.av-chambers-card {
  max-width: 560px;
  padding: 34px 36px;
  background: rgba(13, 20, 28, 0.84);
  border: 1px solid var(--gilt-line);
  box-shadow: inset 0 0 0 4px rgba(13, 20, 28, 0.7), inset 0 0 0 5px rgba(176, 141, 87, 0.22), 0 28px 64px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.av-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-roman);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gilt);
  margin-bottom: 16px;
}

.av-kicker::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gilt);
}

.av-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.1vw, 3.6rem);
  font-weight: 400;
  line-height: 1.32;
  margin-bottom: 14px;
}

.av-h1 em,
.av-h2 em {
  font-style: italic;
  color: var(--gilt);
}

.av-lead {
  color: rgba(241, 235, 221, 0.84);
  font-size: 15.5px;
  margin-bottom: 24px;
}

.av-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Opposite Vertical 3-Chapter Rail */
.av-chapter-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.av-rail-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(13, 20, 28, 0.82);
  border: 1px solid var(--line);
  border-inline-end: 3px solid rgba(176, 141, 87, 0.3);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.25s;
}

.av-rail-btn.active {
  border-color: var(--gilt);
  border-inline-end-color: var(--gilt);
  color: var(--gilt);
}

/* Bottom Chambers Status Strip */
.av-status-bar {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--gilt-line);
  font-size: 12.5px;
  color: var(--muted);
}

.av-status-bar strong {
  color: var(--cream);
  margin-inline-start: 6px;
}

/* Common Sections */
.av-sec {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.av-sec-paper {
  background: var(--paper);
  color: var(--night);
}

.av-h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  font-weight: 400;
  line-height: 1.32;
  margin-bottom: 16px;
}

/* 2. Practice Areas (Parchment Contrast Band) */
.av-prac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.av-prac-card {
  padding: 28px;
  background: #EFE7D6;
  border: 1px solid rgba(13, 20, 28, 0.16);
  transition: border-color 0.25s, transform 0.25s;
}

.av-prac-card:hover {
  border-color: var(--seal);
  transform: translateY(-3px);
}

.av-prac-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.32;
  margin: 10px 0 8px;
}

/* 3. Filterable Results Ledger (Matching Reference 1:1) */
.av-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gilt);
  margin-top: 28px;
}

.av-filter-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.av-filter-btn.active {
  background: var(--gilt);
  color: var(--night);
  border-color: var(--gilt);
  font-weight: 700;
}

.av-ledger-row {
  display: grid;
  grid-template-columns: 76px 150px 1fr auto;
  gap: 22px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.av-ledger-yr {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gilt);
}

.av-ledger-cat {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
}

.av-ledger-outcome {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--cream);
  text-align: end;
  white-space: nowrap;
}

/* 4. Named Partners (01..06) */
.av-people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.av-person-card {
  padding: 24px;
  background: var(--navy);
  border: 1px solid var(--line);
}

/* 5. Fixed-Fee Consultation + Tribunal Team Estimator */
.av-fees-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 32px;
}

.av-consult-card {
  padding: 34px;
  background: linear-gradient(160deg, var(--navy), var(--night));
  border: 1px solid var(--gilt);
  box-shadow: inset 0 0 0 4px var(--night), inset 0 0 0 5px var(--gilt-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.av-est-card {
  padding: 32px;
  background: var(--navy);
  border: 1px solid var(--line);
}

/* 6. FAQ */
.av-faq {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.av-faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.32;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.av-faq p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 15px;
}

/* Footer */
.av-footer {
  background: #080D13;
  border-top: 1px solid var(--gilt-line);
  padding: 56px 0 40px;
}

.av-showcase-rail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .av-nav-side a:not(.av-btn) { display: none; }
  .av-hero-mid { flex-direction: column; align-items: stretch; }
  .av-chapter-rail { flex-direction: row; flex-wrap: wrap; }
  .av-status-bar,
  .av-prac-grid,
  .av-people-grid,
  .av-fees-split,
  .av-ledger-row { grid-template-columns: 1fr; }
  .av-ledger-outcome { text-align: start; }
}
