/* ============================================================
   shared.css — edgeRunnerWorks — shared across all pages
   Design tokens, base styles, nav, footer, buttons, cta-strip
   Same design system as christopherskowal.com
   ============================================================ */

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

:root {
  --teal:        #0d9488;
  --teal-dark:   #134e4a;
  --teal-mid:    #0f766e;
  --teal-light:  #ccfbf1;
  --teal-xlight: #f0fdfa;
  --ink:         #0c1a27;
  --ink-mid:     #334155;
  --ink-light:   #64748b;
  --bg:          #ffffff;
  --bg-soft:     #f8fafc;
  --border:      #e2e8f0;
  --font-serif:  'DM Serif Display', Georgia, serif;
  --font-sans:   'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:   'Fira Code', 'Cascadia Code', monospace;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); font-size: 18px; line-height: 1.75; color: var(--ink); background: var(--bg); overflow-x: hidden; }

/* ── AVAILABILITY BANNER ── */
.avail-banner {
  background: var(--teal-xlight); border-bottom: 1px solid var(--teal-light);
  padding: 13px 60px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.avail-dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.avail-text { font-size: 0.9rem; font-weight: 600; color: var(--teal-dark); }
.avail-text a { color: var(--teal); text-decoration: none; font-weight: 700; }
.avail-text a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 60px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-sans); font-size: 1.28rem; font-weight: 800;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 0;
}
.nav-logo img {
  height: 38px; width: auto; border-radius: 0; object-fit: contain;
  border: none; background: transparent; display: block;
}
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.92rem; font-weight: 600; color: var(--ink-mid); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; background: var(--teal); color: #fff;
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 700;
  border-radius: var(--radius-sm); text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; background: transparent; color: var(--teal);
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 700;
  border-radius: var(--radius-sm); border: 2px solid var(--teal);
  text-decoration: none; transition: all 0.2s;
}
.btn-secondary:hover { background: var(--teal-xlight); }

/* ── DARK CTA STRIP ── */
.cta-strip { background: var(--teal-dark); padding: 60px 60px; }
.cta-strip-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-strip h2 { font-family: var(--font-serif); font-size: clamp(1.7rem, 2.8vw, 2.4rem); color: #ffffff; line-height: 1.15; }
.cta-strip h2 em { font-style: italic; color: #99f6e4; }
.cta-strip p { font-size: 0.97rem; color: rgba(255,255,255,0.78); margin-top: 10px; }
.cta-strip-actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.btn-strip-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; background: #fff; color: var(--teal-dark);
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 700;
  border-radius: var(--radius-sm); text-decoration: none; white-space: nowrap;
  transition: background 0.2s;
}
.btn-strip-primary:hover { background: var(--teal-xlight); }
.btn-strip-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; background: transparent; color: rgba(255,255,255,0.85);
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 600;
  border-radius: var(--radius-sm); border: 1.5px solid rgba(255,255,255,0.3);
  text-decoration: none; white-space: nowrap; transition: border-color 0.2s, color 0.2s;
}
.btn-strip-secondary:hover { border-color: rgba(255,255,255,0.7); color: #fff; }

/* ── FOOTER ── */
footer { background: var(--ink); padding: 22px 60px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-brand { font-family: var(--font-sans); font-weight: 800; font-size: 1rem; color: #fff; letter-spacing: -0.02em; }
.footer-brand span { color: #99f6e4; }
.footer-tagline { font-size: 0.74rem; color: rgba(255,255,255,0.85); margin-top: 3px; font-style: italic; line-height: 1.5; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #99f6e4; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.7); width: 100%; text-align: center; margin-top: 8px; }

/* ── SHARED LAYOUT HELPERS ── */
.section-label { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 12px; }
.section-h2 { font-family: var(--font-serif); font-size: clamp(1.7rem, 2.8vw, 2.4rem); color: var(--ink); line-height: 1.15; margin-bottom: 8px; }
.section-h2 em { font-style: italic; color: var(--teal); }
.teal-rule { width: 40px; height: 3px; background: var(--teal); border-radius: 2px; margin-bottom: 32px; }
.teal-rule-center { width: 48px; height: 3px; background: var(--teal); border-radius: 2px; margin: 14px auto 0; }
.section-header-center { text-align: center; margin-bottom: 48px; }
.section-header-center .section-label { display: block; margin-bottom: 10px; }

/* ── HAMBURGER NAV ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; margin-left: 8px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; background: #fff; border-top: 1px solid var(--border);
  padding: 0;
}
.nav-mobile.open { display: block; }
.nav-mobile-links {
  list-style: none; display: flex; flex-direction: column;
  padding: 8px 24px 0;
}
.nav-mobile-links li a {
  display: block; padding: 14px 0; font-size: 1rem; font-weight: 600;
  color: var(--ink-mid); text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.nav-mobile-links li:last-child a { border-bottom: none; }
.nav-mobile-links li a:hover { color: var(--teal); }
.nav-mobile-cta-wrap { padding: 20px 24px 28px; }
.nav-mobile-cta { display: block; text-align: center; width: 100%; }

/* ── RESPONSIVE — 768px BREAKPOINT ── */
@media (max-width: 768px) {
  /* Banner */
  .avail-banner { padding: 10px 20px; }
  .avail-text { font-size: 0.82rem; }

  /* Nav */
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* CTA Strip */
  .cta-strip { padding: 48px 24px; }
  .cta-strip-inner {
    flex-direction: column; text-align: center; gap: 28px; align-items: center;
  }
  .cta-strip-actions { width: 100%; }
  .btn-strip-primary, .btn-strip-secondary { width: 100%; }

  /* Footer */
  footer {
    padding: 32px 24px; flex-direction: column;
    align-items: center; text-align: center; gap: 20px;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-copy { margin-top: 0; }
}
