:root {
  --primary: #284560;
  --primary-light: rgba(40, 69, 96, 0.88);
  --secondary: #ff6804;
  --tertiary: #587786;
  --light: #d6dee1;
  --radius: 15px;
  --shadow: 0px 3px 12px #00000029;
}

.ubuntu-light {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;
  font-style: normal;
}

.ubuntu-regular {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-style: normal;
}

.ubuntu-medium,
.btn,
h4,
h5 {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-style: normal;
}

.ubuntu-bold,
h1,
h2,
h6 {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-style: normal;
}

.ubuntu-light-italic {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;
  font-style: italic;
}

.ubuntu-regular-italic {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-style: italic;
}

.ubuntu-medium-italic {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-style: italic;
}

.ubuntu-bold-italic {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-style: italic;
}

.merriweather-light {
  font-family: 'Merriweather', serif;
  font-weight: 300;
  font-style: normal;
}

.merriweather-regular {
  font-family: 'Merriweather', serif;
  font-weight: 400;
  font-style: normal;
}

.merriweather-bold,
h3 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-style: normal;
}

.merriweather-black {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-style: normal;
}

.merriweather-light-italic {
  font-family: 'Merriweather', serif;
  font-weight: 300;
  font-style: italic;
}

.merriweather-regular-italic {
  font-family: 'Merriweather', serif;
  font-weight: 400;
  font-style: italic;
}

.merriweather-bold-italic {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-style: italic;
}

.merriweather-black-italic {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-style: italic;
}

* {
  font-size: 14px;
  &:not(.btn):not([class*='ubuntu']):not(h1):not(h2):not(h4):not(h5):not(
      h6
    ):not(.fa-solid):not(.fas) {
    font-family: 'Merriweather', serif;
  }
  .fa-brands:before {
    font-family: 'Font Awesome 6 Brands' !important;
  }
}
@media screen and (min-width: 576px) {
  * {
    font-size: 15px;
  }
}
@media screen and (min-width: 1200px) {
  * {
    font-size: 18px;
    line-height: 1.875rem;
  }
}

hr {
  border: 2px solid #587786;
  margin: 2.4rem 0 !important;
  opacity: 1;
}

@media (max-width: 576px) {
  .container,
  .container-md,
  .container-sm {
    max-width: 530px;
    padding-left: 25px;
    padding-right: 25px;
  }
}
@media (min-width: 768px) and (max-width: 980px) {
  .container,
  .container-md,
  .container-sm {
    max-width: 670px;
  }
}

h1 {
  color: var(--tertiary);
  font-size: 3.75rem;
  line-height: 4.375rem;
  font-weight: 800;
  letter-spacing: -1px;
}
@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
    line-height: 3.6rem;
  }
}

h2 {
  color: var(--primary);
  font-size: 3.438rem;
  line-height: 3.938rem;
  font-weight: 600;
}

h3 {
  color: var(--primary);
  font-size: 2.5rem;
  line-height: 3.125rem;
}

h4 {
  color: var(--primary);
  font-size: 1.875rem;
  line-height: 2.625rem;
}

h5 {
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 2rem;
}

h6 {
  color: var(--tertiary);
  font-size: 1.25rem;
  line-height: 1.5rem;
  text-transform: uppercase;
}

a {
  transition: 0.2s all;
}

.link-no-bg {
  color: var(--primary);
  text-decoration: none;
  &:hover {
    color: var(--tertiary);
  }
}

.icon {
  display: flex;
  margin: 1rem auto 1.6rem;
  width: 80px;
  height: 80px;
}
@media screen and (min-width: 576px) {
  .icon {
    width: 100px;
    height: 100px;
  }
}
@media screen and (min-width: 1180px) {
  .icon {
    width: 120px;
    height: 120px;
  }
}

.shaded-bg {
  background-color: #f0f3f4;
}

.img-wrap {
  position: relative;
  img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }
}

#topbar {
  background-color: var(--light);
  color: var(--primary);
  font-weight: 600;
  .img-wrap {
    height: 100px;
    width: 100px;
    min-width: 100px;
    img {
      object-fit: cover;
      height: 100%;
      width: 100%;
      border-radius: 80%;
      border: 6px solid #fff;
      box-shadow: var(--shadow);
    }
  }
}
@media screen and (max-width: 576px) {
  #topbar .row div:last-of-type {
    justify-content: flex-start !important;
  }
}
@media screen and (max-width: 780px) {
  #topbar .container > .row > div:first-of-type {
    min-width: 110px;
  }
}
@media screen and (min-width: 1200px) {
  #topbar .btn-wrap {
    justify-content: flex-start !important;
  }
}

#header-nav {
  img {
    width: 280px;
    height: auto;
  }
}

#header-banner {
  height: 425px;
  background-image: url(/assets/images/kinemedics-foundation-header.jpg);
  background-size: cover;
  background-position: center;
  position: relative;
  &:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    top: 0;
    left: 0;
    opacity: 0.8;
  }
}
@media screen and (min-width: 576px) {
  #header-banner {
    height: 500px;
  }
}
@media screen and (min-width: 1180px) {
  #header-banner {
    height: 587px;
  }
}

#header-banner-content {
  position: relative;
  background-color: #fff;
  border-left: 14px solid var(--secondary);
  margin-top: -6rem;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 90%;
  h1 {
    max-width: 880px;
    margin-bottom: 1.5rem;
  }
  p {
    font-size: 1.25rem;
    max-width: 800px;
    &:last-of-type {
      margin-bottom: 0;
    }
  }
  span {
    display: flex;
    font-size: 2.438rem;
    line-height: 3.063rem;
    margin-bottom: 0.5rem;
  }
}
@media screen and (min-width: 1200px) {
  #header-banner-content {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    width: 60%;
  }
}
@media screen and (min-width: 1180px) {
  #header-banner-content {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.btn {
  background-color: var(--primary);
  color: #fff;
  text-transform: uppercase;
  border: 2px solid var(--primary);
}
.btn:hover {
  background-color: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn,
.nav-pills .nav-link {
  border-radius: 68px;
  padding: 0.6rem 1.7rem;
}

.dark-text {
  color: var(--dark);
}

.nav-pills .nav-link:not(.btn) {
  background-color: unset;
  color: #000;
  text-transform: uppercase;
  text-decoration: underline;
  font-weight: 700;
  &:hover {
    color: var(--primary);
  }
}

.icon-columns {
  h2 {
    color: var(--primary);
    margin-bottom: 2rem;
  }
  p,
  strong {
    font-size: 1.938rem;
    line-height: 2.438rem;
  }
  .row > div {
    padding: 0 1.5rem;
  }
}

.media {
  display: flex;
  position: relative;
  .media-text {
    position: relative;
    z-index: 5;
  }
  .img-wrap {
    position: relative;
    height: 520px;
    width: 100%;
    max-width: 100%;
    margin-top: 5rem;
    img {
      transform: translate(0, -60px);
    }
  }
  .circles {
    position: absolute;
    top: -5.4rem;
    right: -5px;
    display: flex;
    flex-direction: column;
    div {
      border-radius: 80%;
      width: 6rem;
      height: 6rem;
      margin-bottom: 1.5rem;
      &:first-of-type {
        background-color: var(--secondary);
      }
      &:nth-of-type(2) {
        background-color: var(--tertiary);
      }
      &:last-of-type {
        background-color: var(--primary);
      }
    }
  }
}
@media screen and (max-width: 992px) {
  .circles {
    z-index: 8;
  }
}
@media screen and (min-width: 992px) {
  .media .img-wrap {
    height: 98%;
    margin-top: unset;
    img {
      transform: translate(-5rem, -50px);
      width: 107%;
    }
  }
}

.card {
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  .card-body {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    p {
      &:last-of-type {
        margin-bottom: 1.5rem;
      }
    }
  }
  .card-title {
    font-size: 1.938rem;
    line-height: 2.438rem;
    margin-bottom: 1rem;
  }
  .img-wrap {
    height: 100%;
    width: 100%;
    max-width: 100%;
    max-height: 360px;
  }
  strong {
    font-weight: 600;
  }
  a {
    color: #fff;
  }
}
@media screen and (min-width: 576px) {
  .card .img-wrap {
    max-height: 460px;
  }
}
@media screen and (max-width: 768px) {
  .card .card-body {
    border-top: 11px solid rgba(255, 255, 255, 0.45);
  }
}
@media screen and (min-width: 768px) {
  .card .card-body {
    border-left: 11px solid rgba(255, 255, 255, 0.45);
  }
}

#footer-wrap {
  background-color: var(--primary);
  color: #fff;
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: var(--light);
  }
  .footer-logo {
    width: 270px;
  }
}
@media screen and (min-width: 992px) {
  #footer-wrap .row div:last-of-type {
    text-align: right;
  }
}

#colophon {
  border-top: 1px solid var(--tertiary);
  color: #fff !important;
  a {
    color: #fff;
    text-decoration-color: var(--secondary);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
  }
}
@media screen and (min-width: 768px) {
  #colophon .row div:last-of-type {
    text-align: right;
  }
}
/* @media screen and (max-width: 1180px) {
  #colophon {
    text-align: center;
  }
} */

.km-txt {
  border-left: 4px solid var(--tertiary);
  padding-left: 4rem;
  p {
    max-width: 850px;
  }
}

i[class*='fa-chevron-'] {
  font-size: 15px;
}

.km-cards {
  overflow: hidden;
  > p {
    max-width: 700px;
  }
  .km-card {
    .img-wrap {
      width: 100%;
      display: flex;
      justify-content: center;
      position: relative;
      top: 5.7rem;
      margin-top: -4rem;
      img {
        border-radius: 80%;
        border: 12px solid #fff;
        width: 200px;
        height: 200px;
        box-shadow: var(--shadow);
      }
    }
    .km-card-body {
      border-top: 12px solid var(--secondary);
      background-color: var(--light);
      padding: 6rem 3rem 3rem 3rem;
      text-align: center;
      a:not(.btn) {
        display: flex;
        text-decoration: none;
        justify-content: center;
        font-weight: 600;
        color: var(--primary);
        align-items: center;
      }
    }
  }
}
@media screen and (min-width: 768px) {
  .km-cards .km-card-body {
    height: 100%;
  }
  /* .km-cards .row {
    margin-top: -60px;
  } */
}

.km-quote {
  text-align: center;
  > * {
    max-width: 800px;
    margin: auto;
  }
  i {
    font-size: 2rem;
    color: #fff;
    background-color: var(--primary);
    border-radius: 90%;
    padding: 1rem;
  }
}
