/*-----------------------------------------------------------------------------------
    ERS Kalite - site customizations (loaded after main.css)
    Primary:   #1A2A57
    Secondary: #03519C
-----------------------------------------------------------------------------------*/

:root {
  --ers-primary: #1A2A57;
  --ers-secondary: #03519C;
  --ers-grad: linear-gradient(90deg, #2b76c6 0%, #75cdfe 51%, #3093df 100%);
}

/*-----------------------------------------------------------------------------------
    Footer (includes/footer.php)
    Three bands on flat colours: call to action, brand + link columns, bottom bar.
    No gradients, no movement on hover (colour changes only).
-----------------------------------------------------------------------------------*/

.ers-f {
  --ers-f-bg: #1A2A57;
  --ers-f-bg-deep: #14214A;
  --ers-f-line: rgba(255, 255, 255, 0.12);
  --ers-f-text: rgba(255, 255, 255, 0.72);
  --ers-f-accent: #7FB5EC;
  background: var(--ers-f-bg);
  color: var(--ers-f-text);
  font-size: 15.5px;
  line-height: 1.6;
}

/* images carry width/height attributes (no layout shift); the CSS still decides the rendered height */
img {
  height: auto;
}

.ers-f a {
  color: inherit;
  text-decoration: none;
}

.ers-f a:focus-visible,
.ers-f button:focus-visible {
  outline: 2px solid var(--ers-f-accent);
  outline-offset: 3px;
}

.ers-f-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-family: "Satoshi-Medium";
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ers-f-accent);
}

/* ---------- call to action ---------- */

.ers-f-cta {
  background: var(--ers-secondary);
}

.ers-f-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 0;
}

.ers-f-cta .ers-f-eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.ers-f-cta-title {
  max-width: 640px;
  margin: 0;
  font-family: "Radio Canada Big", serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
}

.ers-f-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.ers-f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 40px;
  border: 1px solid transparent;
  font-family: "Satoshi-Medium";
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.ers-f-btn-solid {
  background: #ffffff;
  color: var(--ers-secondary) !important;
}

.ers-f-btn-solid:hover {
  background: var(--ers-primary);
  color: #ffffff !important;
}

.ers-f-btn-line {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff !important;
}

.ers-f-btn-line:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ers-secondary) !important;
}

/* ---------- main: brand + three link columns ---------- */

.ers-f-main {
  padding: 72px 0 56px;
}

.ers-f-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr 1.1fr;
  gap: 48px;
}

.ers-f-brand .ers-f-logo {
  display: block;
  max-width: none;
  margin: 0 0 22px;
  font-family: "Radio Canada Big", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #ffffff !important;
}

/* the template sets every <p> to 18px; footer paragraphs follow the footer scale */
.ers-f-brand p {
  max-width: 380px;
  margin: 0 0 26px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ers-f-text);
}

.ers-f-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ers-f-contact a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  transition: color 0.2s ease;
}

.ers-f-ic {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ers-f-accent);
  font-size: 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ers-f-contact a:hover {
  color: var(--ers-f-accent);
}

.ers-f-contact a:hover .ers-f-ic {
  background: var(--ers-secondary);
  color: #ffffff;
}

.ers-f-title {
  margin: 4px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ers-f-line);
  font-family: "Radio Canada Big", serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.ers-f-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ers-f-links a {
  color: var(--ers-f-text);
  transition: color 0.2s ease;
}

.ers-f-links a:hover {
  color: #ffffff;
}

/* ---------- bottom bar ---------- */

.ers-f-bottom {
  background: var(--ers-f-bg-deep);
  border-top: 1px solid var(--ers-f-line);
}

.ers-f-bottom-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  font-size: 14px;
}

.ers-f-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.ers-f-motto {
  margin-left: auto;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.ers-f-motto a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.ers-f-motto a:hover {
  color: #fff;
  text-decoration: underline;
}

.ers-f-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ers-f-top:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ers-primary);
}

/* ---------- responsive ---------- */

@media only screen and (max-width: 1199.98px) {
  .ers-f-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 32px;
  }
  .ers-f-brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 48px;
    align-items: start;
  }
  .ers-f-brand .ers-f-logo,
  .ers-f-brand p {
    grid-column: 1;
  }
  .ers-f-contact {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

@media only screen and (max-width: 991.98px) {
  .ers-f-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 34px 0;
  }
  .ers-f-cta-title {
    font-size: 22px;
  }
  .ers-f-main {
    padding: 56px 0 44px;
  }
}

@media only screen and (max-width: 767.98px) {
  .ers-f-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 24px;
  }
  .ers-f-brand {
    display: block;
  }
  .ers-f-contact {
    margin-top: 0;
  }
  .ers-f-col:last-child {
    grid-column: 1 / -1;
  }
  .ers-f-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 20px 0 24px;
  }
  .ers-f-motto {
    margin-left: 0;
  }
}

@media only screen and (max-width: 575.98px) {
  .ers-f-cta-actions,
  .ers-f-btn {
    width: 100%;
  }
  .ers-f-cta-title {
    font-size: 20px;
  }
}

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

/* the template's wrapper used overflow-x:hidden, which turns it into a scroll container and breaks
   position:sticky; clip hides horizontal overflow the same way without that side effect */

.main-page-wrapper {
  overflow-x: visible;
  /* clip on both axes: off-screen starting positions of the entrance animations must not make the
     page scrollable past the footer (that showed as a white band and a jumping header). clip, unlike
     hidden, creates no scroll container, so the sticky header keeps working. */
  overflow: clip;
}

/* entrance animations: a short 32px rise / slide instead of animate.css's full element height,
   which pushed tall items over (and beyond) whatever follows them */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 32px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translate3d(-32px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translate3d(32px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* header + home hero wrapper: same widths and padding as the template's .container (bootstrap widths,
   30px gutter, 1470px from 1600px), so the logo, hero text and every section below share one left edge */
.ers-wrap {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

@media (min-width: 576px) { .ers-wrap { max-width: 540px; } }
@media (min-width: 768px) { .ers-wrap { max-width: 720px; } }
@media (min-width: 992px) { .ers-wrap { max-width: 960px; } }
@media (min-width: 1200px) { .ers-wrap { max-width: 1140px; } }
@media (min-width: 1400px) { .ers-wrap { max-width: 1320px; } }
@media (min-width: 1600px) { .ers-wrap { max-width: 1470px; } }

.ers-header {
  position: sticky;
  top: -42px; /* the top bar scrolls away, the main bar stays pinned */
  z-index: 1000;
}

/* top bar */

.ers-topbar {
  height: 42px;
  background: var(--ers-primary);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.ers-topbar .ers-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ers-topbar-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.06em;
}

.ers-topbar-tag i {
  color: #7FB5EC;
}

.ers-topbar-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.ers-topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

/* small round badge around the Font Awesome phone / envelope icons */
.ers-tb-ic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.ers-tb-ic svg {
  width: 12px;
  height: 12px;
}

.ers-topbar-links a:hover .ers-tb-ic {
  background: rgba(255, 255, 255, 0.24);
}

.ers-topbar-links a:hover {
  color: #ffffff;
}

.ers-topbar-links a + a {
  padding-left: 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

/* main bar */

.ers-navbar {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid rgba(26, 42, 87, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.ers-header.is-scrolled .ers-navbar {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(26, 42, 87, 0.10);
}

.ers-navbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 135px;
  transition: height 0.3s ease;
}

.ers-header.is-scrolled .ers-navbar-inner {
  height: 104px;
}

.ers-brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.ers-brand img {
  height: 124px;
  width: auto;
  transition: height 0.3s ease;
}

.ers-header.is-scrolled .ers-brand img {
  height: 96px;
}

/* navigation */

.ers-nav {
  margin-left: auto;
}

.ers-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ers-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 40px;
  color: var(--ers-primary);
  font-family: "Satoshi-Medium";
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.ers-nav-link i {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.ers-nav-link:hover,
.ers-nav-item:focus-within > .ers-nav-link {
  color: var(--ers-secondary);
  background: #EEF3FA;
}

.ers-nav-item.is-current > .ers-nav-link {
  color: var(--ers-secondary);
}

.ers-nav-item.is-current > .ers-nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 3px;
  margin-left: -9px;
  border-radius: 3px;
  background: var(--ers-secondary);
}

/* mega menu */

.ers-nav-item.has-mega {
  position: static;
}

.ers-mega {
  position: absolute;
  left: 15px;
  right: 15px;
  top: 100%;
  padding: 30px 32px 0;
  background: #ffffff;
  border: 1px solid rgba(26, 42, 87, 0.08);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 30px 60px rgba(26, 42, 87, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.ers-nav-item.has-mega:hover > .ers-mega,
.ers-nav-item.has-mega:focus-within > .ers-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ers-nav-item.has-mega:hover > .ers-nav-link i,
.ers-nav-item.has-mega:focus-within > .ers-nav-link i {
  transform: rotate(180deg);
}

.ers-mega-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 26px;
}

.ers-mega-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ers-primary);
  font-family: "Radio Canada Big", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(26, 42, 87, 0.1);
}

.ers-mega-cat span {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #EEF3FA;
  color: var(--ers-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: all 0.2s ease;
}

.ers-mega-cat:hover {
  color: var(--ers-secondary);
}

.ers-mega-cat:hover span {
  background: var(--ers-secondary);
  color: #ffffff;
}

.ers-mega-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ers-mega-col li a {
  display: block;
  padding: 6px 0;
  color: rgba(26, 42, 87, 0.78);
  font-size: 15px;
  line-height: 1.4;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ers-mega-col li a:hover {
  color: var(--ers-secondary);
  transform: translateX(4px);
}

.ers-mega-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 -32px;
  padding: 16px 32px;
  background: #F4F7FC;
  border-radius: 0 0 24px 24px;
  font-size: 14px;
  color: rgba(26, 42, 87, 0.7);
}

.ers-mega-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ers-secondary);
  font-weight: 600;
  white-space: nowrap;
}

/* actions */

.ers-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

/* thin divider between the menu and the language / contact group (desktop menu only) */
@media (min-width: 1200px) {
  .ers-nav-actions {
    padding-left: 24px;
    border-left: 1px solid rgba(26, 42, 87, 0.12);
  }
}

/* language switch: round UK flag, leads to /en/ */
.ers-lang {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 5px;
  border-radius: 50%;
  border: 1px solid rgba(26, 42, 87, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease;
}

.ers-lang img {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.ers-lang:hover,
.ers-lang:focus-visible {
  border-color: var(--ers-secondary);
}

.ers-btn-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 40px;
  background: var(--ers-secondary);
  color: #ffffff;
  font-family: "Satoshi-Medium";
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: none;
  transition: color 0.3s ease;
}

.ers-btn-quote i {
  transition: transform 0.25s ease;
}

.ers-btn-quote:hover {
  color: #ffffff;
}

/* buttons stay put on hover: only the colour fill changes */

/* burger */

.ers-burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--ers-primary);
  padding: 0 13px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ers-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
}

.ers-burger span:nth-child(2) {
  width: 70%;
  margin-left: auto;
}

.ers-burger:hover {
  background: var(--ers-secondary);
}

/* mobile panel */

.ers-no-scroll,
.ers-no-scroll body {
  overflow: hidden;
}

.ers-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(15, 25, 55, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.ers-mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.ers-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  width: min(400px, 88vw);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: -20px 0 50px rgba(15, 25, 55, 0.25);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
}

.ers-mobile-panel.is-open {
  transform: translateX(0);
  visibility: visible;
}

.ers-mp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(26, 42, 87, 0.08);
}

.ers-mp-head img {
  height: 72px;
  width: auto;
}

.ers-mp-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: 12px;
  background: #EEF3FA;
  color: var(--ers-primary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ers-mp-close:hover {
  background: var(--ers-primary);
  color: #ffffff;
}

.ers-mp-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 20px 24px;
  overscroll-behavior: contain;
}

.ers-mp-nav,
.ers-mp-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ers-mp-nav > li {
  border-bottom: 1px solid rgba(26, 42, 87, 0.08);
}

.ers-mp-nav > li > a,
.ers-mp-nav > li > .ers-mp-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 4px;
  color: var(--ers-primary);
  font-family: "Satoshi-Medium";
  font-size: 18px;
  font-weight: 500;
  text-align: left;
}

.ers-mp-nav > li.is-current > a,
.ers-mp-nav > li.is-current > .ers-mp-toggle {
  color: var(--ers-secondary);
}

.ers-mp-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* language switch in the mobile menu: flag + language name */
.ers-mp-nav > li > a.ers-mp-lang {
  gap: 12px;
}

.ers-mp-lang img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(26, 42, 87, 0.15);
}

.ers-mp-caret {
  margin-left: auto;
  font-size: 13px;
  transition: transform 0.25s ease;
}

.ers-mp-toggle[aria-expanded="true"] > .ers-mp-caret {
  transform: rotate(180deg);
}

/* animated accordion (works nested): grid rows 0fr -> 1fr */

.ers-acc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.ers-acc > * {
  overflow: hidden;
  min-height: 0;
}

.ers-acc.is-open {
  grid-template-rows: 1fr;
}

.ers-mp-cats {
  padding-bottom: 12px !important;
}

.ers-mp-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px 4px;
  color: var(--ers-secondary);
  font-weight: 600;
  font-size: 15px;
}

.ers-mp-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: #F4F7FC;
  color: var(--ers-primary);
  font-size: 15.5px;
  font-weight: 500;
  text-align: left;
}

.ers-mp-cat > i:first-child {
  color: var(--ers-secondary);
  font-size: 16px;
}

.ers-mp-services {
  padding: 4px 0 10px 40px !important;
}

.ers-mp-services a {
  display: block;
  padding: 7px 0;
  color: rgba(26, 42, 87, 0.78);
  font-size: 15px;
}

.ers-mp-services a:hover,
.ers-mp-cat:hover {
  color: var(--ers-secondary);
}

.ers-mp-contact {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.ers-mp-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ers-primary);
  font-size: 15.5px;
  word-break: break-word;
}

.ers-mp-contact span {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #EEF3FA;
  color: var(--ers-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ers-mp-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 42, 87, 0.25) transparent;
}

.ers-mp-body::-webkit-scrollbar {
  width: 6px;
}

.ers-mp-body::-webkit-scrollbar-thumb {
  background: rgba(26, 42, 87, 0.25);
  border-radius: 6px;
}

.ers-mp-services a.is-current,
.ers-mp-cat.is-current,
.ers-mega-col li a.is-current {
  color: var(--ers-secondary);
  font-weight: 600;
}

.ers-mega-col li a.is-current::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: var(--ers-secondary);
}

.ers-mp-foot {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(26, 42, 87, 0.08);
}

/* responsive */

@media only screen and (max-width: 1399.98px) {
.ers-navbar-inner {
    gap: 20px;
  }
.ers-nav-link {
    padding: 10px 13px;
  }
}

@media only screen and (max-width: 1199.98px) {
.ers-nav {
    display: none;
  }
.ers-burger {
    display: inline-flex;
  }
.ers-nav-actions {
    margin-left: auto;
  }
}

@media only screen and (max-width: 767.98px) {
.ers-header {
    top: 0;
  }
.ers-topbar {
    display: none;
  }
.ers-navbar-inner,
.ers-header.is-scrolled .ers-navbar-inner {
    height: 99px;
  }
.ers-brand img,
.ers-header.is-scrolled .ers-brand img {
    /* 84px tall where it fits; on narrow phones it shrinks so the flag and burger stay on screen */
    height: auto;
    width: min(274px, calc(100vw - 136px));
  }
.ers-nav-actions .ers-btn-quote {
    display: none;
  }
.ers-nav-actions {
    gap: 10px;
  }
.ers-lang {
    width: 36px;
    height: 36px;
    padding: 4px;
  }
.ers-lang img {
    width: 26px;
    height: 26px;
  }
}

@media only screen and (max-width: 991.98px) and (min-width: 768px) {
.ers-topbar-tag {
    display: none;
  }
.ers-topbar .ers-wrap {
    justify-content: center;
  }
}

/*-----------------------------------------------------------------------------------
    Homepage & shared section system
-----------------------------------------------------------------------------------*/

:root {
  --ers-tint: #F4F7FC;
  --ers-line: rgba(26, 42, 87, 0.10);
  --ers-muted: rgba(26, 42, 87, 0.68);
  --ers-radius: 24px;
  --ers-shadow: 0 24px 60px rgba(26, 42, 87, 0.10);
}

.ers-sec {
  padding: 110px 0;
}

.ers-sec-tint {
  background: var(--ers-tint);
}

/* section headings */

.ers-sec-head {
  max-width: 640px;
  margin-bottom: 50px;
}

.ers-sec-head.is-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ers-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ers-secondary);
  font-family: "Satoshi-Medium";
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ers-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.ers-eyebrow-pill {
  padding: 8px 16px;
  border-radius: 40px;
  background: #ffffff;
  border: 1px solid var(--ers-line);
  letter-spacing: 0.06em;
}

.ers-eyebrow-pill::before {
  display: none;
}

.ers-sec-title {
  font-family: "Radio Canada Big", serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ers-primary);
  margin-bottom: 16px;
}

.ers-sec-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ers-muted);
  margin: 0;
}

.ers-sec-head.is-light .ers-eyebrow {
  color: #8EC2F5;
}

.ers-sec-head.is-light .ers-sec-title {
  color: #ffffff;
}

.ers-sec-head.is-light .ers-sec-lead {
  color: rgba(255, 255, 255, 0.72);
}

.ers-sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 50px;
}

.ers-sec-head-row .ers-sec-head {
  margin-bottom: 0;
}

.ers-sec-head-row > .ers-btn {
  flex-shrink: 0;
}

/* buttons */

.ers-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 50px;
  border: 1px solid var(--ers-secondary);
  background: var(--ers-secondary);
  color: #ffffff;
  font-family: "Satoshi-Medium";
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.ers-btn i {
  transition: transform 0.25s ease;
}

.ers-btn:hover {
  color: #ffffff;
  border-color: var(--ers-primary);
}

/* buttons stay put on hover: only the colour fill changes */

.ers-btn-ghost {
  background: transparent;
  color: var(--ers-primary);
  border-color: rgba(26, 42, 87, 0.22);
}

.ers-btn-ghost:hover {
  color: #ffffff;
}

/* hero */

.ers-hero2 {
  position: relative;
  overflow: hidden;
  padding: 70px 0 100px;
}

/* background: flat tint with a large ring echoing the logo mark */
.ers-hero2-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #F4F7FC;
}

.ers-hero2-bg::after {
  content: "";
  position: absolute;
  top: -22%;
  right: -6%;
  width: 54vw;
  max-width: 820px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(3, 81, 156, 0.12);
  box-shadow: inset 0 0 0 48px rgba(3, 81, 156, 0.03), inset 0 0 0 49px rgba(3, 81, 156, 0.06);
}

.ers-hero2-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
}

.ers-hero2 h1 {
  font-family: "Radio Canada Big", serif;
  font-size: 76px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ers-primary);
  margin: 22px 0 24px;
}

.ers-hero2 h1 span {
  color: var(--ers-secondary);
}

.ers-hero2-lead {
  font-size: 20px;
  line-height: 1.7;
  color: var(--ers-muted);
  max-width: 600px;
  margin-bottom: 34px;
}

.ers-hero2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

/* trust strip: three compact proof points under the buttons */
.ers-hero2-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ers-hero2-trust li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--ers-line);
  box-shadow: 0 6px 20px rgba(26, 42, 87, 0.05);
}

.ers-hero2-trust i {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(3, 81, 156, 0.08);
  color: var(--ers-secondary);
  font-size: 19px;
}

.ers-hero2-trust strong {
  display: block;
  font-family: "Satoshi-Medium";
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.25;
  color: var(--ers-primary);
}

.ers-hero2-trust small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ers-muted);
}

/* visual: photo on a solid blue panel, with an accreditation card and standard chips floating over it */
.ers-hero2-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 560px;
}

.ers-hero2-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 892 / 1016;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 30px 60px -24px rgba(26, 42, 87, 0.45);
}

.ers-hero2-shape {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 62%;
  height: 58%;
  border-radius: 32px;
  background: var(--ers-secondary);
}

.ers-hero2-badge {
  position: absolute;
  z-index: 2;
  left: -34px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--ers-line);
  box-shadow: 0 24px 48px -16px rgba(26, 42, 87, 0.35);
}

.ers-hero2-badge-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ers-secondary);
  color: #ffffff;
  font-size: 22px;
}

.ers-hero2-badge strong {
  display: block;
  font-family: "Radio Canada Big", serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ers-primary);
}

.ers-hero2-badge small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--ers-muted);
}

/* service cards (services page links + static cards on the about page)
   hover = colour reverse only: navy card, white text, white icon circle; no movement, no shadow */

.ers-svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 30px 28px;
  border-radius: var(--ers-radius);
  background: #ffffff;
  border: 1px solid var(--ers-line);
  color: var(--ers-primary);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.ers-svc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}

.ers-svc-num {
  position: absolute;
  top: 26px;
  right: 30px;
  font-family: "Radio Canada Big", serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: rgba(26, 42, 87, 0.06);
}

.ers-svc-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #EEF3FA;
  color: var(--ers-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  margin-bottom: 26px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.ers-svc-top .ers-svc-icon {
  margin-bottom: 0;
}

.ers-svc-go {
  font-size: 20px;
  line-height: 1;
  color: rgba(26, 42, 87, 0.3);
  transition: color 0.3s ease;
}

.ers-svc-card h3 {
  font-family: "Radio Canada Big", serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  color: inherit;
  margin-bottom: 12px;
}

.ers-svc-card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ers-muted);
  margin-bottom: 22px;
  transition: color 0.3s ease;
}

.ers-svc-more {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(26, 42, 87, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ers-secondary);
  font-family: "Satoshi-Medium";
  font-weight: 500;
  transition: color 0.3s ease, border-color 0.3s ease;
}

a.ers-svc-card:hover,
a.ers-svc-card:focus-visible {
  background-color: var(--ers-primary);
  border-color: var(--ers-primary);
  color: #ffffff;
}

a.ers-svc-card:hover .ers-svc-icon,
a.ers-svc-card:focus-visible .ers-svc-icon {
  background-color: #ffffff;
  color: var(--ers-primary);
}

a.ers-svc-card:hover .ers-svc-go,
a.ers-svc-card:hover .ers-svc-more,
a.ers-svc-card:focus-visible .ers-svc-go,
a.ers-svc-card:focus-visible .ers-svc-more {
  color: #ffffff;
}

a.ers-svc-card:hover p,
a.ers-svc-card:focus-visible p {
  color: rgba(255, 255, 255, 0.75);
}

a.ers-svc-card:hover .ers-svc-more,
a.ers-svc-card:focus-visible .ers-svc-more {
  border-color: rgba(255, 255, 255, 0.16);
}/* ERS section (home + about) */

.ers-ers {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background: var(--ers-primary);
}

.ers-ers-mark {
  position: absolute;
  left: -120px;
  top: -80px;
  width: 460px;
  opacity: 0.04;
  pointer-events: none;
}

.ers-letter-row {
  position: relative;
}

.ers-letter-card {
  position: relative;
  height: 100%;
  padding: 34px 32px;
  border-radius: var(--ers-radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ers-letter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.ers-big-letter {
  font-family: "Radio Canada Big", serif;
  font-size: 96px;
  font-weight: 700;
  line-height: 0.9;
  color: #ffffff;
}

.ers-letter-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.ers-letter-card h3 {
  color: #ffffff;
  font-family: "Radio Canada Big", serif;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 6px;
}

.ers-letter-tr {
  display: inline-block;
  color: #8EC2F5;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ers-letter-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.ers-ers-quote {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 860px;
  margin: 50px auto 0;
  padding: 26px 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ers-ers-quote i {
  font-size: 34px;
  line-height: 1;
  color: #8EC2F5;
}

.ers-ers-quote p {
  margin: 0;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.65;
}

/* why + accordion */

.ers-why-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ers-muted);
  margin: -20px 0 0;
}

.ers-accordion {
  display: grid;
  gap: 14px;
}

.ers-acc-item {
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--ers-line);
  transition: border-color 0.3s ease;
}

.ers-acc-item:has(.ers-acc-btn:not(.collapsed)) {
  border-color: rgba(3, 81, 156, 0.35);
}

.ers-acc-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: var(--ers-primary);
  font-family: "Radio Canada Big", serif;
  font-size: 19px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.ers-acc-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #EEF3FA;
  color: var(--ers-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.ers-acc-btn:not(.collapsed) .ers-acc-icon {
  background: var(--ers-secondary);
  color: #ffffff;
}

.ers-acc-plus {
  margin-left: auto;
  font-size: 18px;
  color: var(--ers-secondary);
  transition: transform 0.3s ease;
}

.ers-acc-btn:not(.collapsed) .ers-acc-plus {
  transform: rotate(45deg);
}

.ers-acc-item .collapse p,
.ers-acc-item .collapsing p {
  margin: 0;
  padding: 0 24px 22px 78px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ers-muted);
}

/* bento photo grid */

.ers-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 18px;
}

.ers-bento-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #dfe6f1;
}

/* 4 columns x 3 rows, no gaps:  [1 1 2 2] [1 1 3 4] [5 5 6 6] */

.ers-bento-1 {
  grid-column: span 2;
  grid-row: span 2;
}

.ers-bento-2,
.ers-bento-5,
.ers-bento-6 {
  grid-column: span 2;
}

.ers-bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ers-bento-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 55, 0.42);
}

.ers-bento-cap {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 1;
  color: #ffffff;
}

.ers-bento-cap em {
  display: inline-block;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  margin-bottom: 8px;
}

.ers-bento-cap strong {
  display: block;
  font-family: "Satoshi-Medium";
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
}

.ers-bento-1 .ers-bento-cap strong {
  font-size: 24px;
}

.ers-bento-item:hover img {
  transform: scale(1.06);
}

/* responsive */

@media only screen and (max-width: 1399.98px) {
.ers-hero2 h1 {
    font-size: 64px;
  }
}

@media only screen and (max-width: 1199.98px) {
.ers-hero2 h1 {
    font-size: 54px;
  }
.ers-hero2-grid {
    gap: 44px;
  }
.ers-sec-title {
    font-size: 40px;
  }}

@media only screen and (max-width: 991.98px) {
.ers-sec,
.ers-ers {
    padding: 80px 0;
  }
.ers-hero2 {
    padding: 50px 0 70px;
  }
.ers-hero2-grid {
    grid-template-columns: 1fr;
  }
.ers-hero2-visual {
    justify-self: center;
    max-width: 520px;
  }
.ers-hero2-badge {
    left: 16px;
  }
.ers-sec-head-row {
    flex-direction: column;
    align-items: flex-start;
  }
.ers-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }
.ers-bento-1 {
    grid-column: span 2;
    grid-row: span 1;
  }
.ers-bento-2 {
    grid-column: span 2;
  }
.ers-bento-5,
.ers-bento-6 {
    grid-column: span 1;
  }}

@media only screen and (max-width: 767.98px) {
.ers-sec,
.ers-ers {
    padding: 64px 0;
  }
.ers-hero2 {
    padding: 32px 0 56px;
  }
.ers-hero2 h1 {
    font-size: 40px;
    margin: 18px 0 18px;
  }
.ers-hero2-lead {
    font-size: 17px;
  }
.ers-hero2-actions .ers-btn {
    flex: 1 1 auto;
  }
.ers-hero2-trust {
    grid-template-columns: 1fr;
    gap: 8px;
  }
.ers-hero2-trust li {
    padding: 10px 12px;
  }
.ers-hero2-img {
    border-radius: 22px;
  }
.ers-hero2-shape {
    top: -10px;
    right: -6px;
    border-radius: 22px;
  }
.ers-hero2-badge {
    left: 12px;
    bottom: 12px;
    padding: 10px 14px 10px 10px;
    gap: 10px;
  }
.ers-hero2-badge-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
.ers-hero2-badge strong {
    font-size: 14px;
  }
.ers-hero2-badge small {
    font-size: 12px;
  }
.ers-sec-title {
    font-size: 32px;
  }
.ers-sec-lead {
    font-size: 16.5px;
  }
.ers-sec-head,
.ers-sec-head-row {
    margin-bottom: 34px;
  }
.ers-svc-card {
    padding: 28px 24px;
  }.ers-big-letter {
    font-size: 76px;
  }
.ers-ers-quote {
    flex-direction: column;
    gap: 10px;
    padding: 22px;
  }
.ers-ers-quote p {
    font-size: 17px;
  }
.ers-why-text {
    margin-top: -10px;
  }
.ers-acc-btn {
    font-size: 17px;
    padding: 16px;
  }
.ers-acc-item .collapse p,
.ers-acc-item .collapsing p {
    padding: 0 18px 18px 18px;
  }
.ers-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
.ers-bento-1,
.ers-bento-2,
.ers-bento-5,
.ers-bento-6 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/*-----------------------------------------------------------------------------------
    Inner pages
-----------------------------------------------------------------------------------*/

/* page banner */

.ers-page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  border-bottom: 1px solid rgba(26, 42, 87, 0.08);
}

.ers-page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(560px 360px at 85% 20%, rgba(3, 81, 156, 0.14), transparent 70%),
    radial-gradient(420px 300px at 0% 100%, rgba(26, 42, 87, 0.06), transparent 70%),
    linear-gradient(180deg, #F4F7FC 0%, #ffffff 100%);
}

.ers-page-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 56px;
}

.ers-page-hero.has-visual .ers-page-hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.ers-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--ers-muted, rgba(26, 42, 87, 0.68));
}

.ers-crumbs li {
  display: inline-flex;
  align-items: center;
}

.ers-crumbs li + li::before {
  content: "\f285";
  font-family: "bootstrap-icons";
  font-size: 10px;
  margin: 0 8px;
  opacity: 0.55;
}

.ers-crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ers-muted, rgba(26, 42, 87, 0.68));
  transition: color 0.2s ease;
}

.ers-crumbs a:hover {
  color: var(--ers-secondary);
}

.ers-crumbs [aria-current] {
  color: var(--ers-primary);
  font-weight: 600;
}

.ers-page-text .ers-eyebrow-pill {
  margin-bottom: 18px;
}

.ers-page-text h1 {
  font-family: "Radio Canada Big", serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ers-primary);
  margin-bottom: 18px;
}

.ers-page-lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ers-muted, rgba(26, 42, 87, 0.68));
  max-width: 680px;
  margin: 0;
}

.ers-page-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 520px;
}

.ers-page-visual::before {
  content: "";
  position: absolute;
  inset: -16px -16px 16px 16px;
  border-radius: 28px;
  border: 2px dashed rgba(3, 81, 156, 0.22);
}

.ers-page-visual img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 26px;
}

/* square banner artwork with its title at the top: crop from the top so the heading stays whole */
.ers-page-visual img.is-top {
  object-position: 50% 0;
}

/* chips (category nav, gallery filter, 404 links) */

.ers-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ers-chips a,
.ers-chips button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 40px;
  border: 1px solid rgba(26, 42, 87, 0.14);
  background: #ffffff;
  color: var(--ers-primary);
  font-family: "Satoshi-Medium";
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.ers-chips a i,
.ers-chips button i {
  color: var(--ers-secondary);
  transition: color 0.2s ease;
}

.ers-chips a:hover,
.ers-chips button:hover,
.ers-chips button.active {
  border-color: var(--ers-secondary);
  color: #ffffff;
}

.ers-chips button.active {
  background: var(--ers-secondary);
}

.ers-chips a:hover i,
.ers-chips button:hover i,
.ers-chips button.active i {
  color: #ffffff;
}

.ers-chips button span {
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #EEF3FA;
  color: var(--ers-secondary);
  font-size: 12.5px;
  text-align: center;
}

.ers-chips button:hover span,
.ers-chips button.active span {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.ers-chipbar {
  position: sticky;
  top: 104px;
  z-index: 50;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 42, 87, 0.08);
}

.ers-chipbar .ers-chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.ers-chipbar .ers-chips::-webkit-scrollbar {
  display: none;
}

.ers-chipbar .ers-chips a {
  flex-shrink: 0;
}

/* services overview */

.ers-cat-block {
  scroll-margin-top: 184px;
}

.ers-cat-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 44px;
}

.ers-cat-head-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ers-cat-head .ers-sec-title {
  margin-bottom: 0;
}

.ers-cat-head .ers-eyebrow {
  margin-bottom: 8px;
}

.ers-cat-icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ers-secondary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.ers-extra-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 28px;
  border-radius: var(--ers-radius);
  border: 1px solid rgba(3, 81, 156, 0.18);
  background: #EAF1FA;
}

.ers-extra-card h3 {
  font-family: "Radio Canada Big", serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ers-primary);
  margin-bottom: 14px;
}

.ers-extra-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.ers-extra-card li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ers-primary);
}

.ers-extra-card li i {
  color: var(--ers-secondary);
  margin-top: 2px;
}

.ers-extra-card > a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ers-secondary);
  font-weight: 600;
  font-size: 15px;
}

/* the wrapper is the frame: it carries the corners and clips the photo, which may be scaled inside it */
.ers-mv-photo {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 610 / 650;
}

.ers-mv-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* mission / vision: styled like an open item of the homepage "Neden ERS Kalite?" accordion */
.ers-mv-card {
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(3, 81, 156, 0.35);
  margin-bottom: 14px;
}

.ers-mv-card h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 20px 22px;
  font-family: "Radio Canada Big", serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ers-primary);
}

.ers-mv-card-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ers-secondary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ers-mv-card p {
  margin: 0;
  padding: 0 24px 22px 78px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ers-muted);
}

/* service detail: content */

.ers-content {
  color: var(--ers-primary);
}

.ers-p {
  font-size: 17.5px;
  line-height: 1.85;
  color: rgba(26, 42, 87, 0.78);
  margin-bottom: 20px;
}

.ers-h {
  position: relative;
  font-family: "Radio Canada Big", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ers-primary);
  margin: 48px 0 20px;
  padding-left: 18px;
}

.ers-h::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: var(--ers-secondary);
}

.ers-content > .ers-p:first-child {
  font-size: 19px;
  color: var(--ers-primary);
}

.ers-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 4px;
}

.ers-list li {
  position: relative;
  padding: 8px 0 8px 36px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(26, 42, 87, 0.85);
}

.ers-list li::before {
  content: "\f633";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #EEF3FA;
  color: var(--ers-secondary);
  font-size: 14px;
  line-height: 24px;
  text-align: center;
}

.ers-list-kv strong {
  color: var(--ers-primary);
}

/* numbered steps as a vertical timeline */

.ers-steps {
  list-style: none;
  padding: 0;
  margin: 8px 0 30px;
  position: relative;
}

.ers-steps::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: rgba(3, 81, 156, 0.2);
}

.ers-steps li {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 10px 0 18px;
}

.ers-step-no {
  position: relative;
  z-index: 1;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid var(--ers-secondary);
  color: var(--ers-secondary);
  font-family: "Radio Canada Big", serif;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ers-steps li > div {
  flex: 1;
  padding: 16px 20px;
  border-radius: 16px;
  background: #F4F7FC;
}

.ers-steps strong {
  display: block;
  font-family: "Satoshi-Medium";
  font-weight: 500;
  font-size: 17.5px;
  color: var(--ers-primary);
  margin-bottom: 4px;
}

.ers-steps p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(26, 42, 87, 0.75);
}

.ers-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 26px;
}

.ers-tags span {
  padding: 8px 15px;
  border-radius: 40px;
  background: #ffffff;
  border: 1px solid rgba(26, 42, 87, 0.14);
  color: var(--ers-primary);
  font-size: 15px;
  font-weight: 500;
}

.ers-callout {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 18px;
  margin: 32px 0;
  padding: 28px 30px;
  border-radius: 22px;
  background: var(--ers-primary);
  color: #ffffff;
}

.ers-callout i {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
}

.ers-callout p {
  margin: 0;
  color: #ffffff;
  font-size: 17.5px;
  line-height: 1.75;
}

.ers-two {
  margin: 12px 0 28px;
}

.ers-box {
  height: 100%;
  padding: 26px 26px 18px;
  border-radius: 20px;
  background: #F4F7FC;
  border: 1px solid transparent;
}

.ers-box-alt {
  background: #ffffff;
  border-color: rgba(26, 42, 87, 0.12);
}

.ers-box h3,
.ers-box h2 {
  font-family: "Radio Canada Big", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ers-primary);
  margin-bottom: 14px;
}

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

.ers-box li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(26, 42, 87, 0.85);
}

.ers-box li i {
  color: var(--ers-secondary);
  font-size: 17px;
  line-height: 1.55;
}

.ers-figure {
  margin: 12px 0 32px;
}

.ers-figure img {
  border-radius: 20px;
}

.ers-figure figcaption {
  margin-top: 10px;
  font-size: 14.5px;
  text-align: center;
  color: rgba(26, 42, 87, 0.6);
}

.ers-svc-gallery {
  margin-top: 30px;
}

.ers-svc-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.ers-svc-gallery-head .ers-h {
  margin: 0;
}

.ers-svc-gallery-head .ers-btn {
  padding: 12px 22px;
}

/* service detail: sidebar */

.ers-side {
  position: sticky;
  top: 134px;
  display: grid;
  gap: 20px;
}

.ers-side-card {
  padding: 26px 24px 16px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(26, 42, 87, 0.1);
}

.ers-side-card > h3 {
  font-family: "Radio Canada Big", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ers-primary);
  margin-bottom: 14px;
}

.ers-side-group {
  padding: 12px 0;
  border-top: 1px solid rgba(26, 42, 87, 0.08);
}

.ers-side-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  color: var(--ers-primary);
  font-family: "Satoshi-Medium";
  font-size: 15px;
  font-weight: 500;
}

.ers-side-cat span {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #EEF3FA;
  color: var(--ers-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.ers-side-group ul {
  list-style: none;
  padding: 0 0 0 40px;
  margin: 0;
}

.ers-side-group li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: 10px;
  color: rgba(26, 42, 87, 0.75);
  font-size: 15px;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.ers-side-group li a i {
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ers-side-group li a:hover {
  color: var(--ers-secondary);
  background: #F4F7FC;
}

.ers-side-group li a:hover i {
  opacity: 1;
}

.ers-side-group li a.is-active {
  color: #ffffff;
  background: var(--ers-secondary);
  font-weight: 600;
}

.ers-side-group li a.is-active i {
  opacity: 1;
}

/* photos (service galleries + gallery page) */

.ers-photo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #dfe6f1;
}

.ers-photo img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

.ers-svc-gallery .ers-photo img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.ers-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 55, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ers-photo-cap {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #ffffff;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

.ers-photo-cap em {
  font-style: normal;
  font-size: 14px;
  font-family: "Satoshi-Medium";
}

.ers-photo-cap i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ers-photo:hover img {
  transform: scale(1.06);
}

.ers-photo:hover::after,
.ers-photo:hover .ers-photo-cap {
  opacity: 1;
  transform: none;
}

.ers-filter-chips {
  justify-content: center;
  margin-bottom: 40px;
}

/* gallery filter: neutralise the template's .portfolio-menu pill container */
.portfolio-menu.ers-filter-chips {
  width: auto;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.portfolio-menu.ers-filter-chips .gf_btn {
  margin: 0;
  padding: 11px 18px;
  border: 1px solid rgba(26, 42, 87, 0.14);
  border-radius: 40px;
  background: #ffffff;
  color: var(--ers-primary);
  font-size: 15px;
  line-height: 1.2;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.portfolio-menu.ers-filter-chips .gf_btn:hover,
.portfolio-menu.ers-filter-chips .gf_btn.active {
  border-color: var(--ers-secondary);
  color: #ffffff;
}
.portfolio-menu.ers-filter-chips .gf_btn.active {
  background: var(--ers-secondary);
}
.grid .ers-gal-col {
  margin-bottom: 0;
}

/* references */

.ers-logo-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(26, 42, 87, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.ers-logo-card-img {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.ers-logo-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.ers-logo-card span {
  font-size: 14.5px;
  line-height: 1.4;
  color: rgba(26, 42, 87, 0.7);
}

.ers-logo-card:hover {
  border-color: transparent;
  box-shadow: 0 24px 60px rgba(26, 42, 87, 0.12);
  transform: translateY(-4px);
}

.ers-logo-card:hover img {
  transform: scale(1.04);
}/* 404 */

.ers-404-sec {
  position: relative;
  overflow: hidden;
  padding: 110px 0 120px;
}

.ers-404-num {
  font-family: "Radio Canada Big", serif;
  font-size: 180px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ers-secondary);
  margin-bottom: 10px;
}

.ers-404-sec .ers-sec-lead {
  max-width: 560px;
}

.ers-404-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 40px;
}

.ers-404-links {
  justify-content: center;
}

/* inner pages: responsive */

@media only screen and (max-width: 1199.98px) {
.ers-page-text h1 {
    font-size: 46px;
  }
.ers-page-hero.has-visual .ers-page-hero-grid {
    gap: 40px;
  }
}

@media only screen and (max-width: 991.98px) {
.ers-page-hero {
    padding: 44px 0 52px;
  }
.ers-page-hero.has-visual .ers-page-hero-grid {
    grid-template-columns: 1fr;
  }
.ers-page-visual {
    justify-self: start;
    max-width: 560px;
  }
.ers-cat-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
.ers-side {
    position: static;
  }
.ers-chipbar {
    top: 99px;
  }
}

@media only screen and (max-width: 767.98px) {
.ers-page-text h1 {
    font-size: 34px;
  }
.ers-page-lead {
    font-size: 16.5px;
  }
.ers-page-visual::before {
    display: none;
  }
.ers-cat-icon {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
.ers-h {
    font-size: 23px;
  }
.ers-p {
    font-size: 16.5px;
  }
.ers-content > .ers-p:first-child {
    font-size: 17.5px;
  }
.ers-steps::before {
    left: 19px;
  }
.ers-step-no {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
.ers-steps li {
    gap: 14px;
  }
.ers-callout {
    flex-direction: column;
    padding: 22px;
  }.ers-mv-card h3 {
    font-size: 17px;
    padding: 16px;
  }
.ers-mv-card p {
    padding: 0 18px 18px 18px;
  }
.ers-404-num {
    font-size: 120px;
  }
.ers-svc-gallery-head {
    flex-direction: column;
    align-items: flex-start;
  }
}/* the scroll-to-top button keeps its own position: fixed from main.css */
.ers-btn,
.ers-btn-quote,
.ers-chips a,
.ers-chips button {
  position: relative;
}/* chips fill with the secondary blue (their active colour) */
.ers-chips a,
.ers-chips button {
  --ers-fill: var(--ers-secondary);
}/* ----------------------------------------------------------------------------------
   Button hover: ink fill
   No shadows or glows on buttons. On hover a colour fill spreads out as a circle from
   the point where the pointer entered (--fx/--fy, set by ers-header.js; centre without
   JS) and pulls back towards the exit point on leave. The fill sits behind the label.
------------------------------------------------------------------------------------- */
.ers-btn,
.ers-btn-quote,
.ers-chips a,
.ers-chips button {
  isolation: isolate;
  overflow: hidden;
  box-shadow: none;
}

.ers-btn,
.ers-btn-quote,
.ers-chips a,
.ers-chips button {
  position: relative;
}

.ers-btn::before,
.ers-btn-quote::before,
.ers-chips a::before,
.ers-chips button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ers-fill, var(--ers-primary));
  clip-path: circle(0% at var(--fx, 50%) var(--fy, 50%));
  transition: clip-path 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

.ers-btn:hover::before,
.ers-btn:focus-visible::before,
.ers-btn-quote:hover::before,
.ers-btn-quote:focus-visible::before,
.ers-chips a:hover::before,
.ers-chips a:focus-visible::before,
.ers-chips button:hover::before,
.ers-chips button:focus-visible::before {
  clip-path: circle(150% at var(--fx, 50%) var(--fy, 50%));
}

/* chips fill with the secondary blue (their active colour) */
.ers-chips a,
.ers-chips button {
  --ers-fill: var(--ers-secondary);
}


@media (prefers-reduced-motion: reduce) {
  .ers-btn::before,
  .ers-btn-quote::before,
  .ers-chips a::before,
  .ers-chips button::before {
    transition: none;
  }
}

/* ----------------------------------------------------------------------------------
   References band (homepage + about): heading and arrows on the left, logo carousel
------------------------------------------------------------------------------------- */
.ers-refs {
  padding: 64px 0;
  background: #ffffff;
  border-top: 1px solid rgba(26, 42, 87, 0.08);
  border-bottom: 1px solid rgba(26, 42, 87, 0.08);
}

.ers-refs-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.ers-refs-head .ers-eyebrow {
  margin-bottom: 12px;
}

.ers-refs-title {
  margin: 0 0 24px;
  color: var(--ers-primary);
  font-size: 30px;
  line-height: 1.2;
}

.ers-refs-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ers-refs-arrow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(26, 42, 87, 0.18);
  background: #ffffff;
  color: var(--ers-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.ers-refs-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ers-secondary);
  clip-path: circle(0% at var(--fx, 50%) var(--fy, 50%));
  transition: clip-path 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ers-refs-arrow:hover,
.ers-refs-arrow:focus-visible {
  color: #ffffff;
  border-color: var(--ers-secondary);
}

.ers-refs-arrow:hover::before,
.ers-refs-arrow:focus-visible::before {
  clip-path: circle(150% at var(--fx, 50%) var(--fy, 50%));
}

.ers-refs-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  color: var(--ers-secondary);
  font-family: "Satoshi-Medium";
  font-size: 15.5px;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.ers-refs-all:hover {
  color: var(--ers-primary);
}

.ers-refs-track {
  min-width: 0;
  margin: 0 -8px;
}

.ers-refs-slide {
  padding: 0 8px;
}

.ers-refs-logo {
  display: block;
  border-radius: 20px;
  border: 1px solid rgba(26, 42, 87, 0.1);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.ers-refs-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.ers-refs-logo:hover {
  border-color: rgba(3, 81, 156, 0.45);
}

@media only screen and (max-width: 1199.98px) {
  .ers-refs-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ers-refs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
  }
  .ers-refs-head .ers-eyebrow {
    flex-basis: 100%;
    margin-bottom: -8px;
  }
  .ers-refs-title {
    margin: 0;
  }
}

@media only screen and (max-width: 575.98px) {
  .ers-refs {
    padding: 48px 0;
  }
  .ers-refs-title {
    font-size: 25px;
  }
  .ers-refs-all {
    margin-left: 6px;
  }
}

/* ----------------------------------------------------------------------------------
   Blue page banner (no photo) + contact page
------------------------------------------------------------------------------------- */
.ers-page-hero.is-blue {
  padding: 72px 0 84px;
  border-bottom: 0;
  background: #03519C;
  color: #ffffff;
}

/* contact: extra room at the bottom for the cards that overlap the banner */
.ers-page-hero.is-blue.is-overlap {
  padding-bottom: 150px;
}

.ers-page-hero.is-blue .ers-page-hero-bg {
  z-index: 0;
  background:
    radial-gradient(700px 420px at 88% 0%, rgba(255, 255, 255, 0.10), transparent 70%),
    #03519C;
}

.ers-page-hero.is-blue .container {
  position: relative;
  z-index: 1;
}

.ers-page-hero.is-blue .ers-crumbs,
.ers-page-hero.is-blue .ers-crumbs a {
  color: rgba(255, 255, 255, 0.72);
}

.ers-page-hero.is-blue .ers-crumbs a:hover,
.ers-page-hero.is-blue .ers-crumbs [aria-current] {
  color: #ffffff;
}

.ers-page-hero.is-blue .ers-eyebrow-pill {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.ers-page-hero.is-blue h1 {
  color: #ffffff;
}

.ers-page-hero.is-blue .ers-page-lead {
  color: rgba(255, 255, 255, 0.8);
}

.ers-page-hero.is-blue .ers-page-visual::before {
  border-color: rgba(255, 255, 255, 0.28);
}

/* contact: cards overlap the banner */
.ers-cx {
  position: relative;
  z-index: 2;
  margin-top: -96px;
  padding-bottom: 110px;
}

.ers-cx-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ers-cx-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 28px 28px 26px;
  border-radius: 24px;
  border: 1px solid rgba(26, 42, 87, 0.1);
  background: #ffffff;
  color: var(--ers-primary);
  transition: color 0.35s ease, border-color 0.35s ease;
}

.ers-cx-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ers-primary);
  clip-path: circle(0% at var(--fx, 50%) var(--fy, 50%));
  transition: clip-path 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ers-cx-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
  padding-bottom: 30px;
}

.ers-cx-label {
  color: var(--ers-secondary);
  font-family: "Satoshi-Medium";
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.35s ease;
}

.ers-cx-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #EEF3FA;
  color: var(--ers-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  transition: background 0.35s ease, color 0.35s ease;
}

.ers-cx-value {
  display: block;
  margin-bottom: 14px;
  font-family: "Satoshi-Medium";
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ers-cx-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(26, 42, 87, 0.6);
  font-size: 15px;
  transition: color 0.35s ease;
}

.ers-cx-action i {
  transition: transform 0.3s ease;
}

.ers-cx-card:hover,
.ers-cx-card:focus-visible {
  color: #ffffff;
  border-color: var(--ers-primary);
}

.ers-cx-card:hover::before,
.ers-cx-card:focus-visible::before {
  clip-path: circle(150% at var(--fx, 50%) var(--fy, 50%));
}

.ers-cx-card:hover .ers-cx-label,
.ers-cx-card:focus-visible .ers-cx-label {
  color: #9CC3EC;
}

.ers-cx-card:hover .ers-cx-icon,
.ers-cx-card:focus-visible .ers-cx-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.ers-cx-card:hover .ers-cx-action,
.ers-cx-card:focus-visible .ers-cx-action {
  color: rgba(255, 255, 255, 0.85);
}

.ers-cx-card:hover .ers-cx-action i {
  transform: translateX(4px);
}

/* contact: service areas */
.ers-cx-topics {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: start;
  padding-top: 100px;
}

.ers-cx-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(26, 42, 87, 0.14);
}

.ers-cx-topic-list li {
  border-bottom: 1px solid rgba(26, 42, 87, 0.14);
}

.ers-cx-topic {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  gap: 16px;
  align-items: center;
  padding: 22px 4px;
  color: var(--ers-primary);
}

.ers-cx-topic-num {
  color: var(--ers-secondary);
  font-family: "Satoshi-Medium";
  font-size: 14px;
  letter-spacing: 0.06em;
}

.ers-cx-topic-text strong {
  display: block;
  font-family: "Radio Canada Big", serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.ers-cx-topic-text small {
  display: block;
  margin-top: 4px;
  color: rgba(26, 42, 87, 0.6);
  font-size: 14.5px;
  line-height: 1.5;
}

.ers-cx-topic > i {
  color: rgba(26, 42, 87, 0.35);
  font-size: 18px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.ers-cx-topic:hover .ers-cx-topic-text strong,
.ers-cx-topic:hover > i {
  color: var(--ers-secondary);
}

.ers-cx-topic:hover > i {
  transform: translate(3px, -3px);
}

@media only screen and (max-width: 1199.98px) {
  .ers-cx-value {
    font-size: 21px;
  }
}

@media only screen and (max-width: 991.98px) {
  .ers-page-hero.is-blue {
    padding: 48px 0 56px;
  }
  .ers-page-hero.is-blue.is-overlap {
    padding-bottom: 120px;
  }
  .ers-cx {
    margin-top: -72px;
    padding-bottom: 80px;
  }
  .ers-cx-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ers-cx-card {
    min-height: 0;
  }
  .ers-cx-top {
    padding-bottom: 20px;
  }
  .ers-cx-topics {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 70px;
  }
}

@media only screen and (max-width: 575.98px) {
  .ers-cx-card {
    padding: 22px 20px;
  }
  .ers-cx-topic {
    grid-template-columns: 36px 1fr 20px;
    gap: 12px;
  }
  .ers-cx-topic-text strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ers-cx-card::before {
    transition: none;
  }
}

/* ----------------------------------------------------------------------------------
   Company profile (homepage + about page): one photo, text, three values
------------------------------------------------------------------------------------- */
.ers-about2 {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: center;
}

.ers-about2-photo {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--ers-radius);
  overflow: hidden;
}

.ers-about2-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.ers-about2-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 0;
}

.ers-about2-text .ers-sec-head {
  margin-bottom: 8px;
}

/* the full company name is long: a smaller title keeps it on two lines */
.ers-about2-text .ers-sec-title {
  font-size: 38px;
}

.ers-about2-text > p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ers-muted);
  margin: 0 0 16px;
}

.ers-about2-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  list-style: none;
  margin: 16px 0 36px;
  padding: 0;
  border-top: 1px solid rgba(26, 42, 87, 0.14);
  border-bottom: 1px solid rgba(26, 42, 87, 0.14);
}

.ers-about2-values li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 20px 24px 0;
}

.ers-about2-values li + li {
  padding-left: 24px;
  border-left: 1px solid rgba(26, 42, 87, 0.14);
}

.ers-about2-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #EEF3FA;
  color: var(--ers-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ers-about2-values strong {
  color: var(--ers-primary);
  font-family: "Satoshi-Medium";
  font-weight: 500;
  font-size: 17px;
  line-height: 1.35;
}

@media only screen and (max-width: 1199.98px) {
  .ers-about2 {
    gap: 48px;
  }
}

@media only screen and (max-width: 991.98px) {
  .ers-about2 {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ers-about2-photo {
    aspect-ratio: 16 / 9;
  }
}

@media only screen and (max-width: 575.98px) {
  .ers-about2-text .ers-sec-title {
    font-size: 28px;
  }
  .ers-about2-values {
    grid-template-columns: 1fr;
  }
  .ers-about2-values li,
  .ers-about2-values li + li {
    flex-direction: row;
    align-items: center;
    padding: 16px 0;
    border-left: 0;
  }
  .ers-about2-values li + li {
    border-top: 1px solid rgba(26, 42, 87, 0.14);
  }
}

/* ----------------------------------------------------------------------------------
   Preloader: the emblem pops in and breathes gently until the page is ready,
   then the white curtain lifts.
------------------------------------------------------------------------------------- */
.ers-pre {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 0.75s;
  /* safety net without JavaScript: the curtain lifts on its own after 5 s */
  animation: ers-pre-failsafe 0.75s cubic-bezier(0.76, 0, 0.24, 1) 5s forwards;
}

/* later pages of the same visit: no curtain at all (set by the inline script in the <head>) */
.ers-pre-skip .ers-pre {
  display: none !important;
}

@keyframes ers-pre-failsafe {
  to { transform: translateY(-100%); visibility: hidden; }
}

.ers-pre.is-done {
  transform: translateY(-100%);
  visibility: hidden;
}

.ers-pre-logo {
  width: min(48vw, 250px);
  transition: transform 0.45s ease, opacity 0.35s ease;
}

.ers-pre.is-done .ers-pre-logo {
  transform: scale(0.92);
  opacity: 0;
}

.ers-pre-logo img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.82);
  animation:
    ers-pre-pop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards,
    ers-pre-breathe 2.2s ease-in-out 0.9s infinite;
}

@keyframes ers-pre-pop {
  to { opacity: 1; transform: scale(1); }
}

@keyframes ers-pre-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* reduced motion: show the emblem at once and fade the curtain */
@media (prefers-reduced-motion: reduce) {
  .ers-pre .ers-pre-logo img {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .ers-pre {
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  }
  .ers-pre.is-done {
    transform: none;
    opacity: 0;
  }
  .ers-pre.is-done .ers-pre-logo {
    transform: none;
  }
}
/* ----------------------------------------------------------------------------------
   Fluid desktop sizing (>= 1200px)
   Laptops are often wide but short (e.g. 1920x1080 at 150% scaling = 1280x~600 CSS px), where the
   fixed desktop sizes made the header and hero taller than the screen. Each size below scales with
   min(width, height) and is capped at the original design value, so large screens are unchanged.
------------------------------------------------------------------------------------- */
@media only screen and (min-width: 1200px) {
  :root {
    --ers-nav-h: clamp(84px, min(7.1vw, 14.3vh), 135px);
    --ers-nav-h-sm: clamp(72px, min(5.45vw, 11vh), 104px);
  }

  /* header */
  .ers-navbar-inner {
    height: var(--ers-nav-h);
  }
  .ers-header.is-scrolled .ers-navbar-inner {
    height: var(--ers-nav-h-sm);
  }
  .ers-brand img {
    height: clamp(77px, min(6.5vw, 13.1vh), 124px);
  }
  .ers-header.is-scrolled .ers-brand img {
    height: clamp(66px, min(5vw, 10.1vh), 96px);
  }
  .ers-nav-link {
    font-size: clamp(15px, 0.9vw, 17px);
    padding: 10px clamp(10px, 0.85vw, 16px);
  }
  .ers-btn-quote {
    font-size: clamp(14.5px, 0.85vw, 16px);
    padding: clamp(10px, min(0.75vw, 1.5vh), 14px) clamp(18px, 1.4vw, 26px);
  }

  /* things pinned under the sticky header follow its height */
  .ers-chipbar {
    top: var(--ers-nav-h-sm);
  }
  .ers-side {
    top: calc(var(--ers-nav-h-sm) + 30px);
  }
  .ers-cat-block {
    scroll-margin-top: calc(var(--ers-nav-h-sm) + 80px);
  }

  /* buttons */
  .ers-btn {
    font-size: clamp(15px, 0.85vw, 16px);
    padding: clamp(12px, min(0.85vw, 1.7vh), 16px) clamp(22px, 1.6vw, 30px);
  }

  /* home hero */
  .ers-hero2 {
    padding: clamp(32px, min(3.7vw, 7.4vh), 70px) 0 clamp(48px, min(5.3vw, 10.5vh), 100px);
  }
  .ers-hero2-grid {
    gap: clamp(40px, 3.7vw, 70px);
  }
  .ers-hero2 h1 {
    font-size: clamp(44px, min(4vw, 8vh), 76px);
    margin: clamp(12px, 2.4vh, 22px) 0 clamp(14px, 2.6vh, 24px);
  }
  .ers-hero2-lead {
    font-size: clamp(16.5px, min(1.05vw, 2.1vh), 20px);
    margin-bottom: clamp(20px, 3.6vh, 34px);
  }
  .ers-hero2-actions {
    margin-bottom: clamp(20px, 4.2vh, 40px);
  }
  .ers-hero2-trust li {
    padding: clamp(10px, 1.5vh, 14px) clamp(12px, 0.9vw, 16px);
  }
  .ers-hero2-trust strong {
    font-size: clamp(13px, 0.76vw, 14.5px);
  }
  /* the portrait photo may never be taller than the space under the header */
  .ers-hero2-visual {
    max-width: min(560px, calc((100vh - var(--ers-nav-h) - 115px) * 0.878));
  }

  /* inner page banners */
  .ers-page-hero {
    padding: clamp(36px, min(3.3vw, 6.7vh), 64px) 0 clamp(40px, min(3.75vw, 7.6vh), 72px);
  }
  .ers-page-text h1 {
    font-size: clamp(36px, min(2.95vw, 5.9vh), 56px);
  }
  .ers-page-lead {
    font-size: clamp(16.5px, 1vw, 19px);
  }
  .ers-page-visual {
    max-width: min(520px, calc((100vh - var(--ers-nav-h) - 130px) * 1.333));
  }

  /* sections */
  .ers-sec {
    padding: clamp(64px, min(5.7vw, 11.5vh), 110px) 0;
  }
  .ers-sec-title {
    font-size: clamp(34px, min(2.5vw, 5vh), 48px);
  }
  .ers-sec-lead {
    font-size: clamp(16px, 0.94vw, 18px);
  }
}

/* -- company address (contact page card, footer, mobile menu) -- */
.ers-cx-cards--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

address.ers-cx-address,
address.ers-f-address {
  margin: 0;
  font-style: normal;
}

address.ers-cx-address {
  margin-bottom: 14px;
  font-size: 21px;
}

.ers-f-contact a:has(.ers-f-address) {
  align-items: flex-start;
}

.ers-f-address {
  padding-top: 6px;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .ers-cx-cards--4 {
    grid-template-columns: 1fr;
  }
}
