/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders:opsz,wght@10..72,100..900&family=Outfit:wght@200&display=swap");

/* General */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  /* colors */
  --color1: #151515;
  --color2: #444444;
  --color3: #ffffff;
  --color4: #d5966c;
}
body {
  font-family: "Outfit", sans-serif;
  font-size: 1.125rem;
  line-height: 140%;
}
h1 {
  font-family: "Big Shoulders", sans-serif;
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 90%;
  text-transform: uppercase;
}
h2 {
  font-family: "Big Shoulders", sans-serif;
  font-size: 3.125rem;
  line-height: 90%;
  text-transform: uppercase;
  font-weight: 900;
}
p {
  font-family: "Outfit", sans-serif;
  font-size: 1.125rem;
  line-height: 140%;
}
img {
  display: block;
  max-width: 100%;
}
/* Home */
.home-description {
  margin: 2rem 1rem 0 1rem;
  display: grid;
  gap: 2rem;
  color: var(--color1);
  margin-left: 1rem;
}
.link-nav {
  display: flex;
  text-decoration: none;
}
.link-nav:hover .link-item {
  background-color: var(--color4);
}
.link-nav:hover .link-icon {
  background-color: var(--color1);
}
.link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 204px;
  height: 72px;
  font-family: "Big Shoulders", sans-serif;
  font-size: 1.37rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color3);
  letter-spacing: 3.64px;
  line-height: 100%;
  text-align: center;
  background: var(--color1);
}
.link-icon {
  display: block;
  width: 56px;
  height: 72px;
  background: var(--color4);
  background-image: url(../assets/icon-arrow-right.svg);
  background-repeat: no-repeat;
  background-position: center;
}
.link-item,
.link-icon {
  transition: 0.5s ease;
}
.gallery {
  margin: 6.25rem 1rem;
  color: var(--color2);
}
.gallery-intro {
  display: grid;
  gap: 1.5rem;
}
.gallery-intro h2 {
  color: var(--color1);
  margin-bottom: 1.5rem;
}
.gallery-items {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-items h2 {
  color: var(--color3);
}
.gallery-items div:nth-child(3) {
  display: grid;
  gap: 1.5rem;
  background: var(--color1);
  color: var(--color3);
  padding: 3rem 1.5rem;
  align-content: center;
}

/* Location */
.location-link{
  position: absolute;
  margin: 1rem;
}
.location-map .link-icon{
    background-image: url(../assets/icon-arrow-left.svg);
}
.location-address {
  background: var(--color1);
  color: var(--color3);
  padding: 5rem 1rem;
  font-size: 1.125rem;
}
.location-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.location-info h2 {
  color: var(--color4);
  padding-top: 3rem;
  font-size: 2.25rem;
}

/* Footer */
.footer-dark {
  background-color: var(--color1);
  color: var(--color3);
}
.footer-light {
  background-color: var(--color4);
  color: var(--color1);
}
.footer-info {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 2.5rem;
}
.footer-social-links {
  display: flex;
  gap: 1.25rem;
}
.social-icon {
  width: 20px;
  height: 20px;
}
.light {
  color: var(--color3);
}
.dark {
  color: var(--color1);
}
.brand {
  width: 110px;
  height: 39px;
  display: block;
  background-repeat: no-repeat;
  background-size: contain;
}
.brand-light {
  background-image: url(/starter-code/assets/logo-light.svg);
}
.brand-dark {
  background-image: url(/starter-code/assets/logo-dark.svg);
}

/* Tablet */
@media screen and (min-width: 765px) {
  .home-container {
    display: grid;
    grid-template-columns: 0fr 1.32fr 1fr;
  }
  .home-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    margin: 0 2.5rem 0 -3rem;
  }
  .home-description h1 {
    font-size: 4.37rem;
  }
  .gallery {
    display: grid;
  }
  .gallery-intro {
    grid-template-columns: 1fr 1.4fr;
    grid-template-areas: "div5 div4";
    gap: 4.2rem;
  }
  .div4 {
    grid-area: div4;
  }
  .div5 {
    grid-area: div5;
  }
  .gallery-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .gallery-items {
    grid-template-columns: 1.26fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
  }
  .div1 {
    grid-area: 1 / 1 / 3 / 1;
  }
  .div2 {
    grid-area: 1 / 2 / 1 / 2;
  }
  .div3 {
    grid-area: 2 / 2 / 2 / 2;
  }
  .container {
    width: 689px;
    display: grid;
    margin: 0 auto;
  }
  .footer-info {
    grid-template-columns: 0.8fr 2fr 0.5fr;
  }
  .footer-social-links {
    justify-self: end;
  }
  .location-address {
    padding: 5rem 2.5rem;
  }
  .location-area {
    display: grid;
    grid-template-columns: 0.6fr 0.8fr;
  }
  .location-address h1 {
    margin-right: 4rem;
  }
  .location-address h2 {
    padding-top: 0;
  }
}

/* Desktop + */
@media screen and (min-width: 1054px) {
  p {
    font-size: 1.37rem;
    line-height: 140%;
    letter-spacing: 0;
  }
  .home-cover {
    min-height: 100vh;
  }
  .home-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
  }
  .home-back {
    background-color: var(--color1);
  }
  .home-description {
    margin: 0 10rem 0 -4.2rem;
  }
  .home-description h1 {
    font-size: 6rem;
    position: absolute;
    top: 11.81rem;
    left: 10.2rem;
    color: #ffffff;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 1) 64%,
      rgba(0, 0, 0, 1) 53%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .gallery-container {
    width: 100%;
    max-width: 1110px;
    margin: 0 auto;
  }
  .gallery-items {
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  .container {
    width: 1110px;
  }
  .location-address {
    padding: 8.12rem 10.31rem;
  }
  .location-title {
    padding: 0 7rem 0 0;
  }
  .footer-info {
    padding: 5rem 0;
    grid-template-columns: 0.5fr 1.2fr 1fr;
  }
  .footer-info p {
    font-size: 1.125rem;
    margin-left: 4rem;
  }
  .brand {
    width: 159px;
    height: 59px;
  }
}
