/* ============================================================
   Reach Data — Global Styles
   Colors: Navy #0D1B2A | White #FFFFFF | Blue #0066FF | Grey #F5F7FA
   Font: Inter (Google Fonts)
   ============================================================ */

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

:root {
  --navy:     #0D1B2A;
  --white:    #FFFFFF;
  --blue:     #0066FF;
  --blue-dark:#0052CC;
  --grey-bg:  #F5F7FA;
  --grey-mid: #E2E8F0;
  --grey-text:#64748B;
  --body-text:#1E293B;
  --border:   #CBD5E1;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius:    6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  --max-w: 1160px;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}
.section--grey { background: var(--grey-bg); }
.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section--navy .section-label { color: #60A5FA; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section--navy .section-title { color: var(--white); }

.section-subtitle {
  font-size: 1rem;
  color: var(--grey-text);
  max-width: 540px;
  line-height: 1.7;
}
.section--navy .section-subtitle { color: #94A3B8; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: var(--nav-h);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__logo:hover { color: var(--white); }

.nav__logo-dot {
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #94A3B8;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--white); }
.nav__links a.active { color: var(--white); }

.nav__cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav__cta:hover { background: var(--blue-dark) !important; color: var(--white) !important; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #94A3B8;
  border-radius: 2px;
  transition: all 0.25s;
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  flex-direction: column;
  gap: 4px;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #94A3B8;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover,
.nav__mobile a.active { color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--navy);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,102,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,102,255,0.15);
  border: 1px solid rgba(0,102,255,0.3);
  color: #60A5FA;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: #60A5FA;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 760px;
}
.hero__title span { color: var(--blue); }

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #94A3B8;
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }

.btn--outline {
  background: transparent;
  color: #94A3B8;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn--outline:hover { color: var(--white); border-color: rgba(255,255,255,0.35); }

.btn--outline-blue {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn--outline-blue:hover { background: var(--blue); color: var(--white); }

.btn--sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* Hero stats strip */
.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.hero__stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.75rem;
  color: #64748B;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   DATA CATEGORY CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0,102,255,0.25);
  transform: translateY(-2px);
}

.card__icon {
  width: 40px;
  height: 40px;
  background: rgba(0,102,255,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.card__desc {
  font-size: 0.825rem;
  color: var(--grey-text);
  line-height: 1.65;
}

/* ============================================================
   PROVINCE GRID
   ============================================================ */
.province-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 40px;
}

.province-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.province-item:hover {
  border-color: var(--blue);
  background: rgba(0,102,255,0.04);
  color: var(--navy);
}

.province-item__abbr {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.province-item__name {
  font-size: 0.68rem;
  color: var(--grey-text);
  line-height: 1.3;
}

/* ============================================================
   WHY CANADA FACTS
   ============================================================ */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.fact {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.fact__icon {
  width: 44px;
  height: 44px;
  background: rgba(0,102,255,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.fact__body {}

.fact__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.fact__desc {
  font-size: 0.825rem;
  color: #94A3B8;
  line-height: 1.6;
}

/* ============================================================
   DATA TABLE
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 32px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: var(--navy);
  color: var(--white);
}

thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--grey-mid);
  transition: background 0.15s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(0,102,255,0.03); }

tbody td {
  padding: 14px 16px;
  color: var(--body-text);
  vertical-align: middle;
}

.td-province {
  font-weight: 600;
  color: var(--navy);
}

.td-clean {
  font-weight: 600;
}

.badge-clean {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-clean--high   { background: #DCFCE7; color: #166534; }
.badge-clean--mid    { background: #FEF9C3; color: #854D0E; }
.badge-clean--low    { background: #FEE2E2; color: #991B1B; }

/* Table toolbar */
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}

.table-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.table-meta {
  font-size: 0.8rem;
  color: var(--grey-text);
}

/* Source notes */
.source-notes {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--grey-bg);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--blue);
}
.source-notes h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 8px;
}
.source-notes p, .source-notes ul {
  font-size: 0.8rem;
  color: var(--grey-text);
  line-height: 1.7;
}
.source-notes ul {
  padding-left: 16px;
  margin-top: 4px;
}

/* ============================================================
   METHODOLOGY / ABOUT CONTENT
   ============================================================ */
.content-body {
  max-width: 720px;
}

.content-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 48px 0 12px;
}
.content-body h2:first-child { margin-top: 0; }

.content-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 8px;
}

.content-body p {
  font-size: 0.925rem;
  color: var(--body-text);
  line-height: 1.8;
  margin-bottom: 12px;
}

.content-body ul, .content-body ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.content-body li {
  font-size: 0.925rem;
  color: var(--body-text);
  line-height: 1.8;
  margin-bottom: 4px;
}

.content-body strong { color: var(--navy); }

.content-body a { color: var(--blue); }

/* Sources list */
.source-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.source-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--grey-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.source-list__abbr {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--white);
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}
.source-list__body {}
.source-list__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.source-list__desc {
  font-size: 0.8rem;
  color: var(--grey-text);
  line-height: 1.5;
  margin-top: 2px;
}

/* Commitment block */
.commitment {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2f4a 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-top: 48px;
  color: var(--white);
}
.commitment h2 {
  color: var(--white) !important;
  margin-top: 0 !important;
}
.commitment p { color: #94A3B8 !important; }

/* About — callout */
.callout {
  border: 1px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  background: rgba(0,102,255,0.04);
  margin: 32px 0;
}
.callout__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 10px;
}
.callout p {
  font-size: 0.925rem;
  color: var(--body-text);
  line-height: 1.8;
  margin: 0;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 56px 0 48px;
}
.page-hero__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #60A5FA;
  margin-bottom: 12px;
}
.page-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.page-hero__sub {
  font-size: 1rem;
  color: #94A3B8;
  max-width: 480px;
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #94A3B8;
}
.footer__brand-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.footer__copy {
  font-size: 0.775rem;
  color: #475569;
  margin-top: 2px;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer__links a {
  font-size: 0.8rem;
  color: #64748B;
  transition: color 0.2s;
}
.footer__links a:hover { color: #94A3B8; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero { padding: 64px 0 56px; }
  .hero__stats { gap: 24px; }

  .section { padding: 56px 0; }

  .cards-grid { grid-template-columns: 1fr; gap: 12px; }

  .province-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

  .table-toolbar { flex-direction: column; align-items: flex-start; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-wrap: wrap; gap: 16px; }

  .commitment { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .facts-grid { gap: 16px; }
  .province-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   BLOG INDEX
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.blog-card__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.blog-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--grey-text);
  line-height: 1.7;
  flex: 1;
}
.blog-card__cta {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--blue);
}

/* ============================================================
   BLOG ARTICLE
   ============================================================ */
.article-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.article-wrap h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.article-wrap p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--body-text);
  margin-bottom: 20px;
}

.article-wrap ul, .article-wrap ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-wrap li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--body-text);
  margin-bottom: 6px;
}

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

.article-wrap em {
  font-style: italic;
  color: var(--grey-text);
}

.article-cta {
  background: var(--grey-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 56px;
  text-align: center;
}
.article-cta h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.article-cta p {
  font-size: 0.9rem;
  color: var(--grey-text);
  margin-bottom: 20px;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 32px;
}
.article-back:hover { color: var(--blue-dark); }

@media (max-width: 720px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-wrap { padding: 40px 16px 64px; }
}
