/* =========================================================
   GEDA LEGAL — design tokens
   Palette adopted from reference: deep navy + muted gold/tan
   on a warm cream ground.
   Display face: Fraunces (serif, legal-but-not-stiff)
   Body face: Inter
   Utility/mono face: IBM Plex Mono — used for the "pleading
   paper" line-number margin, our signature structural motif.
   ========================================================= */
:root {
  --ink: #17253f;
  --ink-soft: #1f3252;
  --parchment: #f1e8d9;
  --parchment-dim: #e8dcc7;
  --rule: #ddd0b4;
  --gold: #b9a273;
  --gold-deep: #8f7c52;
  --gold-bright: #d9c69c;
  --oxblood: #6e2a2a;
  --text: #171c24;
  --text-soft: #565f6c;
  --white: #fffdfb;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 2px;
  --shadow-card: 0 18px 40px -20px rgba(23, 37, 63, 0.35);
  --shadow-soft: 0 8px 24px -12px rgba(23, 37, 63, 0.25);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.2vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--text-soft); }
a { color: inherit; text-decoration: none; }

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

.icon { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-deep); color: var(--gold-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-row { display: flex; align-items: center; gap: 14px; }
.contact-line { display: flex; align-items: center; gap: 10px; }
.contact-line .icon { color: var(--gold-deep); }
.footer-grid .contact-line .icon { color: var(--gold); }
.social-row { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.social-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.social-btn:hover { background: var(--ink); color: var(--gold-bright); border-color: var(--ink); }
.social-btn .icon { width: 18px; height: 18px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.footer-social .social-btn { border-color: rgba(241,232,217,0.3); color: var(--parchment); }
.footer-social .social-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.social-handle { font-size: 0.82rem; color: var(--text-soft); }
.footer-grid .social-handle { color: rgba(241,232,217,0.6); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-deep);
  display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--gold-bright);
  border-color: var(--ink);
}
.btn-primary:hover { background: #000; }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-bright); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--parchment); }
.btn-outline-light {
  background: transparent;
  color: var(--parchment);
  border-color: rgba(241,232,217,0.4);
}
.btn-outline-light:hover { background: rgba(241,232,217,0.12); border-color: var(--parchment); }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: transparent; color: var(--oxblood); border-color: var(--oxblood); }
.btn-danger:hover { background: var(--oxblood); color: var(--white); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 232, 217, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { height: 52px; width: auto; border-radius: 4px; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-word span { color: var(--gold-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold-deep);
  transition: right 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--gold-deep); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 82px; left: 0; right: 0;
    background: var(--parchment);
    padding: 20px 28px 28px;
    border-bottom: 1px solid var(--rule);
    gap: 18px;
  }
  .site-header.nav-open .nav-cta .btn { display: inline-flex; }
  .site-header.nav-open .nav-cta { flex-direction: column; align-items: stretch; padding: 0 28px 24px; }
}

/* ---------- pleading-paper margin (signature motif) ---------- */
/* A column of small line-numbers echoing Nigerian court pleading
   paper, run down the left of long-form sections. */
.docket {
  position: relative;
  padding-left: 46px;
}
.docket::before {
  content: "";
  position: absolute;
  left: 26px; top: 0; bottom: 0;
  width: 1px;
  background: var(--rule);
}
.docket-numbers {
  position: absolute;
  left: 0; top: 0;
  width: 20px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-deep);
  opacity: 0.55;
  line-height: 2.4em;
  user-select: none;
}
@media (max-width: 720px) {
  .docket { padding-left: 0; }
  .docket::before, .docket-numbers { display: none; }
}

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(185,162,115,0) 60%, rgba(185,162,115,0.06) 100%),
    repeating-linear-gradient(180deg, transparent 0 55px, rgba(185,162,115,0.05) 55px 56px);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero h1 { color: var(--parchment); }
.hero h1 em { color: var(--gold-bright); font-style: normal; }
.hero p.lead { color: rgba(241,232,217,0.78); font-size: 1.08rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  margin-top: 30px;
}

/* Document-stack visual: overlapping "deed" cards behind the seal */
.doc-stack { position: relative; height: 380px; }
.doc-card {
  position: absolute;
  width: 78%;
  aspect-ratio: 3/4;
  background: var(--parchment);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  padding: 22px;
  color: var(--text);
}
.doc-card .rule { height: 1px; background: var(--rule); margin: 10px 0; }
.doc-card .rule:nth-child(4) { width: 70%; }
.doc-card small { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--gold-deep); text-transform: uppercase; }
.doc-card.c1 { top: 0; left: 6%; transform: rotate(-9deg); z-index: 1; }
.doc-card.c2 { top: 30px; left: 24%; transform: rotate(6deg); z-index: 2; }
.doc-seal {
  position: absolute;
  bottom: 10px; right: 6%;
  width: 190px; height: 118px;
  object-fit: cover;
  border-radius: 10px;
  z-index: 3;
  box-shadow: var(--shadow-card);
  border: 4px solid var(--ink);
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .doc-stack { height: 260px; margin-top: 20px; }
}

/* practice-area ticker */
.ticker-wrap {
  background: var(--gold);
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 13px 0;
  border-bottom: 1px solid var(--gold-deep);
}
.ticker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  animation: ticker 32s linear infinite;
}
.ticker span { margin: 0 22px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker { animation: none; } }

/* ---------- generic sections ---------- */
section { padding: 92px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--parchment-dim); }
.section-dark { background: var(--ink); color: var(--parchment); }
.section-dark h2, .section-dark h3 { color: var(--parchment); }
.section-dark p { color: rgba(241,232,217,0.72); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 30px;
}
.card-value {
  border-top: 2px solid var(--gold);
  padding-top: 18px;
}

.badge-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  color: var(--gold-deep);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* practice area accordion-style list */
.practice-list { border-top: 1px solid var(--rule); }
.practice-item {
  border-bottom: 1px solid var(--rule);
  padding: 30px 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
}
.practice-item .p-num { font-family: var(--font-mono); color: var(--gold-deep); font-size: 0.9rem; }
.practice-item ul { margin: 14px 0 0; padding-left: 18px; color: var(--text-soft); }
.practice-item li { margin-bottom: 6px; }
@media (max-width: 640px) { .practice-item { grid-template-columns: 1fr; gap: 8px; } }

/* team */
.team-card { text-align: left; }
.team-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 18px;
  filter: grayscale(8%);
}
.team-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
  display: block;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-q .plus { font-family: var(--font-mono); color: var(--gold-deep); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding-bottom: 22px; margin: 0; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 20px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--rule);
  background: var(--white);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold-deep);
  outline-offset: 1px;
}
.form-note { font-size: 0.82rem; color: var(--text-soft); margin-top: 10px; }
.form-status { font-size: 0.9rem; margin-top: 14px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #3f6b2f; }
.form-status.err { color: var(--oxblood); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(241,232,217,0.75); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: var(--parchment); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-mono); font-weight: 500; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; color: rgba(241,232,217,0.75); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 44px; width: auto; border-radius: 4px; }
.footer-brand span { font-family: var(--font-display); font-size: 1.15rem; color: var(--parchment); }
.footer-bottom {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid rgba(241,232,217,0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}
.credit-link { color: #5b7fbd; text-decoration: underline; }
.credit-link:hover { color: #7d9bd0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- updates page ---------- */
.update-card {
  border: 1px solid var(--rule);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.update-card .u-media { display: grid; gap: 2px; background: var(--rule); }
.update-card .u-media.count-1 { grid-template-columns: 1fr; }
.update-card .u-media.count-2 { grid-template-columns: 1fr 1fr; }
.update-card .u-media.count-3plus { grid-template-columns: 1fr 1fr; }
.update-card .u-media img, .update-card .u-media video { width: 100%; height: 260px; object-fit: cover; background: #000; }
.update-card .u-body { padding: 26px 28px 30px; }
.update-date { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--gold-deep); text-transform: uppercase; }
.updates-empty { text-align: center; padding: 60px 20px; color: var(--text-soft); border: 1px dashed var(--rule); border-radius: var(--radius); }

/* ---------- admin ---------- */
.admin-shell { min-height: 100vh; background: var(--parchment-dim); }
.admin-header {
  background: var(--ink); color: var(--parchment);
  padding: 18px 0;
}
.admin-header .container { display: flex; align-items: center; justify-content: space-between; }
.admin-header .brand-word { color: var(--parchment); }
.admin-main { max-width: 880px; margin: 0 auto; padding: 50px 28px 100px; }
.admin-card {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 32px; margin-bottom: 30px;
}
.login-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--ink); padding: 20px;
}
.login-card {
  background: var(--parchment); border-radius: 4px; padding: 44px; width: 100%; max-width: 400px;
  box-shadow: var(--shadow-card);
}
.login-card .brand { justify-content: center; margin-bottom: 26px; }
.file-drop {
  border: 1.5px dashed var(--rule);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--parchment-dim);
}
.file-drop.drag { border-color: var(--gold-deep); color: var(--gold-deep); }
.file-list { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.file-chip {
  font-family: var(--font-mono); font-size: 0.74rem;
  background: var(--parchment-dim); border: 1px solid var(--rule);
  border-radius: 20px; padding: 6px 12px; display: flex; align-items: center; gap: 8px;
}
.file-chip button { border: none; background: none; cursor: pointer; color: var(--oxblood); font-weight: 700; }
.admin-update-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.admin-update-row:last-child { border-bottom: none; }
.admin-update-row .meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-soft); }
.tabs { display: flex; gap: 8px; margin-bottom: 30px; }
.tab-btn {
  padding: 10px 18px; border-radius: 20px; border: 1px solid var(--rule);
  background: var(--white); cursor: pointer; font-size: 0.86rem; font-weight: 600; color: var(--text-soft);
}
.tab-btn.active { background: var(--ink); color: var(--gold-bright); border-color: var(--ink); }
.enquiry-row { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.enquiry-row:last-child { border-bottom: none; }
.enquiry-row .meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold-deep); }

.hidden { display: none !important; }
.notice-banner { background: var(--parchment-dim); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 20px; font-size: 0.85rem; color: var(--text-soft); margin-bottom: 26px; }
.admin-tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--gold); border: 1px solid var(--gold); padding: 3px 8px; border-radius: 12px; margin-left: 10px; }
.notice-banner { background: var(--parchment-dim); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 20px; font-size: 0.85rem; color: var(--text-soft); margin-bottom: 26px; }
.admin-tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--gold); border: 1px solid var(--gold); padding: 3px 8px; border-radius: 12px; margin-left: 10px; }
