/* ============================================================
   Dr. Abukar Muktar Omar — shared stylesheet
   Theme tokens, base typography, and reusable components.
   Works alongside Tailwind CDN utilities.
   ============================================================ */

:root {
  /* Brand — Deep Warm Navy + Gold (default) */
  --c-navy: #16243d;
  --c-navy-dark: #0e1827;
  --c-navy-soft: #24395c;
  --c-navy-line: #30436a;
  --c-gold: #e0b64a;
  --c-gold-dark: #c79a2f;
  --c-gold-soft: #f3e2b0;
  --radius-card: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: #1b2533;
  background: #f5f6f8;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: 'Spectral', Georgia, serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- labeled placeholder ---------- */
.ph {
  background-color: #e7eaef;
  background-image: repeating-linear-gradient(135deg, rgba(22,36,61,0.045) 0 12px, rgba(22,36,61,0) 12px 24px);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: rgba(22,36,61,0.38);
  overflow: hidden;
}
.ph-dark {
  background-color: #1b2c49;
  background-image: repeating-linear-gradient(135deg, rgba(224,182,74,0.10) 0 12px, rgba(224,182,74,0) 12px 24px);
  color: rgba(224,182,74,0.7);
}
.ph-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 12px; }
.ph-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; border-radius: 999px; font-weight: 500; letter-spacing: 0.01em;
  cursor: pointer; border: 1px solid transparent; transition: all .2s ease;
  font-size: 15px; padding: 10px 20px; font-family: inherit;
}
.btn svg { width: 17px; height: 17px; }
.btn-lg { font-size: 16px; padding: 14px 28px; }
.btn-lg svg { width: 19px; height: 19px; }
.btn-sm { font-size: 14px; padding: 8px 16px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-solid { background: var(--c-navy); color: #fff; box-shadow: 0 1px 2px rgba(22,36,61,0.05), 0 4px 14px -8px rgba(22,36,61,0.14); }
.btn-solid:hover { background: var(--c-navy-dark); }
.btn-gold { background: var(--c-gold); color: var(--c-navy-dark); font-weight: 600; }
.btn-gold:hover { background: var(--c-gold-dark); }
.btn-outline { border-color: rgba(22,36,61,0.25); color: var(--c-navy); }
.btn-outline:hover { border-color: var(--c-navy); background: rgba(22,36,61,0.03); }
.btn-outline-light { border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-ghost { color: var(--c-navy); }
.btn-ghost:hover { background: rgba(22,36,61,0.05); }

/* ---------- pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 6px 16px; font-size: 14px; font-weight: 500; cursor: pointer;
  background: #fff; color: #5a6677; border: 1px solid rgba(22,36,61,0.12);
  transition: all .2s ease; font-family: inherit;
}
.pill:hover { border-color: rgba(22,36,61,0.3); color: var(--c-navy); }
.pill.is-active { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

/* ---------- cards ---------- */
.card {
  background: #fff; border: 1px solid rgba(22,36,61,0.08);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(22,36,61,0.05), 0 4px 14px -8px rgba(22,36,61,0.14);
}
.card-hoverable { transition: box-shadow .3s ease, transform .3s ease; }
.card-hoverable:hover { box-shadow: 0 2px 4px rgba(22,36,61,0.06), 0 22px 46px -18px rgba(22,36,61,0.32); transform: translateY(-4px); }

/* ---------- eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-gold-dark);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--c-gold); }
.eyebrow.on-dark { color: var(--c-gold); }

/* ---------- type badges ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.tag-gold { background: rgba(224,182,74,0.15); color: var(--c-gold-dark); }
.tag-navy { background: rgba(22,36,61,0.08); color: var(--c-navy); }
.tag-green { background: #ecfdf5; color: #047857; }
.tag-blue { background: #f0f9ff; color: #0369a1; }
.tag-red { background: #fef2f2; color: #dc2626; }

/* ---------- crest ---------- */
.crest {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--c-navy); color: var(--c-gold);
  font-family: 'Spectral', serif; font-weight: 700; line-height: 1;
}

/* ---------- header / navbar (light, legacy) ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; transition: box-shadow .3s ease, background .3s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 2px rgba(22,36,61,0.05), 0 4px 14px -8px rgba(22,36,61,0.14); background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); }
.nav-link { position: relative; padding: 8px 12px; font-size: 14.5px; font-weight: 500; color: #5a6677; border-radius: 6px; transition: color .2s ease; }
.nav-link:hover { color: var(--c-navy); }
.nav-link.is-active { color: var(--c-navy); }
.nav-link.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--c-gold); border-radius: 2px; }
.mobile-menu { overflow: hidden; max-height: 0; transition: max-height .35s ease; border-top: 1px solid rgba(22,36,61,0.08); background: #fff; }
.mobile-menu.is-open { max-height: 560px; }

/* ---------- header (Navy Solid + utility strip) ---------- */
.site-header-d { position: relative; z-index: 40; }
.util-strip { background: #ffffff; }
.util-social { display: inline-flex; cursor: pointer; transition: transform .15s ease, opacity .2s ease; opacity: .9; }
.util-social:hover { opacity: 1; transform: translateY(-1px); }
.util-contact { color: rgba(22,36,61,0.7); font-weight: 500; transition: color .2s ease; }
.util-contact:hover { color: var(--c-navy); }
.main-bar-d { position: sticky; top: 0; z-index: 40; background: var(--c-navy); position: -webkit-sticky; position: sticky; overflow: hidden; transition: box-shadow .3s ease; box-shadow: inset 0 -1px 0 rgba(224,182,74,0.22); }
.main-bar-d.is-scrolled { box-shadow: 0 6px 24px -10px rgba(0,0,0,0.45); }
.main-bar-d .bar-glow { position: absolute; right: -60px; top: -50px; width: 220px; height: 220px; border-radius: 999px; background: radial-gradient(circle, rgba(224,182,74,0.16), transparent 70%); pointer-events: none; }
.nav-link-d { position: relative; padding: 6px 1px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.72); white-space: nowrap; transition: color .2s ease; }
.nav-link-d:hover { color: #fff; }
.nav-link-d::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; width: 0; margin: 0 auto; background: var(--c-gold); border-radius: 2px; transition: width .25s ease; }
.nav-link-d:hover::after { width: 100%; }
.nav-link-d.is-active { color: var(--c-gold); }
.nav-link-d.is-active::after { width: 100%; }
.mobile-menu-d { overflow: hidden; max-height: 0; transition: max-height .35s ease; border-top: 1px solid rgba(255,255,255,0.08); background: var(--c-navy-dark); }
.mobile-menu-d.is-open { max-height: 560px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 1; }
.reveal.pre { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.22,.61,.36,1); }

/* ---------- misc ---------- */
.link-underline { background-image: linear-gradient(var(--c-gold), var(--c-gold)); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s ease; }
.link-underline:hover { background-size: 100% 2px; }
.divide-y-navy > * + * { border-top: 1px solid rgba(22,36,61,0.06); }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* radial glow helper */
.glow-gold { background: radial-gradient(circle, rgba(224,182,74,0.18), transparent 70%); }

/* ---------- back to top ---------- */
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 48px; height: 48px; border-radius: 999px; border: none; cursor: pointer; background: var(--c-navy); color: var(--c-gold); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px -8px rgba(14,24,39,0.5); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s ease, transform .3s cubic-bezier(.22,.61,.36,1), background .2s ease; }
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--c-navy-dark); }
@media (max-width: 640px) { .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* ---------- footer ---------- */
.footer-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.45); }
@media (min-width: 640px) { .footer-base { flex-direction: row; } }
.footer-social { width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15); display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: transform .15s ease, background .2s ease; cursor: pointer; }
.footer-social:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); }

/* ---------- page banner (inner pages) ---------- */
.page-banner { position: relative; overflow: hidden; background: var(--c-navy); color: #fff; }
.page-banner .ph-dark { position: absolute; inset: 0; opacity: .4; }
.banner-glow { position: absolute; right: -96px; top: -96px; width: 384px; height: 384px; border-radius: 999px; }
