@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Jost:wght@500;600&display=swap");

:root {
  --cta-color: #2ea650;
  --link-color: #0151c1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #d7dadf;
  margin: 0 auto;
  max-width: 2000px;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  place-items: center;
}

i {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: black;
  flex-direction: column;
}

.cta {
  cursor: pointer;
  color: white;
  background-color: var(--cta-color);
  border: none;
  padding: 0.5rem;
  font-size: 18px;
  font-weight: 500;
}

.brand-name {
  font-weight: 600;
}

.section-header__section-sub-header__container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: baseline;
}

.section-header {
  font-size: 19px;
  font-weight: 600;
  font-family: "Jost", sans-serif;
}

.section-sub-header {
  max-width: 300px;
  font-size: 14px;
  font-weight: 500;
}

.nav-bar__link {
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 13px;
}

.nav-bar__link:hover,
i:hover {
  color: gray;
}

.nav-activ {
  text-decoration: underline;

  text-decoration-color: var(--cta-color);
  text-decoration-thickness: 2px;
}

ul {
  list-style: none;
}

header {
  width: 100%;
  z-index: 200;
  position: fixed;
  top: 0;
  background: white;
  display: flex;
  justify-content: space-between;
  padding: 1em;
  max-width: 1440px;
  box-shadow: 0 4px 10px -10px rgba(0, 0, 0, 0.6);
}

.nav-bar__container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 3rem 0;
  transform: translateY(-100%);
  transition: 0.5s ease-out;
}

.menu-bar {
  z-index: 400;
  position: relative;
}

.nav-bar__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7rem;
  place-items: center;
  overflow: hidden;
  margin-bottom: 7rem;
  width: 100%;
  max-width: 1440px;
}

.outer-container {
  display: grid;
  place-items: center;
  width: 100%;
  background-color: #c5c8cc;
  padding: 3em 0;
}

.container__max-width-900 {
  width: 100%;
  max-width: 900px;
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  padding: 1rem;
}

.img-container {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  z-index: -10;
}

.img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  background-size: cover;
}

footer {
  width: 100%;
  background-color: rgb(204, 204, 204);
  margin: 0 auto;
  padding-inline: 1rem;
  padding-block: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media screen and (min-width: 900px) {
  .menu-bar {
    display: none;
  }

  .nav-bar__container {
    position: static;
    flex-direction: row;
    background-color: transparent;
    padding: 0;
    transform: translateY(0%);
    width: initial;
    font-weight: 600;
    font-size: 14px;
  }

  .nav-bar__list {
    flex-direction: row;
    margin-right: 2rem;
  }

  .container__max-width-900 {
    display: grid;
    grid-template-columns: 200px 1fr;
  }
}

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

.spinner {
  border: 16px solid var(--cta-color);
  border-top: 16px solid white;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media screen and (min-width: 600px) {
  #search-field {
    height: 2rem;
  }

  .container__max-width-900 {
    grid-template-columns: 150px 1fr;
    gap: 3rem;
  }

  .blog-post-card__img-container {
    aspect-ratio: 2 / 3;
  }
}
