/* fonts */
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(../font/open-sans-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../font/open-sans-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'icons'; font-display: block; src: url(../font/icons.woff2) format('woff2'); }
.i-map-marker::before { content: "\f041"; }
.i-home::before { content: "\f015"; }
.i-file::before { content: "\f0f6"; }
.i-grid::before { content: "\f009"; }
.i-edit::before { content: "\f044"; }
.i-envelope::before { content: "\f003"; }
.i-google::before { content: "\f1a0"; }
.i-chart::before { content: "\f201"; }
.i-laptop::before { content: "\f109"; }
.i-facebook::before { content: "\f082"; }
.i-cogs::before { content: "\f085"; }
.i-filter::before { content: "\f0b0"; }
.i-arrow::before { content: "\f061"; }
.i-bars::before { content: "\f0c9"; }

:root {
  --blue: #1e8bc3;
  --orange: #f86924;
  --yellow: #ff9f00;
  --green: #35bc7a;
  --red: #f05a49;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #ebeff2;
  color: #6c737a;
  font: 14px/20px 'Open Sans', sans-serif;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid #222; outline-offset: 2px; }
p { margin: 14px 0; }
address { margin: 14px 0; font-style: normal; }
h1, h2 { font-weight: 300; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
h1 { margin: 18px 0; font-size: 28px; }
h2 { margin: 18px 0; font-size: 21px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { font-family: icons; font-style: normal; font-weight: normal; line-height: 1; speak: never; -webkit-font-smoothing: antialiased; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* top bar */
.topbar { margin-bottom: 20px; padding: 9px 0; background: #fff; font-size: 12px; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; }
.topbar p { margin: 0; }
.address { color: #555; }
.address .icon { display: inline-block; width: 22px; height: 22px; margin-right: 8px; border-radius: 11px; background: #f5f5f5; font-size: 14px; line-height: 22px; text-align: center; }

/* logo and menu */
.masthead { position: relative; display: flex; align-items: stretch; gap: 30px; margin-bottom: 30px; }
.logo { display: flex; flex: 0 1 360px; align-items: center; min-height: 136px; padding: 20px 15px; background: var(--red); }
.logo img { width: 330px; }
#menu { flex: 1 1 780px; }
#menu ul { margin: 0; padding: 0; list-style: none; }
#menu > ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; height: 100%; }
#menu > ul > li { position: relative; }
#menu-toggle { display: none; }

.blue { --c: var(--blue); }
.orange { --c: var(--orange); }
.yellow { --c: var(--yellow); }
.green { --c: var(--green); }
.red { --c: var(--red); }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 100%;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  background: #fff;
  color: var(--c);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.tile .icon { font-size: 48px; }
.tile:hover, .tile.active { margin: -6px 0; height: calc(100% + 12px); border-color: var(--c); text-decoration: none; }
.tile:hover::after, .tile.active::after { content: ""; position: absolute; top: 0; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--c); }

.has-sub > ul {
  position: absolute;
  top: 100%;
  right: -140px;
  z-index: 20;
  width: 460px;
  margin-top: 6px !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  visibility: hidden;
  opacity: 0;
  background: var(--yellow);
  transition: opacity .2s, visibility .2s;
}
.has-sub:hover > ul, .has-sub:focus-within > ul { visibility: visible; opacity: 1; }
.has-sub li a { display: block; padding: 13px; color: #fff; font-weight: 700; text-transform: uppercase; }
.has-sub li a:hover, .has-sub li a[aria-current] { background: #fff; color: #b36f00; text-decoration: none; }

/* home slides */
.slide { display: grid; grid-template-columns: minmax(0, 800fr) minmax(0, 370fr); margin-bottom: 10px; background: #fff; }
.slide > img { width: 100%; height: 100%; object-fit: cover; }
.caption { padding: clamp(18px, 4vw, 50px) clamp(18px, 3vw, 40px) 20px 30px; line-height: 22px; }
.kicker { margin: 0 0 30px; padding-bottom: 18px; border-bottom: 1px solid #e5e5e5; color: #d9570f; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.kicker::before { font-family: icons; content: "\f061"; display: inline-block; width: 18px; height: 18px; margin-right: 8px; border: 2px solid #dedede; border-radius: 50%; color: #dedede; font-size: 10px; font-weight: normal; line-height: 14px; text-align: center; vertical-align: 2px; }
.caption h2 { margin: 0 0 23px; color: var(--blue); font-size: clamp(24px, 3.2vw, 40px); line-height: 1.05; text-transform: uppercase; }
.caption p { margin-bottom: 30px; }
.button { display: inline-block; padding: 11px 21px 12px; background: #1a7bad; color: #fff; font-size: 18px; line-height: 22px; }
.button:hover { background: #d9570f; color: #fff; text-decoration: none; }

/* coloured boxes */
.boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 30px; margin-top: 30px; }
.box { display: flex; flex-direction: column; min-height: 390px; padding: 28px 30px 25px; background: var(--c); color: #fff; }
.box > .icon { font-size: 72px; }
.box h2 { margin: 32px 0 24px; font-size: 32px; line-height: 36px; }
.box p { margin: 0 0 23px; }
.box a { align-self: flex-end; width: 45px; height: 45px; margin-top: auto; border: 2px solid #fff; border-radius: 50%; color: #fff; font-size: 24px; line-height: 41px; text-align: center; transition: background .3s, color .3s; }
.box a:hover { background: #fff; color: var(--c); text-decoration: none; }

.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; padding: 26px 10px 17px; }
.partners img { width: 100%; filter: grayscale(1); opacity: .3; transition: filter .3s, opacity .3s; }
.partners img:hover { filter: none; opacity: 1; }

/* sub pages */
.panel { background: #fff; }
article.panel { padding: 26px 10px 15px; text-align: center; }
article.panel.flush { padding: 26px 0 15px; }
article.panel.text-left { padding: 26px 25px 15px; text-align: left; }
.partner-logo { float: left; width: 400px; max-width: 100%; margin: 0 10px 10px 0; padding: 10px; }
.document { display: block; width: 100%; }

ul.arrows { margin: 14px 0; padding: 0; list-style: none; }
ul.arrows li { position: relative; margin-top: 8px; padding-left: 30px; }
ul.arrows li::before { font-family: icons; content: "\f061"; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border: 2px solid #dedede; border-radius: 50%; color: #dedede; font-size: 8px; line-height: 12px; text-align: center; }
article ul.arrows { display: table; margin-right: auto; margin-left: auto; text-align: left; }

/* footer */
#footer { margin-top: 30px; background: #282f33; color: #fff; font-size: 12px; }
#footer a { color: #fff; }
#footer a:hover { color: #5bbedd; }
.footer-main { padding: 38px 0 33px; background: #3c474d; font-size: 13px; }
.footer-main h2 { margin: 18px 0 22px; color: #fff; font-size: 18px; font-weight: 400; }
.columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.footer-bottom { padding-top: 16px; padding-bottom: 20px; }
#footer .footer-bottom a { text-decoration: underline; }

@media (max-width: 1100px) {
  .masthead { gap: 20px; }
  .logo { flex-basis: 275px; }
  #menu > ul { gap: 10px; }
  .tile { font-size: 13px; }
  .tile .icon { font-size: 38px; }
}

@media (max-width: 995px) {
  .box { min-height: 0; padding: 22px 18px; }
  .box h2 { font-size: 24px; line-height: 30px; }
}

@media (max-width: 767px) {
  .masthead { display: block; }
  .logo { justify-content: center; min-height: 0; margin-bottom: 15px; padding: 25px; }
  .logo img { width: 260px; }

  #menu-toggle { display: block; width: 100%; padding: 11px; border: 1px solid #d5d9dc; background: #fff; color: #444; font: inherit; font-size: 15px; cursor: pointer; }
  /* without JavaScript the menu simply stays visible */
  .js #menu { display: none; }
  .js #menu.open { display: block; }
  html:not(.js) #menu-toggle { display: none; }
  #menu > ul { display: block; }
  #menu > ul > li { margin-top: 2px; }
  .tile, .tile:hover, .tile.active { flex-direction: row; justify-content: flex-start; height: auto; margin: 0; padding: 12px 15px; border: 0; border-left: 5px solid var(--c); }
  .tile::after, .tile:hover::after, .tile.active::after { display: none; }
  .tile .icon { width: 28px; font-size: 22px; }
  .has-sub > ul { position: static; width: auto; margin-top: 0 !important; grid-template-columns: 1fr; visibility: visible; opacity: 1; }
  .has-sub li a { padding: 9px 20px 9px 48px; }

  .slide { grid-template-columns: minmax(0, 1fr); }
  .slide > img { height: auto; }
  .caption { padding: 20px; }
  .kicker { margin-bottom: 12px; padding-bottom: 10px; }
  .boxes { grid-template-columns: minmax(0, 1fr); }
  .partners { gap: 10px; }
  .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-logo { float: none; margin: 0 auto 10px; }
  article br { display: none; }
  article h2 br, address br { display: inline; }
}

@media (max-width: 400px) {
  .columns { grid-template-columns: minmax(0, 1fr); }
}
