/* TDIndustries Citizen Developer Program — static educational site */

:root {
  --td-blue: #003DA5;
  --td-blue-dark: #002A73;
  --td-blue-light: #1E5BC6;
  --td-accent: #FFB81C;
  --ink: #0F172A;
  --ink-soft: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --bg-card: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--td-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--ink); margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--td-blue); margin-top: 1.5em; margin-bottom: 0.5em; }
h5 { font-size: 0.95rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; color: var(--ink-soft); }
li { margin-bottom: 0.4em; }
code {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.88em;
  background: var(--bg-soft);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--td-blue-dark);
  border: 1px solid var(--line);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}
.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-line2 { font-size: 0.95rem; color: var(--ink); font-weight: 500; }

.primary-nav { display: flex; gap: 28px; }
.primary-nav a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.primary-nav a:hover { color: var(--td-blue); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 880px) {
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .primary-nav.open { max-height: 480px; }
  .primary-nav a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* HERO */
.hero {
  position: relative;
  padding: 96px 0 72px;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(30, 91, 198, 0.18), transparent 60%),
    radial-gradient(700px 360px at 5% 110%, rgba(255, 184, 28, 0.10), transparent 60%),
    linear-gradient(180deg, #F8FAFE 0%, #FFFFFF 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--td-blue);
  background: rgba(0, 61, 165, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 { max-width: 18ch; margin-bottom: 20px; }
.accent { color: var(--td-blue); }
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 64ch;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--td-blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--td-blue-dark); text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--td-blue); border-color: var(--td-blue); }
.btn-ghost:hover { background: rgba(0, 61, 165, 0.06); text-decoration: none; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2.25rem; font-weight: 900; color: var(--td-blue); line-height: 1; letter-spacing: -0.02em; }
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

@media (max-width: 600px) {
  .hero-stats { gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-num { font-size: 1.75rem; }
}

/* SECTIONS */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--td-blue);
  margin-bottom: 14px;
}
.section-sub { font-size: 1.05rem; color: var(--ink-soft); margin-top: 8px; }

.lead { font-size: 1.1rem; color: var(--ink); }

/* GRID 2 */
.grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) { .grid-2 { grid-template-columns: 1fr; gap: 32px; } }

.callout {
  background: linear-gradient(135deg, var(--td-blue) 0%, var(--td-blue-dark) 100%);
  color: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.callout::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,184,28,0.4), transparent 70%);
}
.callout h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.85; margin-bottom: 12px; }
.callout p { color: rgba(255,255,255,0.95); margin: 0; font-size: 1.05rem; line-height: 1.6; }

/* CARDS */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .cards-4 { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(0, 61, 165, 0.25); }
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; margin: 0; }

/* TIMELINE */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 26px; height: 2px;
  background: linear-gradient(90deg, var(--td-blue) 0%, var(--td-blue-light) 50%, var(--td-accent) 100%);
  z-index: 0; opacity: 0.4;
}
.timeline li { position: relative; padding-top: 0; }
.timeline-marker {
  width: 52px; height: 52px;
  background: #fff;
  border: 3px solid var(--td-blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: var(--td-blue); font-size: 1.15rem;
  margin-bottom: 18px;
  position: relative; z-index: 1;
  box-shadow: var(--shadow-sm);
}
.timeline-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-body p { font-size: 0.92rem; margin: 0; }

@media (max-width: 880px) {
  .timeline { grid-template-columns: 1fr; gap: 20px; }
  .timeline::before { left: 25px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start; }
  .timeline-marker { margin-bottom: 0; }
}

/* TACTICAL */
.tactical-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.tactical-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  scroll-margin-top: 100px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.tactical-card:hover { box-shadow: var(--shadow-md); }
.tactical-num {
  position: absolute;
  top: -22px;
  left: 32px;
  width: 44px; height: 44px;
  background: var(--td-blue); color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem;
  box-shadow: var(--shadow-md);
}
.tactical-card h3 { font-size: 1.5rem; margin-bottom: 14px; margin-top: 8px; }
.tactical-card h4 { margin-top: 1.75em; }
.tactical-tip {
  margin-top: 1.5em;
  padding: 16px 20px;
  background: rgba(255, 184, 28, 0.12);
  border-left: 3px solid var(--td-accent);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--ink);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0 8px; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }
.split-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg-soft);
}
.split-card h5 { color: var(--td-blue); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.split-card p { font-size: 0.92rem; margin: 0; }

/* ROLES */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .roles { grid-template-columns: 1fr; } }
.role {
  padding: 24px;
  border-left: 3px solid var(--td-blue);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.role h3 { font-size: 1.05rem; margin-bottom: 8px; }
.role p { font-size: 0.95rem; margin: 0; }

/* CHECKLIST */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  max-width: 1000px;
}
@media (max-width: 720px) { .checklist { grid-template-columns: 1fr; } }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.checklist li:has(input:checked) { border-color: var(--td-blue); background: rgba(0, 61, 165, 0.04); }
.checklist input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border: 2px solid var(--muted);
  border-radius: 5px;
  margin: 2px 0 0; flex-shrink: 0;
  cursor: pointer;
  display: grid; place-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.checklist input[type="checkbox"]:checked {
  background: var(--td-blue);
  border-color: var(--td-blue);
}
.checklist input[type="checkbox"]:checked::after {
  content: "";
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}
.checklist label { color: var(--ink-soft); font-size: 0.95rem; cursor: pointer; line-height: 1.5; }
.checklist li:has(input:checked) label { color: var(--ink); text-decoration: line-through; text-decoration-color: rgba(0, 61, 165, 0.4); }

/* CONTACT */
.contact {
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, #F8FAFE 0%, #FFFFFF 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.contact h3 { margin-bottom: 8px; }
.contact p { max-width: 60ch; margin: 0 auto; }

/* FOOTER */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 56px 0 40px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; }
.site-footer .brand-logo-footer { height: 40px; }
.site-footer .brand-divider { background: rgba(255, 255, 255, 0.2); }
.site-footer .brand-line2 { color: rgba(255, 255, 255, 0.85); }
.footer-note { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; margin: 18px 0 0; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; }

.nowrap { white-space: nowrap; }

/* ── PAGE-SWITCHER SIDEBAR ───────────────────────────────────────────────── */

/* Left hamburger button */
.page-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
  order: -1; /* always first in the flex row */
}
.page-menu-toggle:hover {
  background: var(--bg-soft);
  border-color: rgba(0,61,165,0.25);
}
.page-menu-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  color: var(--ink);
}

/* Overlay */
.page-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.page-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer */
.page-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 88vw;
  background: #fff;
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(15,23,42,0.12);
}
.page-menu-drawer.open {
  transform: translateX(0);
}

/* Drawer header */
.page-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--td-blue);
}
.page-menu-header-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.page-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: rgba(255,255,255,0.7);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}
.page-menu-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.page-menu-close svg { display: block; width: 18px; height: 18px; }

/* Nav items */
.page-menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}
.page-menu-nav a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease;
  margin-bottom: 4px;
}
.page-menu-nav a:hover { background: var(--bg-soft); }
.page-menu-nav a.current { background: rgba(0,61,165,0.07); }
.page-menu-nav a.current .pmn-title { color: var(--td-blue); }
.pmn-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.page-menu-nav a.current .pmn-icon {
  background: rgba(0,61,165,0.1);
  border-color: rgba(0,61,165,0.2);
}
.pmn-text { flex: 1; }
.pmn-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  display: block;
  margin-bottom: 3px;
}
.pmn-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.pmn-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--td-blue);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Drawer footer */
.page-menu-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.page-menu-footer strong { color: var(--ink-soft); }
