:root {
  /* dark shades of primary color */
  --clr-primary-1: hsl(205, 86%, 17%);
  --clr-primary-2: hsl(205, 77%, 27%);
  --clr-primary-3: hsl(205, 72%, 37%);
  --clr-primary-4: hsl(205, 63%, 48%);
  /* primary/main color */
  --clr-primary-5: rgb(73, 166, 233);
  /* lighter shades of primary color */
  --clr-primary-6: hsl(205, 90%, 70%);
  --clr-primary-7: hsl(205, 90%, 76%);
  --clr-primary-8: hsl(205, 86%, 81%);
  --clr-primary-9: hsl(205, 90%, 88%);
  --clr-primary-10: hsl(205, 100%, 96%);
  /* darkest grey - used for heading */
  --clr-grey-1: hsl(209, 61%, 16%);
  --clr-grey-2: hsl(211, 39%, 23%);
  --clr-grey-3: hsl(209, 34%, 30%);
  --clr-grey-4: hsl(209, 28%, 39%);
  /* grey used for paragraph */
  --clr-grey-5: hsl(210, 22%, 49%);
  --clr-grey-6: hsl(209, 23%, 60%);
  --clr-grey-7: hsl(211, 27%, 70%);
  --clr-grey-8: hsl(210, 31%, 80%);
  --clr-grey-9: hsl(212, 33%, 89%);
  --clr-grey-10: hsl(210, 36%, 96%);
  --clr-white: #fff;
  --clr-red-dark: hsl(360, 67%, 44%);
  --clr-red-light: hsl(360, 71%, 66%);
  --clr-green-dark: hsl(125, 67%, 44%);
  --clr-green-light: hsl(125, 71%, 66%);
  --clr-black: #222;
  --clr-gold: #FFCF00;
  --ff-primary: "Roboto", sans-serif;
  --ff-secondary: "Open Sans", sans-serif;
  --transition: all 0.3s linear;
  --spacing: 0.25em;
  --radius: 0.5em;
  --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  --max-width: 1170px;
  --fixed-width: 620px;
}



/* navigator */
#nav {
  padding: 0 1.5em;
  background: linear-gradient(to right, #007991, #78ffd6);
  z-index: 999;
}

/* fixed nav */
.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--clr-white) !important;
  box-shadow: var(--light-shadow);
  opacity: 0.8;
}

#nav .links a {
  color: var(--clr-white);
  text-transform: uppercase;
  display: block;
  transition: var(--transition);
  font-weight: bold;
  padding: 0.5em 0;
  text-decoration: none;
}

#nav .links a:hover {
  background: var(--clr-gold);
  padding: 0.5em;
  color: var(--clr-black);
}

.fixed-nav .links a {
  color: var(--clr-green-dark) !important;
}

.fixed-nav .links a:hover {
  color: var(--clr-black) !important;
}

#nav .nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#nav .nav-toggle {
  font-size: 1.5rem;
  color: var(--clr-green-dark);
  background: transparent;
  border-color: transparent;
  transition: var(--transition);
  cursor: pointer;
}

#nav .nav-toggle:hover {
  color: var(--clr-green-dark);
}

#nav .logo {
  height: 60px;
  width: 70px;
  opacity: 1;
}

.links-container {
  height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.links-container ul {
  list-style-type: none;
}

.show-links {
  height: 200px;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media screen and (min-width: 800px) {
  .nav-center {
    width: 90vw;
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-header {
    padding: 0;
  }

  .nav-toggle {
    display: none;
  }

  #nav .logo {
    height: 80px;
    width: 100%;
  }

  .links-container {
    height: auto;
  }

  .links {
    display: flex;
    flex-direction: row;
  }

  .links a {
    color: var(--clr-black);
    font-size: 1rem;
    text-transform: capitalize;
    letter-spacing: 1px;
    display: block;
    transition: var(--transition);
    margin: 0 1.5em;
    font-weight: bold;
    padding: 0;
  }

  .links a:hover {
    color: var(--clr-primary-5);
    background: var(--clr-primary-9);
    border-radius: 0;
    padding: 0;
  }
}


/* section-e / boxes */
#section-e {
  display: flex;
  flex-direction: column-reverse;
}

#section-e .box {
  padding: 2em;
  color: var(--clr-white);
}

#section-e .box:first-child {
  background: linear-gradient(to right, rgb(118, 18, 255), rgb(5, 178, 255));
}

/* #section-e .box:first-child p{
      text-align: start;
      
  } */

#section-e .box:last-child {
  background: linear-gradient(to right, #F37335, #FDC830);

}

#section-e .box:last-child p {
  padding: auto 0;
  line-height: 1.5em;
}

#section-e h2 {
  padding-bottom: 0;
}

#section-e span {
  color: var(--clr-primary-5);
  font-size: 2em;
}

/* footer */
#main-footer {
  padding: 2em;
  background: linear-gradient(to bottom, #004e92, #000428);
  color: var(--clr-white);
  text-align: center;
}

#main-footer a {
  color: var(--clr-grey-5);
  text-decoration: none;
}

#top-link {
  display: none;
  position: fixed;
  bottom: 2%;
  right: 45%;
  border-radius: 50%;
  color: var(--clr-white);
  font-size: 1em;
  padding: 0.7em;
  text-decoration: none;
  background: rgba(73, 166, 233, 0.8);
}

#top-link:hover {
  transform: scale(1.1);
}

#messenger-chat-button {
  position: fixed;
  bottom: 120px;
  right: 20px;
  background: url("https://upload.wikimedia.org/wikipedia/commons/thumb/b/be/Facebook_Messenger_logo_2020.svg/2048px-Facebook_Messenger_logo_2020.svg.png") no-repeat center/cover;
  border-radius: 50%;
  padding: 2em;
  text-decoration: none;
}

#messenger-chat-button:hover {
  border: 2px solid var(--clr-primary-5);
}

#call-button {
  position: fixed;
  bottom: 40px;
  right: 20px;
  background: url("https://cdn.glitch.global/b7f902d4-0a56-4ce7-bdd6-66587025fcad/call.png?v=1676178110913") no-repeat center/cover;
  border-radius: 50%;
  padding: 2em;
  text-decoration: none;
}

#call-button:hover {
  border: 2px solid var(--clr-green-dark);
}

/* media queries */
@media (min-width: 700px) {
  .grid {
    display: grid;
    grid-template-columns: 1fr repeat(2, minmax(auto, 25em)) 1fr;
  }

  #showcase h2 {
    font-size: 2.5em;
  }

  #section-a .content-text {
    columns: 2;
    column-gap: 2em;
    max-width: 700px;
    margin: 0 auto;
  }

  #section-a .content-text p {
    padding-top: 0;
  }

  /* #section-a li:nth-child(-n +5) {
          padding-left: 25%;
      } */

  .content-wrap,
  #section-b ul {
    grid-column: 2/4;
  }

  #section-e {
    display: grid;
  }

  .box,
  #main-footer div {
    grid-column: span 2;
  }

  #section-b ul {
    display: flex;
    justify-content: space-between;
    grid-column: 1/8;
  }

  #section-b li {
    width: 31%;
  }

  #section-e .box:last-child p {
    /* text-align: justify; */
    padding: 2em 5% 0;
    line-height: 1.5em;
  }

}