/* ============================================================
   Caspian Africa — Shared site styles
   www.caspian-africa.com
   Blue + Gold institutional theme
   ============================================================ */

:root {
  --navy-900: #061427;
  --navy-800: #0A1F3D;     /* primary deep blue */
  --navy-700: #0F2A52;
  --navy-600: #163A6B;
  --navy-500: #1F4E89;     /* link / hover */
  --gold-700: #8C6A2A;
  --gold-600: #B5872F;
  --gold-500: #C9A14A;     /* primary gold (matches logo) */
  --gold-400: #D9B567;
  --gold-300: #E6C97F;
  --ivory:    #FBF7EE;
  --cream:    #F5EFE0;
  --paper:    #F9FAFC;
  --text:     #111723;
  --muted:    #5B6573;
  --line:     #E3E6EB;
  --line-soft:#EEF1F6;
  --shadow-sm: 0 2px 8px rgba(10,31,61,0.06);
  --shadow-md: 0 8px 24px rgba(10,31,61,0.08);
  --shadow-lg: 0 18px 48px rgba(10,31,61,0.14);
  --maxw: 1200px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-500); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-600); }

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.25em; margin: 0 0 1em; }

/* ---- Layout helpers ---- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--alt { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy-800); color: rgba(255,255,255,0.85); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy a { color: var(--gold-400); }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-600);
  margin-bottom: 16px;
}
.section--navy .eyebrow { color: var(--gold-400); }

.lede { font-size: 1.18rem; color: var(--muted); }
.section--navy .lede { color: rgba(255,255,255,0.78); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--gold-500);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--gold-500);
  border-radius: var(--radius);
  transition: all .2s ease;
  cursor: pointer;
}
.btn:hover { background: var(--gold-600); border-color: var(--gold-600); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: #fff !important;
  border: 2px solid #fff;
}
.btn--ghost:hover { background: #fff; color: var(--navy-800) !important; border-color: #fff; }
.btn--navy {
  background: var(--navy-800);
  border-color: var(--navy-800);
}
.btn--navy:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn--outline {
  background: transparent;
  color: var(--navy-800) !important;
  border-color: var(--navy-800);
}
.btn--outline:hover { background: var(--navy-800); color: #fff !important; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 52px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--navy-800);
  font-weight: 500;
  font-size: 0.93rem;
  position: relative;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--gold-600); }
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold-500);
}
.nav-cta { background: var(--navy-800); color: #fff !important; padding: 10px 20px; border-radius: var(--radius); }
.nav-cta:hover { background: var(--gold-600); color: #fff !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  color: var(--navy-800);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; }
  .nav-links a.is-active::after { display: none; }
  .nav-cta { margin: 8px 24px 0; text-align: center; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy-800);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(201,161,74,0.18), transparent 55%),
    linear-gradient(135deg, #061427 0%, #0A1F3D 50%, #0F2A52 100%);
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 40px, rgba(255,255,255,0.015) 40px 41px);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; padding: 80px 24px; }
.hero h1 { color: #fff; max-width: 880px; }
.hero .lede { color: rgba(255,255,255,0.86); max-width: 720px; font-size: 1.25rem; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero--page { min-height: 46vh; }
.hero--page .lede { font-size: 1.1rem; }

/* ============================================================
   Page section primitives
   ============================================================ */
.section-header { max-width: 760px; margin: 0 auto 48px; 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-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Asset cards (DRC / Botswana)
   ============================================================ */
.asset-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-500);
  padding: 36px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.asset-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.asset-card .asset-flag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 10px;
}
.asset-card h3 { margin: 0 0 12px; }
.asset-card .asset-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  margin: 18px 0 22px;
  font-size: 0.93rem;
}
.asset-card .asset-meta dt { color: var(--navy-800); font-weight: 600; }
.asset-card .asset-meta dd { margin: 0; color: var(--muted); }
.asset-card .asset-cta { margin-top: auto; padding-top: 14px; }
.asset-card .asset-cta a { font-weight: 600; color: var(--navy-800); display: inline-flex; align-items: center; gap: 6px; }
.asset-card .asset-cta a::after { content: '→'; transition: transform .2s ease; }
.asset-card .asset-cta a:hover::after { transform: translateX(4px); }
.asset-card.botswana { border-top-color: var(--navy-500); }
.asset-card.botswana .asset-flag { color: var(--navy-500); }

/* ============================================================
   Mineral cards / chips
   ============================================================ */
.mineral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.mineral-chip {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  text-align: left;
  position: relative;
  transition: border-color .2s ease;
}
.mineral-chip:hover { border-color: var(--gold-500); }
.mineral-chip .chip-icon {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 999px;
  margin-bottom: 14px;
  color: var(--gold-700);
  font-weight: 700;
}
.mineral-chip h4 { margin: 0 0 6px; color: var(--navy-800); }
.mineral-chip .chip-sub { font-size: 0.86rem; color: var(--muted); margin: 0; }

/* ============================================================
   Location cards (per-site mineral content)
   ============================================================ */
.location-stack { display: flex; flex-direction: column; gap: 28px; }
.location-card {
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
}
.location-card .loc-image {
  background: var(--paper) center/cover no-repeat;
  min-height: 260px;
}
.location-card .loc-body { padding: 28px 32px; }
.location-card h3 { margin: 0 0 6px; }
.location-card .loc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 16px;
}
.location-card .loc-meta span::before { content: '•'; margin-right: 8px; color: var(--gold-500); }
.location-card .loc-meta span:first-child::before { content: ''; margin: 0; }
.location-card .mineral-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px;
}
.mineral-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--gold-700);
  border: 1px solid #E8DAB6;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}
.mineral-tag.navy { background: #E8EEF7; color: var(--navy-700); border-color: #C9D5E8; }

@media (max-width: 800px) {
  .location-card { grid-template-columns: 1fr; }
  .location-card .loc-image { min-height: 200px; }
  .location-card .loc-body { padding: 22px 24px; }
}

/* ============================================================
   Cap table
   ============================================================ */
.cap-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  margin: 16px 0 32px;
}
.cap-table th, .cap-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.cap-table th {
  background: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--navy-800);
  font-weight: 700;
}
.cap-table td.equity { font-weight: 700; color: var(--gold-700); }
.cap-table tr.total td {
  background: var(--paper);
  font-weight: 700;
  border-top: 2px solid var(--navy-800);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: var(--navy-800);
}

/* ============================================================
   Bullets — checkmark style
   ============================================================ */
.checks { list-style: none; padding: 0; margin: 16px 0; }
.checks li {
  position: relative;
  padding: 12px 0 12px 38px;
  border-bottom: 1px solid var(--line);
}
.checks li:last-child { border-bottom: none; }
.checks li::before {
  content: '◆';
  position: absolute;
  left: 0; top: 11px;
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-500);
  font-size: 0.85rem;
}
.section--navy .checks li { border-bottom-color: rgba(255,255,255,0.1); }
.section--navy .checks li::before { color: var(--gold-400); }

/* ============================================================
   Stat / metric strips
   ============================================================ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--navy-800);
  color: #fff;
  border-top: 4px solid var(--gold-500);
}
.stat-strip .stat {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-strip .stat:last-child { border-right: none; }
.stat-strip .stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--gold-400);
  font-weight: 600;
  line-height: 1.1;
}
.stat-strip .stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}
@media (max-width: 800px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-strip .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .stat-strip .stat:nth-child(even) { border-right: none; }
}

/* ============================================================
   Team grid
   ============================================================ */
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card .team-photo {
  aspect-ratio: 4/5;
  background: var(--paper) center/cover no-repeat;
}
.team-card .team-info { padding: 22px 24px; }
.team-card h4 { margin: 0 0 4px; font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--navy-800); }
.team-card .team-title {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-600);
  margin: 0 0 12px;
}
.team-card .team-bio { font-size: 0.93rem; color: var(--muted); }

/* ============================================================
   Office cards
   ============================================================ */
.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 800px) { .office-grid { grid-template-columns: 1fr; } }
.office-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  padding: 24px 28px;
}
.office-card h4 { margin: 0 0 4px; }
.office-card .office-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 8px;
}
.office-card address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   Compliance / callout
   ============================================================ */
.callout {
  background: var(--paper);
  border-left: 4px solid var(--gold-500);
  padding: 22px 26px;
  margin: 24px 0;
}
.callout h4 { margin: 0 0 6px; }

/* ============================================================
   Forms
   ============================================================ */
.form-stack { display: grid; gap: 16px; max-width: 640px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-stack label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy-800);
}
.form-stack input,
.form-stack select,
.form-stack textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,161,74,0.15);
}
.form-stack textarea { min-height: 140px; resize: vertical; }
.form-msg { padding: 14px 18px; border-radius: var(--radius); font-size: 0.93rem; }
.form-msg--ok { background: #EAF6EE; color: #1F6B36; border: 1px solid #B8E0C4; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 24px;
  font-size: 0.92rem;
}
.site-footer h5 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 18px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid img { width: 200px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: rgba(255,255,255,0.78); }
.footer-grid a:hover { color: var(--gold-400); }
.footer-tag { color: rgba(255,255,255,0.6); font-size: 0.86rem; max-width: 320px; }
.footer-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; color: rgba(255,255,255,0.55); font-size: 0.82rem; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
hr.divider { border: 0; height: 1px; background: var(--line); margin: 40px 0; }
.print-only { display: none; }
@media print { .print-only { display: block; } .site-header, .site-footer, .nav-toggle { display: none; } }
