/* CTP shared site header + footer. One file for every page (theme, homepage, WPC template).
   Every selector is prefixed .ctp-hdr / .ctp-ftr so theme and Elementor rules can't reach in.
   Heights are fixed, so the header never changes size after fonts load. */

.ctp-hdr, .ctp-ftr {
  --ctp-navy: #0c2153;
  --ctp-royal: #1a3475;
  --ctp-frost: #eef4fa;
  --ctp-orange: #e8811f;
  --ctp-strip-h: 36px;
  --ctp-bar-h: 64px;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.ctp-hdr *, .ctp-ftr * { box-sizing: border-box; }
.ctp-hdr ul, .ctp-ftr ul { list-style: none; margin: 0; padding: 0; }
.ctp-hdr li, .ctp-ftr li { margin: 0; padding: 0; list-style: none; background: none; border: 0; }
.ctp-hdr li::before, .ctp-ftr li::before { content: none; }
.ctp-hdr p, .ctp-ftr p { margin: 0; }
.ctp-hdr a, .ctp-ftr a { text-decoration: none; box-shadow: none; }
.ctp-hdr img, .ctp-ftr img { display: block; max-width: none; border: 0; }
.ctp-hdr button {
  font: inherit; margin: 0; border-radius: 0; text-transform: none; letter-spacing: normal;
  background: none; border: 0; box-shadow: none; text-shadow: none; min-width: 0; min-height: 0;
}
/* the Elementor kit restyles button:hover/:focus (white text, orange border) */
.ctp-hdr .ctp-nav__caret:hover, .ctp-hdr .ctp-nav__caret:focus,
.ctp-hdr .ctp-hdr__burger:hover, .ctp-hdr .ctp-hdr__burger:focus {
  background: none; box-shadow: none; color: var(--ctp-navy); border-color: #e4eaf2;
}
.ctp-ico { display: inline-block; vertical-align: middle; flex: none; }

/* ---------- header ---------- */
.ctp-hdr { position: relative; z-index: 1000; width: 100%; }
.ctp-hdr .ctp-hdr__wrap {
  max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 100%;
  display: flex; align-items: center;
}
.ctp-hdr .ctp-hdr__strip { height: var(--ctp-strip-h); background: var(--ctp-navy); }
.ctp-hdr .ctp-hdr__strip .ctp-hdr__wrap { justify-content: flex-end; gap: 22px; }
.ctp-hdr .ctp-hdr__phone {
  display: inline-flex; align-items: center; gap: 7px;
  color: #fff; font-size: 15px; font-weight: 500; white-space: nowrap;
}
.ctp-hdr .ctp-hdr__phone:hover { color: #d6e8f5; }
.ctp-hdr .ctp-hdr__quote, .ctp-ftr .ctp-hdr__quote {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 18px; border-radius: 26px;
  background: var(--ctp-orange); color: var(--ctp-navy);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.ctp-hdr .ctp-hdr__quote:hover, .ctp-ftr .ctp-hdr__quote:hover { background: #f29a45; color: var(--ctp-navy); }

.ctp-hdr .ctp-hdr__bar {
  position: relative; height: var(--ctp-bar-h); background: #fff;
  border-bottom: 1px solid #dfe6ef;
}
.ctp-hdr .ctp-hdr__logo { flex: none; margin-right: auto; }
.ctp-hdr .ctp-hdr__logo img { height: 42px; width: auto; }

.ctp-hdr .ctp-nav__list { display: flex; align-items: stretch; height: var(--ctp-bar-h); }
.ctp-hdr .ctp-nav__item { position: relative; display: flex; align-items: center; }
.ctp-hdr .ctp-nav__top {
  display: flex; align-items: center; height: 100%; padding: 0 4px 0 14px;
  color: var(--ctp-navy); font-size: 16px; font-weight: 600; white-space: nowrap;
  border-bottom: 3px solid transparent; border-top: 3px solid transparent;
}
.ctp-hdr .ctp-nav__top:hover, .ctp-hdr .ctp-nav__top[aria-current] { color: var(--ctp-royal); }
.ctp-hdr .ctp-nav__item:hover > .ctp-nav__top,
.ctp-hdr .ctp-nav__item.is-open > .ctp-nav__top { border-bottom-color: var(--ctp-navy); }
.ctp-hdr .ctp-nav__caret {
  width: 22px; height: 100%; padding: 0 12px 0 0; background: none; border: 0; cursor: pointer;
  color: var(--ctp-navy); display: flex; align-items: center; justify-content: center;
}
.ctp-hdr .ctp-nav__caret::after {
  content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s;
}
.ctp-hdr .ctp-nav__item.is-open > .ctp-nav__caret::after { transform: translateY(2px) rotate(-135deg); }
.ctp-hdr .ctp-nav__caret:focus-visible, .ctp-hdr a:focus-visible, .ctp-hdr__burger:focus-visible {
  outline: 2px solid var(--ctp-royal); outline-offset: 2px;
}

.ctp-hdr .ctp-nav__panel {
  display: none; position: absolute; top: 100%; left: 0; min-width: 270px;
  background: #fff; border-top: 3px solid var(--ctp-navy);
  box-shadow: 0 14px 30px rgba(12, 33, 83, .18); padding: 10px 0 12px;
}
.ctp-hdr .ctp-nav__item:nth-last-child(-n+2) > .ctp-nav__panel { left: auto; right: 0; }
.ctp-hdr .ctp-nav__panel--wide { width: 620px; left: auto; right: 0; grid-template-columns: 1fr 1fr; }
.ctp-hdr .ctp-nav__panel--wide .ctp-nav__sub { white-space: normal; }
.ctp-hdr .ctp-nav__item.is-open > .ctp-nav__panel { display: block; }
.ctp-hdr .ctp-nav__item.is-open > .ctp-nav__panel--wide { display: grid; }
.ctp-hdr .ctp-nav__col + .ctp-nav__col { margin-top: 6px; }
.ctp-hdr .ctp-nav__panel--wide .ctp-nav__col + .ctp-nav__col { margin-top: 0; border-left: 1px solid #e4eaf2; }
.ctp-hdr .ctp-nav__h {
  padding: 8px 20px 4px; color: #52627f; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.ctp-hdr .ctp-nav__sub {
  display: block; padding: 7px 20px; color: var(--ctp-navy); font-size: 15px; font-weight: 500;
  line-height: 1.35; white-space: nowrap;
}
.ctp-hdr .ctp-nav__sub:hover, .ctp-hdr .ctp-nav__sub[aria-current] { background: var(--ctp-frost); color: var(--ctp-royal); }

.ctp-hdr .ctp-nav__cta, .ctp-hdr .ctp-hdr__mquote, .ctp-hdr .ctp-hdr__mphone, .ctp-hdr .ctp-hdr__burger { display: none; }

@media (min-width: 1025px) {
  .ctp-hdr .ctp-nav__item:hover > .ctp-nav__panel,
  .ctp-hdr .ctp-nav__item:focus-within > .ctp-nav__panel { display: block; }
  .ctp-hdr .ctp-nav__item:hover > .ctp-nav__panel--wide,
  .ctp-hdr .ctp-nav__item:focus-within > .ctp-nav__panel--wide { display: grid; grid-template-columns: 1fr 1fr; }
}

/* WPC-template pages: the old header floated over the top of the page (it had a negative
   bottom margin). Keep the same footprint so their content does not move at all. */
.ctp-hdr--overlay { margin-bottom: calc(5px - var(--ctp-strip-h) - var(--ctp-bar-h)); }

/* ---------- phone / tablet ---------- */
@media (max-width: 1024px) {
  .ctp-hdr { --ctp-bar-h: 64px; }
  .ctp-hdr .ctp-hdr__strip { display: none; }
  .ctp-hdr .ctp-hdr__wrap { padding: 0 12px 0 16px; gap: 8px; }
  .ctp-hdr .ctp-hdr__logo img { height: 38px; }
  .ctp-hdr .ctp-hdr__mquote { display: inline-flex; height: 34px; padding: 0 14px; font-size: 14px; }
  .ctp-hdr .ctp-hdr__mphone {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; color: var(--ctp-navy);
  }
  .ctp-hdr .ctp-hdr__mphone .ctp-ico { width: 20px; height: 20px; }
  .ctp-hdr .ctp-hdr__burger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  }
  .ctp-hdr .ctp-hdr__burger span {
    display: block; width: 24px; height: 2px; background: var(--ctp-navy); transition: transform .2s, opacity .2s;
  }
  .ctp-hdr.is-menu-open .ctp-hdr__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .ctp-hdr.is-menu-open .ctp-hdr__burger span:nth-child(2) { opacity: 0; }
  .ctp-hdr.is-menu-open .ctp-hdr__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .ctp-hdr .ctp-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--ctp-bar-h)); overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: #fff; border-top: 1px solid #dfe6ef; box-shadow: 0 16px 30px rgba(12, 33, 83, .2);
  }
  .ctp-hdr.is-menu-open .ctp-nav { display: block; }
  .ctp-hdr .ctp-nav__list { display: block; height: auto; }
  .ctp-hdr .ctp-nav__item { display: flex; flex-wrap: wrap; border-bottom: 1px solid #e4eaf2; }
  .ctp-hdr .ctp-nav__top { flex: 1; height: 54px; padding: 0 16px; font-size: 17px; border: 0; }
  .ctp-hdr .ctp-nav__caret, .ctp-hdr .ctp-nav__caret:hover, .ctp-hdr .ctp-nav__caret:focus {
    width: 56px; height: 54px; padding: 0; border: 0; border-left: 1px solid #e4eaf2;
  }
  .ctp-hdr .ctp-nav__panel, .ctp-hdr .ctp-nav__panel--wide {
    position: static; width: 100%; min-width: 0; box-shadow: none; border-top: 0;
    padding: 4px 0 10px; background: var(--ctp-frost);
  }
  .ctp-hdr .ctp-nav__item.is-open > .ctp-nav__panel--wide { display: block; }
  .ctp-hdr .ctp-nav__panel--wide .ctp-nav__col + .ctp-nav__col { border-left: 0; margin-top: 6px; }
  .ctp-hdr .ctp-nav__sub { padding: 10px 28px; font-size: 16px; white-space: normal; }
  .ctp-hdr .ctp-nav__h { padding: 10px 28px 2px; }
  .ctp-hdr .ctp-nav__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 18px 16px 22px; }
  .ctp-hdr .ctp-nav__cta .ctp-hdr__quote { height: 42px; padding: 0 24px; font-size: 16px; }
  .ctp-hdr .ctp-nav__cta .ctp-hdr__phone { color: var(--ctp-navy); font-size: 17px; }

  /* old header footprint on WPC pages, tablet 768-1024: 61px tall, -96px margin */
  .ctp-hdr--overlay { margin-bottom: calc(-35px - var(--ctp-bar-h)); }
}
@media (max-width: 767px) {
  /* old header footprint on WPC pages, phone: 63px tall, -70px margin */
  .ctp-hdr--overlay { margin-bottom: calc(-7px - var(--ctp-bar-h)); }
}
@media (max-width: 359px) {
  .ctp-hdr .ctp-hdr__mphone { display: none; }
}
html.ctp-menu-lock, html.ctp-menu-lock body { overflow: hidden; }

/* ---------- footer ---------- */
.ctp-ftr { background: var(--ctp-navy); color: #d6e8f5; font-size: 15px; clear: both; }
.ctp-ftr .ctp-ftr__wrap { max-width: 1240px; margin: 0 auto; padding: 48px 20px 0; }
.ctp-ftr .ctp-ftr__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 32px; padding-bottom: 36px; }
.ctp-ftr .ctp-ftr__logo img { height: 52px; width: auto; }
.ctp-ftr .ctp-ftr__brand p { margin-top: 14px; color: #d6e8f5; font-size: 15px; line-height: 1.5; }
.ctp-ftr .ctp-ftr__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ctp-ftr .ctp-ftr__phone { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 500; }
.ctp-ftr .ctp-ftr__h {
  margin-bottom: 12px; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.ctp-ftr .ctp-ftr__col li { margin-bottom: 8px; }
.ctp-ftr .ctp-ftr__link { color: #d6e8f5; font-size: 15px; }
.ctp-ftr .ctp-ftr__link:hover, .ctp-ftr .ctp-ftr__phone:hover { color: #fff; text-decoration: underline; }
.ctp-ftr .ctp-ftr__social { display: flex; gap: 14px; }
.ctp-ftr .ctp-ftr__soc { display: inline-flex; color: #fff; }
.ctp-ftr .ctp-ftr__soc:hover { color: #d6e8f5; }
.ctp-ftr .ctp-ftr__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding: 18px 0 22px; border-top: 1px solid rgba(214, 232, 245, .2); font-size: 13px; color: #b8cbe0;
}
.ctp-ftr .ctp-ftr__base span { white-space: nowrap; margin-left: 6px; }
.ctp-ftr .ctp-ftr__base ul { display: flex; gap: 20px; }
.ctp-ftr .ctp-ftr__base .ctp-ftr__link { font-size: 13px; color: #b8cbe0; }
.ctp-ftr a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 900px) {
  .ctp-ftr .ctp-ftr__cols { grid-template-columns: 1fr 1fr; }
  .ctp-ftr .ctp-ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .ctp-ftr .ctp-ftr__wrap { padding-top: 36px; }
  .ctp-ftr .ctp-ftr__cols { gap: 26px 20px; }
  .ctp-ftr .ctp-ftr__base span { display: block; margin: 4px 0 0; white-space: normal; }
}
