/* =====================
   ROOT & GLOBAL
===================== */

:root {
  --first-font-color: #ffffff;
}

body {
  margin: 0 auto;
  font-family: Poppins;
}

a {
  text-decoration: none;
  color: #ffffff;
}

.button {
  background-color: var(--first-font-color);
  color: black;
  padding: 10px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
}


/*    HEADER  */

header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.5)),
    url("media/bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 16px 8px;
  color: var(--first-font-color);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header h1 {
  font-weight: 700;
  font-size: 96px;
  line-height: 100%;
  margin: 0;
}

header h3 {
  font-weight: 400;
  font-size: 40px;
  line-height: 100%;
}

header h5 {
  opacity: 1;
  padding: 16px 32px;
}


/* =====================
   MAIN – GLOBAL
===================== */

.container {
  margin: 50px 100px;
}

main h3 {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 5px;
  color: darkgray;
  margin: 0;
}

main h2 {
  font-weight: 700;
  font-size: 30px;
  line-height: 50px;
  margin-top: 0;
}

main p {
  font-weight: 400;
  font-size: 13px;
}


/* =====================
   SECTION 1
===================== */

.section-1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px 8px;
  gap: 64px;
  margin: 50px;
}

.section-1-img {
  width: 100%;
  height: 500px;
  border-radius: 5px;
}


/* =====================
   SECTION 2 + 3 (shared)
===================== */

.section-2,
.section-3 {
  text-align: center;
  padding: 10px;
  margin: 50px;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}


/* =====================
   SECTION 2 – CARDS
===================== */

.section-2 .row-2 {
  align-items: stretch;
}

.section-2 .row-2 > div {
  border: 1px solid black;
  border-radius: 5px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* media (image + map) */
.section-2 .media-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.section-2 .media-row img,
.section-2 .media-row iframe {
  width: 50%;
  height: 180px;
  border-radius: 5px;
}

.section-2 .media-row img {
  object-fit: cover;
}

/* text & address */
.section-2 p {
  margin-bottom: 8px;
}

.section-2 .address-block {
  margin-top: auto;
  padding-top: 20px;
}

.section-2 .address-block h5 {
  margin-top: 10px;
  margin-bottom: 4px;
}

.section-2 .address-block p {
  margin-top: 0;
}

/* button */
.location-info {
  background-color: black;
  color: #ffffff;
}

.section-2 .location-info {
  margin-top: auto;
  align-self: center;
  margin-bottom: 16px;
}


/* =====================
   SECTION 3 – GALLERY
===================== */

.gallery-pics {
  width: 300px;
  height: 210px;
  border-radius: 5px;
}


/* =====================
   FOOTER
===================== */

footer {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("media/Bairo Alto.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 40vh;
  color: var(--first-font-color);
}

.footer-main-row {
  display: grid;
  grid-template-columns: 2fr 4fr 4fr;
  grid-gap: 16px;
  padding: 16px;
}

.footer-title {
  margin-top: 10px;
  margin-bottom: 10px;
}

.footer-text {
  margin-top: 10px;
  margin-bottom: 0;
  opacity: 0.8;
}


/* =====================
   MEDIA QUERIES
===================== */

@media (max-width: 900px) {
  header {
    padding: 30px 10px;
  }

  header h1 {
    font-size: 48px;
  }

  header h3 {
    font-size: 20px;
  }

  header h5 {
    font-size: 12px;
  }

  .button {
    font-size: 12px;
  }

  .container {
    margin: 50px;
  }

  .section-1 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-1-img {
    height: 200px;
  }

  main h3 {
    font-size: 14px;
  }

  main h2 {
    font-size: 20px;
  }

  main p {
    font-size: 12px;
  }

  .row-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-main-row {
    grid-template-columns: 1fr;
    grid-gap: 10px;
    padding: 10px;
  }

  .section-2 .media-row {
    flex-direction: column;
  }

  .section-2 .media-row img,
  .section-2 .media-row iframe {
    width: 100%;
  }
}

@media (min-width: 1100px) {
  header {
    min-height: 80vh;
    background-position: center 70%;
  }
}
