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

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

:root {
  --grey0: #343332;
  --grey1: #595856;
  --gray2: #72716e;
  --gray3: #8c8a88;
  --gray4: #a5a4a2;
  --gray5: #bebdbc;
  --gray6: #d7d6d6;
  --lavender1: #a5a0c5;
  --black: #0d0d0d;
  --white: #f9f7f4;
  --eggshell1: hsl(34, 35%, 96%);
  --eggshell2: hsl(34, 35%, 90%);
  --eggshell3: hsl(33, 36%, 93%);
  --red: #fb7676;
  --black50: rgba(13, 13, 13, 0.5);
  --black30: rgba(13, 13, 13, 0.3);
  --alegreya: "Alegreya Sans", sans-serif;
  --alegreyaSC: "Alegreya Sans SC", sans-serif;
  --asap: "Asap", sans-serif;
  --light-shadow: rgba(0, 0, 0, 0.05) 0rem 0.0625rem 0.125rem 0rem;
}

.body--index {
  background-color: var(--eggshell1);
  color: var(--grey0);
  font-family: "Asap", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  min-height: 100vh;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

a {
  text-decoration: none;
  color: var(--grey0);
}

h1 {
  font-family: var(--alegreya);
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.24rem;
}

.span--small {
  font-size: 2rem;
  letter-spacing: 0.12rem;
}

h2 {
  font-family: var(--asap);
  font-weight: 400;
  letter-spacing: 0.06rem;
  font-size: 1.5rem;
  color: var(--gray2);
  line-height: 2rem;
}

.hero--text__wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2.5rem 0;
}

.cta-btn {
  font-family: var(--asap);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.075rem;
  color: var(--grey0);
  display: flex;
  align-items: center;
  padding: 1rem 2rem 1rem 2rem;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 0.1875rem solid var(--grey0);
  background: transparent;
  cursor: pointer;
}

.cta-btn:hover {
  background-color: var(--eggshell1);
  transition: 0.4s all ease;
  box-shadow: 0.0625rem 0.25rem 0.625rem var(--gray4);
}

.main--hero {
  display: grid;
  grid-template-columns: 40% 30% 30%;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 1.25rem;
  width: 90vw;
  margin: 2.5rem 0;
  max-width: 75rem;
}

.hero--text {
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 1;
  grid-row-end: 3;
}

#hero__img1 {
  background-image: url("../assets/imgs/hero1.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: luminosity;
  grid-column-start: 1;
  grid-row-start: 3;
  grid-row-end: 4;
  border-radius: 0.625rem;
  position: relative;
  cursor: pointer;
}

#hero__img1:hover {
  border-radius: 0.625rem;
  background:
    linear-gradient(0deg, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.4) 100%),
    url("../assets/imgs/hero1.webp") lightgray 50% / cover no-repeat;
  background-blend-mode: normal, luminosity;
  background-position: center;
}

.hero-hover__text {
  color: var(--eggshell1);
  width: 100%;
  height: 100%;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.075rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  text-align: center;
}

.opacity-one {
  opacity: 1;
}

#hero__img2 {
  background-image: url("../assets/imgs/hero2.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: exclusion;
  grid-column-start: 2;
  grid-row-start: 1;
  grid-row-end: 4;
  border-radius: 0.625rem;
  position: relative;
  cursor: pointer;
}

#hero__img2:hover {
  border-radius: 0.625rem;
  background:
    linear-gradient(0deg, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.4) 100%),
    url("../assets/imgs/hero2.webp") lightgray 50% / cover no-repeat;
  background-blend-mode: normal, luminosity;
  background-position: center;
}

#hero__img3 {
  background-image: url("../assets/imgs/hero3.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: exclusion;
  grid-column-start: 3;
  grid-row-start: 1;
  grid-row-end: 3;
  border-radius: 0.625rem;
  position: relative;
  cursor: pointer;
}

#hero__img3:hover {
  border-radius: 0.625rem;
  background:
    linear-gradient(0deg, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.4) 100%),
    url("../assets/imgs/hero3.webp") lightgray 50% / cover no-repeat;
  background-blend-mode: normal, luminosity;
  background-position: center;
}

#hero__img4 {
  background-image: url("../assets/imgs/hero4.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: exclusion;
  grid-column-start: 3;
  grid-row-start: 3;
  grid-row-end: 4;
  border-radius: 0.625rem;
  position: relative;
  cursor: pointer;
}

#hero__img4:hover {
  border-radius: 0.625rem;
  background:
    linear-gradient(0deg, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.4) 100%),
    url("../assets/imgs/hero4.webp") lightgray 50% / cover no-repeat;
  background-blend-mode: normal, luminosity;
  background-position: center;
}

/* ====mobile==== */

#mobile-hero__img1 {
  background-image: url("../assets/imgs/hero1.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: luminosity;
  border-radius: 0.625rem;
  position: relative;
  cursor: pointer;
  width: 100%;
  height: 22.5rem;
}

#mobile-hero__img1:hover {
  border-radius: 0.625rem;
  background:
    linear-gradient(0deg, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.4) 100%),
    url("../assets/imgs/hero1.webp") lightgray 50% / cover no-repeat;
  background-blend-mode: normal, luminosity;
  background-position: center;
}

.mobile-hero-hover__text {
  color: var(--eggshell1);
  width: 100%;
  height: 100%;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.075rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

#mobile-hero__img2 {
  background-image: url("../assets/imgs/hero2.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: exclusion;
  border-radius: 0.625rem;
  position: relative;
  cursor: pointer;
}

#mobile-hero__img2:hover {
  border-radius: 0.625rem;
  background:
    linear-gradient(0deg, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.4) 100%),
    url("../assets/imgs/hero2.webp") lightgray 50% / cover no-repeat;
  background-blend-mode: normal, luminosity;
  background-position: center;
}

#mobile-hero__img3 {
  background-image: url("../assets/imgs/hero3.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: exclusion;
  border-radius: 0.625rem;
  position: relative;
  cursor: pointer;
}

#mobile-hero__img3:hover {
  border-radius: 0.625rem;
  background:
    linear-gradient(0deg, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.4) 100%),
    url("../assets/imgs/hero3.webp") lightgray 50% / cover no-repeat;
  background-blend-mode: normal, luminosity;
  background-position: center;
}

#mobile-hero__img4 {
  background-image: url("../assets/imgs/hero4.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: exclusion;
  border-radius: 0.625rem;
  position: relative;
  cursor: pointer;
}

#mobile-hero__img4:hover {
  border-radius: 0.625rem;
  background:
    linear-gradient(0deg, rgba(13, 13, 13, 0.3) 0%, rgba(13, 13, 13, 0.4) 100%),
    url("../assets/imgs/hero4.webp") lightgray 50% / cover no-repeat;
  background-blend-mode: normal, luminosity;
  background-position: center;
}

.mobile--imgContainer {
  display: none;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  gap: 0.5rem;
  margin: 1rem 0 2.5rem 0;
  padding-bottom: 1.5rem;
}

/* === responsive === */

@media (max-width: 78.125rem) {
  h1 {
    font-size: 3.25rem;
  }
  h2 {
    font-size: 1.125rem;
  }
}

@media (max-width: 53.125rem) {
  .body--index {
    align-items: flex-start;
  }
  .main--hero {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 90vw;
    height: 100vh;
  }
  #hero__img1,
  #hero__img2,
  #hero__img3,
  #hero__img4 {
    display: none;
  }
  .mobile--imgContainer {
    display: grid;
  }
}

@media (max-width: 37.5rem) {
  .mobile--imgContainer {
    height: 100vw;
  }
  #mobile-hero__img1 {
    height: 50vw;
  }
  .hero-hover__text {
    font-size: 1.125rem;
  }
}
