/* ==========================================================================
   DW Attorneys — De Wet Wepener Inc.
   Design tokens → base → components. No framework, no build step.
   Palette is drawn from the firm's own mark: deep navy + brushed silver,
   warmed with a restrained bronze so the page doesn't read cold.
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #050f2e;
  --navy-800: #081538;
  --navy-700: #0b1b44;
  --navy-600: #14275c;
  --navy-500: #1e3572;

  /* Neutrals — warm, so the navy feels considered rather than corporate */
  --paper:    #ffffff;
  --paper-2:  #faf8f4;
  --paper-3:  #f2efe8;
  --line:     #e5e0d6;
  --line-soft:#efebe3;

  --ink:      #14161c;
  --body:     #4b5160;
  --muted:    #7a8090;

  /* Accent */
  --bronze:       #9a7b43;
  --bronze-lt:    #b8965c;
  --bronze-light: #d8c39a;

  --radius: 3px;
  --shell: 1180px;

  --step: clamp(4.5rem, 9vw, 7.5rem);   /* section rhythm */
  --gap:  clamp(1.5rem, 3vw, 2.5rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 1.0625rem/1.75 "Muli", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: "Spectral", ui-serif, Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-weight: 400;
  margin: 0 0 .6em;
  letter-spacing: -.015em;
  line-height: 1.15;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

.sr-only {
  position: absolute; 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: -4rem; z-index: 200;
  background: var(--navy-700); color: #fff;
  padding: .75rem 1.15rem; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* -------------------------------------------------------------- layout -- */

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.section { padding-block: var(--step); }

/* Anchors must clear the sticky header. */
[id] { scroll-margin-top: 7.5rem; }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { margin-bottom: .5rem; }

h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); }
h3 { font-size: 1.2rem; }

.section-lead {
  font-size: 1.14rem;
  line-height: 1.7;
  color: var(--body);
  max-width: 42rem;
}

.eyebrow {
  font-family: "Muli", sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.eyebrow::after {
  content: "";
  flex: 0 0 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: .45;
}
.eyebrow-light { color: var(--bronze-light); }

/* ------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.7rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--bronze);
  border-color: var(--bronze);
  color: #fff;
}
.btn-primary:hover { background: #86682f; border-color: #86682f; }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* -------------------------------------------------------------- header -- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 7.25rem;
}

/* The firm's own lockup, background lifted to transparency so it sits on any
   navy without a seam. Its wordmark is white — which is why every surface the
   logo appears on stays dark. */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;          /* never let the bar squeeze the lockup */
}
.brand-logo {
  /* Wide lockup: it needs real width before the "DE WET WEPENER INC" line
     becomes readable, so the bar is sized around the logo rather than the
     other way round. */
  width: clamp(250px, 28vw, 380px);
  height: auto;
}

/* Tightened so the lockup can be large without the nav crowding it. */
.site-nav ul { display: flex; gap: clamp(.7rem, 1.5vw, 1.35rem); }
.site-nav a {
  position: relative;
  display: block;
  padding: .4rem 0;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  color: rgba(255,255,255,.86);
  transition: color .2s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--bronze-lt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: #fff; }
.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.header-call svg { width: 15px; height: 15px; fill: currentColor; }
.header-call:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* Once the hero has scrolled past, the bar takes on its own navy so the white
   lockup and nav stay legible over the light sections below. */
.site-header.is-stuck {
  background: rgba(8, 21, 56, .92);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 12px 34px -24px rgba(0,0,0,.95);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars i {
  display: block; height: 1.5px; background: #fff;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  background:
    radial-gradient(115% 90% at 8% -10%, var(--navy-500) 0%, transparent 55%),
    radial-gradient(80% 70% at 100% 100%, var(--navy-600) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(9rem, 17vw, 13rem) clamp(3.5rem, 7vw, 5.5rem);
  max-width: 60rem;
}

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.025em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
  line-height: 1.7;
  color: rgba(255,255,255,.76);
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.hero-offices {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-offices li { display: grid; gap: .3rem; }
.hero-office-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze-light);
}
.hero-offices a {
  font-family: "Spectral", serif;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.hero-offices a:hover { border-color: rgba(255,255,255,.6); }

/* --------------------------------------------------- mission &amp; values -- */

.section-mission {
  background:
    radial-gradient(90% 120% at 85% 0%, var(--navy-600) 0%, transparent 55%),
    linear-gradient(150deg, var(--navy-800), var(--navy-900));
  color: rgba(255,255,255,.78);
}
.section-mission h3 { color: #fff; }

.mission {
  max-width: 54rem;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.mission-quote {
  margin: 0;
  font-family: "Spectral", serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -.02em;
  color: #fff;
  text-wrap: balance;
}

.values-eyebrow { margin-bottom: 2rem; }

/* Ruled columns rather than boxes: with five values the track count changes
   at every breakpoint, and open columns never leave an empty cell behind. */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.values li {
  padding-top: 1.4rem;
  border-top: 2px solid var(--bronze);
}
.values h3 {
  font-size: 1.08rem;
  letter-spacing: .01em;
  margin-bottom: .5rem;
}
.values p {
  font-size: .92rem;
  line-height: 1.62;
  color: rgba(255,255,255,.66);
}

/* ---------------------------------------------------------------- team -- */

/* start-aligned so a card sizes to its own content. Left stretched, opening one
   profile drags every card in that row taller with it. */
.team-founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

/* Four non-founder profiles. Explicit column counts rather than auto-fill,
   because 4 items divide cleanly into 1, 2 or 4 columns but strand an orphan
   at 3 — which is exactly what auto-fill would pick on a wide screen. */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: var(--gap);
}
@media (min-width: 640px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

.person {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.person:hover {
  border-color: var(--line);
  box-shadow: 0 22px 45px -34px rgba(5,15,46,.55);
}

.person-lead {
  display: grid;
  grid-template-columns: 38% 1fr;
  /* Without this the photo column stretches to whatever the body needs, so
     opening "Full profile" re-crops the portrait into a sliver. Keep it start-
     aligned and the portrait holds the same fixed ratio as every other card. */
  align-items: start;
}

.person-photo { background: var(--paper-3); overflow: hidden; }
.person-photo img {
  width: 100%; height: 100%;
  aspect-ratio: 402 / 544;
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(.9) contrast(1.02);
  transition: filter .4s var(--ease), transform .6s var(--ease);
}
.person:hover .person-photo img { filter: none; transform: scale(1.02); }

.person-body { padding: clamp(1.35rem, 2.2vw, 1.9rem); }
.person-body > p { font-size: .95rem; line-height: 1.68; }

.person-flag {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: .55rem;
}
.person h3 { margin-bottom: .25rem; font-size: 1.4rem; }
.person-role {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: 1rem;
}
/* Specialism tags, from the firm's own profile document */
.person-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 1rem;
}
.person-tags li {
  padding: .28rem .6rem;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-600);
}

/* --------------------------------------------------------- support team -- */

.staff-block {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.staff-heading {
  font-family: "Muli", sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.75rem;
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
@media (min-width: 620px)  { .staff-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .staff-grid { grid-template-columns: repeat(5, 1fr); } }

/* Portrait above the name so it can fill the column — roughly double the
   previous size. Five columns on a wide screen keeps the support team visually
   subordinate to the professional cards rather than competing with them. */
.staff { display: block; }
.staff img {
  width: 100%;
  aspect-ratio: 402 / 544;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: var(--radius);
  background: var(--paper-3);
  margin-bottom: .85rem;
}
.staff-name {
  margin: 0 0 .15rem;
  font-family: "Spectral", serif;
  font-size: 1.06rem;
  color: var(--ink);
  line-height: 1.25;
}
.staff-role {
  margin: 0;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--muted);
}

.person-more { margin-top: .9rem; }
.person-more summary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--bronze);
  cursor: pointer;
  list-style: none;
}
.person-more summary::-webkit-details-marker { display: none; }
.person-more summary::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .25s var(--ease);
}
.person-more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.person-more summary:hover { color: #86682f; }
.person-more p {
  margin-top: .9rem;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--body);
}

/* ------------------------------------------------------------ practice -- */

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

.practice-list {
  counter-reset: pa;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(2.5rem, 6vw, 5rem);
}
.practice-list li {
  counter-increment: pa;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  align-items: start;
  /* Items stretch to match the taller one beside them; without this the spare
     height is dealt into the heading row and pushes the copy away from it. */
  align-content: start;
  padding-block: 1.9rem;
  border-top: 1px solid var(--line);
}
.practice-list li::before {
  content: counter(pa, decimal-leading-zero);
  /* The numeral owns column 1 for the full height; heading and copy both sit
     in column 2, otherwise auto-placement drops the paragraph under the
     numeral and wraps it one word per line. */
  grid-column: 1;
  grid-row: 1 / -1;
  font-family: "Spectral", serif;
  font-size: .9rem;
  line-height: 1.9;
  color: var(--bronze);
  letter-spacing: .06em;
}
.practice-list h3,
.practice-list p { grid-column: 2; }
.practice-list h3 { margin-bottom: .5rem; font-size: 1.22rem; }
.practice-list p { font-size: .94rem; line-height: 1.68; margin: 0; }

/* --------------------------------------------------------- calculators -- */

.calc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.calc-tabs [role="tab"] {
  position: relative;
  flex: 1 1 auto;
  padding: 1.15rem 1.5rem;
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.calc-tabs [role="tab"]:last-child { border-right: 0; }
.calc-tabs [role="tab"]:hover { color: var(--navy-700); }
.calc-tabs [role="tab"][aria-selected="true"] {
  background: var(--paper);
  color: var(--navy-700);
}
/* Bronze marker sits over the container's bottom rule */
.calc-tabs [role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--bronze);
}

.calc-panel { padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.calc-panel:focus-visible { outline-offset: -3px; }

.calc-intro {
  font-size: .95rem;
  line-height: 1.7;
  max-width: 44rem;
  margin-bottom: 1.75rem;
}

.calc-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line-soft);
}
.calc-field { display: grid; gap: .55rem; border: 0; padding: 0; margin: 0; min-width: 0; }

.calc-field label,
.calc-field legend {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}

.calc-input {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .1rem .9rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.calc-input:focus-within { border-color: var(--bronze); background: var(--paper); }
.calc-input span {
  font-size: .95rem;
  font-weight: 700;
  color: var(--muted);
}
.calc-input input {
  width: 11ch;
  padding: .8rem 0;
  border: 0;
  background: none;
  font-family: "Spectral", serif;
  font-size: 1.22rem;
  color: var(--ink);
}
.calc-input input:focus { outline: none; }
#calc-repay-rate { width: 6ch; }

/* Term pills */
.calc-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.calc-pills label { cursor: pointer; }
.calc-pills input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.calc-pills span {
  display: block;
  min-width: 2.9rem;
  padding: .72rem .5rem;
  text-align: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 700;
  color: var(--body);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.calc-pills label:hover span { border-color: var(--bronze-lt); }
.calc-pills input:checked + span {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}
.calc-pills input:focus-visible + span {
  outline: 2px solid var(--bronze-lt);
  outline-offset: 2px;
}

/* Results */
.calc-out { padding-top: 1.75rem; }
.calc-caption {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.1rem;
}
.calc-empty { color: var(--muted); font-size: .95rem; margin: 0; }

.calc-lines { margin: 0; max-width: 34rem; }
.calc-lines > div {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .62rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.calc-lines dt { flex: 1 1 auto; font-size: .93rem; }
.calc-lines dd {
  margin: 0;
  font-family: "Spectral", serif;
  font-size: 1.02rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.calc-note {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-lines .calc-vat dt,
.calc-lines .calc-vat dd { color: var(--muted); font-size: .85rem; }

.calc-lines .calc-total {
  margin-top: .5rem;
  padding: 1.1rem 1.15rem;
  background: var(--navy-700);
  border-bottom: 0;
  border-radius: var(--radius);
}
.calc-lines .calc-total dt {
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.calc-lines .calc-total dd { color: #fff; font-size: 1.45rem; }

.calc-disclaimer {
  margin: 1.75rem 0 0;
  max-width: 52rem;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--muted);
}
.calc-disclaimer a { color: var(--bronze); }

/* ------------------------------------------------------------- contact -- */

.section-contact {
  background:
    radial-gradient(85% 110% at 12% 0%, var(--navy-600) 0%, transparent 58%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: rgba(255,255,255,.78);
}
.section-contact h2 { color: #fff; }
.section-contact .section-lead { color: rgba(255,255,255,.72); }

/* Photographs of the Welkom office — wayfinding as much as decoration, so they
   sit with the addresses rather than off in a gallery of their own. */
.office-gallery { margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.office-shots {
  display: grid;
  /* Explicit counts: three items are clean at 1 or 3 columns, and auto-fit
     would otherwise leave a collapsed 0px track showing as a stray hairline. */
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  overflow: hidden;
}
.office-shots img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.92);
  transition: filter .4s var(--ease), transform .6s var(--ease);
}
.office-shots img:hover { filter: none; transform: scale(1.02); }
@media (min-width: 560px) {
  .office-shots { grid-template-columns: repeat(3, 1fr); }
}
.office-gallery figcaption {
  margin-top: .9rem;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bronze-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.offices { display: grid; gap: 1px; background: rgba(255,255,255,.14); }
.office {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: linear-gradient(150deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
}
.office h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: .9rem;
}
.office-address { font-size: .95rem; line-height: 1.62; color: rgba(255,255,255,.74); }
.office-postal { color: rgba(255,255,255,.5); font-size: .88rem; }

.office-lines {
  margin: 1.25rem 0 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: grid;
  gap: .5rem;
}
.office-lines div { display: grid; grid-template-columns: 3.75rem 1fr; align-items: baseline; }
.office-lines dt {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze-light);
}
.office-lines dd { margin: 0; font-size: .96rem; color: #fff; }
.office-lines a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.office-lines a:hover { border-color: #fff; }

.office-map {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bronze-light);
  text-decoration: none;
}
.office-map::after {
  content: "→";
  transition: transform .22s var(--ease);
}
.office-map:hover::after { transform: translateX(3px); }

/* Form */
.enquiry {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.14);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: .5rem;
}
.field label span { color: var(--bronze-light); }
.field input,
.field textarea {
  width: 100%;
  padding: .8rem .95rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  color: #fff;
  font-size: 1rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field textarea:hover { border-color: rgba(255,255,255,.34); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--bronze-lt);
  background: rgba(255,255,255,.09);
}
.enquiry .btn { width: 100%; }

.form-note {
  margin: 1rem 0 0;
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(255,255,255,.55);
}
.form-note.is-error { color: #ffb4a8; }

/* -------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.62);
  padding-top: clamp(3.5rem, 7vw, 5rem);
  font-size: .93rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-logo { width: min(255px, 100%); height: auto; margin-bottom: 1.4rem; }
.footer-blurb { font-size: .88rem; line-height: 1.65; max-width: 22rem; }

.footer-col h2 {
  font-family: "Muli", sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: 1.1rem;
}
.footer-col p { line-height: 1.7; font-size: .9rem; }
.footer-col ul { display: grid; gap: .5rem; }
.footer-col a { text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.footer-col a:hover { color: #fff; border-color: rgba(255,255,255,.4); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer-legal p { margin: 0; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* The lockup plus six nav items plus the call button stop fitting on one line
   below ~1080px, so the menu collapses there rather than at the layout
   breakpoint — otherwise the logo gets shrunk to make room. */
@media (max-width: 1080px) {
  .site-nav {
    position: fixed;
    inset: 7.25rem 0 auto;
    background: var(--navy-900);
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 1rem 1.25rem 1.75rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    padding: .95rem 0;
    font-size: 1.05rem;
    color: rgba(255,255,255,.88);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .site-nav a::after { display: none; }

  .nav-toggle { display: inline-flex; }
  .nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}

@media (max-width: 900px) {
  .header-call span { display: none; }
  .header-call { padding: .6rem .75rem; }

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

/* Narrow phones: the lockup has to share the bar with the call button and the
   menu button, so tighten it rather than let "DE WET WEPENER INC" wrap. */
@media (max-width: 560px) {
  .brand-logo { width: 190px; }
  .header-inner { min-height: 5.25rem; }
  .site-nav { inset-block-start: 5.25rem; }

  /* The trailing rule reads as a stray dash once the label wraps. */
  .eyebrow::after { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }

  /* Three tab labels will not sit on one line on a phone. */
  .calc-tabs [role="tab"] {
    flex: 1 1 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: .95rem 1rem;
  }
  .calc-tabs [role="tab"]:last-child { border-bottom: 0; }
  .calc-tabs [role="tab"][aria-selected="true"]::after { bottom: 0; }

  .calc-form { align-items: stretch; }
  .calc-form .btn { width: 100%; }
  .calc-input input { width: 100%; }
  .calc-field { width: 100%; }
  .calc-lines .calc-total dd { font-size: 1.25rem; }

  .person-lead { grid-template-columns: 1fr; }
  .person-lead .person-photo img { aspect-ratio: 4 / 3; object-position: 50% 18%; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-offices { gap: 1.25rem 2.5rem; }
}

/* ------------------------------------------------------ motion &amp; print -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .btn:hover, .person:hover .person-photo img { transform: none; }
}

@media print {
  .site-header, .hero-actions, .nav-toggle, .enquiry, .office-map, .skip-link,
  .calc-tabs, .calc-form { display: none !important; }
  /* A printed quote should show every panel's result, not just the open tab. */
  .calc-panel[hidden] { display: block !important; }
  .calc-lines .calc-total { background: none !important; border: 1px solid #000; }
  .calc-lines .calc-total dt, .calc-lines .calc-total dd { color: #000 !important; }
  body { color: #000; font-size: 11pt; }
  .hero, .section-mission, .section-contact, .site-footer {
    background: none !important; color: #000 !important;
  }
  .hero-title, .mission-quote, .office h3, .section-contact h2 { color: #000 !important; }
  .person-more[open] summary { display: none; }
  .section { padding-block: 1.5rem; }
  a { text-decoration: none; }
}

/* Honeypot for the enquiry form. Positioned out of view rather than
   display:none, because some bots deliberately skip hidden inputs. Never
   remove: anything typed into it marks the submission as automated. */
.field-decoy {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
