/* Opstart shared styles: fonts, base, header, footer. Hand-written replacement for the Divi/WooCommerce/plugin CSS.
   Breakpoints match the live site: 980px (tablet), 767px (phone), 479px (small phone). */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/open-sans-latin-italic.woff2") format("woff2");
}

:root {
  --blue: #2ea3f2;
  --navy: #003872;
  --orange: #ff7900;
  --ink: #4a4a4a;
  --rule: #e4e8f0;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.3 9.1L12 14.8l5.7-5.7' fill='none' stroke='%23000' stroke-width='2.1'/%3E%3C/svg%3E");
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13.5 6.5L19 12l-5.5 5.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7em; /* em on purpose: children inherit the computed 23.8px, as on the live site */
  color: #666;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 { margin: 0; padding: 0 0 10px; color: #333; font-weight: 500; line-height: 1em; }
p { margin: 0; padding: 0 0 1em; }
p:last-of-type { padding-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; height: auto; border: 0; }
button, input, select, textarea { font-family: inherit; }
strong, b { font-weight: 700; }
[id] { scroll-margin-top: 111px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.container { width: 80%; max-width: 1080px; margin: 0 auto; }

/* ---------- Top bar ---------- */
.top-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 100000; background: var(--blue); color: #fff; font-size: 12px; line-height: 1em; font-weight: 600; }
.top-bar .container { display: flex; justify-content: space-between; padding-top: 9px; }
.top-bar a { color: #fff; }
.top-bar__info { padding-bottom: 9px; }
.top-bar__info span { margin-right: 13px; }
.top-bar__info svg { width: 12px; height: 12px; margin-right: 2px; vertical-align: -2px; fill: currentColor; }
.top-bar__menu a { display: block; padding-bottom: 9px; }
.top-bar a:hover { opacity: .7; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 31px; left: 0; right: 0; z-index: 99999; height: 80px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .1); line-height: 23px; font-weight: 600; transition: height .4s ease; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 32px 0 30px; }
.site-header__logo { display: flex; align-items: center; height: 100%; padding-left: 4px; }
.site-header__logo img { display: block; width: auto; height: 68px; transition: height .4s ease; }

.nav { align-self: stretch; }
.nav > ul { display: flex; column-gap: 3.64px; height: 100%; }
.nav > ul > li { position: relative; display: flex; align-items: center; padding-right: 22px; line-height: 1em; }
.nav > ul > li:last-child { padding-right: 0; }
.nav a { display: block; color: rgba(0, 0, 0, .6); font-size: 14px; transition: opacity .4s ease; }
.nav > ul > li > a { padding: 33px 0; margin-top: 0; }
.nav > ul > li > a:hover { opacity: .7; }
.nav > ul > li > a.is-current { color: var(--blue); }
.nav .has-sub > a { position: relative; padding-right: 20px; }
.nav .has-sub > a::after { content: ""; position: absolute; right: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: currentColor; -webkit-mask: var(--chevron) center / contain no-repeat; mask: var(--chevron) center / contain no-repeat; }
.nav .sub { position: absolute; top: 100%; left: 0; z-index: 9999; width: 310px; padding: 20px 0; background: #fff; border-top: 3px solid var(--blue); box-shadow: 0 2px 5px rgba(0, 0, 0, .1); visibility: hidden; opacity: 0; transition: opacity .2s ease-in-out; text-align: left; }
.nav li:hover > .sub, .nav li:focus-within > .sub { visibility: visible; opacity: 1; }
.nav .sub li { padding: 0 20px; line-height: 2em; }
.nav .sub a { width: 200px; padding: 6px 20px; }
.nav .sub a.wide { width: 100%; }
.nav .sub a:hover { background: rgba(0, 0, 0, .03); opacity: .7; }

.nav-toggle { display: none; }
.mobile-nav { display: none; }

/* Shrunk header after scrolling (desktop only), as Divi does */
.is-scrolled .site-header { height: 54px; }
.is-scrolled .site-header__logo img { height: 46px; }
.is-scrolled .nav > ul > li > a { padding: 20px 0; }
.is-scrolled .nav .has-sub > a { padding-right: 20px; }

main { display: block; padding-top: 110px; }

/* ---------- Footer ---------- */
.site-footer { background: #222; }
.footer-nav { background: rgba(255, 255, 255, .05); }
.footer-nav ul { padding: 15px 0; font-size: 12px; }
.footer-nav li { display: inline-block; padding-right: 22px; font-size: 14px; font-weight: 600; }
.footer-nav a { font-size: 12px; font-weight: 700; color: #bbb; transition: opacity .4s ease; }
.footer-nav a:hover { opacity: .7; }
.footer-nav a[aria-current] { color: var(--blue); }
.footer-bottom { padding: 15px 0 5px; background: rgba(0, 0, 0, .32); }
.footer-bottom .container { display: flex; flex-direction: row-reverse; justify-content: space-between; }
.social { display: flex; column-gap: 3.64px; height: 29px; }
.social li { margin-left: 20px; }
.social a { display: block; width: 24px; height: 25px; color: #666; transition: opacity .4s ease; }
.social a:hover { opacity: .7; }
.social svg { display: block; width: 24px; height: 24px; fill: currentColor; }
.footer-info { padding-bottom: 10px; color: #666; }
.footer-info a { font-weight: 700; color: #666; }
.footer-info a:hover { color: var(--blue); }

@media (max-width: 980px) {
  [id] { scroll-margin-top: 0; }
  .top-bar, .site-header { position: absolute; }
  .top-bar__menu { display: none; }
  .site-header__inner { position: relative; width: 80%; max-width: 1080px; margin: 0 auto; padding: 0; }
  .site-header__logo img, .is-scrolled .site-header__logo img { width: auto; height: auto; max-width: 100%; max-height: 54%; }
  .site-header__logo { max-width: calc(50% + 4px); }
  .is-scrolled .site-header { height: 80px; }
  .nav { display: none; }
  .nav-toggle { display: block; width: 32px; height: 32px; margin: 0; padding: 0; color: var(--blue); background: none; border: 0; cursor: pointer; }
  .nav-toggle svg { display: block; width: 32px; height: 32px; fill: currentColor; }
  .mobile-nav { position: absolute; top: 100%; left: 0; z-index: 9999; width: 100%; padding: 5%; background: #fff; border-top: 3px solid var(--blue); box-shadow: 0 2px 5px rgba(0, 0, 0, .1); }
  .mobile-nav.is-open { display: block; }
  .mobile-nav a { display: block; padding: 10px 5%; font-size: 14px; color: #666; border-bottom: 1px solid rgba(0, 0, 0, .03); }
  .mobile-nav a:hover { background: rgba(0, 0, 0, .03); opacity: .7; }
  .mobile-nav .has-sub > a { font-weight: 700; background: rgba(0, 0, 0, .03); }
  .mobile-nav .sub { padding-left: 25px; }
  main { padding-top: 109px; }
  .footer-nav ul { text-align: center; }
  .footer-bottom .container { display: block; text-align: center; }
  .social { justify-content: center; height: 34px; }
  .social li { margin: 0 12px; }
}

@media (max-width: 767px) {
  .top-bar .container { justify-content: center; padding-top: 0; }
  .top-bar__info { padding: 9px 0; }
}
