/* ═══════════════════════════════════════════════════════
   Munyua N Law Advocates — Shared Stylesheet
   All pages import this file
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

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

:root {
  --teal:       #0d4a4a;
  --teal-dark:  #082e2e;
  --teal-mid:   #1a6060;
  --gold:       #c9a84c;
  --gold-dark:  #a07830;
  --gold-light: #f0e6c8;
  --white:      #ffffff;
  --off-white:  #f7f7f5;
  --light-gray: #f0efec;
  --mid-gray:   #e2e0db;
  --text:       #1a1a1a;
  --muted:      #555550;
  --border:     #d8d6d0;
  --nav-h:      64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

/* ── UTILITY BAR ──────────────────────────────────── */
.util-bar {
  background: var(--teal-dark);
  padding: 0 48px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 36px;
  font-size: 12px;
}
.util-bar a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  padding: 0 16px;
  height: 36px;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,.1);
  transition: color .2s;
  letter-spacing: .04em;
}
.util-bar a:hover { color: var(--gold); }

/* ── MAIN NAV ─────────────────────────────────────── */
.main-nav {
  background: var(--white);
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 48px;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 20px; text-decoration: none; }
.nav-logo img { 
  height: 140px; 
  width: 140px;  /* maintains aspect ratio */
  object-fit: contain; 
}
.nav-logo-text {
  font-family: 'Libre Baskerville', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.25;
}
.nav-logo-text span {
  display: block;
  font-size: 10px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.nav-menu {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  list-style: none;
}
.nav-menu > li { position: relative; height: 100%; }
.nav-menu > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 17px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .03em;
  gap: 4px;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--teal);
  border-bottom-color: var(--gold);
}
.chev { font-size: 9px; margin-top: 1px; }

.nav-menu > li:hover .mega { display: block; }
.mega {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  min-width: 250px;
  background: var(--white);
  border-top: 3px solid var(--gold);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 300;
}
.mega a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.mega a:last-child { border-bottom: none; }
.mega a:hover { background: var(--off-white); color: var(--teal); }

.nav-cta {
  margin-left: 14px;
  padding: 9px 20px !important;
  height: auto !important;
  background: var(--teal) !important;
  color: var(--white) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase;
  border-bottom: none !important;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--teal-mid) !important; }

/* ── PAGE HERO BANNER (inner pages) ──────────────── */
.page-hero {
  background: var(--teal);
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(8,46,46,.95) 40%, rgba(8,46,46,.65) 100%);
  z-index: 1;
}
.page-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(20%);
  z-index: 0;
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 48px 48px 40px;
}
.page-hero-eyebrow {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.page-hero-eyebrow a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}
.page-hero-eyebrow a:hover { color: var(--gold); }
.page-hero-eyebrow .sep { margin: 0 8px; color: rgba(255,255,255,.3); }
.page-hero h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.18;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }

/* ── SUB NAV ─────────────────────────────────────── */
.sub-nav { background: var(--teal-dark); border-bottom: 1px solid rgba(255,255,255,.08); }
.sub-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  overflow-x: auto;
}
.sub-nav a {
  display: block;
  padding: 13px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .07em;
  color: rgba(255,255,255,.58);
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.sub-nav a:hover { color: var(--white); }
.sub-nav a.active { color: var(--white); border-bottom-color: var(--gold); }

/* ── PAGE BODY ───────────────────────────────────── */
.page-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 48px 72px;
}
.page-body-full { background: var(--off-white); }
.page-body-full .page-body { background: var(--off-white); }

/* ── SECTION LABELS ──────────────────────────────── */
.section-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  color: var(--teal);
  line-height: 1.22;
  margin-bottom: 20px;
}
.section-title em { font-style: italic; }

/* ── DIVIDERS ─────────────────────────────────────── */
.full-divider { height: 1px; background: var(--mid-gray); }
.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 12px 26px;
  background: var(--teal);
  color: var(--white);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--teal-mid); }

.btn-gold {
  display: inline-block;
  padding: 12px 26px;
  background: var(--gold);
  color: var(--teal-dark);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
}
.btn-gold:hover { background: var(--gold-dark); color: #fff; }

.btn-outline {
  display: inline-block;
  padding: 11px 26px;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--teal); color: #fff; }

/* ── GOLD ACCENT BOX ─────────────────────────────── */
.gold-box {
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  background: var(--off-white);
  margin-bottom: 16px;
}
.gold-box-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.gold-box p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── CTA BAND ─────────────────────────────────────── */
.cta-band {
  background: var(--teal);
  padding: 52px 48px;
}
.cta-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 400;
  color: var(--white);
  font-style: italic;
}
.cta-band h2 strong { font-style: normal; color: var(--gold); font-weight: 700; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-ghost {
  display: inline-block;
  padding: 11px 26px;
  border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.85);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── FOOTER ──────────────────────────────────────── */
footer { background: var(--teal-dark); }
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 48px 36px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 52px; width: 52px; object-fit: contain; margin-bottom: 14px; display: block; }
.footer-brand-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 15px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 2px;
}
.footer-brand-sub {
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.footer-brand-addr { font-size: 12.5px; color: rgba(255,255,255,.45); line-height: 1.75; }
.footer-col h5 {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,168,76,.2);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,.32);
}
.footer-bottom a { color: rgba(255,255,255,.32); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ── WHATSAPP FLOAT ──────────────────────────────── */
.wa-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  z-index: 999;
  text-decoration: none;
  transition: transform .2s;
}
.wa-btn:hover { transform: scale(1.08); }
.wa-btn svg { width: 28px; height: 28px; fill: #fff; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 960px) {
  .util-bar, .main-nav { padding: 0 20px; }
  .nav-menu { display: none; }
  .page-hero-content { padding: 40px 20px 32px; }
  .sub-nav-inner { padding: 0 20px; }
  .page-body { padding: 40px 20px 56px; }
  .cta-band { padding: 40px 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 40px 20px; }
  .footer-bottom { padding: 16px 20px; flex-direction: column; text-align: center; }
}
