@font-face {
  font-family: Roboto;
  src: url(../fonts/Roboto-Light.ttf);
}

@font-face {
  font-family: Inter;
  src: url(../fonts/Inter-VariableFont_opsz\wght.ttf);
}

:root {
  --color-1: #000;
  --color-2: #0088ff;
  --color-3: #fff;
  --color-4: #555555;
  --color-5: #00000030;
  --color-6: #000036;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 2.8rem;
  font-family: Gadugi, Inter, sans-serif;
  color: var(--color-3);
  font-weight: 300;
  background-color: var(--color-1);
}

h1 {
  font-size: 4rem;
  font-weight: 800;
}

h2 {
  font-size: 3.5rem;
  font-weight: 600;
}

h3 {
  font-size: 3rem;
  font-weight: 600;
}

h4 {
  font-size: 2.5rem;
  font-weight: 600;
}

p {
  font-size: 2.8rem;
  font-weight: 400;
}

a {
  color: var(--color-2);
}

a:hover {
  cursor: pointer;
  text-decoration: underline;
}

.header-main {
  background-color: var(--color-1);
  font-size: 3rem;
  font-weight: 600;
  width: 100%;
  height: fit-content /*20vh*/;
  line-height: 2.8;
  align-items: center;
  padding: 0 25px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  position: fixed;
  top: 0;
  border-bottom: 20px solid var(--color-2);
  transition: font-size 0.3s ease, border-bottom 0.3s ease;
}

.header-main a {
  text-decoration: none;
}

.header-main-logo {
  display: flex;
  line-height: 100%;
  justify-content: center;
  padding: 0 10px;
}

.header-main-logo img {
  width: 500px;
  transition: width 0.3s ease;
}

.email {
  color: var(--color-3);
  display: flex;
  line-height: 1.5;
  justify-content: center;
  padding: 0 10px;
}

.email a {
  color: var(--color-2);
  border-bottom: 0px solid var(--color-3);
  padding-bottom: 0;
  transition-duration: 0.2s;
}

.email a:hover {
  color: var(--color-3);
  border-bottom: 4px solid var(--color-2);
  padding-bottom: 8px;
}

.phone {
  color: var(--color-3);
  display: flex;
  line-height: 1.5;
  justify-content: center;
  padding: 0 10px;
}

.blue-box {
  background-color: var(--color-2);
  width: 100%;
  height: 10px;
}

/* Footer */
.footer-main {
  width: 100%;
  padding: 15px 30px;
  background-color: var(--color-1);
  /* background: linear-gradient(to top right, var(--color-1) 25%, var(--color-6)); */
  border-top: 10px solid var(--color-2);
  display: flex;
  justify-content: space-between;
  align-content: center;
  flex-wrap: wrap;
  /*
    background: linear-gradient(rgba(0,0,0,.85), rgba(0,0,0,.85)), url(../img/logo/logo.png);
    background-repeat: no-repeat;
    position: relative;
    background-position: right;
    background-size: contain;
    */
}

.footer-main div {
  margin: 5px 15px;
}

.footer-main div p {
  font-size: 2.2rem;
}

.footer-main-logo img {
  height: 65px;
}

.footer-main-contact-info {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--color-2);
  padding-left: 5px;
  height: fit-content;
  align-self: center;
}

.footer-main-contact-info a {
  color: var(--color-3);
  text-decoration: none;
}

.footer-small {
  width: 100%;
  padding: 20px 50px;
  background-color: var(--color-1);
  /* background: linear-gradient(to bottom right, var(--color-1) 25%, var(--color-6)); */
  border-top: 3px solid var(--color-2);
  display: flex;
  justify-content: space-between;
  align-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-small p {
  font-family: Roboto;
  font-size: 1.6rem;
  line-height: 2.2rem;
}

/* Remove phone number when not fitting */

@media only screen and (max-width: 1328px) {
  .phone {
    display: none;
    position: absolute;
  }
}

/* Center header elements */

@media only screen and (max-width: 1120px) {
  .header-main {
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 0 50px;
  }

  .email-text-link {
    display: none;
  }

  .email a {
    transition-duration: 0.3s;
    border: none;
  }

  .email a:hover {
    border: none;
  }

  .email-img-link {
    background-image: url(../img/icons/mail.png);
    background-size: cover;
    width: 60px;
    height: 60px;
    background-repeat: no-repeat;
    transition-duration: 0.3s;
    border: none;
  }

  .email-img-link:hover {
    background-image: url(../img/icons/mail-hover.png);
    transition-duration: 0.3s;
    border: none;
  }

  .email-img-link:active {
    background-image: url(../img/icons/mail-active.png);
  }

  .footer-small {
    padding: 20px 40px;
  }
}

/* TABLET VERSION */

@media only screen and (max-width: 900px) {
  .header-main {
    padding: 0 25px;
  }

  .phone {
    display: none;
  }
}

@media only screen and (max-width: 670px) {
  .header-main {
    justify-content: center;
  }

  .email {
    display: none;
  }

  .phone {
    display: none;
  }
}

/* MOBILE VERSION */

@media only screen and (max-width: 600px) {
  body {
    font-size: 3.2rem;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: 90px;
  }

  p {
    font-size: 2rem;
  }

  .header-main {
    font-size: 2rem;
    width: 100%;
    height: fit-content;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
  }

  .header-main-logo {
    padding: 5px;
  }

  .email {
    display: none;
  }

  .email a {
    border-bottom: none;
  }

  .email a:hover {
    border-bottom: none;
    padding-bottom: 0;
  }

  .blue-box {
    height: 10px;
  }

  /* Footer */
  .footer-main {
    padding: 15px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer-main-logo img {
    height: 65px;
  }

  .footer-main-contact-info {
    border-left: none;
    padding-left: 0;
    align-items: center;
  }

  .footer-main div p {
    font-size: 1.8rem;
  }

  .location {
    padding: 5px 0 8px 0;
    margin-top: 5px;
    border-top: 2px solid var(--color-2);
    border-bottom: 2px solid var(--color-2);
  }

  .footer-small {
    justify-content: center;
  }

  .footer-small p {
    font-size: 1.4rem;
  }
}
