/* Site styles on top of the Divi theme. Loaded after the Divi stylesheets. */
:root {
  --orange: #f6b255;
  --orange-light: #ffd088;
  --navy: #345168;
  --navy-dark: #263d4f;
  --topbar-height: 40px;
  --header-height: 80px;
}

/* Divi wraps images in <picture> for WebP; keep the layout as if it were the <img> alone. */
picture {
  display: contents;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Top bar */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  line-height: var(--topbar-height);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--topbar-height);
}
.topbar__tagline {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__links {
  display: flex;
  gap: 22px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
}
.topbar__links a:hover {
  color: var(--orange);
}
.topbar__links svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
}

/* Header: fixed under the top bar on desktop, and it keeps its size while scrolling. */
@media (min-width: 981px) {
  .et_fixed_nav .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
  }
  .et_fixed_nav #main-header {
    position: fixed;
    top: var(--topbar-height);
  }
  .et_fixed_nav #page-container {
    padding-top: calc(var(--topbar-height) + var(--header-height));
  }
  #et-top-navigation {
    padding-left: 73px;
  }
}
@media (max-width: 980px) {
  .topbar__tagline {
    display: none;
  }
  .topbar__links {
    margin: 0 auto;
  }
  .et_fixed_nav #main-header {
    position: relative;
  }
  #page-container {
    padding-top: 0 !important;
  }
  .mobile_nav.opened .et_mobile_menu {
    display: block;
  }
}
@media (max-width: 400px) {
  .topbar__label--facebook {
    display: none;
  }
}

/* About Ivan, above the footer on every page */
.about-ivan {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 64px 0;
}
.about-ivan__inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.about-ivan__eyebrow {
  margin: 0 0 8px;
  padding: 0;
  color: var(--orange);
  font-family: 'Nunito', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.about-ivan__title {
  margin: 0 0 12px;
  padding: 0;
  color: #fff;
  font-family: 'Nunito', Helvetica, Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}
.about-ivan__text {
  max-width: 620px;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.75;
}
.about-ivan__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;
  padding: 16px 30px;
  border-radius: 50px;
  background: var(--orange);
  color: #fff;
  font-family: 'Nunito', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.about-ivan__button:hover {
  background: #fff;
  color: var(--navy);
}
.about-ivan__button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}
@media (max-width: 980px) {
  .about-ivan {
    padding: 48px 0;
  }
  .about-ivan__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .about-ivan__button {
    margin-left: 0;
  }
}

#main-footer {
  background: var(--navy-dark);
}
#footer-bottom {
  background: transparent;
}
#footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
#footer-bottom .container::after {
  display: none;
}
#footer-info,
.footer-credit {
  float: none;
  padding-bottom: 0;
  color: rgba(255, 255, 255, 0.6);
}
#footer-bottom {
  padding: 18px 0;
}

/* Forms: consent note under the send button and the thank-you box after sending. */
.form-consent {
  clear: both;
  margin: 0;
  padding: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #777;
}
.form-thanks {
  padding: 40px 24px;
  text-align: center;
  background: #f7f9fb;
  border-top: 3px solid var(--orange);
  outline: none;
}
.form-thanks__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
}
.form-thanks__icon svg {
  width: 30px;
  height: 30px;
}
.form-thanks__title {
  padding: 0 0 8px;
  font-size: 26px;
  color: var(--navy);
}
.form-thanks__text {
  padding: 0;
  font-size: 16px;
  color: #555;
}
/* The contact forms on the home and blog pages sit on a dark photo. */
.et_pb_with_background .form-consent {
  color: rgba(255, 255, 255, 0.85);
}
