/* ═══════════════════════════════════════════════════════════════════════════
   MadBlack Cyber Solutions — site styles
   Design tokens borrowed from the Cherubim design system (design/tokens.json)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --bg:            #F8F7F4;
  --card-bg:       #FFFFFF;
  --panel:         #F0EFEA;
  --border:        #E2DFD8;
  --border-focus:  #C4BFB5;

  --text-primary:   #1A1918;
  --text-secondary: #5F5E5B;
  --text-tertiary:  #8A8884;

  --terracotta:       #C85A32;
  --terracotta-hover: #B34D28;
  --terracotta-light: #F5E8E2;
  --sage:             #5F7A61;
  --sage-light:       #E8F0E8;
  --blue:             #4A6C8C;
  --blue-light:       #E3EBF3;
  --warning:          #8A6A20;
  --warning-light:    #F5EDD8;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm:    0 1px 4px rgba(26,25,24,.06);
  --shadow-card:  0 4px 20px rgba(26,25,24,.05);
  --shadow-hover: 0 8px 30px rgba(26,25,24,.09);

  --t-fast: 0.15s ease;
  --t-mid:  0.25s cubic-bezier(.2,.8,.2,1);
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Typography ───────────────────────────────────────────────────────────── */
.serif {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  letter-spacing: -.02em;
}
.mono {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.text-muted { color: var(--text-secondary); }

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  background: rgba(248,247,244,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1040px;
  margin: 0 auto;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.nav-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: .9rem;
  color: var(--text-secondary);
}

.nav-links a { transition: color var(--t-fast); }
.nav-links a:hover { color: var(--text-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}

.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--card-bg); }

.btn-light {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.btn-light:hover { background: rgba(255,255,255,.18); }

.btn-lg { padding: .8rem 2rem; font-size: 1rem; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.15;
  max-width: 760px;
  margin: 0 auto 1.25rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: .82rem;
  color: var(--text-tertiary);
}

/* ── Section ──────────────────────────────────────────────────────────────── */
section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--border); }

.section-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .75rem;
}

.section-heading {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── Service cards ────────────────────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

.service-card p {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.service-list {
  list-style: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-tertiary);
}

.service-list li { padding: .18rem 0; }
.service-list li::before {
  content: "—";
  color: var(--border-focus);
  margin-right: .5rem;
}

/* ── Owners ───────────────────────────────────────────────────────────────── */
.owner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.owner-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.owner-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.owner-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--terracotta-light);
  color: var(--terracotta);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -.01em;
}

.owner-name {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.owner-role {
  font-size: .82rem;
  color: var(--text-tertiary);
  margin-top: .15rem;
}

.owner-card p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.owner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1.25rem;
}

.tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 99px;
  background: var(--panel);
  color: var(--text-secondary);
}

.tag-ranger { background: var(--warning-light); color: var(--warning); }
.tag-sage   { background: var(--sage-light);    color: var(--sage); }
.tag-blue   { background: var(--blue-light);    color: var(--blue); }

/* ── Creed / pull quote ───────────────────────────────────────────────────── */
.creed {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--terracotta);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-top: 2.5rem;
}

.creed p {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
}

.creed cite {
  display: block;
  margin-top: .75rem;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ── Project cards ────────────────────────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -.02em;
}

.project-kicker {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: .25rem;
}

.status-pill {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-live    { background: var(--sage-light); color: var(--sage); }
.status-deployed{ background: var(--blue-light); color: var(--blue); }

.project-card > p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-features {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  font-size: .875rem;
  color: var(--text-secondary);
}

.project-features li {
  padding: .3rem 0 .3rem 1.4rem;
  position: relative;
}

.project-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-size: .8rem;
  font-weight: 700;
}

.project-stack {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: .75rem;
  color: var(--text-tertiary);
  letter-spacing: -.01em;
}

/* ── Approach steps ───────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--terracotta-light);
  color: var(--terracotta);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step h3 { font-size: 1.05rem; font-weight: 600; }

.step p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── CTA banner ───────────────────────────────────────────────────────────── */
.cta-banner {
  background: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  text-align: center;
  margin: 4rem 0;
}

.cta-banner h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -.025em;
  color: #fff;
  margin-bottom: .75rem;
}

.cta-banner p {
  color: rgba(255,255,255,.65);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  font-size: .85rem;
  color: var(--text-tertiary);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .nav-links    { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .owner-grid   { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .steps        { grid-template-columns: 1fr; }
  .hero         { padding: 4rem 0 3rem; }
  section       { padding: 3.5rem 0; }
  .cta-banner   { padding: 2.5rem 1.5rem; }
  .container    { padding: 0 1.25rem; }
  .nav-inner    { padding: 1rem 1.25rem; }
  .footer-inner { padding: 0 1.25rem; justify-content: center; text-align: center; }
}
