/* ==========================================================================
   AI Bootcamp Trainer — shared stylesheet
   ========================================================================== */

:root {
  --color-navy: #0B1220;
  --color-navy-soft: #111C33;
  --color-teal-dark: #0E4F5C;
  --color-teal-bright: #22D3EE;
  --color-blue: #2563EB;
  --color-blue-dark: #1D4ED8;
  --color-orange: #F97316;
  --color-orange-dark: #DD5F0C;
  --color-red: #DC2626;
  --color-purple: #7C3AED;

  --color-bg: #FFFFFF;
  --color-bg-muted: #F8FAFC;
  --color-border: #E2E8F0;

  --color-text: #0F172A;
  --color-text-muted: #475569;
  --color-text-soft: #64748B;
  --color-text-on-dark: #E2E8F0;
  --color-text-on-dark-soft: #94A3B8;

  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --container: 1120px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

a { color: var(--color-blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-blue-dark); }

img { max-width: 100%; display: block; }

/* Visible, high-contrast focus ring everywhere — required for keyboard nav */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link — hidden until focused, first tab stop on every page */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

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

.btn-outline {
  background: #fff;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn-outline:hover { background: var(--color-bg-muted); color: var(--color-navy); }

.btn-cta {
  background: var(--color-orange);
  color: #fff;
  font-size: 1.05rem;
  padding: 16px 34px;
}
.btn-cta:hover { background: var(--color-orange-dark); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
}
.brand:hover { color: var(--color-text); }
.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--color-blue); }
.main-nav a[aria-current="page"] {
  color: var(--color-blue);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-actions .btn { padding: 10px 20px; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-teal-dark) 0%, var(--color-teal-bright) 100%);
  padding: 96px 24px 104px;
  text-align: center;
}
.hero .eyebrow {
  color: var(--color-blue-dark);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.75em;
}
.hero h1 { color: var(--color-text); max-width: 20ch; margin-left: auto; margin-right: auto; }
.hero p.lede {
  max-width: 56ch;
  margin: 0 auto 2em;
  color: #14313A;
  font-size: 1.1rem;
}

/* ---------- Section shells ---------- */
section { padding: 88px 24px; }
.section-dark {
  background: var(--color-navy);
  color: var(--color-text-on-dark);
}
.section-dark h2 { color: #fff; font-style: italic; }
.section-dark p { color: var(--color-text-on-dark-soft); }
.section-muted { background: var(--color-bg-muted); }

.section-head {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 48px;
}
.section-head p { margin-bottom: 0; }

/* ---------- Feature / resource cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EFF6FF;
  color: var(--color-blue);
  margin-bottom: 16px;
}
.card-icon svg { width: 20px; height: 20px; }
.card h3 { margin-bottom: 0.4em; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

/* ---------- Numbered module list ---------- */
.module-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}
.module {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
}
.module-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--color-blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.module h3 { margin-bottom: 0.25em; }
.module p { margin-bottom: 0; font-size: 0.96rem; }
.module-extra {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--color-text-soft);
}

/* ---------- Resource / appendix cards (lettered) ---------- */
.appendix-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 720px) { .appendix-list { grid-template-columns: 1fr; } }
.appendix-card {
  display: flex;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.appendix-letter {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-purple);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.appendix-card h3 { margin-bottom: 0.3em; }
.appendix-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Stats ---------- */
.stat-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  text-align: center;
  margin-bottom: 40px;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--color-blue);
  display: block;
}
.stat-label {
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.center-text { text-align: center; }
.max-prose {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- CTA section ---------- */
.cta-section { text-align: center; }
.cta-section .btn-cta { margin-bottom: 18px; }
.cta-section .login-hint { font-size: 0.95rem; color: var(--color-text-muted); }

/* ---------- View-more link ---------- */
.view-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  margin-top: 32px;
}
.view-more-wrap { text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: var(--color-text-on-dark-soft);
  padding: 72px 24px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a {
  color: var(--color-text-on-dark-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Legal / content pages (Privacy, Terms, FAQ) ---------- */
.legal-hero {
  background: var(--color-bg-muted);
  padding: 64px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.legal-hero h1 { margin-bottom: 0.3em; }
.legal-hero .updated { color: var(--color-text-soft); font-size: 0.95rem; }

.draft-notice {
  max-width: 760px;
  margin: 24px auto 0;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  color: #7C2D12;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.92rem;
  text-align: left;
}
.draft-notice strong { display: block; margin-bottom: 4px; }

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
}
.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body ul { color: var(--color-text-muted); padding-left: 1.2em; }
.legal-body li { margin-bottom: 0.5em; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}
.faq-item h3 { margin-bottom: 0.5em; font-size: 1.05rem; }
.faq-item p { margin-bottom: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--color-text-soft); }
