/* Hero */

.hero-text {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: var(--size-600);
  color: var(--color-black);
}

.hero-text > h1 {
  font-size: var(--text-l);
}

.hero-text > .button {
  margin-top: var(--size-400);
  align-self: stretch;
  text-align: center;
}

.hero > .overlay-wrapper {
  clip-path: polygon(0 25%, 65% 0, 85% 15%, 100% 85%, 30% 100%, 10% 90%);
}

.hero > .overlay-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 50em) {
  .hero-text {
    order: 0;
    align-items: flex-start;
  }
  .hero-text > .button {
    align-self: start;
  }
}

/* Section Atendimento */

.section-atendimento {
  margin-top: var(--size-600);
}

.icon-wrapper > a {
  font-size: var(--text-s);
}

/* Left */
.grid-title-wrapper {
  grid-column: 1;
  grid-row: 1;
}

.grid-left-bottom {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  margin-top: var(--size-500);
}

/* Right */
.grid-description {
  grid-column: 2 / 4;
  grid-row: 1;
  margin: 0;
}

/* Map image spans columns 2-3 (below description) */
.grid-mapLink {
  grid-column: 2 / 4;
  grid-row: 2;
  overflow: auto;
  min-width: 0;
  min-height: 0;
  display: block;
  align-self: self-end;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 10px;
}

.grid-mapIframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: grayscale(1);
}

.map-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-blue);
  mix-blend-mode: screen;
  pointer-events: none;
}

.contacts-wrapper {
  margin-top: var(--size-400);
}

.icon-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: var(--size-400);
}

/* 
***************
  Mobile styles    
***************
*/

@media (max-width: 50em) {
  .section-atendimento {
    margin-top: var(--size-100);
  }

  .grid-3 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }

  .grid-title-wrapper {
    grid-column: 1;
    grid-row: 1;
  }

  .grid-description {
    grid-column: 1;
    grid-row: 2;
    margin-top: var(--size-400);
  }

  .grid-left-bottom {
    grid-column: 1;
    grid-row: 3;
    margin-top: var(--size-400);
    align-self: start; /* aligns to top of row 3 */
  }

  .grid-mapLink {
    grid-column: 1;
    grid-row: 4;
    margin-top: var(--size-700);
    display: block;
    justify-self: center;
    width: 100%;
  }

  .grid-mapIframe {
    min-height: 360px;
  }
}
