/* BRX microsite design system, from the Reverse Mortgage Surrey board.
   Surrey accent: burgundy #8E2339 (hover #6E1B2C). Kamloops accent: deep river teal #1E6B73 (hover #154E54).
   Shared: navy #032133, white #FFFFFF, grey band #F4F5F6. Kamloops bands use teal tint #E6F1F2.
   Fonts: Poppins headings, Montserrat body. Self-hosted. SIL OFL 1.1, see fonts/OFL.txt.
   No percent units in this file. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/_shared/fonts/montserrat-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/_shared/fonts/poppins-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/_shared/fonts/poppins-700-latin.woff2") format("woff2");
}

:root {
  --navy: #032133;
  --white: #ffffff;
  --grey: #f4f5f6;
  --hair: rgba(3, 33, 51, 0.25);
  --muted: rgba(3, 33, 51, 0.75);
  --accent: #8e2339;
  --accent-dark: #6e1b2c;
  --band: #f4f5f6;
  --max: 1140px;
}
body.site-surrey {
  --accent: #8e2339;
  --accent-dark: #6e1b2c;
  --band: #f4f5f6;
}
body.site-kamloops {
  --accent: #1e6b73;
  --accent-dark: #154e54;
  --band: #e6f1f2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.6;
}
img, svg { max-width: calc(100vw - 48px); height: auto; }
h1, h2, h3, h4 {
  font-family: Poppins, system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: 40px; margin: 0 0 16px; }
h2 { font-size: 30px; margin: 40px 0 12px; font-weight: 700; }
h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  background: var(--accent);
  margin-top: 10px;
}
body.site-kamloops h2::after {
  width: 36rem;
  max-width: calc(100vw - 56px);
  height: 3px;
}
h3 { font-size: 23px; margin: 28px 0 8px; font-weight: 600; }
p { margin: 0 0 16px; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.hdr a:focus-visible, .callbar a:focus-visible { outline-color: var(--white); }
ul, ol { margin: 0 0 16px; padding-left: 1.2em; }
li { margin: 0 0 6px; }
table { width: 100%; border-collapse: collapse; background: var(--white); margin: 12px 0 16px; font-size: 18px; }
th, td { border: 1px solid var(--hair); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--grey); font-family: Poppins, sans-serif; font-weight: 600; }
.wide { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.col { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 28px 28px 40px; }
.sec { padding: 56px 0; }
.tint { background: var(--band); }
body.site-surrey .tint { background: #f4f5f6; }
body.site-kamloops .tint { background: #e6f1f2; }

.accent-bar { display: none; }
body.site-kamloops .accent-bar { display: block; height: 8px; background: #1e6b73; }

.hdr { background: var(--navy); color: var(--white); }
.hdrin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 28px;
}
.hbrand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.hbrand img { width: 132px; height: auto; display: block; }
.hname { display: flex; flex-direction: column; gap: 2px; }
.site {
  font: 700 22px/1.2 Poppins, system-ui, sans-serif;
  color: var(--white);
  text-decoration: none;
}
.hwho { margin: 0; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, 0.88); }
.hcall { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hphone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  color: var(--white);
  text-decoration: none;
  font: 700 18px/1.2 Poppins, system-ui, sans-serif;
}
.hcall .hwho { text-align: right; max-width: 340px; }
.navrow { background: var(--white); border-bottom: 2px solid var(--hair); }
.nav ul, .menu ul { display: flex; flex-wrap: wrap; gap: 0 8px; list-style: none; margin: 0; padding: 8px 0; }
.nav a, .menu a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 4px 10px;
  font: 600 16px/1.3 Poppins, system-ui, sans-serif;
  color: var(--navy);
  text-decoration: none;
}
.nav a[aria-current="page"], .menu a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--accent); }
.menu { display: none; }
.menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 2px solid var(--navy);
  border-radius: 4px;
  font: 700 18px Poppins, sans-serif;
  cursor: pointer;
  list-style: none;
  background: var(--white);
  margin: 0 0 8px;
}
.menu summary::-webkit-details-marker { display: none; }

.heroin {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 28px 56px;
}
body.site-kamloops .heroin {
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: start;
}
body.site-kamloops .hero-copy { order: 2; }
body.site-kamloops .hero-card { order: 1; }
.kicker { font: 700 16px/1.3 Poppins, sans-serif; color: var(--accent); margin: 0 0 10px; letter-spacing: 0.01em; }
.sub { font-size: 21px; }
.card {
  background: var(--white);
  border: 2px solid var(--hair);
  border-radius: 4px;
  padding: 22px;
}
body.site-kamloops .card {
  border: 0;
  border-top: 6px solid #1e6b73;
  border-radius: 0;
  background: var(--white);
}
.hero-card { padding: 28px; }
.hero-card h3 { margin: 0 0 22px; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.hero-steps { gap: 16px 8px; align-items: start; }
.hero-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  min-width: 0;
}
.hero-steps .num { margin: 0; width: 48px; height: 48px; border-radius: 24px; font-size: 22px; }
.hero-steps strong { display: block; font: 600 14px/1.2 Poppins, sans-serif; white-space: nowrap; }
.hero-card .who { margin: 24px 0 0; line-height: 1.5; }
.steps > li.card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.steps > li.card .num { margin: 0; }
.steps > li.card h3 { margin: 0; }
.num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 26px;
  background: var(--accent);
  color: var(--white);
  font: 700 24px Poppins, sans-serif;
  margin-bottom: 12px;
}
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
body.site-kamloops .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topic {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--navy);
  min-height: 180px;
}
.topic h3 { margin: 0; }
.topic p { margin: 0; flex: 1; }
.topic .go { font-weight: 700; color: var(--accent-dark); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.lede {
  background: var(--white);
  border: 2px solid var(--hair);
  border-left: 6px solid var(--accent);
  border-radius: 4px;
  padding: 22px 26px;
  font-size: 21px;
  line-height: 1.55;
  margin: 20px 0;
}
body.site-kamloops .lede {
  border: 0;
  border-top: 6px solid #1e6b73;
  border-radius: 0;
  background: #e6f1f2;
}
.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--white);
  border-radius: 4px;
  font: 700 18px/1.2 Poppins, sans-serif;
  text-decoration: none;
  text-align: center;
}
.btn:hover, a.btn:hover { background: var(--accent-dark); color: var(--white); }
.cta { margin: 22px 0; }
.who { font-size: 16px; color: var(--muted); margin: 10px 0 0; }
.crumbs { font-size: 16px; margin: 0 0 8px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--muted); }
.exbox { background: var(--white); border: 2px solid var(--hair); border-radius: 4px; padding: 22px; margin: 20px 0; }
body.site-kamloops .exbox { border: 0; border-top: 6px solid #1e6b73; background: var(--white); }
.tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font: 700 14px Poppins, sans-serif;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
figure.chart, .figure-slot, .page-photo { margin: 20px 0 28px; max-width: 100%; }
body.site-kamloops figure.chart, body.site-kamloops .figure-slot {
  background: #e6f1f2;
  padding: 12px;
}
figure.chart img, figure img, .page-photo img, .photo-band img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  background: var(--white);
}
.photo-band { margin: 0 0 8px; max-width: none; }
.photo-band img { height: 440px; object-fit: cover; object-position: center; }
.page-photo img { width: 100%; height: 460px; max-height: 520px; object-fit: cover; object-position: center 46%; }
figcaption.credit { color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 6px; }
figcaption, .photo-band figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; }
.hero-bleed { position: relative; overflow: hidden; color: #fff; }
.hero-bleed .hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  max-width: none;
  object-fit: cover; object-position: center 42%;
}
.hero-surrey .hero-photo { object-position: center 55%; }
.hero-kamloops .hero-photo { object-position: center 62%; }
.hero-scrim { position: absolute; inset: 0; }
.hero-surrey .hero-scrim {
  background: linear-gradient(90deg, rgba(3,33,51,.86) 0%, rgba(3,33,51,.62) 34%, rgba(3,33,51,.28) 62%, rgba(3,33,51,.12) 100%);
}
.hero-kamloops .hero-scrim {
  background: linear-gradient(180deg, rgba(3,33,51,.08) 0%, rgba(3,33,51,.2) 28%, rgba(3,33,51,.72) 68%, rgba(3,33,51,.86) 100%);
}
.hero-bleed .heroin { position: relative; z-index: 1; }
.hero-surrey .heroin { min-height: 540px; align-items: center; }
.hero-kamloops .heroin { min-height: 620px; align-items: end; padding-top: 200px; }
.hero-bleed .kicker, .hero-bleed .hero-copy h1, .hero-bleed .hero-copy .sub, .hero-bleed .hero-copy p { color: #fff; }
.hero-bleed .hero-card, .hero-bleed .hero-card h3, .hero-bleed .hero-card p, .hero-bleed .hero-card li, .hero-bleed .hero-card strong { color: var(--navy); }
.hero-bleed .hero-card .who { color: var(--muted); }
.hero-credit {
  position: absolute; right: 18px; bottom: 10px; z-index: 2;
  margin: 0; font-size: 11px; line-height: 1.3; color: rgba(255,255,255,.78);
}
.hero-credit a { color: inherit; }
.life-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.life-row .page-photo { margin: 0; }
.faq h3 { margin-top: 22px; }
body.site-surrey .faq {
  background: var(--white);
  border: 2px solid var(--hair);
  border-radius: 4px;
  padding: 8px 18px 18px;
}
body.site-kamloops .faq {
  background: #e6f1f2;
  border: 0;
  border-top: 6px solid #1e6b73;
  padding: 8px 18px 18px;
}
.hublink, .local, .links, .ctab {
  background: var(--white);
  border-left: 6px solid var(--accent);
  padding: 12px 16px;
  margin: 18px 0;
}
body.site-kamloops .hublink,
body.site-kamloops .local,
body.site-kamloops .links,
body.site-kamloops .ctab {
  border-left: 0;
  border-top: 6px solid #1e6b73;
  background: #e6f1f2;
}
footer {
  background: #f4f5f6;
  color: var(--navy);
  border-top: 2px solid var(--hair);
  font-size: 17px;
  line-height: 1.55;
}
body.site-kamloops footer {
  background: var(--white);
  border-top: 8px solid #1e6b73;
}
footer a { color: var(--navy); }
footer .nbhd { margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--hair); }
footer .nbhd-label {
  font: 700 13px/1.4 Poppins, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
footer .nbhd ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
footer .flinks { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 8px 0 16px; }
.footlogo { width: 200px; height: auto; display: block; background: var(--white); padding: 8px; }
.fphone { font: 700 20px/1.2 Poppins, sans-serif; text-decoration: none; }
.callbar { display: none; }
.prose h2:first-child { margin-top: 0; }

@media (max-width: 900px) {
  .heroin, .steps, .topics, body.site-kamloops .topics, body.site-kamloops .heroin { grid-template-columns: minmax(0, 1fr); }
  .hero-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 6px; }
  .hero-card { padding: 24px; }
  .hero-steps strong { font-size: 13px; }
  .hero-card .who { margin-top: 20px; }
  body.site-kamloops .hero-copy { order: 1; }
  body.site-kamloops .hero-card { order: 2; }
  .photo-band img { height: 220px; }
  .page-photo img { height: 240px; }
  .life-row { grid-template-columns: 1fr; }
  .hero-surrey .heroin, .hero-kamloops .heroin { min-height: 0; padding: 32px 20px 56px; align-items: start; }
  /* The call bar is 64px. Keep that much padding under the copy. */
  body { padding-bottom: 64px; }
  .hero-surrey .hero-scrim, .hero-kamloops .hero-scrim {
    background: linear-gradient(180deg, rgba(3,33,51,.28) 0%, rgba(3,33,51,.78) 48%, rgba(3,33,51,.9) 100%);
  }
  .hero-bleed { min-height: 560px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .sec { padding: 36px 0; }
  .hcall, .hcall .hwho { align-items: flex-start; text-align: left; }
  .nav { display: none; }
  .menu { display: block; padding: 0 20px 12px; }
  .btn, a.btn { display: flex; width: 100%; }
  .callbar {
    display: flex;
    position: static;
    z-index: 5;
    height: 64px;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    border-top: 4px solid var(--accent);
    box-sizing: border-box;
  }
  .callbar a {
    color: var(--white);
    font: 700 20px Poppins, sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
  }
}
