/* =============================================
   GLOBAL CSS — crypto-to-naira.com
   ============================================= */

/* --- Variables --- */
:root {
  --color-primary:       #0f4c35;
  --color-primary-light: #1a7a55;
  --color-accent:        #f5a623;
  --color-bg:            #f8f9fa;
  --color-surface:       #ffffff;
  --color-text:          #1a1a2e;
  --color-text-muted:    #4a5568;
  --color-border:        #e2e8f0;
  --color-success:       #38a169;
  --color-danger:        #e53e3e;
  --max-width:           1160px;
  --radius-lg:           12px;
  --radius-md:           8px;
  --radius-sm:           6px;
  --shadow:              0 1px 3px rgba(15,76,53,.08), 0 4px 16px rgba(15,76,53,.06);
  --shadow-elevated:     0 2px 8px rgba(15,76,53,.12), 0 8px 24px rgba(15,76,53,.08);
  --font-heading:        'Inter', sans-serif;
  --font-body:           'Source Sans 3', sans-serif;
  --font-mono:           'JetBrains Mono', monospace;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-light); text-decoration: underline; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: .35rem; }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.25rem, 3vw, 1.625rem); margin: 2.25rem 0 .875rem; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.25rem); margin: 1.75rem 0 .625rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

.mono { font-family: var(--font-mono); font-size: .9em; }

/* --- Site Header --- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(15,76,53,.07);
}
.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo__img { height: 44px; width: auto; }

.site-nav {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
}
.site-nav a {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color .18s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active { color: var(--color-primary); text-decoration: none; }
.site-nav a.active { border-bottom: 2px solid var(--color-primary); padding-bottom: 2px; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.nav-toggle:hover { background: var(--color-bg); }
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile nav open state */
.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem 1.5rem;
  gap: .75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

/* --- Disclaimers --- */
.disclaimer {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  border-radius: var(--radius-md);
  padding: .875rem 1.125rem;
  margin: 1.25rem 0;
  font-size: .9rem;
  line-height: 1.6;
}
.disclaimer svg { flex-shrink: 0; margin-top: 2px; width: 18px; height: 18px; }
.disclaimer p { margin: 0; }
.disclaimer--info    { background: #eff8f4; border: 1px solid #b7e0cc; color: #1a5c3a; }
.disclaimer--info svg { color: var(--color-primary); }
.disclaimer--rates   { background: #fef9ec; border: 1px solid #f7d98b; color: #7c5b0a; }
.disclaimer--rates svg { color: #c8850a; }
.disclaimer--legal   { background: #f0f4ff; border: 1px solid #c3cff5; color: #2d3a85; }
.disclaimer--legal svg { color: #4158d0; }
.disclaimer--tax     { background: #f7f7f7; border: 1px solid #ddd; color: #444; }
.disclaimer--tax svg { color: #666; }

/* --- Tables --- */
.table-wrapper { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius-md); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--color-surface); font-size: .9rem; }
thead { background: var(--color-primary); color: #fff; }
thead th { padding: .75rem 1rem; text-align: left; font-family: var(--font-heading); font-weight: 600; font-size: .85rem; letter-spacing: .02em; white-space: nowrap; }
thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
thead th:last-child  { border-radius: 0 var(--radius-md) 0 0; }
tbody tr { border-bottom: 1px solid var(--color-border); transition: background .12s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f0faf5; }
tbody td { padding: .7rem 1rem; vertical-align: middle; color: var(--color-text); }
.table-note { font-size: .78rem; color: var(--color-text-muted); padding: .5rem 1rem .625rem; margin: 0; background: #fafafa; border-top: 1px solid var(--color-border); border-radius: 0 0 var(--radius-md) var(--radius-md); }

/* --- FAQ (details/summary) --- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: .75rem;
  background: var(--color-surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .15s;
}
.faq-item summary:hover { background: #f0faf5; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p { padding: 0 1.25rem 1rem; color: var(--color-text-muted); font-size: .95rem; margin: 0; }

/* --- Last updated --- */
.last-updated {
  font-size: .8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: .375rem;
  margin-bottom: 1rem;
}
.last-updated svg { width: 14px; height: 14px; }

/* --- Main content layout (all pages) --- */
.main-content { padding: 2.5rem 0 3rem; }

/* --- Secondary / inner pages --- */
.page-content { max-width: 720px; padding: 0 0 3.5rem; }
.page-content h1 { margin-bottom: 1.5rem; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.contact-form label { font-size: .85rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: -.5rem; }
.contact-form input,
.contact-form textarea {
  padding: .7rem .9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15,76,53,.1);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* Primary button */
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: .7rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background .18s, box-shadow .18s, transform .12s;
}
.btn-primary:hover { background: var(--color-primary-light); }
.btn-primary:active { transform: scale(.98); }

/* --- Site Footer --- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.85);
  margin-top: 4rem;
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer-brand p { font-size: .9rem; margin-top: .75rem; color: rgba(255,255,255,.7); }
.footer-links h3,
.footer-legal h3 { color: #fff; font-size: .95rem; margin-bottom: .75rem; font-family: var(--font-heading); }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.75); font-size: .9rem; transition: color .15s; }
.footer-links a:hover { color: var(--color-accent); text-decoration: none; }
.footer-legal p { font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: .5rem; }
.footer-copyright { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 1rem; }

/* --- Responsive --- */
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .footer-grid { grid-template-columns: 2fr 1fr 2fr; }
  .container { padding: 0 1.5rem; }
}
