/* 
BEM references:

- https://scalablecss.com/bem-quickstart-guide/
- https://scalablecss.com/bem-nesting-grandchild-elements/
- https://dev.to/visuellverstehen/common-mistakes-when-writing-css-with-bem-4921
*/

:root {
  --primary: hsla(220, 100%, 39%, 1);
  --primary-text: hsla(220, 62%, 22%, 1);
  --secondary-text: hsla(0, 0%, 44%, 1);
}

/* GLOBAL */

body {
  font-family: "Poppins", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

.container-pure {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* NAVIGATION */

.nav {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 9px;
}

.nav__content {
  display: flex;
  padding-top: 20px;
  padding-bottom: 20px;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: normal;
  margin: 0;
}

.nav__hamburger {
  color: var(--primary-text);
  display: block;
}

.nav__menu {
  display: none;
  align-items: flex-start;
  gap: 32px;
}

@media (min-width: 768px) {
  .nav__menu {
    display: flex;
  }
  .nav__hamburger {
    display: none;
  }
}

.nav__link {
  color: var(--primary-text);
  font-size: 1rem;
  font-weight: 400;
  line-height: normal;
}

.nav__link--active {
  color: var(--primary);
}

/* HERO */

.hero {
  display: flex;
  padding-top: 80px;
  padding-bottom: 80px;
  align-items: center;
  justify-content: space-between;
}

.hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .hero__left {
    width: 44%;
  }
}

.hero__cta-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero__cta-heading {
  font-size: 2.5rem;
  color: var(--primary-text);
  font-weight: 500;
  line-height: normal;
  margin: 0;
}

.hero__cta-heading--bold {
  font-weight: 700;
}

.hero__cta-subheading {
  font-size: 1.125rem;
  color: var(--secondary-text);
  font-weight: 400;
  line-height: normal;
}

.hero__cta-button {
  display: flex;
  padding: 8px 60px;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: normal;
}

.hero__right {
  display: none;
  width: 430px;
  height: 420px;
  position: relative;
}

@media (min-width: 768px) {
  .hero__right {
    display: block;
  }
}

.hero__image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 16px;
  object-fit: cover;
  transform: scaleX(-1);
  z-index: 1;
}

.hero__image-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  border-radius: 16px;
  border: 1px solid #828282;
}

/* EXPLORE */

.main {
  display: flex;
  flex-direction: column;
  gap: 120px;
  margin-top: 40px;
}

.explore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.explore__heading {
  color: var(--primary-text);
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
  line-height: normal;
}

.explore__cards-flex {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .explore__cards-flex {
    flex-direction: row;
    gap: 29px;
  }
}

.explore__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px 16px;
  width: 100%;
}

@media (min-width: 768px) {
  .explore__cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px 35px;
  }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto;
  gap: 12px;
}

.card__image {
  border-radius: 8px;
  object-fit: cover;
  max-inline-size: 100%;
  block-size: auto;
}

.card__image--medium {
  width: 263px;
  height: 350px;
}

.card__image--small {
  width: 200px;
  height: 200px;
}

.card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.card__title {
  color: var(--primary-text);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: normal;
}

.card__description {
  color: var(--secondary-text);
  font-size: 1rem;
  font-weight: 400;
  line-height: normal;
}

/* FOOTER */

.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  color: var(--secondary-text);
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer__content {
    flex-direction: row;
  }
}

.footer__copyright {
  color: var(--secondary-text);
  text-align: center;
  font-size: 0.625rem;
  font-weight: 400;
  line-height: normal;
}

@media (min-width: 768px) {
  .footer__copyright {
    font-size: 0.75rem;
  }
}

.footer__left {
  display: flex;
  gap: 20px;
  flex-direction: column;
  width: 266px;
}

.footer__company {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: normal;
}

.footer__description {
  font-size: 1rem;
  font-weight: 400;
  line-height: normal;
}

.footer__social {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer__social-item {
  display: flex;
  align-items: center;
  gap: 2px;

  font-size: 0.75rem;
  font-weight: 400;
  line-height: normal;
}

.footer__social-icon {
  width: 40px;
  height: 40px;
}

.footer__right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer__right {
    flex-direction: row;
    gap: 56px;
  }
}

.footer__utility {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: fit-content;
}

.footer__utility-title {
  color: var(--primary);
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.footer__utility-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer__utility-list-item {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: normal;
}
