/* ───────────────────────────────────────────────────────────
   Coach William Training — Static Site Stylesheet
   Matches CDL Inspection Coach app theme:
   Dark navy background, gold accents, professional design.
   ─────────────────────────────────────────────────────────── */

:root {
  /* ── Colors (from app theme.ts) ── */
  --bg:           #0E1726;
  --surface:      #172234;
  --surface-alt:  #1E2C42;
  --surface-rais: #243450;
  --border:       #2C3D58;
  --text:         #F4F7FB;
  --text-muted:   #9DABC2;
  --text-faint:   #6C7C97;
  --amber:        #F5A623;
  --amber-dark:   #D98B0E;
  --amber-soft:   #3A2E15;
  --green:        #3DD27E;
  --red:          #FF5C5C;
  --blue:         #3B8AE0;
  --white:        #FFFFFF;

  /* ── Typography ── */
  --font-sans: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* ── Spacing ── */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --max-width: 820px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header / Nav ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-brand-icon svg {
  width: 20px;
  height: 20px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.nav-link.active {
  color: var(--amber);
}

/* ── Mobile nav toggle ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Main content ── */
main {
  flex: 1;
  width: 100%;
}

.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ── Hero / Page Title ── */
.page-hero {
  text-align: center;
  margin-bottom: 40px;
}

.page-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: var(--amber-soft);
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.page-hero-icon svg {
  width: 36px;
  height: 36px;
}

.page-hero h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.page-hero .subtitle {
  color: var(--amber);
  font-size: 16px;
  font-weight: 700;
}

.page-hero .tagline {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 6px;
}

/* ── Sections ── */
.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-header svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.section-title.amber { color: var(--amber); }
.section-title.blue  { color: var(--blue); }
.section-title.red   { color: var(--red); }
.section-title.green { color: var(--green); }

/* ── Body text ── */
p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}

p:last-child { margin-bottom: 0; }

strong {
  color: var(--text);
  font-weight: 700;
}

a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

/* ── Lists ── */
ul, ol {
  margin: 0 0 14px 0;
  padding-left: 22px;
}

li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
}

li:last-child { margin-bottom: 0; }

li strong { color: var(--text); }

/* ── Cards ── */
.card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 16px;
}

.card-highlight {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.card-blue {
  border-color: var(--blue);
}

.card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.card-highlight h3 { color: var(--amber); }

/* ── Email / Contact box ── */
.contact-box {
  background: var(--surface-alt);
  border: 1.5px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin: 20px 0;
}

.contact-box .label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.contact-box .email {
  font-size: 20px;
  font-weight: 800;
  color: var(--amber);
  text-decoration: none;
  word-break: break-all;
}

.contact-box .email:hover {
  text-decoration: underline;
}

/* ── FAQ Accordion ── */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--surface-alt);
}

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--amber);
}

.faq-item.open .faq-chevron {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 22px 20px;
}

.faq-answer-inner p {
  font-size: 14px;
  line-height: 1.65;
}

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.feature-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--amber);
}

.feature-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ── Badge / Pill ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

/* ── Callout ── */
.callout {
  background: var(--amber-soft);
  border: 1px solid var(--amber-dark);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 20px 0;
}

.callout p {
  color: var(--amber);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.callout p strong { color: var(--amber); }

/* ── Mission quote ── */
.mission-quote {
  background: var(--surface-alt);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 24px;
  margin: 20px 0;
}

.mission-quote p {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  font-style: italic;
  line-height: 1.6;
}

.mission-final {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--amber);
  margin: 30px 0 10px;
  letter-spacing: -0.3px;
}

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  margin-top: auto;
}

.footer-copyright {
  color: var(--text-faint);
  font-size: 14px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--amber);
  text-decoration: none;
}

/* ── Updated date ── */
.updated-date {
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
  border: none;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 20px;
    gap: 2px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 12px 14px;
  }

  .page-container {
    padding: 28px 16px 40px;
  }

  .page-hero h1 {
    font-size: 22px;
  }

  .section {
    padding: 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav-brand-sub {
    display: none;
  }
}
