:root {
  --color-primary: #018aaf;
  --color-secondary: #51bcca;
  --color-tertiary: #e6f3f7;
  --color-quaternary: #f8fcfd;
  --font-color-primary: #00495c;
  --font-color-secondary: #33a0be;
  --font-color-tertiary: #535353;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  overflow-x: hidden;
}
body[data-mobile-nav-open] {
  overflow: hidden;
  width: 100%;
  height: 100%;
}
@media (min-width: 768px) {
  body[data-mobile-nav-open] {
    overflow: auto;
    width: 100%;
    height: 100%;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100px);
  }
  to {
    transform: translateX(0px);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.6;
  }
}
.section-heading {
  font-family: Titillium Web;
  font-size: 2rem;
  color: var(--font-color-primary);
  font-weight: 700;
  text-align: center;
}

a {
  color: var(--font-color-secondary);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  font-family: "Titillium Web", sans-serif;
}
#mobile-nav {
  display: none;
}
#solvit_logo {
  transform: translateY(-6px);
}

body[data-mobile-nav-open] #mobile-nav {
  display: block;
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  display: grid;
  justify-content: start;
  align-content: start;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: 1fr;
}
#overlay {
  background-color: var(--font-color-tertiary);
  border: none;
  opacity: 0.6;
  animation: fadeIn 300ms ease-in;
}
.mobile-nav-container {
  background-color: var(--color-quaternary);
  animation: slideIn 250ms ease-in;
  padding: 1rem;
  & nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    list-style: none;
  }
  & .logos_container {
    display: flex;
    gap: 1rem;
    & img {
      width: 110px;
      height: 100px;
      object-fit: contain;
    }
  }
}

@media (min-width: 768px) {
  #mobile-nav {
    display: none !important;
  }
}
header {
  padding-top: 1.6rem;
  width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;

  background-color: var(--color-quaternary);
}
#mobile-nav-button {
  border: none;
  background: transparent;
  display: none;
  & svg {
    height: auto;

    width: 2rem;
    transition-property: color, background-color, border-color,
      text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    transition-duration: 150ms;
    cursor: pointer;
  }
}
.logos_container {
  display: grid;
  place-items: center;
  place-content: center;
  grid-auto-flow: column;
  gap: 2rem;
  & img {
    width: 150px;
    height: 100px;
    object-fit: contain;
  }
}
#solvit_logo {
  transform: translateY(-6px);
}
.header-nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
  align-items: center;
}
.header-nav-list-item {
  text-align: center;
  & a {
    text-decoration: none;
    color: var(--font-color-secondary);
    font-weight: bold;
    font-family: Lato;
    font-weight: 600;
    text-align: center;
    transition: color 0.2s ease;
  }
  & a:hover {
    color: var(--font-color-primary);
  }
}

@media (max-width: 768px) {
  header {
    padding: 0rem 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  #nav {
    display: none;
  }
  #front-payment-logo {
    display: none;
  }
  .logos_container {
    justify-content: space-between;
    /* padding-left: 2rem;
    padding-right: 2rem; */
    & img {
      width: 120px;
      height: 80px;
      object-fit: contain;
    }
  }
  #mobile-nav-button {
    display: block;
  }
}

@media (max-width: 568px) {
  .header-nav-list {
    flex-direction: column;
  }
}

footer {
  width: 100vw;
  padding-top: 2rem;
  display: grid;
  justify-items: center;
  font-family: Titillium Web;

  background-color: rgba(230, 243, 247, 0.5);
  gap: 3rem;
  & img {
    height: 4rem;
    width: 12rem;
  }
  & li {
    display: grid;
    gap: 0.1rem;

    & h3,
    p {
      text-align: center;
    }
  }
  & h3 {
    color: var(--font-color-primary);
    font-weight: bold;
    font-size: 1.2rem;
  }
  &p {
    color: var(--font-color-primary);
    font-size: 1rem;
  }
}
.trademark-section {
  background-color: rgba(81, 188, 202, 0.2);
  width: 100vw;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.6rem;
}
.footer-list {
  gap: 2rem;
  width: 90%;
  justify-content: space-between;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}

@media (min-width: 2000px) {
  .trademark-section {
    font-size: 1.5rem;
  }
  footer {
    & img {
      height: 4rem;
      width: 12rem;
    }
    & li {
      display: grid;
      gap: 0.1rem;
    }
    & h3 {
      color: var(--font-color-primary);
      font-weight: bold;
      font-size: 2rem;
    }
    & p {
      color: var(--font-color-primary);
      font-size: 1.6rem;
      text-align: center;
    }
  }
  .footer-list {
    gap: 1rem;
    width: 70%;
  }
  .header-nav-list-item {
    & a {
      font-size: 1.8rem;
    }
  }
}
