:root {
  color-scheme: light;
  --ink: #121212;
  --ink-soft: #3e3a35;
  --paper: #f6f0e8;
  --paper-strong: #fffaf2;
  --line: rgba(24, 20, 17, 0.14);
  --charcoal: #171717;
  --charcoal-2: #27231f;
  --oxblood: #6f2026;
  --brass: #b58a4a;
  --sage: #63705d;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(18, 18, 18, 0.16);
  --max: 1180px;
  --radius: 8px;
  font-family:
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  background: var(--white);
  color: var(--ink);
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: -4rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  left: 0;
  padding: 18px clamp(18px, 4vw, 48px);
  position: fixed;
  right: 0;
  top: 0;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    padding 180ms ease;
  z-index: 50;
}

.site-header.is-scrolled {
  background: rgba(18, 18, 18, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  padding-bottom: 12px;
  padding-top: 12px;
  backdrop-filter: blur(18px);
}

.nav-shell {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
}

.brand {
  align-items: center;
  color: var(--white);
  display: flex;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  color: var(--brass);
  display: grid;
  flex: 0 0 42px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  height: 42px;
  place-items: center;
  width: 42px;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
}

.brand-copy span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  margin-top: 4px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(14px, 2vw, 26px);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.36);
  padding: 0.62rem 0.95rem;
}

.nav-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: none;
  height: 42px;
  padding: 9px;
  width: 42px;
}

.nav-toggle span {
  background: var(--white);
  display: block;
  height: 2px;
  margin: 5px 0;
  width: 100%;
}

.hero {
  background:
    linear-gradient(90deg, rgba(12, 12, 12, 0.92) 0%, rgba(14, 14, 14, 0.72) 34%, rgba(14, 14, 14, 0.26) 72%),
    url("assets/hero-legal-office.png") center / cover no-repeat;
  color: var(--white);
  display: grid;
  min-height: 88svh;
  overflow: hidden;
  padding: clamp(118px, 16vh, 172px) clamp(20px, 5vw, 64px) clamp(54px, 9vh, 82px);
  position: relative;
}

.hero::after {
  background: linear-gradient(0deg, rgba(111, 32, 38, 0.18), transparent 44%);
  bottom: 0;
  content: "";
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}

.hero-content {
  align-self: end;
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  font-size: clamp(3.15rem, 10vw, 8.2rem);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.25rem);
  margin-bottom: 22px;
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.22;
  margin-bottom: 12px;
}

.hero-lede {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2.2vw, 1.38rem);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 42px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.08rem;
  text-align: center;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brass);
  color: #17120b;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #d1ad6a;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.signal-row {
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  max-width: 700px;
  padding-top: 22px;
}

.signal-row div {
  min-width: 0;
}

.signal-row dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  margin-bottom: 2px;
}

.signal-row dd {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  margin: 0;
}

.proof-band,
.section,
.method-band,
.team-section,
.presence-section,
.contact-section {
  padding: clamp(70px, 9vw, 124px) clamp(20px, 5vw, 64px);
}

.proof-band {
  background: var(--paper-strong);
}

.proof-grid,
.method-grid,
.presence-grid,
.contact-grid {
  display: grid;
  gap: clamp(28px, 5vw, 74px);
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
  margin: 0 auto;
  max-width: var(--max);
}

.proof-copy p,
.section-head p,
.method-copy p,
.presence-copy p,
.contact-copy p {
  color: var(--ink-soft);
  font-size: 1.04rem;
  max-width: 700px;
}

.award-panel {
  align-self: center;
  background: #191614;
  color: var(--white);
  display: grid;
  gap: 22px;
  grid-template-columns: 124px minmax(0, 1fr);
  padding: clamp(22px, 4vw, 34px);
}

.award-panel img {
  height: auto;
  width: 124px;
}

.award-panel strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.18;
  margin-bottom: 10px;
}

.award-panel span {
  color: rgba(255, 255, 255, 0.74);
}

.section {
  background: var(--paper);
}

.section-head {
  margin: 0 auto clamp(34px, 5vw, 62px);
  max-width: var(--max);
}

.service-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--max);
}

.service-panel {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  min-height: 100%;
  padding: 28px;
}

.service-index {
  color: var(--oxblood);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.service-panel p,
.service-panel li,
.engagement-item p,
.team-card p,
.office-card p {
  color: var(--ink-soft);
}

.service-panel ul {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
}

.service-panel li {
  padding-left: 18px;
  position: relative;
}

.service-panel li + li {
  margin-top: 8px;
}

.service-panel li::before {
  background: var(--brass);
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  top: 0.75em;
  width: 6px;
}

.practice-strip,
.presence-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.practice-strip {
  margin: 32px auto 0;
  max-width: var(--max);
}

.practice-strip span,
.presence-pills span {
  background: rgba(99, 112, 93, 0.13);
  border: 1px solid rgba(99, 112, 93, 0.22);
  color: #3c4737;
  font-size: 0.92rem;
  padding: 0.58rem 0.72rem;
}

.method-band {
  background: var(--charcoal);
  color: var(--white);
}

.method-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.text-link {
  border-bottom: 1px solid var(--brass);
  color: var(--brass);
  display: inline-flex;
  font-weight: 700;
  margin-top: 14px;
  padding-bottom: 4px;
}

.method-steps {
  display: grid;
  gap: 1px;
}

.method-steps div {
  background: rgba(255, 255, 255, 0.07);
  padding: 24px;
}

.method-steps span {
  color: var(--brass);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  margin-bottom: 7px;
}

.method-steps p,
.legal-intel li {
  color: rgba(255, 255, 255, 0.74);
  margin: 0;
}

.legal-intel {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  margin: clamp(54px, 7vw, 86px) auto 0;
  max-width: var(--max);
  padding-top: 36px;
}

.legal-intel h3 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin-bottom: 0;
}

.legal-intel ul {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-intel li {
  border-left: 3px solid var(--brass);
  padding: 4px 0 4px 16px;
}

.engagement-list {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--max);
}

.engagement-item {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  padding: 26px;
}

.team-section {
  background: #ebe3d6;
}

.team-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--max);
}

.team-card {
  background: var(--paper-strong);
  display: grid;
  gap: 22px;
  grid-template-columns: 132px minmax(0, 1fr);
  padding: 22px;
}

.team-card img {
  aspect-ratio: 1;
  filter: saturate(0.92);
  height: auto;
  object-fit: cover;
  width: 132px;
}

.team-card h3 {
  margin-bottom: 4px;
}

.role {
  color: var(--oxblood) !important;
  font-weight: 700;
  margin-bottom: 12px;
}

.team-card a,
.office-card a,
.contact-lines a {
  color: var(--oxblood);
  font-weight: 700;
}

.presence-section {
  background: var(--paper-strong);
}

.office-list {
  display: grid;
  gap: 14px;
}

.office-card {
  border-left: 4px solid var(--brass);
  background: var(--white);
  padding: 24px;
}

.contact-section {
  background: linear-gradient(135deg, #1a1918 0%, #2d201f 48%, #56312e 100%);
  color: var(--white);
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-lines {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.contact-lines li + li {
  margin-top: 10px;
}

.contact-lines a {
  color: #f1c879;
}

.enquiry-form {
  background: var(--paper-strong);
  color: var(--ink);
  padding: clamp(22px, 4vw, 34px);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-row.split {
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  background: #fffdf8;
  border: 1px solid rgba(18, 18, 18, 0.18);
  color: var(--ink);
  min-height: 48px;
  padding: 0.74rem 0.82rem;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(181, 138, 74, 0.45);
  outline-offset: 3px;
}

.submit-button {
  width: 100%;
}

.form-status {
  color: var(--sage);
  font-weight: 700;
  margin: 14px 0 0;
  min-height: 1.4em;
}

.site-footer {
  align-items: start;
  background: #101010;
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(200px, 0.8fr) minmax(260px, 1.2fr) auto;
  padding: 34px clamp(20px, 5vw, 64px);
}

.site-footer strong {
  color: var(--white);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.site-footer p {
  margin: 0;
  max-width: 720px;
}

.avl-wa-widget,
.avl-wa-widget *,
.avl-wa-widget *::before,
.avl-wa-widget *::after {
  box-sizing: border-box;
}

.avl-wa-widget {
  bottom: 24px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  position: fixed;
  right: 24px;
  z-index: 2147483000;
}

.avl-wa-float {
  align-items: center;
  background: #1f8f55;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(12, 31, 22, 0.28);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 2rem;
  height: 62px;
  justify-content: center;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  width: 62px;
}

.avl-wa-float:hover,
.avl-wa-float:focus-visible {
  background: #167a46;
  box-shadow: 0 22px 52px rgba(12, 31, 22, 0.34);
  transform: translateY(-2px);
}

.avl-wa-icon {
  display: block;
  fill: currentColor;
  height: 1em;
  width: 1em;
}

.avl-wa-float .fa-whatsapp,
.avl-wa-chat .fa-whatsapp {
  display: none;
}

.avl-wa-popup {
  background: #fffdf8;
  border: 1px solid rgba(18, 18, 18, 0.1);
  bottom: 78px;
  box-shadow: 0 24px 70px rgba(18, 18, 18, 0.22);
  color: #171717;
  max-width: calc(100vw - 32px);
  opacity: 0;
  padding: 18px;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateY(16px) scale(0.98);
  transform-origin: bottom right;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
  visibility: hidden;
  width: 360px;
}

.avl-wa-widget.is-open .avl-wa-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.avl-wa-popup__head {
  align-items: flex-start;
  border-bottom: 1px solid rgba(18, 18, 18, 0.1);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.avl-wa-popup__eyebrow {
  color: #8a672e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.avl-wa-popup h2,
.avl-wa-popup h3,
.avl-wa-popup p {
  margin-top: 0;
}

.avl-wa-popup h2 {
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.15;
  margin-bottom: 0;
}

.avl-wa-close {
  align-items: center;
  background: #f4eee5;
  border: 1px solid rgba(18, 18, 18, 0.1);
  color: #3e3a35;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 1.35rem;
  height: 34px;
  justify-content: center;
  line-height: 1;
  transition:
    background 160ms ease,
    color 160ms ease;
  width: 34px;
}

.avl-wa-close:hover,
.avl-wa-close:focus-visible {
  background: #6f2026;
  color: #ffffff;
}

.avl-wa-options {
  display: grid;
  gap: 12px;
}

.avl-wa-option {
  background: #ffffff;
  border: 1px solid rgba(18, 18, 18, 0.1);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.avl-wa-option h3 {
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 4px;
}

.avl-wa-option p {
  color: #514b44;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 0;
}

.avl-wa-chat {
  align-items: center;
  background: #1f8f55;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 0.68rem 0.9rem;
  text-align: center;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.avl-wa-chat:hover,
.avl-wa-chat:focus-visible {
  background: #167a46;
  transform: translateY(-1px);
}

.avl-wa-float:focus-visible,
.avl-wa-close:focus-visible,
.avl-wa-chat:focus-visible {
  outline: 3px solid rgba(181, 138, 74, 0.45);
  outline-offset: 3px;
}

.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

html.js-enabled .reveal {
  opacity: 0.92;
  transform: translateY(10px);
}

html.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .service-grid,
  .engagement-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engagement-list .engagement-item:last-child {
    grid-column: 1 / -1;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .site-header {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    background: rgba(18, 18, 18, 0.97);
    display: grid;
    gap: 0;
    left: 18px;
    padding: 16px;
    position: fixed;
    right: 18px;
    top: 74px;
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 8px;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .brand-copy span {
    display: none;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(12, 12, 12, 0.94) 0%, rgba(14, 14, 14, 0.76) 56%, rgba(14, 14, 14, 0.52) 100%),
      url("assets/hero-legal-office.png") 62% center / cover no-repeat;
    min-height: 86svh;
  }

  .proof-grid,
  .method-grid,
  .presence-grid,
  .contact-grid,
  .legal-intel {
    grid-template-columns: 1fr;
  }

  .legal-intel ul {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .avl-wa-widget {
    bottom: 16px;
    right: 16px;
  }

  .avl-wa-float {
    font-size: 1.8rem;
    height: 56px;
    width: 56px;
  }

  .avl-wa-popup {
    bottom: 70px;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    padding: 16px;
    width: calc(100vw - 32px);
  }

  .hero {
    padding-bottom: 44px;
  }

  .hero-actions {
    display: grid;
  }

  .signal-row {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .engagement-list {
    grid-template-columns: 1fr;
  }

  .engagement-list .engagement-item:last-child {
    grid-column: auto;
  }

  .award-panel,
  .team-card {
    grid-template-columns: 1fr;
  }

  .award-panel img,
  .team-card img {
    width: 118px;
  }

  .form-row.split {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  html.js-enabled .reveal,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
