/* Business Guide of Canada — bgoc.ca
   Shared stylesheet: deep navy + Canadian red accent + off-white. */

:root {
  --navy: #0b2447;
  --navy-dark: #071831;
  --navy-light: #19376d;
  --red: #c8102e;
  --red-dark: #a50d26;
  --offwhite: #faf8f5;
  --paper: #ffffff;
  --ink: #1d2733;
  --muted: #5a6675;
  --line: #ddd6cc;
  --tint: #eef2f8;
  --warn-bg: #fdf3e3;
  --warn-line: #d98e04;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.3rem; }
h2 { font-size: 1.7rem; margin-top: 1.6em; }
h3 { font-size: 1.25rem; margin-top: 1.3em; }
p { margin: 0 0 1em; }
a { color: var(--navy-light); }
a:hover { color: var(--red); }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow { max-width: 780px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  color: #fff;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}

.logo:hover { color: #fff; }

.logo-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.logo-name .accent { color: #ff8fa0; }

.logo-domain {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9c7dd;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #e8edf5;
  text-decoration: none;
  font-size: 0.98rem;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  border-bottom-color: var(--red);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 64px 0 56px;
}

.hero h1 { color: #fff; font-size: 2.7rem; max-width: 20em; }

.hero .sub {
  font-size: 1.2rem;
  color: #dbe4f2;
  max-width: 42em;
  margin-bottom: 1.6em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
}

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

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover { color: #fff; background: rgba(255,255,255,0.12); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); color: #fff; }

.btn-light {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn-light:hover { color: var(--red); border-color: var(--red); }

/* ---------- Sections & cards ---------- */

.section { padding: 52px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lede { color: var(--muted); max-width: 46em; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.card h3 { margin-top: 0; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .card-link { margin-top: auto; font-weight: 600; }

.card .step-no {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--navy);
  background: var(--tint);
  border-radius: 20px;
  padding: 2px 10px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.badge-live { background: var(--red); color: #fff; }
.badge-soon { background: #e7e2d9; color: #6b6252; }

/* ---------- Callouts ---------- */

.callout {
  border-left: 5px solid var(--navy);
  background: var(--tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 26px 0;
}

.callout h3, .callout h4 { margin-top: 0; }

.callout-warn {
  border-left-color: var(--warn-line);
  background: var(--warn-bg);
}

.callout-red {
  border-left-color: var(--red);
  background: #fdf0f2;
}

/* ---------- Key figures ---------- */

.key-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.key-figure {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.key-figure .figure {
  display: block;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}

.key-figure .figure-label { color: var(--muted); font-size: 0.92rem; }

/* ---------- Tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  background: var(--paper);
  font-size: 0.97rem;
}

th, td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th { background: var(--navy); color: #fff; font-family: Georgia, serif; }

/* ---------- Steps ---------- */

ol.steps { list-style: none; padding: 0; counter-reset: step; }

ol.steps > li {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 8px;
  margin-bottom: 16px;
  position: relative;
}

ol.steps > li::before {
  content: "Step " counter(step);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

ol.steps h3 { margin-top: 0; }

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 12px 0;
  font-size: 1.05rem;
}

.faq-item p { color: var(--muted); }

/* ---------- Checklist ---------- */

.checklist-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 20px;
}

.checklist-block h2 { margin-top: 0; font-size: 1.35rem; }

ul.checklist { list-style: none; padding: 0; margin: 0; }

ul.checklist li { margin-bottom: 10px; }

ul.checklist label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

ul.checklist input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--navy);
  flex: none;
}

.guide-ref { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }

/* ---------- TOC ---------- */

.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin: 24px 0;
}

.toc h2 { margin-top: 0; font-size: 1.15rem; }
.toc ol { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: #c3cede;
  padding: 40px 0 28px;
  margin-top: 0;
  font-size: 0.95rem;
}

.site-footer .footer-brand {
  font-family: Georgia, serif;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
}

.site-footer a { color: #e8edf5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer .fineprint {
  border-top: 1px solid #2b3f5f;
  padding-top: 16px;
  color: #93a5c0;
  font-size: 0.87rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  body { font-size: 16px; }
  h1 { font-size: 1.9rem; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 2.1rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 38px 0; }
  .guide-ref { white-space: normal; }
}

/* ---------- Print (checklist first) ---------- */

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section { padding: 0; }
  .checklist-block, .card, .callout, ol.steps > li, .faq-item {
    border-color: #999;
    break-inside: avoid;
  }
  ul.checklist input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid #000;
    border-radius: 3px;
    background: #fff;
  }
  a { color: #000; text-decoration: none; }
}
