/* CSSIC Design System
   Aesthetic: Technical Precision + Canadian Identity
   ================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #0C2D48;
  --blue: #2E8BC0;
  --red: #C41E3A;
  --bg: #F8F9FA;
  --light-blue: #A6C9EB;
  --text: #1a1a1a;
  --text-muted: #5a6772;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --max-width: 860px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito Sans', -apple-system, sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--navy);
}

h2 {
  font-size: 1.375rem;
  color: var(--navy);
  margin-top: var(--space-lg);
  margin-bottom: 0.625rem;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid var(--light-blue);
  display: inline-block;
}

h2:first-child {
  margin-top: 4px;
}

h3 {
  font-size: 1.125rem;
  color: var(--navy);
}

p {
  margin-bottom: 0.5rem;
  color: var(--text);
}

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

strong {
  font-weight: 600;
  color: var(--navy);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--red);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--light-blue);
  z-index: 1000;
}

.nav-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 32px;
}

.nav-logo {
  height: 100%;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Main Content Area */
main {
  padding-top: var(--nav-height);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  background: #fff;
}

/* Hero Section */
.hero {
  background: #fff;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* Grid removed - using circuit SVG pattern instead */

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  padding: var(--space-md) var(--space-md) 20px;
  overflow: visible;
}

.hero-logo {
  width: 100px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-content h1 {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-tagline.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}

/* Sections */
section {
  margin-bottom: var(--space-md);
}

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

/* Stats */
.stat {
  color: var(--red);
  font-weight: 600;
}

/* Highlight Box */
.highlight {
  background: var(--navy);
  color: #fff;
  padding: var(--space-md);
  border-radius: 4px;
  margin: var(--space-sm) 0;
  position: relative;
}

.highlight::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
  border-radius: 4px 0 0 4px;
}

.highlight p {
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.highlight strong {
  color: #fff;
}

/* Goals List */
.goals {
  list-style: none;
  counter-reset: goals;
}

.goals li {
  counter-increment: goals;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm);
  margin-bottom: 0.75rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(12, 45, 72, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.goals li:hover {
  box-shadow: 0 4px 12px rgba(12, 45, 72, 0.12);
  transform: translateY(-1px);
}

.goals li::before {
  content: counter(goals);
  width: 36px;
  height: 36px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.goals li p {
  margin: 0;
}

/* Blog */
.blog-list {
  list-style: none;
}

.blog-card {
  background: #fff;
  padding: var(--space-lg);
  border-radius: 4px;
  margin-bottom: var(--space-md);
  box-shadow: 0 1px 3px rgba(12, 45, 72, 0.08);
  border-left: 4px solid var(--red);
  transition: box-shadow 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 4px 12px rgba(12, 45, 72, 0.12);
}

.blog-card .date {
  font-size: 0.8125rem;
  color: var(--blue);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.blog-card h3 {
  margin-bottom: var(--space-sm);
}

.blog-card .excerpt {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.blog-card .tag {
  display: inline-block;
  background: var(--light-blue);
  color: var(--navy);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Sources */
.sources {
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--light-blue);
  padding-top: var(--space-md);
  margin-top: var(--space-lg);
}

.sources sup {
  color: var(--blue);
  margin-right: 0.25rem;
}

/* Footer */
footer {
  background: var(--navy);
  padding: var(--space-md) var(--space-md);
  margin-top: var(--space-xl);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-text {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }

  .hero-logo {
    width: 120px;
    margin: 0 auto;
  }

  .hero-tagline {
    margin: 0 auto;
  }

  .goals li {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .goals li::before {
    margin: 0 auto var(--space-sm);
  }

  .nav-links {
    gap: var(--space-md);
  }
}
