/* ─────────────────────────────────────────────────────
   Onyeka Nwokike — Minimal Mono
   Theme: light / dark / system (via [data-theme])
   ───────────────────────────────────────────────────── */

/* TOKENS — LIGHT (default) */
:root,
[data-theme="light"] {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-elevated: #ffffff;
  --text: #0a0a0a;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --accent: #0a0a0a;
  --accent-contrast: #ffffff;
  --hover: #f5f5f5;
  --radius: 12px;
  --radius-sm: 8px;
}

/* TOKENS — DARK */
[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-subtle: #111111;
  --bg-elevated: #161616;
  --text: #fafafa;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  --border: #1f1f1f;
  --border-strong: #2a2a2a;
  --accent: #ffffff;
  --accent-contrast: #0a0a0a;
  --hover: #1a1a1a;
}

/* Follow system if user hasn't explicitly chosen */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0a0a0a;
    --bg-subtle: #111111;
    --bg-elevated: #161616;
    --text: #fafafa;
    --text-muted: #9ca3af;
    --text-faint: #6b7280;
    --border: #1f1f1f;
    --border-strong: #2a2a2a;
    --accent: #ffffff;
    --accent-contrast: #0a0a0a;
    --hover: #1a1a1a;
  }
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* LAYOUT */
.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 880px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* THEME TOGGLE — 3-state (system / light / dark) */
.theme-toggle {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--text-muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.theme-toggle:hover { background: var(--hover); color: var(--text); }
.theme-toggle i { display: none; font-size: 14px; }
[data-theme="light"] .theme-toggle .icon-light,
[data-theme="dark"]  .theme-toggle .icon-dark { display: block; }
:root:not([data-theme]) .theme-toggle .icon-system { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .icon-light { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-system { display: none; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-dark { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-light { display: none; }
}

/* MOBILE MENU BUTTON */
.menu-btn { display: none; width: 36px; height: 36px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border-radius: 8px; }
.menu-btn .bar { width: 20px; height: 2px; background: var(--text); transition: transform 0.2s ease; }
.menu-btn:hover { background: var(--hover); }

/* HERO */
.hero { padding: 96px 0 72px; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text-muted); margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.hero-title {
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted); font-weight: 500; margin-bottom: 28px;
}
.muted { color: var(--text-muted); }
.hero-lede {
  font-size: 18px; color: var(--text-muted); max-width: 60ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; font-size: 14px; font-weight: 500;
  border-radius: var(--radius-sm); transition: all 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--hover); }

/* SOCIALS */
.hero-socials { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-socials a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text-muted); font-weight: 500;
  transition: color 0.15s ease;
}
.hero-socials a:hover { color: var(--text); }
.hero-socials i { font-size: 14px; }

/* STATS */
.stats { padding: 0 0 72px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat-num { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

/* SECTIONS */
.section { padding: 72px 0; border-top: 1px solid var(--border); }
.section-head {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 36px;
}

/* WORK LIST */
.work-list { display: flex; flex-direction: column; }
.work-item { border-bottom: 1px solid var(--border); }
.work-item:first-child { border-top: 1px solid var(--border); }
.work-link {
  display: block; padding: 24px 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  transition: padding 0.18s ease, background-color 0.18s ease;
}
.work-link:hover { padding-left: 12px; padding-right: 12px; }
.work-meta { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.work-num {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text-faint); min-width: 22px;
}
.work-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.work-info { display: flex; align-items: center; gap: 16px; text-align: right; }
.work-desc { font-size: 14px; color: var(--text-muted); }
.work-arrow {
  color: var(--text-faint); font-size: 12px;
  transition: transform 0.18s ease, color 0.18s ease;
}
.work-link:hover .work-arrow { color: var(--text); transform: translateX(4px); }
.badge-store {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  padding: 3px 8px; border-radius: 4px;
  background: var(--bg-subtle); color: var(--text-muted);
  border: 1px solid var(--border); letter-spacing: 0.04em;
}

.see-all {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 32px; font-size: 14px; color: var(--text-muted);
  transition: color 0.15s ease;
}
.see-all:hover { color: var(--text); }
.see-all i { font-size: 11px; transition: transform 0.15s ease; }
.see-all:hover i { transform: translateX(3px); }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-text { font-size: 17px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.65; }
.inline-link { color: var(--text); font-weight: 500; border-bottom: 1px solid var(--border-strong); }
.inline-link:hover { border-bottom-color: var(--text); }
.stack { padding: 28px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius); }
.stack-title {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px;
}
.stack-list { display: flex; flex-direction: column; gap: 12px; }
.stack-list li {
  font-size: 14px; color: var(--text); display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.stack-list li:last-child { border-bottom: none; padding-bottom: 0; }
.stack-key {
  font-size: 11px; color: var(--text-faint); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ABOUT PHOTO */
.about-photo {
  width: 140px; height: 140px; object-fit: cover;
  border-radius: 16px; margin-bottom: 28px;
  border: 1px solid var(--border);
  filter: grayscale(15%);
  transition: filter 0.25s ease, transform 0.25s ease;
}
.about-photo:hover { filter: grayscale(0%); transform: scale(1.02); }
@media (max-width: 768px) {
  .about-photo { width: 120px; height: 120px; border-radius: 14px; }
}

/* CONTACT */
.contact { padding: 96px 0; border-top: 1px solid var(--border); text-align: center; }
.contact-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.contact-title { font-size: clamp(22px, 4vw, 36px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 32px; }
.contact-title a { border-bottom: 2px solid var(--border-strong); padding-bottom: 2px; transition: border-color 0.15s ease; }
.contact-title a:hover { border-bottom-color: var(--text); }
.contact .hero-socials { justify-content: center; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.footer-muted { color: var(--text-faint); }
.footer-link { color: var(--text-muted); border-bottom: 1px solid transparent; transition: color 0.15s ease, border-color 0.15s ease; }
.footer-link:hover { color: var(--text); border-bottom-color: var(--text); }

/* ───────── SERVICES PAGE ───────── */
.page-hero { padding: 80px 0 40px; }
.page-title { font-size: clamp(28px, 5vw, 44px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.page-lede { font-size: 17px; color: var(--text-muted); max-width: 60ch; }

.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 8px;
}
.service-card {
  padding: 28px; background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.service-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.service-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.service-card p { font-size: 14px; color: var(--text-muted); }
.service-details {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
  padding: 14px; background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.service-details ul { padding-left: 18px; margin: 8px 0; }
.service-details ul li { margin-bottom: 4px; }
.service-price { font-size: 15px; font-weight: 600; color: var(--text); }
.service-cta { margin-top: auto; }
.btn-block {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 16px; font-size: 14px; font-weight: 500;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: transparent; color: var(--text); transition: all 0.15s ease;
}
.btn-block:hover { background: var(--hover); }

/* FAQ */
.faq-list { margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 16px; font-weight: 500; color: var(--text);
}
.faq-toggle { color: var(--text-faint); font-size: 18px; transition: transform 0.2s ease; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 15px; color: var(--text-muted); line-height: 1.6;
}
.faq-item.open .faq-answer { max-height: 240px; padding-bottom: 22px; }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 64px 0 32px; }
}

/* MOBILE MENU PANEL */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  transform: translateX(100%); transition: transform 0.25s ease;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mobile-menu a { font-size: 22px; font-weight: 600; }
.close-btn {
  position: absolute; top: 22px; right: 24px;
  width: 44px; height: 44px; font-size: 28px; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ───────── RESPONSIVE ───────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { padding: 64px 0 56px; }
  .hero-lede { font-size: 16px; }
  /* Hero buttons: fit on one line on mobile */
  .hero-actions { gap: 8px; }
  .hero-actions .btn { padding: 9px 14px; font-size: 13px; }
  /* Stats: inner breathing room from screen edge */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; padding: 28px 8px; }
  .section { padding: 56px 0; }
  .work-link { flex-direction: column; align-items: flex-start; gap: 8px; }
  .work-info { text-align: left; justify-content: space-between; width: 100%; }
  .work-desc { font-size: 13px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact { padding: 72px 0; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .stat-num { font-size: 24px; }
  /* Even tighter on small phones so 3 buttons fit */
  .hero-actions .btn { padding: 8px 11px; font-size: 12px; }
}
@media (max-width: 360px) {
  .hero-actions { flex-wrap: nowrap; overflow-x: auto; }
}
