@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Poppins:wght@700&display=swap");

:root {
  --pink: hsl(322, 100%, 66%);
  --pink-light: hsl(321, 100%, 78%);
  --red-light: hsl(0, 100%, 63%);
  --cyan-dark: hsl(192, 100%, 9%);
  --blue-pale: hsl(207, 100%, 98%);
  --openSans: "Open Sans", sans-serif;
  --poppins: "Poppins", sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--openSans);
  overflow-x: hidden;
}

body > * {
  box-sizing: border-box;
  margin: 0;
  color: var(--cyan-dark);
}

.container {
  display: flex;
  justify-content: space-around;
  width: 85%;
  margin: 0 auto;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 3rem;
}

.logo {
  width: 16rem;
}

.btn {
  color: var(--pink);
  padding: 0.5rem 1.5rem;
  border: 2px solid;
  border-radius: 2rem;
  font-weight: 600;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
  transition: 100ms;
}

.btn:hover {
    cursor: pointer;
    color: var(--pink-light);
    box-shadow: 0 .25rem .5rem rgba(0, 0, 0, 0.2);
}

.hero .container {
  flex-direction: column;
  max-width: 1100px;
  text-align: center;
  padding-top: 6rem;
}

h1 {
  font-family: var(--poppins);
  font-size: 2.75rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: 2.5rem;
}

.cta {
  display: inline-block;
  padding: 1.5rem 5rem;
  border-radius: 3rem;
  font-weight: 600;
  color: white;
  background-color: var(--pink);
  box-shadow: 0px 0.5rem .75rem rgba(0, 0, 0, 0.2);
  transition: 100ms;
}

.cta:hover {
    cursor: pointer;
    background-color: var(--pink-light);
    box-shadow: 0px 0.75rem .75rem rgba(0, 0, 0, 0.35);
}

.heroGraphic {
  width: 80%;
  margin: 2.5rem auto 6rem;
}

.statsWrapper {
  display: flex;
  justify-content: space-around;
  text-align: left;
}

.statsContent {
  display: flex;
  flex-direction: column;
}

.statsIcon {
  width: 3rem;
  margin-bottom: 2rem;
}

.statNumber {
  font-weight: 700;
  font-size: 6rem !important;
  line-height: 4rem;
}

.statName {
  font-size: 1.5rem;
}

.section .container {
  align-items: center;
}

.top,
.bottom {
  position: relative;
  background-color: var(--blue-pale);
  padding: 4rem 0;
  margin: 200px 0;
}

.top::before,
.top::after,
.bottom::before,
.bottom::after,
.footer::before {
  position: absolute;
  content: "";
  height: 200px;
  width: 100%;
}

.top::before {
  top: 0;
  right: 0;
  left: 0;
  transform: translateY(-100%);
  background: url(images/bg-section-top-desktop-1.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
}

.top::after {
  bottom: 0;
  right: 0;
  left: 0;
  background: url(images/bg-section-bottom-desktop-1.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top;
  transform: translateY(100%);
}

.bottom::before {
  top: 0;
  right: 0;
  left: 0;
  transform: translateY(-100%);
  background: url(images/bg-section-top-desktop-2.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
}

.bottom::after {
  bottom: 0;
  right: 0;
  left: 0;
  background: url(images/bg-section-bottom-desktop-2.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top;
  transform: translateY(100%);
}

.middle,
.lastCta {
  padding: 4rem 0;
  margin: 200px 0;
}

.middle .container {
  flex-direction: row-reverse;
}

.section img {
  width: 50%;
}

.textContent {
  padding: 2rem;
}

h2 {
  font-family: var(--poppins);
  font-size: 2.5rem;
}

.textContent p {
  max-width: 500px;
}

.lastCta .container {
  flex-direction: column;
}

.footer {
  position: relative;
  padding: 4rem 0;
  margin: 200px 0 0;
  color: var(--blue-pale);
  background-color: var(--cyan-dark);
}

.footer::before {
  top: 0;
  right: 0;
  left: 0;
  transform: translateY(-100%);
  background: url(images/bg-footer-top-desktop.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
}

.footer .container {
  align-items: baseline;
}

.footer .logo {
  filter: brightness(0) invert(1);
  width: 12em;
  margin-bottom: 1rem;
}

.footerContent {
  display: flex;
  flex-direction: column;
  width: 40%;
}

.flexBox {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.flexBox img {
  margin-right: 0.5rem;
}

.socials {
  margin-top: 2rem;
  width: 120px;
  justify-content: space-between;
}

i {
  transform: scale(2);
  z-index: 99;
}

i:hover {
    cursor: pointer;
    color: aqua;
}

h3 {
  font-family: var(--poppins);
  font-size: 1.75em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.footerContent p {
  font-size: 0.75em;
}

.footerContent:last-of-type p {
  margin-bottom: 3rem;
  max-width: 300px;
}

form {
  display: flex;
  justify-content: space-between;
}

input,
button {
  height: 40px;
  border: none;
  outline: none;
  border-radius: 0.25rem;
  box-sizing: border-box;
}

input {
  width: 60%;
}

input::placeholder {
    padding-left: 1rem;
}

button {
  background-color: var(--pink);
  color: white;
  font-weight: 600;
  width: 30%;
}

button:hover {
    cursor: pointer;
    background-color: var(--pink-light);
}

@media (max-width: 830px) {
  :root {
    font-size: 12px;
  }

  .top .container,
  .middle .container,
  .bottom .container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .lastCta {
    text-align: center;
  }

  .containerGraphic {
    margin-bottom: 8rem;
  }

  .top p,
  .middle p,
  .bottom p {
    font-size: 1.5rem;
  }

  .statsWrapper,
  form {
    flex-direction: column;
    align-items: center;
  }

  .statsIcon {
    margin: 0 auto 2rem;
  }

  .statsIcon:last-of-type {
    margin-top: 4rem;
  }

  .statNumber {
    font-size: 4rem !important;
  }

  .section img {
    width: 100%;
  }

  input {
    width: 100%;
    margin-bottom: 1rem;
  }

  button {
    width: 40%;
    align-self: flex-end;
  }

  .footer {
    font-size: 1.5rem;
  }

  .footer .container {
    flex-direction: column-reverse;
  }

  .footerContent {
    width: 90%;
    margin: 0 auto;
  }

  .footerContent:last-of-type {
    margin-bottom: 6rem;
  }
}
