/* surcharging.ca — shared styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #0a0a0a;
  --paper: #f5f1ea;
  --paper-2: #ebe5d9;
  --accent: #c8553d;
  --accent-2: #2d4a3e;
  --gold: #b8915a;
  --muted: #6b6358;
  --border: #1a1a1a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

.serif { font-family: 'Inter', sans-serif; }

/* — Top notice bar — */
.notice-bar {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 24px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.notice-bar strong { color: var(--gold); font-weight: 600; }

/* — Header — */
header {
  border-bottom: 1px solid rgba(10, 10, 10, 0.12);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
}
.logo-text {
  white-space: nowrap;
}
nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}
.nav-cta:hover { background: var(--accent); color: var(--paper) !important; }

/* — Hero — */
.hero {
  padding: 90px 24px 70px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 22px;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
  max-width: 20ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}
.hero-lede {
  font-size: 18px;
  line-height: 1.55;
  max-width: 60ch;
  color: var(--muted);
  margin-bottom: 36px;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.hero-visual {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
}
.hero-visual .ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.hero-visual .ring:nth-child(1) { transform: scale(0.4); border-color: var(--accent); }
.hero-visual .ring:nth-child(2) { transform: scale(0.6); }
.hero-visual .ring:nth-child(3) { transform: scale(0.8); border-color: var(--gold); border-style: dashed; }
.hero-visual .ring:nth-child(4) { transform: scale(1); border-color: var(--muted); }

.hero-stat {
  position: absolute;
}
.hero-stat-1 {
  top: 20%; right: 8%;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  z-index: 3;
  transform: rotate(3deg);
}
.hero-stat-1 strong { font-size: 24px; color: var(--gold); display: block; line-height: 1; margin-bottom: 4px; font-weight: 700; }

@media (max-width: 1024px) {
  .hero-visual { display: none; }
}

/* — Sections — */
section { padding: 70px 24px; }
.container { max-width: 1280px; margin: 0 auto; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 48px;
  gap: 40px;
  flex-wrap: wrap;
}
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.55;
}

/* — Card grids — */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 28px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ink);
}
.card-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.card h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.card-arrow {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-top: auto;
}
.card.featured {
  background: var(--ink);
  color: var(--paper);
}
.card.featured h3, .card.featured p { color: var(--paper); }
.card.featured .card-tag { color: var(--gold); }

/* — Province grid — */
.province-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
}
.province-cell {
  padding: 20px 22px;
  border-right: 1px solid rgba(10, 10, 10, 0.12);
  border-bottom: 1px solid rgba(10, 10, 10, 0.12);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--paper);
}
.province-cell:hover { background: var(--paper-2); }
.province-cell.banned { background: #2d1d1a; color: var(--paper); }
.province-cell.banned:hover { background: #3d2924; }
.province-cell .name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.province-cell .status {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
}
.province-cell.banned .status { color: var(--accent); }

/* — CTA band — */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 90px 24px;
  position: relative;
  overflow: hidden;
}
.cta-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.cta-band h2 em { font-style: normal; color: var(--gold); }
.cta-band p { font-size: 17px; color: rgba(245, 241, 234, 0.75); margin-bottom: 32px; max-width: 54ch; margin-left: auto; margin-right: auto; line-height: 1.55; }
.cta-band .btn-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.cta-band .btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* — FAQ — */
.faq { max-width: 880px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(10, 10, 10, 0.15);
  padding: 24px 0;
}
.faq-item summary {
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* — Article body (province / industry pages) — */
.article-hero {
  padding: 70px 24px 52px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.12);
}
.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 500;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.article-hero h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 24ch;
  margin-bottom: 24px;
}
.article-hero .lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.55;
  font-weight: 400;
}
.status-pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.status-pill.legal { background: var(--accent-2); color: var(--paper); }
.status-pill.banned { background: var(--accent); color: var(--paper); }

.article-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
}
@media (max-width: 900px) {
  .article-body { grid-template-columns: 1fr; gap: 48px; }
}
.prose h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
}
.prose p { margin-bottom: 18px; font-size: 16px; line-height: 1.7; }
.prose ul, .prose ol { margin: 0 0 20px 24px; }
.prose li { margin-bottom: 10px; font-size: 16px; line-height: 1.65; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.callout {
  background: var(--paper-2);
  border: 1px solid rgba(10, 10, 10, 0.15);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 28px 0;
}
.callout-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.callout p:last-child { margin-bottom: 0; }

.sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar-block {
  border: 1px solid rgba(10, 10, 10, 0.15);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
  background: var(--paper);
}
.sidebar-block h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.sidebar-block ul { list-style: none; }
.sidebar-block li { margin-bottom: 10px; font-size: 13px; }
.sidebar-block a { color: var(--ink); text-decoration: none; }
.sidebar-block a:hover { color: var(--accent); }
.sidebar-block.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sidebar-block.dark h4 { color: var(--paper); }
.sidebar-block.dark p { font-size: 13px; line-height: 1.55; color: rgba(245, 241, 234, 0.8); margin-bottom: 14px; }
.sidebar-block.dark .btn { font-size: 13px; padding: 9px 16px; background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* — Footer — */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 70px 24px 36px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-brand h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.footer-brand p { color: rgba(245, 241, 234, 0.65); font-size: 14px; line-height: 1.55; max-width: 38ch; }
.footer-col h5 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(245, 241, 234, 0.75);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid rgba(245, 241, 234, 0.15);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(245, 241, 234, 0.5);
  font-size: 12px;
}

/* — Calculator — */
.calc-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  margin: 36px 0;
}
@media (max-width: 768px) { .calc-shell { grid-template-columns: 1fr; } }
.calc-input { padding: 36px; background: var(--paper); }
.calc-result { padding: 36px; background: var(--ink); color: var(--paper); }
.calc-input label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  margin-top: 22px;
}
.calc-input label:first-child { margin-top: 0; }
.calc-input input, .calc-input select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.calc-input input:focus, .calc-input select:focus {
  outline: none;
  border-color: var(--accent);
}
.calc-result h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(245, 241, 234, 0.15);
  font-size: 15px;
}
.calc-row:last-of-type { border-bottom: none; }
.calc-row .val { font-weight: 600; }
.calc-total {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 2px solid var(--gold);
}
.calc-total .label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; font-weight: 600; }
.calc-total .amount { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.025em; }
.calc-total .sub { font-size: 13px; color: rgba(245, 241, 234, 0.65); margin-top: 8px; line-height: 1.5; }

/* — Animations — */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow, .hero h1, .hero-lede, .hero-actions {
  animation: fadeUp 0.6s ease-out backwards;
}
.hero-eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero-lede { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.45s; }

@keyframes spin {
  from { transform: rotate(0deg) scale(var(--s, 1)); }
  to { transform: rotate(360deg) scale(var(--s, 1)); }
}
.hero-visual .ring:nth-child(3) {
  animation: spin 60s linear infinite;
  --s: 0.8;
}

/* — Stat blocks (homepage) — */
.stat-num {
  font-size: 44px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.025em !important;
}

/* mobile */
@media (max-width: 768px) {
  nav ul { gap: 16px; }
  nav a:not(.nav-cta) { display: none; }
  .hero { padding: 50px 24px; }
  section { padding: 50px 24px; }
  .header-inner { padding: 14px 20px; }
  .logo { font-size: 18px; }
}

/* ============================================================
   MOBILE HAMBURGER NAV — added May 2026
   Replaces nav-cta "Calculate Savings" button on mobile.
   CSS-only toggle: no JavaScript, no layout shift.
   Desktop (769px+) is completely unchanged.
   ============================================================ */

#mobile-nav-toggle {
  display: none;
}

.mobile-nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-toggle-label:hover {
  background: var(--paper-2);
}

.mobile-nav-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

#mobile-nav-toggle:checked ~ header .mobile-nav-toggle-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#mobile-nav-toggle:checked ~ header .mobile-nav-toggle-label span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#mobile-nav-toggle:checked ~ header .mobile-nav-toggle-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 24px 20px 28px;
  z-index: 999;
  box-shadow: 0 8px 0 var(--ink);
}

#mobile-nav-toggle:checked ~ header .mobile-nav-panel {
  display: block;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
  margin-bottom: 24px;
}

.mobile-nav-group h6 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--paper-2);
}

.mobile-nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-group ul li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  display: block;
  line-height: 1.3;
}

.mobile-nav-group ul li a:hover {
  color: var(--accent);
}

.mobile-nav-group.full-width {
  grid-column: 1 / -1;
}

.mobile-nav-group.full-width ul {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.mobile-nav-cta {
  border-top: 1.5px solid var(--paper-2);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-nav-cta p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.mobile-nav-cta .btn {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 13px;
  padding: 10px 18px;
}

@media (max-width: 768px) {
  .mobile-nav-toggle-label {
    display: flex;
  }

  header nav .nav-cta {
    display: none;
  }

  .header-inner {
    position: relative;
  }

  header nav ul {
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-nav-toggle-label {
    display: none !important;
  }
  .mobile-nav-panel {
    display: none !important;
  }
}
