/* ============================================================
   Senior Counsel Bar of Kenya – Custom Styles
   Colors: Navy #0B1F3A | Gold #C8A96B | White #FFFFFF | Dark Gray #2D2D2D
   ============================================================ */

:root {
  --navy: #0B1F3A;
  --gold: #C8A96B;
  --gold-dark: #b8914a;
  --gold-light: #e8d5a8;
  --white: #FFFFFF;
  --darkgray: #2D2D2D;
  --lightbg: #f8f7f4;
  --border: #e8e4dc;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--darkgray);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
#navbar {
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
#navbar.scrolled {
  background-color: var(--navy) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.nav-link {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, #071628 0%, #0d2847 40%, #0B1F3A 100%);
  overflow: hidden;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8A96B' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200,169,107,0.12);
}

/* ══════════════════════════════════════════
   SECTION HELPERS
══════════════════════════════════════════ */
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.gold-line {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(200,169,107,0.25));
}
.gold-line.center { margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 2px solid var(--gold);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold);
}
.btn-outline-gold {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 2px solid var(--gold);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
}
.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 2px solid var(--navy);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-navy:hover {
  background: transparent;
  color: var(--navy);
}

/* ══════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #142d52 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
}
.page-hero-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23C8A96B' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ══════════════════════════════════════════
   MEMBER CARDS
══════════════════════════════════════════ */
.member-card {
  background: white;
  border: 1px solid #ede9e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.member-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.member-card:hover::before { width: 100%; }
.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(11,31,58,0.12);
  border-color: rgba(200,169,107,0.3);
}

.member-avatar {
  width: 72px; height: 72px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 700;
  margin: 0;
  border: 3px solid rgba(200,169,107,0.25);
  flex-shrink: 0;
}
.member-avatar.lg {
  width: 100px; height: 100px;
  font-size: 1.8rem;
}

/* ══════════════════════════════════════════
   EVENT & NEWS CARDS
══════════════════════════════════════════ */
.event-card {
  background: white;
  border: 1px solid #ede9e0;
  transition: all 0.3s ease;
  overflow: hidden;
}
.event-card:hover {
  box-shadow: 0 12px 40px rgba(11,31,58,0.1);
  border-color: rgba(200,169,107,0.35);
}
.event-card:hover .event-date-box { background: var(--gold); }
.event-card:hover .event-date-box span { color: var(--navy); }

.event-date-box {
  background: var(--navy);
  padding: 12px 16px;
  text-align: center;
  min-width: 72px;
  transition: background 0.3s;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   PUBLICATION CARDS
══════════════════════════════════════════ */
.pub-card {
  background: white;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #ede9e0;
  transition: all 0.3s ease;
  padding: 20px 24px;
}
.pub-card:hover {
  border-left-color: var(--gold);
  background: var(--lightbg);
}

/* ══════════════════════════════════════════
   GALLERY
══════════════════════════════════════════ */
.gallery-item {
  overflow: hidden; position: relative; cursor: pointer;
}
.gallery-item .gallery-img {
  transition: transform 0.5s ease;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.gallery-item:hover .gallery-img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(11,31,58,0.65);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ══════════════════════════════════════════
   STATS
══════════════════════════════════════════ */
.stat-divider {
  position: relative;
}
.stat-divider:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(200,169,107,0.2);
}

/* ══════════════════════════════════════════
   FILTER TABS
══════════════════════════════════════════ */
.filter-tab {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1.5px solid #d5cfc4;
  color: #666;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.filter-tab:hover { border-color: var(--navy); color: var(--navy); }
.filter-tab.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* ══════════════════════════════════════════
   FORM
══════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  border: 1.5px solid #d5cfc4;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  background: white;
  color: var(--darkgray);
  border-radius: 0;
}
.form-control:focus { border-color: var(--navy); }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ══════════════════════════════════════════
   COHORT BADGE
══════════════════════════════════════════ */
.cohort-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  background: rgba(200,169,107,0.12);
  color: var(--gold-dark);
  border: 1px solid rgba(200,169,107,0.3);
}
.cohort-badge.c1 { background: rgba(11,31,58,0.06); color: #3a5f8a; border-color: rgba(11,31,58,0.15); }
.cohort-badge.c2 { background: rgba(200,169,107,0.1); color: #9a6e20; border-color: rgba(200,169,107,0.3); }
.cohort-badge.c3 { background: rgba(40,100,60,0.08); color: #2a6040; border-color: rgba(40,100,60,0.2); }
.cohort-badge.c4 { background: rgba(120,40,40,0.07); color: #7a2a2a; border-color: rgba(120,40,40,0.2); }

.deceased-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  border: 1px solid #ddd;
  padding: 2px 8px;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer-link {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color 0.3s, padding-left 0.3s;
}
.footer-link:hover { color: var(--gold); padding-left: 4px; }

/* ══════════════════════════════════════════
   TIMELINE (About page)
══════════════════════════════════════════ */
.timeline { position: relative; padding-left: 0; }
.timeline-item {
  position: relative;
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 48px;
}
.timeline-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--gold);
  flex-shrink: 0;
}
.timeline-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(200,169,107,0.15) 100%);
  margin-top: 4px;
}
.timeline-item:last-child .timeline-line { display: none; }

/* ══════════════════════════════════════════
   PRIVILEGE CARDS (About page)
══════════════════════════════════════════ */
.privilege-card {
  border-top: 3px solid var(--gold);
  background: white;
  padding: 28px 24px;
  transition: box-shadow 0.3s ease;
}
.privilege-card:hover {
  box-shadow: 0 8px 32px rgba(11,31,58,0.1);
}

/* ══════════════════════════════════════════
   QUOTE BLOCK
══════════════════════════════════════════ */
.quote-block {
  border-left: 4px solid var(--gold);
  padding: 20px 28px;
  background: var(--lightbg);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   MEMBERS TABLE (members page full list)
══════════════════════════════════════════ */
.members-table-row {
  border-bottom: 1px solid #ede9e0;
  transition: background 0.2s;
}
.members-table-row:hover { background: var(--lightbg); }

/* ══════════════════════════════════════════
   SEARCH BAR
══════════════════════════════════════════ */
.search-bar {
  position: relative;
}
.search-bar input {
  width: 100%;
  border: 2px solid #d5cfc4;
  padding: 14px 20px 14px 48px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  background: white;
}
.search-bar input:focus { border-color: var(--navy); }
.search-bar .search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

/* ══════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════ */
#lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
  flex-direction: column;
}
#lightbox.active { display: flex; }
#lightbox img { max-width: 90vw; max-height: 80vh; object-fit: contain; }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes pulse-gold {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.pulse { animation: pulse-gold 2.5s infinite; }

@keyframes float-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   MOBILE ADJUSTMENTS
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .page-hero { padding: 120px 0 60px; }
  .stat-divider:not(:last-child)::after { display: none; }
  .hero-section { min-height: 100svh; }
}

/* ══════════════════════════════════════════
   PRINT / ACCESSIBILITY
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
