/* =========================================================
   Consolidate Canada — credit counselling site (TMMC Commercial template)
   Built on Bootstrap 5.3.3. Brand tokens live in :root.
   ========================================================= */
:root {
  --navy: #0c1a33;
  --navy-2: #132a52;
  --blue: #2350d8;
  --blue-dark: #1a3fb3;
  --gold: #c9a35c;
  --ink: #101828;
  --muted: #5b6577;
  --line: #e4e8ef;
  --soft: #f4f6f9;
  --radius: 18px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bs-body-font-family: var(--sans);
  --bs-body-color: var(--ink);
  --bs-primary: var(--blue);
  --bs-primary-rgb: 35, 80, 216;
  --bs-link-color: var(--blue);
  --bs-link-hover-color: var(--blue-dark);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: #fff; color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; color: var(--ink); }
h4, h5, h6 { font-family: var(--sans); font-weight: 600; }
p { color: var(--muted); line-height: 1.65; }
a { text-underline-offset: 3px; }
img { max-width: 100%; }

.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .75rem;
}
.eyebrow.gold { color: var(--gold); }
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; margin-bottom: 1rem; }
.lead-muted { font-size: 1.08rem; color: var(--muted); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .7rem 1.35rem; font-size: .95rem; }
.btn-primary { --bs-btn-bg: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-hover-bg: var(--blue-dark); --bs-btn-hover-border-color: var(--blue-dark); --bs-btn-active-bg: var(--blue-dark); }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.04); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { color: var(--navy); background: #fff; border-color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--navy); color: #fff; }
.btn-sm-pill { padding: .45rem 1.05rem; font-size: .88rem; }

/* ---------- Header ---------- */
.site-header { background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); z-index: 1030; }
.site-header .navbar { padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--navy); color: #fff; font-weight: 700; font-size: .82rem; display: grid; place-items: center; letter-spacing: .02em; }
.brand-text { line-height: 1.05; color: var(--ink); font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.brand-text small { display: block; font-weight: 500; font-size: .66rem; letter-spacing: .2em; color: var(--muted); }
.site-header .nav-link { color: var(--ink); font-weight: 500; font-size: .95rem; padding: .5rem .85rem !important; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--blue); }
.header-phone { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.header-phone:hover { color: var(--blue); }
.navbar-toggler { border: 1px solid var(--line); border-radius: 999px; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(35,80,216,.2); }
.toggler-icon { width: 16px; height: 12px; position: relative; }
.toggler-icon span { position: absolute; left: 0; width: 100%; height: 1.6px; background: var(--ink); transition: .25s; }
.toggler-icon span:nth-child(1) { top: 0; } .toggler-icon span:nth-child(2) { top: 5px; } .toggler-icon span:nth-child(3) { top: 10px; }
.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(3) { top: 5px; transform: rotate(-45deg); }
.dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(12,26,51,.25); padding: .5rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .8rem; font-size: .93rem; }
.dropdown-item:active { background: var(--blue); }
.mega { min-width: 420px; }
.mega .dropdown-item { display: block; }
@media (max-width: 991.98px) {
  .site-header .navbar-collapse { padding: 1rem 0 1.25rem; max-height: calc(100vh - 70px); overflow-y: auto; }
  .site-header .nav-link { font-size: 1.05rem; padding: .7rem 0 !important; }
  .dropdown-menu { border: 0; box-shadow: none; padding: 0 0 .5rem .75rem; }
  .mega { min-width: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: 72px 0 80px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .carousel, .hero-bg .carousel-inner, .hero-bg .carousel-item { height: 100%; }
.hero-bg .carousel-item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease; }
.hero-bg .carousel-item.active img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10,22,44,.94) 0%, rgba(12,26,51,.82) 42%, rgba(12,26,51,.45) 100%),
              linear-gradient(0deg, rgba(10,22,44,.65) 0%, rgba(10,22,44,0) 45%); }
.hero > .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: #dfe7ff; }
.hero-copy { min-height: 7.5em; }
.hero-copy p { color: rgba(255,255,255,.82); font-size: 1.12rem; max-width: 560px; transition: opacity .35s ease; }
.hero-copy p.fading { opacity: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2.25rem; }
.hero-controls { display: flex; align-items: center; gap: .9rem; }
.hero-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; display: grid; place-items: center; transition: .2s; }
.hero-arrow:hover { background: #fff; color: var(--navy); }
.hero-dots { display: flex; gap: 7px; }
.hero-dots button { width: 14px; height: 3px; border: 0; border-radius: 3px; background: rgba(255,255,255,.4); padding: 0; transition: width .3s, background .3s; }
.hero-dots button.active { width: 34px; background: #fff; }
.hero-label { margin-top: .9rem; font-size: .9rem; color: rgba(255,255,255,.75); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); max-width: 560px; }
.hero-trust div { font-size: .85rem; color: rgba(255,255,255,.7); }
.hero-trust strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: #fff; line-height: 1.1; }

/* City hero variant */
.hero.hero-city { padding: 64px 0 72px; }
.hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); --bs-breadcrumb-item-active-color: rgba(255,255,255,.85); font-size: .85rem; margin-bottom: 1.25rem; }
.hero .breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.hero .breadcrumb a:hover { color: #fff; }

/* ---------- Lead form card ---------- */
.lead-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px 28px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.45); }
.lead-card h2 { font-size: 1.9rem; margin-bottom: .3rem; }
.lead-card .sub { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }
.lead-card .form-label { font-size: .84rem; font-weight: 500; margin-bottom: .3rem; color: var(--ink); }
.lead-card .form-control, .lead-card .form-select { background-color: var(--soft); border: 1px solid transparent; border-radius: 10px; padding: .66rem .85rem; font-size: .95rem; }
.lead-card .form-control:focus, .lead-card .form-select:focus { background-color: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35,80,216,.15); }
.lead-card .form-check-label { font-size: .82rem; color: var(--muted); }
.lead-card .btn-submit { width: 100%; padding: .85rem; font-size: 1rem; }
.lead-card .assure { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: .9rem; font-size: .78rem; color: var(--muted); }
.lead-card .assure span { display: inline-flex; align-items: center; gap: .35rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 992px) { .lead-card { padding: 34px 32px; } }

/* ---------- Ticker ---------- */
.ticker { background: var(--navy); color: rgba(255,255,255,.85); border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 2.2rem; padding: 1rem 0; animation: ticker 38s linear infinite; }
.ticker-track span { font-size: .92rem; font-weight: 500; display: inline-flex; align-items: center; gap: 2.2rem; }
.ticker-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Cards ---------- */
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; height: 100%; }
.value-card .ico { width: 44px; height: 44px; border-radius: 12px; background: #eef2fd; color: var(--blue); display: grid; place-items: center; margin-bottom: 1.1rem; }
.value-card h3 { font-size: 1.45rem; margin-bottom: .45rem; }
.value-card p { margin: 0; font-size: .95rem; }

.prop-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.prop-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(12,26,51,.35); color: inherit; }
.prop-card .img { aspect-ratio: 16/10; overflow: hidden; background: var(--navy); }
.prop-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.prop-card:hover .img img { transform: scale(1.05); }
.prop-card .img.plat { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); position: relative; }
.prop-card .img.plat::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 34px 34px; }
.prop-card .img.plat::after { content: ""; position: absolute; left: 22%; top: 24%; width: 46%; height: 48%; border: 1.5px dashed rgba(201,163,92,.85); border-radius: 4px; }
.prop-card .body { padding: 22px 24px 26px; flex: 1; }
.prop-card h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.prop-card p { font-size: .93rem; margin: 0; }
.prop-card .more { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 600; font-size: .88rem; color: var(--blue); }

/* Financing list */
.fin-list { border-top: 1px solid var(--line); }
.fin-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 1rem; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background .2s, padding .2s; }
.fin-row:hover { background: var(--soft); padding-left: 14px; color: inherit; }
.fin-row .num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); }
.fin-row h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: 0 0 .15rem; }
.fin-row p { margin: 0; font-size: .92rem; }
.fin-row .arr { color: var(--blue); }

/* City list */
.city-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; height: 100%; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; }
.city-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(35,80,216,.5); color: inherit; }
.city-card h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin: 0 0 .2rem; }
.city-card p { margin: 0; font-size: .85rem; line-height: 1.5; }
.city-card .arr { color: var(--blue); flex-shrink: 0; }

/* Stat panel */
.stat-panel { background: var(--blue); color: #fff; border-radius: 24px; padding: 44px; position: relative; overflow: hidden; }
.stat-panel::after { content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 120px rgba(255,255,255,.03); }
.stat-panel .eyebrow { color: rgba(255,255,255,.75); }
.stat-panel .stat { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; }
.stat-panel .stat-label { color: rgba(255,255,255,.85); font-size: .93rem; margin-top: .35rem; }
.stat-panel h2 { color: #fff; }
.stat-panel p { color: rgba(255,255,255,.82); }

/* Process */
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--line); height: 100%; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--blue); }
.step .n { font-family: var(--serif); color: var(--gold); font-size: 1.05rem; }
.step h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; margin: .35rem 0 .45rem; }
.step p { font-size: .93rem; margin: 0; }

/* FAQ */
.faq .accordion-item { border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.faq .accordion-button { font-weight: 500; font-size: 1.05rem; padding: 1.3rem 0; background: transparent; color: var(--ink); box-shadow: none; }
.faq .accordion-button:not(.collapsed) { color: var(--blue); }
.faq .accordion-body { padding: 0 0 1.4rem; color: var(--muted); line-height: 1.7; }

/* Content pages */
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 2.5rem 0 .9rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.45rem; margin: 1.8rem 0 .6rem; }
.prose p, .prose li { color: var(--muted); line-height: 1.75; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: .4rem; }
.check-list { list-style: none; padding: 0 !important; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #eef2fd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232350d8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/70% no-repeat; }
.side-card { background: var(--soft); border-radius: var(--radius); padding: 28px; }
.side-card h3 { font-size: 1.4rem; }
.terms-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .94rem; }
.terms-table th, .terms-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.terms-table tr:last-child th, .terms-table tr:last-child td { border-bottom: 0; }
.terms-table th { background: var(--soft); font-weight: 600; width: 42%; }
.terms-table td { color: var(--muted); }
.detail-block { scroll-margin-top: 96px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.detail-block:last-child { border-bottom: 0; }
.detail-block img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pill { display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: #eef2fd; color: var(--blue); font-size: .78rem; font-weight: 600; margin: 0 .35rem .45rem 0; }
.page-head { background: var(--navy); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(closest-side, rgba(35,80,216,.35), transparent); }
.page-head > .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; }
.page-head p { color: rgba(255,255,255,.8); font-size: 1.08rem; max-width: 640px; }

/* CTA band */
.cta-band { background: var(--navy); border-radius: 24px; padding: 48px; color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 72px 0 0; font-size: .92rem; }
.site-footer h2 { color: #fff; font-size: 2rem; }
.site-footer p { color: rgba(255,255,255,.65); }
.site-footer h4 { color: var(--gold); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding: 22px 0; font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-bottom p { color: rgba(255,255,255,.5); margin: 0; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -15px rgba(12,26,51,.3); transform: translateY(110%); transition: transform .3s; }
.mobile-cta.show { transform: none; }
.mobile-cta .btn { flex: 1; padding: .7rem; }
@media (min-width: 992px) { .mobile-cta { display: none; } }
@media (max-width: 991.98px) { body { padding-bottom: 0; } .site-footer { padding-bottom: 72px; } }

@media (max-width: 767.98px) {
  .section { padding: 68px 0; }
  .hero { padding: 48px 0 56px; }
  .stat-panel, .cta-band { padding: 32px 24px; }
  .lead-card { padding: 24px 20px; }
  .fin-row { grid-template-columns: 36px 1fr auto; }
}

/* Prevent large gutters from causing sideways scroll on phones */
html, body { overflow-x: clip; }
@media (max-width: 991.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }

/* ---------- City illustrations ---------- */
.city-tile { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s; }
.city-tile:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(12,26,51,.4); border-color: transparent; color: inherit; }
.city-tile .img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--navy); }
.city-tile .img img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; transition: transform .6s; }
.city-tile:hover .img img { transform: scale(1.06); }
.city-tile .region { position: absolute; left: 12px; bottom: 10px; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(8,16,34,.55); backdrop-filter: blur(4px); padding: .25rem .55rem; border-radius: 999px; }
.city-tile .body { padding: 16px 18px 20px; }
.city-tile h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.city-tile p { font-size: .86rem; margin: 0; line-height: 1.5; }
.city-card .thumb { width: 76px; height: 54px; border-radius: 10px; object-fit: cover; object-position: center 70%; flex-shrink: 0; }
.city-card > div { flex: 1; min-width: 0; }
@media (max-width: 575.98px) { .city-tile h3 { font-size: 1.1rem; } .city-tile p { display: none; } .city-tile .region { display: none; } }

.loc-tabs { gap: .5rem; }
.loc-tabs .nav-link { border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; padding: .55rem 1.1rem; }
.loc-tabs .nav-link span { display: inline-block; margin-left: .35rem; font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; background: var(--soft); color: var(--muted); }
.loc-tabs .nav-link.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.loc-tabs .nav-link.active span { background: rgba(255,255,255,.15); color: #fff; }

/* Mega menu groups */
.mega { min-width: 560px; }
.mega .dropdown-header { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; padding: .5rem .8rem .3rem; }
.mega-gta { border-left: 1px solid var(--line); }
@media (max-width: 991.98px) { .mega-gta { border-left: 0; margin-top: .5rem; } .mega { min-width: 0; } }
.site-header .nav-link.nav-mli { color: var(--blue); font-weight: 600; }

/* MLI Select */
.mli-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: 24px; padding: 44px; position: relative; overflow: hidden; }
.mli-band h2 { color: #fff; }
.mli-band p { color: rgba(255,255,255,.78); }
.mli-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mli-mini-lg { grid-template-columns: repeat(2, 1fr); margin-top: 1rem; }
.mli-mini > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px; }
.mli-mini strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.05; color: #fff; }
.mli-mini span { font-size: .8rem; color: rgba(255,255,255,.72); line-height: 1.35; display: block; margin-top: .25rem; }
.tier-table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: .94rem; }
.tier-table th, .tier-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tier-table tbody tr:last-child th, .tier-table tbody tr:last-child td { border-bottom: 0; }
.tier-table thead th { background: var(--navy); color: #fff; font-weight: 600; }
.tier-table thead th:not(:first-child) { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; text-align: center; }
.tier-table thead th:last-child { background: var(--blue); }
.tier-table tbody th { background: var(--soft); font-weight: 600; width: 34%; }
.tier-table td { text-align: center; color: var(--ink); }
.tier-table td:last-child { background: #f1f4fe; font-weight: 600; color: var(--blue-dark); }
@media (max-width: 767.98px) { .mli-band { padding: 30px 22px; } .mli-mini { grid-template-columns: 1fr 1fr; } .mli-mini > div:last-child:nth-child(odd) { grid-column: span 2; } }
.hero.hero-city::after { background: linear-gradient(100deg, rgba(10,22,44,.92) 0%, rgba(12,26,51,.7) 45%, rgba(12,26,51,.2) 100%), linear-gradient(0deg, rgba(10,22,44,.55) 0%, rgba(10,22,44,0) 40%); }
.site-footer ul.cols-2 { columns: 2; column-gap: 1rem; }
.site-footer ul.cols-2 li { break-inside: avoid; }

/* =========================================================
   Consolidate Canada additions (same tokens as TMMC)
   ========================================================= */
:root { --red: #d52b1e; }
.brand-logo { height: 46px; width: auto; display: block; }
@media (max-width: 575.98px) { .brand-logo { height: 38px; } }
.footer-logo { height: 54px; width: auto; margin-bottom: 1rem; }
.topbar { background: var(--navy); color: rgba(255,255,255,.78); font-size: .8rem; padding: .45rem 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--red); margin: 0 .6rem; vertical-align: middle; }
.not-lender { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; margin-bottom: 1.1rem; }
.not-lender::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.not-lender.light { background: #fdecea; border-color: #f7c9c4; color: #8f1d14; }

/* Hero: navy with watermark mark. Optional photo: see comment on next line */
.hero.hero-cc { background: var(--navy) center/cover no-repeat; /* to add a photo: background-image: url("../img/hero.jpg"); */ padding: 64px 0 76px; }
.hero.hero-cc::before { content: ""; position: absolute; right: -140px; bottom: -160px; width: 560px; height: 560px; z-index: 1; opacity: .07; background: url("../img/icon-512.png") center/contain no-repeat; filter: grayscale(1) brightness(3); }
.hero-sub { color: rgba(255,255,255,.85); font-size: 1.14rem; max-width: 560px; }
.hero-note { color: rgba(255,255,255,.65) !important; font-size: .95rem; max-width: 540px; }

/* Urgent cards */
.urgent-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; height: 100%; }
.urgent-card .ico { width: 44px; height: 44px; border-radius: 12px; background: #fdecea; color: var(--red); display: grid; place-items: center; margin-bottom: 1rem; }
.urgent-card h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.urgent-card p { font-size: .94rem; margin: 0; }
.urgent-card.dark { background: var(--navy); border-color: var(--navy); }
.urgent-card.dark h3 { color: #fff; } .urgent-card.dark p { color: rgba(255,255,255,.78); }

/* Comparison table */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: .94rem; background: #fff; }
.compare-table th, .compare-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .95rem; }
.compare-table thead th.us { background: var(--blue); }
.compare-table tbody th { background: var(--soft); font-weight: 600; width: 22%; }
.compare-table td { color: var(--muted); }
.compare-table td.us { background: #f1f4fe; color: var(--blue-dark); font-weight: 600; }
@media (max-width: 767.98px) {
  .compare-table, .compare-table thead, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; min-width: 0; width: 100%; }
  .compare-table thead { display: none; }
  .compare-table tbody tr { border-bottom: 1px solid var(--line); padding: 12px 16px 14px; }
  .compare-table tbody th { background: none; padding: 0 0 .4rem; border: 0; }
  .compare-table td { border: 0; padding: .2rem 0; }
  .compare-table td::before { content: attr(data-label) " "; font-weight: 600; color: var(--ink); }
  .compare-table td.us { background: none; }
}

/* "Sound familiar" */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; height: 100%; position: relative; }
.quote-card::before { content: "\201C"; font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--gold); position: absolute; top: 10px; left: 20px; opacity: .6; }
.quote-card p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; color: var(--ink); margin: 1.6rem 0 .6rem; }
.quote-card small { color: var(--muted); }

/* Debt-type grid */
.debt-chip { display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; height: 100%; text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .2s, transform .2s; }
.debt-chip:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--ink); }
.debt-chip .ico { width: 36px; height: 36px; border-radius: 10px; background: #eef2fd; color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }

/* Advice cards */
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; height: 100%; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(12,26,51,.35); color: inherit; }
.post-card .meta { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.post-card h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.post-card p { font-size: .93rem; flex: 1; }
.post-card .more { font-weight: 600; font-size: .88rem; color: var(--blue); }

/* Assessment */
.quiz-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: 0 30px 60px -40px rgba(12,26,51,.4); }
.quiz-progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 1.5rem; }
.quiz-progress span { display: block; height: 100%; background: var(--blue); transition: width .3s; }
.quiz-q h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1.25rem; }
.quiz-opt { display: block; width: 100%; text-align: left; background: var(--soft); border: 1px solid transparent; border-radius: 12px; padding: 1rem 1.15rem; margin-bottom: .65rem; font-weight: 500; color: var(--ink); transition: .15s; }
.quiz-opt:hover, .quiz-opt:focus { border-color: var(--blue); background: #fff; outline: none; }
.quiz-back { background: none; border: 0; color: var(--muted); font-size: .9rem; padding: 0; margin-top: .5rem; }
.quiz-result h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
@media (max-width: 575.98px) { .quiz-card { padding: 24px 18px; } }

/* Calculator */
.calc-card { background: var(--soft); border-radius: 24px; padding: 32px; }
.calc-card label { font-size: .84rem; font-weight: 500; display: flex; justify-content: space-between; margin-bottom: .35rem; }
.calc-card label output { font-weight: 700; color: var(--ink); }
.calc-card input[type=range] { width: 100%; accent-color: var(--blue); margin-bottom: 1.1rem; }
.calc-out { background: #fff; border-radius: 16px; padding: 18px 20px; height: 100%; }
.calc-out .v { font-family: var(--serif); font-size: 2rem; line-height: 1.05; color: var(--ink); }
.calc-out.win { background: var(--blue); } .calc-out.win .v, .calc-out.win span, .calc-out.win small { color: #fff !important; }
.calc-out span { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: .3rem; }
.calc-out small { color: var(--muted); }

/* Prepared-email panel (when no form endpoint is set) */
.sent-panel h3 { font-size: 1.7rem; }
.sent-panel dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; font-size: .92rem; margin: 1rem 0 1.25rem; }
.sent-panel dt { color: var(--muted); font-weight: 500; } .sent-panel dd { margin: 0; color: var(--ink); font-weight: 600; }

.article-body { max-width: 720px; }
.article-body p { font-size: 1.06rem; }
.disclaimer-box { border-left: 3px solid var(--gold); background: var(--soft); padding: 16px 20px; border-radius: 0 12px 12px 0; font-size: .92rem; color: var(--muted); }
.toc a { display: block; padding: .35rem 0; color: var(--ink); text-decoration: none; font-size: .93rem; }
.toc a:hover { color: var(--blue); }
[data-phone-wrap][hidden] { display: none !important; }
.faq .accordion-button { font-family: var(--sans); }
.site-footer ul.cols-2 { column-gap: 1.5rem; }

/* WhatsApp contact shortcuts */
.whatsapp-float { position: fixed; right: 24px; bottom: 24px; z-index: 1039; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.22); text-decoration: none; transition: transform .2s, background-color .2s, box-shadow .2s; }
.whatsapp-float svg, .mobile-whatsapp svg { display: block; width: 32px; height: 32px; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { color: #fff; background: #1fbd5a; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.mobile-cta { align-items: center; gap: .55rem; padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom)); }
.mobile-cta .mobile-call, .mobile-cta .mobile-options { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 650; }
.mobile-cta .mobile-call { flex: 1; border-color: var(--blue); color: var(--blue); background: #fff; }
.mobile-cta .mobile-options { flex: 1.35; }
.mobile-whatsapp { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #25d366; text-decoration: none; }
.mobile-whatsapp:hover, .mobile-whatsapp:focus-visible { color: #fff; background: #1fbd5a; }
@media (max-width: 991.98px) {
  .whatsapp-float { display: none; }
  .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
