@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  width: 400px;
}

body {
  min-height: 100dvh;
  font-size: 16px;
  font-family: "Raleway", "Open Sans", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
h2,
h3 {
  font-family: "Raleway";
}
p {
  font-family: "Open Sans";
  font-weight: 400;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem 0;
}
header .logo {
  margin: 0 30rem 0 0;
}
header .logo img {
  width: 200px;
}
header nav a {
  text-decoration: none;
  color: hsl(238, 22%, 44%);
  font-weight: 500;
}
header nav a:not(:nth-child(3)) {
  margin-right: 4rem;
}

main {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/*Hero section  */
main .hero {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 10rem;
}
main .hero h2 {
  line-height: 1.5;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
main .hero p {
  font-size: 1rem;
  margin-bottom: 1rem;
}
main .hero span input {
  padding: 12px 48px;
}
main .hero span button {
  padding: 14px 48px;
  background-color: hsl(224, 93%, 58%);
  color: #fff;
  border: none;
  outline: none;
}
main .hero span button:hover {
  cursor: pointer;
}
/* Info class section */
main .info {
  width: 100%;
  background-image: url("./images/bg-curve-desktop.svg");
  background-position: center;
  background-size: cover;
  background-repeat: repeat;
  display: grid;
  place-items: center;
  grid-template-columns: repeat(2, 1fr);
  padding: 8rem 4rem;
}
main .info .func {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr;
}
main .info .func h2 {
  line-height: 1.5;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: hsl(243, 87%, 12%);
}
main .info .func a {
  text-decoration: none;
  color: hsl(170, 45%, 43%);
}
main .info .func a:hover {
  text-decoration: underline;
}
main .info .func img {
  width: 28px;
}
main .info .func .testimonial {
  width: 400px;
  height: 250px;
  background-color: #fff;
  margin: 4rem 2rem;
  padding: 20px;
}
main .info .func .testimonial span {
  margin-top: 2rem;
  display: flex;
}
main .info .func .testimonial span img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 1rem;
}

/* Access class */
.access {
  width: 100%;
  background-color: hsl(238, 22%, 44%);
  display: grid;
  place-items: center;
  grid-template-columns: repeat(2, 1fr);
  padding: 4rem 0;
}
.access > div {
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
}
.access .left h3 {
  font-size: 2rem;
  color: hsl(240, 75%, 98%);
  margin-bottom: 1rem;
}
.access .left p {
  color: hsl(0, 0%, 75%);
}
.access .start {
  display: grid;
  grid-template-columns: 1fr;
}
.access .start input {
  padding: 8px 80px;
  margin-bottom: 0.5rem;
}
.access .start button {
  max-width: 50%;
  background-color: hsl(224, 93%, 58%);
  color: #fff;
  padding: 12px 20px;
  border: none;
  outline: none;
}
.access .start button:hover {
  background-color: hsl(170, 45%, 43%);
  color: hsl(240, 75%, 98%);
}

/* Footer */
footer {
  width: 100%;
  background-color: hsl(243, 87%, 12%);
  color: #fff;
  padding: 4rem 0;
}
footer > div {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
footer img {
  width: 102px;
  fill: #fff;
}
footer .foot {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 2rem;
  font-size: 16px;
  font-weight: thin;
}
footer .foot .contact p:first-child {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}
footer .foot img {
  width: 20px;
  margin-right: 1rem;
}
footer .foot .mid-left p,
footer .foot .mid-right p {
  margin-bottom: 0.5rem;
}
footer .foot .mid-left p:hover,
footer .foot .mid-right p:hover {
  cursor: pointer;
  color: hsl(238, 22%, 44%);
}

.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media screen and (max-width: 375px) {
  body {
    padding: 1rem;
    max-width: 100%;
  }

  header {
    gap: 1rem;
    margin: 1rem 0;
  }
  header .logo {
    width: 80px;
    margin: 0;
  }
  header .logo img {
    width: 100%;
  }
  header nav {
    display: flex;
    gap: 1rem;
  }
  header nav a:not(:nth-child(3)) {
    margin-right: 0;
  }
  img {
    max-width: 300px;
  }

  main {
    width: 100%;
    gap: 3rem;
  }

  main .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
  }
  main .hero h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 2rem 0;
  }
  main .hero p {
    margin-bottom: 2rem;
  }
  main .hero input {
    margin-bottom: 0.5rem;
  }
  main .hero input,
  main .hero button {
    width: 100%;
  }

  main .info {
    width: 100%;
    background-image: url("./images/bg-curve-mobile.svg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
  }
  main .info .func {
    margin-bottom: 2rem;
  }

  main .info .func h2 {
    font-size: 1.5rem;
    text-align: center;
  }
  main .info .func .testimonial {
    width: 100%;
    margin: 2rem 0;
  }

  .access {
    grid-template-columns: 1fr;
    padding: 3rem 1rem;
    text-align: center;
  }
  .access .left {
    padding-bottom: 1.5rem;
  }
  .access .start input {
    padding: 8px 1rem;
    width: 100%;
  }
  .access .start button {
    max-width: 100%;
  }

  footer .bottom-logo {
    margin-left: 2.5 rem;
  }
  footer .foot {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 20px;
  }
  footer .foot img {
    margin-right: 0.5rem;
  }
}
