/* ============================================================
   APPA — American Preparedness & Protection Alliance
   BBC-Inspired Editorial Design System
   Lora (serif headlines) + Source Sans 3 (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Tokens --- */
:root {
  --black: #1a1a1a;
  --dark: #333333;
  --mid: #555555;
  --light: #767676;
  --border: #d9d9d9;
  --bg: #ffffff;
  --off-white: #f5f5f5;
  --warm-bg: #faf8f5;
  --red: #b80000;
  --red-bg: #fef0f0;
  --green: #1a6b3c;
  --green-bg: #eef6f1;
  --blue: #1a4b8c;
  --blue-bg: #edf2fa;
  --gold: #8B6914;
  --gold-bg: #faf6ec;
  --navy: #0B2545;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
  --max-w: 720px;
  --max-w-wide: 960px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Navigation --- */
.site-nav {
  background: var(--black);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
  border-bottom: 3px solid var(--gold);
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.nav-brand span {
  display: block;
  font-family: var(--sans);
  font-size: 0.5rem;
  color: var(--gold);
  letter-spacing: 2.5px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: #ccc;
  padding: 8px 14px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-link:hover { color: #fff; text-decoration: none; }
.nav-dropdown { position: relative; }
.nav-drop-trigger { user-select: none; }
.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 1001;
}
.nav-drop-menu.open { display: block; }
.nav-drop-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.nav-drop-menu a:last-child { border-bottom: none; }
.nav-drop-menu a:hover { background: var(--off-white); color: var(--black); }
.nav-drop-menu a.active { color: var(--green); font-weight: 700; background: var(--green-bg); }
.nav-drop-menu a.gold { color: var(--gold); font-weight: 700; }

/* Mobile nav */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  color: #ccc;
  font-size: 1.2rem;
  line-height: 1;
}
.nav-hamburger:hover { border-color: #888; color: #fff; }

@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 63px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 2px solid var(--gold);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 24px; width: 100%; text-align: left; }
  .nav-drop-menu {
    position: static;
    box-shadow: none;
    background: #222;
    border-radius: 0;
  }
  .nav-drop-menu a { padding: 10px 40px; color: #bbb; border-bottom-color: #333; }
  .nav-drop-menu a:hover { background: #333; color: #fff; }
}

/* --- Layout --- */
.content { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.content-wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 24px; max-width: var(--max-w); margin: 0 auto; }
.section + .section { border-top: 1px solid var(--border); }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--black); line-height: 1.25; }
h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.5px; }
h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
p { margin-bottom: 18px; color: var(--dark); }
.lead { font-size: 1.15rem; color: var(--mid); line-height: 1.65; }
.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 8px;
}
.divider { width: 48px; height: 3px; background: var(--gold); margin: 16px 0 24px; }

/* --- Hero --- */
.hero {
  background: var(--navy);
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,105,20,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: 8px; }
.hero .lead { color: #8BA4C4; font-size: 1.1rem; }
.hero-badge {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 24px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Boxes --- */
.box {
  padding: 24px;
  border-radius: 6px;
  margin-bottom: 24px;
}
.box-red { background: var(--red-bg); border-left: 4px solid var(--red); }
.box-green { background: var(--green-bg); border-left: 4px solid var(--green); }
.box-blue { background: var(--blue-bg); border-left: 4px solid var(--blue); }
.box-gold { background: var(--gold-bg); border-left: 4px solid var(--gold); }
.box-dark { background: var(--navy); color: #fff; border-left: 4px solid var(--gold); }
.box-dark p { color: #8BA4C4; }
.box-dark h3, .box-dark h4 { color: #fff; }

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--mid); margin-bottom: 0; }

/* --- Tables --- */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
thead { background: var(--navy); }
thead th { color: #fff; font-weight: 600; padding: 12px 16px; text-align: left; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.5px; text-transform: uppercase; }
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--dark); }
tbody tr:nth-child(even) { background: var(--off-white); }
tbody tr:hover { background: #f0f0ee; }
td.red { color: var(--red); font-weight: 600; }
td.green { color: var(--green); font-weight: 600; }
td.gold { color: var(--gold); font-weight: 600; }

/* --- Comparison Table (2-col) --- */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.compare-table thead th { padding: 14px 16px; }
.compare-table thead th:first-child { background: #555; }
.compare-table thead th:last-child { background: var(--green); }
.compare-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.compare-table tbody td:first-child { color: var(--light); }
.compare-table tbody td:last-child { color: var(--green); font-weight: 600; }

/* --- Stat Callouts --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.stat {
  text-align: center;
  padding: 20px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--light);
  margin-top: 6px;
}
.stat.green .stat-num { color: var(--green); }
.stat.red .stat-num { color: var(--red); }
.stat.gold .stat-num { color: var(--gold); }

/* --- Checkmarks / Ready List --- */
.ready-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.ready-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--green-bg);
  border-radius: 6px;
}
.ready-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}
.ready-text { font-size: 0.9rem; color: var(--dark); line-height: 1.5; }

/* --- Vesting --- */
.vest-row { margin-bottom: 14px; }
.vest-header { display: flex; justify-content: space-between; font-size: 0.78rem; margin-bottom: 4px; }
.vest-yr { font-weight: 600; color: var(--navy); }
.vest-pct { color: var(--light); }
.vest-pct.full { color: var(--green); font-weight: 700; }
.vest-bar { height: 8px; background: #e0e0e0; border-radius: 4px; overflow: hidden; }
.vest-fill { height: 100%; border-radius: 4px; background: var(--navy); }
.vest-fill.full { background: var(--green); }

/* --- Milestones --- */
.milestone {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.ms-dot {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
}
.ms-dot.green { background: var(--green); }
.ms-dot.gold { background: var(--gold); }
.ms-dot.red { background: var(--red); }
.ms-title { font-family: var(--serif); font-weight: 600; font-size: 1rem; margin-bottom: 2px; }
.ms-desc { font-size: 0.88rem; color: var(--mid); }

/* --- Accordion --- */
.acc-trigger {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}
.acc-trigger h3 { margin-bottom: 0; font-size: 1rem; }
.acc-icon {
  font-size: 1.2rem;
  color: var(--light);
  transition: transform 0.25s;
}
.acc-icon.open { transform: rotate(45deg); }
.acc-body {
  display: none;
  padding: 16px 0 24px;
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.7;
}
.acc-body.open { display: block; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #163a63; text-decoration: none; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #7a5c11; text-decoration: none; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--navy);
  padding: 48px 24px;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: #8BA4C4; margin-bottom: 24px; }

/* --- Blog Cards --- */
.blog-card {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.blog-card:first-child { padding-top: 0; }
.blog-card h3 a { color: var(--black); text-decoration: none; }
.blog-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.blog-meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 6px;
}
.blog-excerpt { font-size: 0.92rem; color: var(--mid); margin-bottom: 8px; }
.blog-read { font-size: 0.82rem; font-weight: 600; color: var(--blue); }

/* --- Article --- */
.article-header { padding: 48px 24px; max-width: var(--max-w); margin: 0 auto; }
.article-body { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 48px; }
.article-body h2 { margin-top: 36px; margin-bottom: 12px; }
.article-body h3 { margin-top: 28px; margin-bottom: 8px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; color: var(--dark); }
.article-body li { margin-bottom: 6px; font-size: 0.95rem; }
.article-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--gold-bg);
  font-family: var(--serif);
  font-style: italic;
  color: var(--dark);
}

/* --- Footer --- */
.site-footer {
  background: #0A1F38;
  padding: 36px 24px;
  text-align: center;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.footer-tagline {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-links a {
  font-size: 0.78rem;
  color: #8BA4C4;
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover { color: #fff; }
.footer-legal {
  font-size: 0.65rem;
  color: #4A6A8A;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}
.footer-founder {
  margin-top: 20px;
  font-size: 0.78rem;
  color: #8BA4C4;
}
.footer-founder strong { color: #fff; }

/* --- Employer Industry Hero --- */
.industry-hero {
  background: var(--navy);
  padding: 64px 24px 48px;
  text-align: center;
}
.industry-hero h1 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.industry-hero .lead { color: #8BA4C4; }
.industry-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* --- Print --- */
@media print {
  .site-nav, .cta-banner, .site-footer { display: none; }
  body { font-size: 12pt; }
  .section { padding: 24px 0; }
}
