/* ============================================================
   Kenya Exchange Guide — Global Design System
   Palette: Teal primary · Amber accent · Slate dark
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Brand */
  --c-primary:       #0D9488;
  --c-primary-dark:  #0F766E;
  --c-primary-light: #CCFBF1;
  --c-accent:        #F59E0B;
  --c-accent-dark:   #D97706;
  --c-accent-light:  #FEF3C7;

  /* Neutrals */
  --c-dark:    #0F172A;
  --c-mid:     #1E293B;
  --c-muted:   #64748B;
  --c-border:  #E2E8F0;
  --c-surface: #F8FAFC;
  --c-bg:      #F0FDFA;
  --c-white:   #FFFFFF;

  /* Status */
  --c-success: #10B981;
  --c-warning: #F59E0B;
  --c-error:   #EF4444;

  /* Type */
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 4px rgba(15,23,42,0.08);
  --sh-md: 0 4px 20px rgba(15,23,42,0.10);
  --sh-lg: 0 10px 44px rgba(15,23,42,0.14);

  /* Layout */
  --max-w: 1120px;
  --hdr-h: 68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-dark);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (max-width: 600px) { .container { padding-inline: 1rem; } }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hdr-h);
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--sh-sm);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 38px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { font-size: 0.875rem; font-weight: 500; color: var(--c-muted); transition: color 0.2s; }
.site-nav a:hover { color: var(--c-primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--r-pill);
  background: var(--c-primary);
  color: var(--c-white) !important;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover {
  background: var(--c-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13,148,136,0.3);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-dark); border-radius: 2px; transition: all 0.25s; }

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--hdr-h);
    left: 0; right: 0;
    background: var(--c-white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--sh-md);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.5rem 0; font-size: 1rem; }
  .nav-cta { text-align: center; justify-content: center; padding: 0.75rem 1.5rem; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--r-pill);
  font-size: 0.9rem; font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--c-primary); color: var(--c-white); }
.btn-primary:hover { background: var(--c-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(13,148,136,0.32); }
.btn-accent  { background: var(--c-accent); color: var(--c-dark); }
.btn-accent:hover  { background: var(--c-accent-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(245,158,11,0.32); }
.btn-outline { background: transparent; color: var(--c-primary); border: 2px solid var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: var(--c-white); }
.btn-ghost   { background: rgba(255,255,255,0.12); color: var(--c-white); border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.2rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--r-pill);
  font-size: 0.72rem; font-weight: 700; line-height: 1;
}
.badge-teal   { background: var(--c-primary-light); color: var(--c-primary-dark); }
.badge-amber  { background: var(--c-accent-light); color: #92400E; }
.badge-green  { background: #DCFCE7; color: #166534; }
.badge-slate  { background: #F1F5F9; color: var(--c-muted); }

/* ── Section heading helpers ── */
.section-kicker {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 0.6rem;
}
.section-h { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--c-dark); }
.section-sub { font-size: 1.05rem; color: var(--c-muted); margin-top: 0.6rem; max-width: 600px; }

/* ── Notice boxes ── */
.notice {
  display: flex; gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-md);
  font-size: 0.875rem; line-height: 1.6;
}
.notice svg { flex-shrink: 0; margin-top: 1px; }
.notice-info    { background: #EFF6FF; border-left: 3px solid #3B82F6; color: #1E40AF; }
.notice-warning { background: #FFFBEB; border-left: 3px solid var(--c-accent); color: #92400E; }
.notice-success { background: #F0FDF4; border-left: 3px solid var(--c-success); color: #166534; }
.notice-neutral { background: var(--c-surface); border-left: 3px solid var(--c-muted); color: var(--c-muted); }

/* ── Table ── */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); box-shadow: var(--sh-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; background: var(--c-white); }
thead tr { background: var(--c-dark); color: var(--c-white); }
thead th { padding: 0.85rem 1rem; text-align: left; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--c-border); transition: background 0.15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--c-surface); }
tbody tr.row-featured { background: #F0FDFA; }
tbody tr.row-featured td:first-child { border-left: 3px solid var(--c-primary); }
td { padding: 0.85rem 1rem; vertical-align: middle; }
.check-y { color: var(--c-success); font-weight: 600; }
.check-n { color: var(--c-muted); }
.tbl-note { font-size: 0.75rem; color: var(--c-muted); margin-top: 0.4rem; }

/* ── FAQ accordion ── */
.faq-list { display: flex; flex-direction: column; gap: 0.65rem; }
details.faq-item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
details.faq-item[open] { box-shadow: var(--sh-md); border-color: var(--c-primary-light); }
details.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; user-select: none;
  color: var(--c-dark);
}
details.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex-shrink: 0; transition: transform 0.25s; color: var(--c-primary); }
details.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body {
  padding: 0.75rem 1.4rem 1.2rem;
  font-size: 0.875rem; color: var(--c-muted); line-height: 1.75;
  border-top: 1px solid var(--c-border);
}

/* ── Footer ── */
.site-footer {
  background: var(--c-dark);
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.footer-brand p { margin-top: 0.75rem; line-height: 1.65; max-width: 300px; }
.footer-logo-img { height: 32px; filter: brightness(0) invert(1) opacity(0.85); }
.footer-col h4 { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-col a:hover { color: var(--c-primary-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.footer-copy { font-size: 0.78rem; opacity: 0.5; }
.footer-disc { font-size: 0.7rem; max-width: 680px; opacity: 0.38; line-height: 1.55; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ── Misc utilities ── */
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.text-center { text-align: center; }
.mt-2  { margin-top: 0.5rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }
