/* =====================================================
   DUMA NOKWE GROUP OF ADVOCATES
   Award-grade design system — 2026
   Fluid typography · 3-tier responsive · refined palette
   ===================================================== */

/* === TOKENS === */
:root {
  /* Palette */
  --c-bg:        #ffffff;
  --c-bg-warm:   #f6f3ee;
  --c-bg-dark:   #0a1220;
  --c-ink:       #1a1a2e;
  --c-ink-2:     #515668;
  --c-line:      #e4e0d8;
  --c-brand:     #0c1a2e;
  --c-gold:      #9e7c4f;
  --c-gold-lt:   #c4a265;
  --c-gold-bg:   #f9f5ee;
  --c-white-80:  rgba(255,255,255,.8);
  --c-white-60:  rgba(255,255,255,.6);
  --c-white-12:  rgba(255,255,255,.12);
  --c-white-06:  rgba(255,255,255,.06);
  --c-overlay:   rgba(10,18,32,.97);

  /* Typography */
  --f-serif: "Georgia", "Times New Roman", serif;
  --f-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-body: clamp(.94rem, .88rem + .3vw, 1.06rem);
  --fs-sm:   clamp(.8rem, .76rem + .2vw, .88rem);
  --fs-h1:   clamp(2.2rem, 1.6rem + 2.5vw, 4rem);
  --fs-h2:   clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  --fs-h3:   clamp(1.1rem, 1rem + .4vw, 1.4rem);
  --lh-body: 1.7;
  --lh-head: 1.15;

  /* Spacing — fluid 8px grid */
  --s-xs:  clamp(4px, .5vw, 8px);
  --s-sm:  clamp(12px, 1vw, 16px);
  --s-md:  clamp(20px, 2vw, 32px);
  --s-lg:  clamp(36px, 4vw, 56px);
  --s-xl:  clamp(56px, 6vw, 96px);
  --s-2xl: clamp(72px, 8vw, 128px);
  --pad:   clamp(20px, 5vw, 40px);

  /* Surfaces */
  --r:     8px;
  --r-lg:  16px;
  --sh-sm: 0 1px 3px rgba(10,18,32,.04), 0 4px 12px rgba(10,18,32,.03);
  --sh-md: 0 8px 30px rgba(10,18,32,.07);
  --sh-lg: 0 20px 60px rgba(10,18,32,.1);
  --t:     .25s cubic-bezier(.4,0,.2,1);
  --t-spring: .45s cubic-bezier(.16,1,.3,1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brand); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--c-gold); }
h1, h2, h3, h4 { font-family: var(--f-serif); color: var(--c-brand); line-height: var(--lh-head); margin: 0 0 .5em; }
h1 { font-size: var(--fs-h1); letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 1em; color: var(--c-ink-2); }

/* === ACCESSIBILITY === */
.skip { position: absolute; left: -9999px; top: 0; background: var(--c-brand); color: #fff; padding: 12px 20px; z-index: 1000; font-weight: 600; border-radius: 0 0 var(--r) var(--r); }
.skip:focus { left: 16px; top: 16px; }
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }

/* === LAYOUT === */
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
section { padding: var(--s-2xl) 0; }
.section-head { max-width: 680px; margin: 0 auto var(--s-xl); text-align: center; }
.eyebrow { display: inline-block; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold); margin-bottom: var(--s-sm); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--r); font-weight: 600; font-size: var(--fs-sm);
  line-height: 1; border: 2px solid transparent; cursor: pointer; transition: all var(--t);
  letter-spacing: .02em;
}
.btn-primary { background: var(--c-brand); color: #fff; }
.btn-primary:hover { background: var(--c-gold); color: #fff; transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-ghost { background: transparent; color: var(--c-brand); border-color: var(--c-brand); }
.btn-ghost:hover { background: var(--c-brand); color: #fff; }
.btn-light { background: #fff; color: var(--c-brand); }
.btn-light:hover { background: var(--c-gold-bg); color: var(--c-brand); transform: translateY(-1px); box-shadow: var(--sh-md); }

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; gap: 24px; }
.site-header.menu-open { backdrop-filter: none; background: var(--c-bg-dark); border-color: transparent; z-index: 210; }
.site-header.menu-open .brand img { filter: brightness(0) invert(1); }
.site-header.menu-open .phone-link { color: var(--c-gold-lt); }

.brand { display: flex; align-items: center; }
.brand img { height: clamp(36px, 4vw, 50px); width: auto; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 32px); }
.nav a { color: var(--c-ink-2); font-size: var(--fs-sm); font-weight: 500; position: relative; padding: 4px 0; }
.nav a.active { color: var(--c-brand); font-weight: 600; }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--c-gold); border-radius: 1px; }
.nav a:hover { color: var(--c-brand); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.phone-link { font-weight: 700; color: var(--c-brand); font-size: var(--fs-sm); }
.phone-link::before { content: "📞"; margin-right: 6px; }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; position: relative; z-index: 210; width: 44px; height: 44px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--c-brand); transition: transform var(--t-spring), opacity .2s; position: absolute; left: 11px; }
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.is-active span { background: #fff; }
.menu-toggle.is-active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-active span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ===========================================
   MOBILE MENU — side drawer pattern
   Slides in from the right, dimmed backdrop
   =========================================== */

/* Injected drawer parts — hidden on desktop, the existing horizontal nav stays */
.nav-top, .nav-bottom, .nav-backdrop { display: none; }
.nav-links { display: contents; } /* on desktop, anchors flow naturally inside .nav */

@media (max-width: 900px) {
  .header-cta .btn { display: none; }
  .menu-toggle { display: block; }

  /* When drawer is open, hide the hamburger (the in-drawer X handles closing) */
  .site-header.menu-open .menu-toggle { opacity: 0; pointer-events: none; }

  /* ---------- The drawer itself ---------- */
  .nav {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    background: linear-gradient(170deg, #0a1220 0%, #0c1a2e 60%, #0e2038 100%);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.32, .72, 0, 1);
    z-index: 200;
    overflow: hidden;
    padding: 0;
  }
  .nav.open { transform: translateX(0); }

  /* ---------- Backdrop ---------- */
  .nav-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(8,16,30,.55);
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
    z-index: 190;
    cursor: pointer;
  }
  .nav-backdrop.active { opacity: 1; visibility: visible; }

  /* ---------- Top bar (logo + close) ---------- */
  .nav-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
  }
  .nav-top-logo { display: inline-flex; align-items: center; }
  .nav-top-logo img { height: 38px; width: auto; }
  .nav-close {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0;
    transition: background .2s, color .2s, transform .2s;
  }
  .nav-close:hover {
    background: rgba(255,255,255,.1);
    color: var(--c-gold-lt);
    transform: rotate(90deg);
  }
  .nav-close svg { width: 18px; height: 18px; display: block; }

  /* ---------- Links (middle, scrollable) ---------- */
  .nav-links {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 0;
  }
  .nav-links a {
    display: block;
    padding: 16px 22px;
    color: rgba(255,255,255,.9);
    font-family: var(--f-serif);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -.005em;
    border-bottom: 1px solid rgba(255,255,255,.05);
    position: relative;
    transition: padding-left .25s, color .25s, background .25s;
  }
  .nav-links a:hover {
    color: var(--c-gold-lt);
    padding-left: 30px;
    background: rgba(255,255,255,.025);
  }
  .nav-links a.active {
    color: var(--c-gold-lt);
    background: rgba(196,162,101,.05);
    font-weight: 600;
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.active::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 3px; height: 22px;
    background: var(--c-gold);
    border-radius: 0 2px 2px 0;
    transform: translateY(-50%);
  }

  /* ---------- Bottom CTA panel ---------- */
  .nav-bottom {
    display: block;
    padding: 20px 22px 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.18);
    flex-shrink: 0;
  }
  .nav-bottom .phone-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--c-gold); color: var(--c-brand);
    padding: 14px 18px;
    border-radius: var(--r);
    font-weight: 700; font-size: .98rem;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(158,124,79,.28);
    transition: background .2s, transform .2s, box-shadow .2s;
  }
  .nav-bottom .phone-btn:hover {
    background: var(--c-gold-lt);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(196,162,101,.38);
  }
  .nav-bottom .brief-btn {
    display: flex; align-items: center; justify-content: center;
    margin-top: 10px;
    padding: 13px 18px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--r);
    color: #fff;
    font-weight: 600; font-size: .92rem;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
  }
  .nav-bottom .brief-btn:hover {
    border-color: var(--c-gold-lt);
    color: var(--c-gold-lt);
    background: rgba(255,255,255,.03);
  }
  .nav-bottom .address {
    margin: 14px 0 0;
    text-align: center;
    font-size: .76rem;
    color: rgba(255,255,255,.45);
    line-height: 1.55;
  }

  /* Compact phones */
  @media (max-width: 360px) {
    .nav-links a { font-size: 1.15rem; padding: 14px 18px; }
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
  .nav-backdrop { transition: none; }
  .nav-close:hover { transform: none; }
}

/* === HERO === */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: var(--s-2xl) 0 var(--s-xl);
  background: linear-gradient(145deg, #060e1a 0%, #0c1a2e 40%, #162a48 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 75% 20%, rgba(158,124,79,.15), transparent);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-xl); align-items: center; }
.hero h1 { color: #fff; margin-bottom: var(--s-md); }
.hero h1 span { color: var(--c-gold-lt); display: block; }
.hero p.lead { font-size: clamp(1rem, .9rem + .4vw, 1.2rem); color: var(--c-white-80); margin-bottom: var(--s-lg); max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: var(--s-md); margin-top: var(--s-lg); padding-top: var(--s-md);
  border-top: 1px solid var(--c-white-12); flex-wrap: wrap;
}
.hero-meta div { text-align: center; }
.hero-meta div strong { display: block; font-family: var(--f-serif); font-size: clamp(1.6rem, 1.4rem + 1vw, 2.2rem); color: var(--c-gold-lt); line-height: 1; }
.hero-meta div span { font-size: var(--fs-sm); color: var(--c-white-60); text-transform: uppercase; letter-spacing: .1em; }
.hero-card {
  background: var(--c-white-06); border: 1px solid var(--c-white-12);
  backdrop-filter: blur(10px); border-radius: var(--r-lg); padding: var(--s-lg);
}
.hero-card h3 { color: #fff; margin-bottom: 6px; }
.hero-card p { color: var(--c-white-60); font-size: var(--fs-sm); }
.hero-card ul { list-style: none; padding: 0; margin: var(--s-sm) 0 var(--s-md); }
.hero-card li {
  padding: 12px 0; border-bottom: 1px solid var(--c-white-06);
  color: rgba(255,255,255,.9); font-size: var(--fs-sm);
  display: flex; align-items: center; gap: 10px;
}
.hero-card li::before { content: "✓"; color: var(--c-gold-lt); font-weight: 700; flex-shrink: 0; }
.hero-card li:last-child { border-bottom: 0; }

/* Tablet hero — centred single-column, card becomes a horizontal strip */
@media (max-width: 1024px) {
  .hero { padding: var(--s-xl) 0; }
  .hero .container { grid-template-columns: 1fr; gap: var(--s-lg); max-width: 720px; text-align: center; }
  .hero h1 { margin-left: auto; margin-right: auto; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-cta .btn { min-width: 200px; }
  .hero-meta { justify-content: center; }
  .hero-meta div { flex: 1; min-width: 120px; }
  .hero-card {
    padding: var(--s-md); text-align: center;
    max-width: 420px; margin: 0 auto;
  }
}
/* Phone hero — fully stacked */
@media (max-width: 680px) {
  .hero .container { max-width: 100%; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; min-width: 0; }
  .hero-card { grid-template-columns: 1fr; }
}

/* === TRUST BAND === */
.trust { padding: var(--s-lg) 0; background: var(--c-bg-warm); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-sm); }
.trust-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: var(--s-md) var(--s-sm); background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm); transition: all var(--t);
}
.trust-item:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.trust-item strong { font-family: var(--f-serif); font-size: clamp(1.4rem, 1.2rem + .8vw, 2rem); color: var(--c-brand); line-height: 1; }
.trust-item span { font-size: clamp(.68rem, .64rem + .2vw, .78rem); color: var(--c-ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; line-height: 1.3; }
@media (max-width: 680px) { .trust .container { grid-template-columns: 1fr 1fr; } }

/* === CARDS GRID === */
.grid { display: grid; gap: var(--s-md); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-values { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 580px) { .grid-values { grid-template-columns: 1fr; } }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: var(--s-md); transition: all var(--t); position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-gold); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--c-brand), #1e3452); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-sm); font-size: 1.3rem; font-weight: 700;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: var(--fs-sm); margin-bottom: var(--s-sm); }
.card a.more { font-size: var(--fs-sm); font-weight: 600; color: var(--c-gold); display: inline-flex; align-items: center; gap: 6px; }
.card a.more::after { content: "→"; transition: transform var(--t); }
.card:hover a.more::after { transform: translateX(4px); }

/* === ABOUT / SPLIT === */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-xl); align-items: center; }
.split img { border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: var(--s-lg); max-width: 680px; margin: 0 auto; }
  .split img { max-height: 400px; width: 100%; object-fit: cover; order: -1; }
  .split .btn { width: auto; }
}
@media (max-width: 680px) {
  .split .btn { width: 100%; justify-content: center; }
}

/* === PRACTICE AREAS (home preview) === */
.practice { background: var(--c-bg-warm); }
.practice-cluster {
  background: #fff; border-radius: var(--r-lg); padding: var(--s-md);
  border: 1px solid var(--c-line); transition: box-shadow var(--t);
}
.practice-cluster:hover { box-shadow: var(--sh-md); }
.practice-cluster h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(.95rem, .85rem + .4vw, 1.2rem); padding-bottom: 14px; border-bottom: 2px solid var(--c-gold); margin-bottom: var(--s-sm); }
.cluster-num {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--c-brand); color: var(--c-gold-lt);
  font-family: var(--f-sans); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.practice-cluster ul { list-style: none; padding: 0; margin: 0; }
.practice-cluster ul li { padding: 6px 0; font-size: var(--fs-sm); }
.practice-cluster ul li a { color: var(--c-ink-2); display: flex; align-items: center; gap: 8px; }
.practice-cluster ul li a:hover { color: var(--c-brand); }
.practice-cluster ul li a::before { content: "·"; color: var(--c-gold); font-weight: 700; font-size: 1.2em; }

/* === SERVICES PAGE — sidebar + tile grid === */
.services-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--s-xl); align-items: start; }
@media (max-width: 1024px) { .services-layout { grid-template-columns: 200px 1fr; gap: var(--s-lg); } }
@media (max-width: 768px) { .services-layout { grid-template-columns: 1fr; gap: var(--s-md); } }

.services-nav {
  position: sticky; top: 96px; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--s-xs); box-shadow: var(--sh-sm);
}
.services-nav h4 { font-family: var(--f-sans); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--c-gold); margin: 14px 14px 10px; font-weight: 700; }
.services-nav ul { list-style: none; margin: 0; padding: 0; }
.services-nav li { margin: 0; }
.services-nav a { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; font-size: var(--fs-sm); font-weight: 500; color: var(--c-ink); border-radius: var(--r); transition: all var(--t); gap: 8px; }
.services-nav a:hover { background: var(--c-bg-warm); color: var(--c-brand); }
.services-nav a.is-current { background: var(--c-brand); color: #fff; }
.services-nav a.is-current .count { background: var(--c-gold); color: var(--c-brand); }
.services-nav .count { display: inline-block; min-width: 24px; padding: 2px 7px; font-size: .7rem; font-weight: 700; background: var(--c-bg-warm); color: var(--c-ink-2); border-radius: 999px; text-align: center; }
@media (max-width: 1024px) { .services-nav a { padding: 9px 12px; font-size: .82rem; } }
@media (max-width: 768px) {
  .services-nav { position: relative; top: 0; padding: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .services-nav h4 { display: none; }
  .services-nav ul { display: flex; gap: 6px; }
  .services-nav li { flex-shrink: 0; }
  .services-nav a { padding: 10px 16px; white-space: nowrap; }
}

.services-content { min-width: 0; }
.cluster { margin-bottom: var(--s-xl); scroll-margin-top: 100px; }
.cluster:last-child { margin-bottom: 0; }
.cluster-head { display: flex; align-items: flex-start; gap: var(--s-sm); padding-bottom: var(--s-sm); margin-bottom: var(--s-md); border-bottom: 1px solid var(--c-line); }
.cluster-icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--c-brand), #1e3452); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: var(--sh-sm);
}
.cluster-head h2 { margin: 0 0 4px; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.cluster-head p { margin: 0; font-size: var(--fs-sm); color: var(--c-ink-2); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.service-tile {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r);
  transition: all var(--t); text-decoration: none; min-height: 60px;
}
.service-tile:hover { transform: translateY(-2px); border-color: var(--c-gold); box-shadow: var(--sh-md); }
.service-tile .letter {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--r);
  background: var(--c-bg-warm); color: var(--c-brand);
  font-size: 0; display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
}
.service-tile .letter::before {
  content: "";
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1a2e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L4 7v6c0 5.25 3.4 10.74 8 12 4.6-1.26 8-6.75 8-12V7l-8-5z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.service-tile:hover .letter { background: var(--c-brand); }
.service-tile:hover .letter::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4a265' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L4 7v6c0 5.25 3.4 10.74 8 12 4.6-1.26 8-6.75 8-12V7l-8-5z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}
.service-tile .name { font-size: var(--fs-sm); font-weight: 500; color: var(--c-ink); line-height: 1.3; }

.services-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-sm);
  margin-bottom: var(--s-xl);
}
.services-stats div {
  text-align: center; padding: var(--s-md) var(--s-sm);
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); transition: all var(--t);
}
.services-stats div:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.services-stats strong { display: block; font-family: var(--f-serif); font-size: clamp(1.4rem, 1.2rem + .6vw, 1.8rem); color: var(--c-brand); line-height: 1; margin-bottom: 4px; }
.services-stats span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-ink-2); font-weight: 600; }
@media (max-width: 680px) { .services-stats { grid-template-columns: 1fr 1fr; } }

/* === MEMBER PROFILE === */
.profile-layout { display: grid; grid-template-columns: 340px 1fr; gap: var(--s-xl); align-items: start; }
@media (max-width: 1024px) { .profile-layout { grid-template-columns: 280px 1fr; gap: var(--s-lg); } }
@media (max-width: 680px) { .profile-layout { grid-template-columns: 1fr; gap: var(--s-md); } }

.profile-card { position: sticky; top: 96px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
@media (max-width: 680px) { .profile-card { position: static; } }
.profile-photo { aspect-ratio: 4/5; background: var(--c-bg-warm); overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.profile-card:hover .profile-photo img { transform: scale(1.03); }
.profile-meta { padding: var(--s-md); }
.profile-meta dl { margin: 0; }
.profile-meta dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-gold); font-weight: 700; margin-top: var(--s-sm); }
.profile-meta dt:first-child { margin-top: 0; }
.profile-meta dd { margin: 4px 0 0; color: var(--c-ink); font-weight: 600; font-size: var(--fs-sm); line-height: 1.5; }
.profile-meta dd a { color: var(--c-brand); }
.profile-meta dd a:hover { color: var(--c-gold); }
.profile-meta .stack { display: block; }
.profile-cta { padding: 0 var(--s-md) var(--s-md); display: grid; gap: 8px; }
.profile-cta .btn { width: 100%; }

.profile-body h1 { margin: 0 0 6px; }
.profile-body .subtitle { font-size: clamp(.9rem, .85rem + .2vw, 1.05rem); color: var(--c-gold); font-weight: 600; margin: 0 0 var(--s-md); }
.profile-body .bio p { color: var(--c-ink-2); line-height: var(--lh-body); margin-bottom: 1em; }
.profile-body .bio p:first-of-type { font-size: clamp(1rem, .95rem + .2vw, 1.12rem); color: var(--c-ink); }
.profile-body h2 { font-size: var(--fs-h3); margin-top: var(--s-lg); padding-bottom: 12px; border-bottom: 2px solid var(--c-gold); }

.practice-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.practice-chip {
  display: inline-flex; align-items: center; padding: 8px 16px;
  background: var(--c-bg-warm); border: 1px solid var(--c-line); border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 500; color: var(--c-ink); transition: all var(--t);
}
.practice-chip:hover { background: var(--c-brand); color: #fff; border-color: var(--c-brand); transform: translateY(-1px); }

/* === SERVICE DETAIL === */
.service-detail { display: grid; grid-template-columns: 1fr 300px; gap: var(--s-xl); align-items: start; }
@media (max-width: 1024px) { .service-detail { grid-template-columns: 1fr 260px; gap: var(--s-lg); } }
@media (max-width: 768px) { .service-detail { grid-template-columns: 1fr; gap: var(--s-md); } }
.service-body h2 { font-size: clamp(1.2rem, 1rem + .5vw, 1.5rem); margin-top: var(--s-lg); }
.service-body h2:first-of-type { margin-top: 0; }
.service-body p, .service-body li { color: var(--c-ink-2); line-height: var(--lh-body); }
.service-body ul { padding-left: 20px; margin: 0 0 1.2em; }
.service-body li { margin-bottom: 6px; }
.service-body .lede {
  font-size: clamp(1rem, .95rem + .2vw, 1.15rem); line-height: 1.8; color: var(--c-ink);
  padding: var(--s-md); background: var(--c-bg-warm);
  border-left: 4px solid var(--c-gold); border-radius: 0 var(--r) var(--r) 0;
  margin: 0 0 var(--s-md);
}

.service-aside { position: sticky; top: 96px; display: grid; gap: var(--s-sm); }
@media (max-width: 768px) { .service-aside { position: static; } }
.aside-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--s-md); box-shadow: var(--sh-sm); }
.aside-card h3 { font-size: .78rem; font-family: var(--f-sans); text-transform: uppercase; letter-spacing: .1em; color: var(--c-gold); margin: 0 0 var(--s-sm); font-weight: 700; }
.aside-card.brief { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }
.aside-card.brief h3 { color: var(--c-gold-lt); }
.aside-card.brief p { color: var(--c-white-80); margin-bottom: var(--s-sm); font-size: var(--fs-sm); }
.aside-card.brief .btn { width: 100%; }
.aside-card dl { margin: 0; }
.aside-card dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-ink-2); font-weight: 600; }
.aside-card dd { margin: 4px 0 14px; color: var(--c-ink); font-weight: 600; }
.aside-card dd:last-child { margin-bottom: 0; }
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list li { border-bottom: 1px solid var(--c-line); }
.aside-list li:last-child { border-bottom: 0; }
.aside-list a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; font-size: var(--fs-sm); color: var(--c-ink); }
.aside-list a:hover { color: var(--c-gold); }
.aside-list a::after { content: "→"; color: var(--c-gold); transition: transform var(--t); }
.aside-list a:hover::after { transform: translateX(3px); }

/* === MEMBERS DIRECTORY === */
.members-toolbar { display: flex; gap: var(--s-sm); flex-wrap: wrap; margin-bottom: var(--s-lg); align-items: center; justify-content: space-between; }
.members-toolbar input, .members-toolbar select {
  padding: 13px 16px; border: 1px solid var(--c-line); border-radius: var(--r);
  font-family: inherit; font-size: var(--fs-sm); background: #fff; min-width: 220px;
  transition: border-color var(--t);
}
.members-toolbar input:focus, .members-toolbar select:focus { border-color: var(--c-gold); outline: 2px solid var(--c-gold); outline-offset: 2px; }
@media (max-width: 680px) {
  .members-toolbar { flex-direction: column; }
  .members-toolbar input, .members-toolbar select { width: 100%; min-width: 0; }
}

.member-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  overflow: hidden; transition: all var(--t); display: block; color: inherit; text-decoration: none;
}
a.member-card:hover { color: inherit; }
.member-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.member-card .photo { aspect-ratio: 3/4; background: var(--c-bg-warm); position: relative; overflow: hidden; }
.member-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.member-card:hover .photo img { transform: scale(1.04); }
.member-card .meta { padding: var(--s-sm); }
.member-card h4 { font-family: var(--f-serif); color: var(--c-brand); margin: 0 0 3px; font-size: clamp(.92rem, .88rem + .15vw, 1.02rem); }
.member-card .role { font-size: .76rem; color: var(--c-gold); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: var(--s-sm); }

/* === CTA BAND === */
.cta-band { background: linear-gradient(145deg, var(--c-brand), #162a48); color: #fff; padding: var(--s-xl) 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--c-white-80); font-size: clamp(1rem, .9rem + .3vw, 1.12rem); max-width: 600px; margin: 0 auto var(--s-md); }
@media (max-width: 680px) {
  .cta-band .hero-cta { flex-direction: column; align-items: stretch; }
  .cta-band .hero-cta .btn { width: 100%; }
}

/* === FORMS === */
.form { display: grid; gap: var(--s-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-sm); }
@media (max-width: 680px) { .form-row { grid-template-columns: 1fr; } }
.form label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-brand); display: block; margin-bottom: 6px; }
.form input:not([type="checkbox"]):not([type="radio"]),
.form select,
.form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--c-line);
  border-radius: var(--r); font: inherit; font-size: var(--fs-body);
  background: #fff; transition: border-color var(--t);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-gold); outline: 2px solid var(--c-gold); outline-offset: 2px; }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { justify-self: start; }
@media (max-width: 680px) { .form .btn { width: 100%; } }

/* POPIA consent checkbox row */
.form-consent {
  margin-top: 4px;
  padding: 14px 16px;
  background: var(--c-gold-bg);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-gold);
  border-radius: var(--r);
}
.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
  font-size: .88rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--c-ink);
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  accent-color: var(--c-gold);
  cursor: pointer;
}
.form-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}
.form-consent span { flex: 1; }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-xl); }
@media (max-width: 1024px) { .contact-grid { gap: var(--s-lg); } }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s-lg); } }
.contact-info {
  background: var(--c-bg-warm); border-radius: var(--r-lg);
  padding: var(--s-lg); border: 1px solid var(--c-line);
  display: flex; flex-direction: column; gap: var(--s-md);
}
.contact-info h3 { margin-top: 0; }
.contact-info dl { margin: 0; }
.contact-info dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-gold); font-weight: 700; margin-top: var(--s-sm); }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 4px 0 0; color: var(--c-ink); }
.contact-info dd a { color: var(--c-brand); }
.map {
  width: 100%;
  flex: 1 1 auto;
  min-height: 320px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--c-bg);
  display: block;
}
@media (max-width: 768px) {
  .map { aspect-ratio: 4/3; min-height: 280px; flex: 0 0 auto; }
}

/* === FOOTER === */
.site-footer { background: var(--c-bg-dark); color: rgba(255,255,255,.65); padding: var(--s-xl) 0 var(--s-md); }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--c-gold-lt); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-lg); padding-bottom: var(--s-lg); border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid h4 { color: #fff; font-family: var(--f-sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: var(--s-sm); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: var(--fs-sm); }
.footer-brand { margin-bottom: var(--s-sm); }
.footer-brand img { height: clamp(40px, 4vw, 52px); width: auto; }
.footer-bottom { padding-top: var(--s-sm); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: rgba(255,255,255,.4); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* === PAGE HERO (inner pages) === */
.page-hero { background: linear-gradient(145deg, #060e1a, #0c1a2e); color: #fff; padding: var(--s-xl) 0 var(--s-lg); }
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero p { color: var(--c-white-80); max-width: 640px; font-size: clamp(1rem, .9rem + .3vw, 1.12rem); }
.breadcrumb { font-size: var(--fs-sm); color: var(--c-white-60); margin-bottom: var(--s-sm); }
.breadcrumb a { color: var(--c-gold-lt); }

/* === SCROLL TO TOP === */
.scroll-top {
  position: fixed; bottom: var(--s-md); right: var(--s-md); z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--c-brand); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-md); opacity: 0; visibility: hidden;
  transform: translateY(12px); transition: all .3s ease;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--c-gold); transform: translateY(-2px); }
.scroll-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* === REVEAL ON SCROLL === */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
