/*I got the fonts from https://gwfh.mranftl.com/fonts (google-webfont-helper)*/
/* league-spartan-700 - latin */
@font-face {
  font-display: swap;
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/league-spartan-v15-latin-700.woff2") format("woff2");
}

/*inter regular-latin*/
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/inter-v20-latin-regular.woff2") format ("woff2");
}

* {
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
}

:root {
  &::-webkit-scrollbar {
    width: 14px;
  }
  &::-webkit-scrollbar-track {
    background-color: var(--background);
    border-radius: 15px;
  }

  &::-webkit-scrollbar-thumb {
    border: 3px solid var(--border);
    background: var(--dark-background);
    border-radius: 8px;
  }

  @supports not selector(::-webkit-scrollbar) {
    scrollbar-width: thin;
    scrollbar-color: var(--dark-background) var(--background);
  }
  /*===colors===*/
  --background: hsl(158, 100%, 8%);
  --dark-background: hsl(159, 100%, 6%);
  --border: hsl(140, 45%, 22%);
  --primary-text: hsl(0, 0%, 96%);
  --secondary-text: hsl(150, 13%, 75%);
  --hover-background-color: hsl(140, 45%, 18%);
  --hover-border: hsl(140, 45%, 35%);
  --warning-color: hsl(0, 84%, 60%);
  /*===typography===*/
  --heading-font-family: "League Spartan", sans-serif;
  --normal-font-family: "Inter", sans-serif;
}
/*==========GLOBAL STYLES==========*/

body {
  margin: 0px;
  background-color: var(--background);
  color: var(--primary-text);
  scroll-behavior: smooth;
  font-family: var(--normal-font-family);
}

h1,
h2,
h3 {
  font-family: var(--heading-font-family);
  font-weight: 700;
  font-size: 50px;
}

a {
  cursor: pointer;
  text-decoration: none;
  transition: border 0.2s ease-in;
  border-color: var(--border);
}

a:hover {
  border-bottom: 1.5px solid var(--border);
  border-color: var(--border);
}

/*============HEADER STYLES==========*/
header {
  /*This my header container (menu, logo & get-started button)*/
  background-color: var(--dark-background);
  position: relative;
  top: 0px;
  width: calc(100vw-250px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 1.25rem;
}

/*DRAWER MENU*/
button,
#menu-button,
#close-navbar {
  margin-left: 1rem;
  height: 3.125rem;
  padding: 0.625rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: var(--dark-background);
  color: var(--primary-text);
  cursor: pointer;
}

#menu-button:hover {
  background-color: var(--hover-background-color);
  border: 2px solid var(--hover-border);
  transform: translateY(-2px);
}
#menu-button:active {
  transform: scale(0.97);
}

.navbar {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background-color: var(--dark-background);
  position: fixed;
  border-radius: 1rem;
  border: 1px solid var(--border);
  width: 50%;
  height: 100vh;
  transform: translateX(-69vw);
  transition: 0.6s ease;
  margin-top: 4rem;
}

.navbar.active {
  transform: translateX(0px);
}

.navbar ul {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}
.navbar li a {
  color: var(--primary-text);
}

#close-navbar {
  margin-bottom: 1rem;
}

/*LOGO placed at the middle of the header*/
header img {
  width: 20vw;
  align-self: center;
  margin: 0.3125rem;
  border-radius: 0.625rem;
}

#logo-link {
  border: none;
}

/*Main CTA 'button' at the top-right corner*/
#get-started {
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: 1rem;
  margin: 0.625rem;
  background-color: var(--dark-background);
  color: var(--primary-text);
  transition: 0.2s ease;
  font-size: 1.2em;
}
#get-started:hover {
  background-color: var(--hover-background-color);
  border: 2px solid var(--hover-border);
  transform: translateY(-2px);
}
#get-started:active {
  transform: scale(0.97);
}

/*Header at 1024px*/
@media (min-width: 64rem) {
  header {
    border-radius: 1rem;
  }

  #menu-button {
    display: none;
  }

  .navbar {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    transform: translateX(24rem);
    height: 20vh;
    align-self: center;
    border: none;
    position: absolute;
  }

  .navbar ul {
    display: flex;
    flex-direction: row;
    column-gap: 1.25rem;
  }

  .navbar #get-started {
    display: none;
  }
  #close-navbar {
    display: none;
  }

  #get-started {
    border-radius: 1.25rem;
    padding: 2rem;
    margin-right: 2rem;
    transform: translateX(-0.6rem);
    align-self: center;
  }
  header img {
    width: 20vw;
    margin: 0.3rem;
    border-radius: 0.625rem;
    align-self: flex-start;
  }
}
/*====================THE COMMON FOOTER SECTION STYLES====================*/
#footer {
  display: flex;
  flex-wrap: wrap;
  background-color: var(--dark-background);
  margin-top: 2rem;
  width: 100%;
}

.footer-img {
  width: 60vh;
  margin-top: 3rem;
}
.footer-img figure img {
  width: 35%;
}

#footer h2,
#footer h3 {
  font-size: 30px;
}

.footer-contact {
  width: 100%;
  margin-left: 1.5rem;
  margin-top: 3rem;
}

.footer-contact a {
  color: var(--primary-text);
  padding: 1rem;
  background-color: var(--background);
  width: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 15px;
}

.quick-links {
  width: 80%;
  margin-right: 0.5rem;
  line-height: 25px;
  margin-left: 1rem;
  margin-top: 3rem;
}

.quick-links a {
  color: var(--primary-text);
}

hr {
  width: 100%;
  margin-left: 2rem;
  margin-right: 2rem;
}
.footnote {
  display: flex;
  align-items: center;
  margin-left: 3rem;
}
.social a {
  align-self: flex-end;
  color: #0a66c2;
}
#copyright {
  text-align: center;
  margin-right: 6rem;
}

@media (min-width: 64rem) {
  .footer-img {
    width: 40vh;
  }
  .footer-contact {
    width: 25%;
  }

  .quick-links {
    width: 50%;
  }
  .footnote {
    width: 100%;
    margin-bottom: 3rem;
  }

  #copyright {
    margin-left: 1rem;
    margin-right: 50rem;
  }
}

/*WHATSAPP WIDGET*/
.widget-container {
  display: flex;
  justify-content: center;
}
.widget {
  position: fixed;
  z-index: 999;
  right: 0px;
  bottom: 2.5rem;
  margin-right: 0.5rem;
  border-radius: 20px;
  justify-content: center;
  align-content: center;
  display: flex;
  height: 40px;
  width: 30px;
  background-color: var(--dark-background);
}
.widget button {
  margin-right: 1rem;
  margin-top: 1rem;
  display: flex;
  margin-bottom: 1rem;
  border: none;
  align-self: center;
  color: #25d366;
  transition: transform 0.2s ease;
}

.widget button:hover {
  transform: scale(1.1);
}

.widget button svg {
  align-self: center;
  width: 40px;
  height: 40px;
}

@media (min-width: 64rem) {
  .widget {
    height: 100px;
    width: 100px;
  }

  .widget button svg {
    width: 70px;
    height: 70px;
  }
}
