/* ══════════════════════════════════════════════════════════════
   o21 Agent Toolbox — Shared Stylesheet
   Covers: variables, reset, header, nav, footer, buttons, utilities
   Page-specific styles stay in each page's own <style> block
   Never black on content sections. Use teal or dark teal variants.
══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=DM+Mono:wght@400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --orange:      #FF6C2C;
  --orange-lt:   #FFF3ED;
  --orange-dk:   #e55c20;
  --teal:        #236A95;
  --teal-lt:     #EBF4FA;
  --dark:        #1a4f70;
  --dark2:       #174461;
  --dark3:       #1e5278;
  --mid:         #4A5568;
  --light:       #F7F6F2;
  --white:       #FFFFFF;
  --text:        #1a1a2e;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
  --max-w:     1280px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); min-height: 100vh; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════════════════════════════════════
   SITE HEADER
══════════════════════════════════════════════════════════════ */
.site-header {
  background: var(--dark2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
  transition: box-shadow .3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,.5);
}

.site-hdr-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 13px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

/* ── Logo ──────────────────────────────────────────────────── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-o21 {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  color: white;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.site-wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.site-wordmark span { color: var(--orange); }

/* ── Luke Walker ───────────────────────────────────────────── */
#luke-walker {
  position: absolute;
  bottom: 0;
  width: 48px;
  height: 48px;
  display: none;
  pointer-events: none;
  z-index: 10;
}

#luke-walker img { width: 100%; height: 100%; display: block; }

@keyframes luke-bob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-3px); }
}

#luke-walker.walking img { animation: luke-bob 0.35s ease-in-out infinite; }
#luke-walker.parked { pointer-events: auto; cursor: pointer; }

@keyframes luke-backflip {
  0%   { transform: translateY(0) rotate(0deg); }
  30%  { transform: translateY(-28px) rotate(-120deg); }
  60%  { transform: translateY(-18px) rotate(-240deg); }
  85%  { transform: translateY(-4px) rotate(-340deg); }
  100% { transform: translateY(0) rotate(-360deg); }
}

#luke-walker.flipping img { animation: luke-backflip 0.55s cubic-bezier(.4,0,.2,1) forwards; }

/* ── Nav ───────────────────────────────────────────────────── */
.site-hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  letter-spacing: .3px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.nav-links > li > a:hover { color: white; background: rgba(255,255,255,.07); }

.nav-has-dropdown > a::after {
  content: '▾';
  font-size: 10px;
  opacity: .6;
  transition: transform .2s, opacity .2s;
  margin-left: 2px;
}

.nav-has-dropdown:hover > a::after { transform: rotate(180deg); opacity: 1; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 240px;
  background: rgba(23,68,97,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(23,68,97,.98);
  border-left: 1px solid rgba(255,255,255,.1);
  border-top: 1px solid rgba(255,255,255,.1);
}

.nav-has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.nav-dropdown a:hover { background: rgba(255,255,255,.08); color: white; }
.nav-dropdown a.nav-current { color: var(--orange); background: rgba(255,108,44,.08); }
.nav-dropdown-icon { font-size: 14px; width: 22px; text-align: center; flex-shrink: 0; }
.nav-dropdown-divider { height: 1px; background: rgba(255,255,255,.08); margin: 6px 8px; }

.nav-cta {
  background: var(--orange) !important;
  color: white !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-decoration: none;
  transition: background .2s !important;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--orange-dk) !important; }

/* ── Hamburger ─────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 300;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all .25s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav ────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0; bottom: 0;
  background: rgba(23,68,97,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  padding: 32px 24px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.mobile-nav.open { display: flex !important; }

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255,255,255,.8);
  font-size: 16px;
  font-weight: 500;
  transition: background .15s, color .15s;
  border: 1px solid transparent;
}

.mobile-nav a:hover { background: rgba(255,255,255,.08); color: white; border-color: rgba(255,255,255,.1); }
.mobile-nav a.mobile-nav-current { color: var(--orange); background: rgba(255,108,44,.08); }
.mobile-nav-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.mobile-nav-divider { height: 1px; background: rgba(255,255,255,.1); margin: 12px 0; }

.mobile-nav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 8px 20px 4px;
}

/* ══════════════════════════════════════════════════════════════
   SITE FOOTER
══════════════════════════════════════════════════════════════ */
.site-footer { background: var(--dark2); border-top: 1px solid rgba(255,255,255,.06); }

.site-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  line-height: 1.7;
  max-width: 280px;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}

.footer-col ul li a:hover { color: white; }

.site-footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 32px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer-bottom p { font-size: 12px; color: rgba(255,255,255,.25); }
.site-footer-bottom a { color: var(--orange); text-decoration: none; }
.footer-tagline { font-size: 11px; color: rgba(255,255,255,.15); letter-spacing: 1px; text-transform: uppercase; }

/* ══════════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════════ */
.o21-container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--orange); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--dark2);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 6px;
}

.section-title .orange { color: var(--orange); }

.section-sub {
  font-size: 15px;
  color: var(--mid);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.btn-primary:hover { background: var(--orange-dk); transform: translateY(-1px); }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.btn-download:hover { background: var(--dark); transform: translateY(-1px); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-hdr-inner { padding: 12px 16px; }
  .nav-links { display: none !important; }
  .hamburger { display: flex !important; }
  .nav-dropdown { display: none !important; }
  #luke-walker { display: none !important; }
  #luke-walker.parked { display: block !important; }
  .site-footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 32px 16px; }
  .site-footer-bottom { padding: 16px; flex-direction: column; align-items: flex-start; }
  .section-inner { padding: 0 16px; }
  .o21-container { padding: 0 16px; }
}
