/**
 * @file
 * The footer components.
 *
 * It includes styles for the footer itself and its
 * components.
 */

/**
 * Global footer rules
 */

.main__footer {
  margin-top: auto;
}

/**
 * Region Footer Grid
 */

@media all and (min-width: 600px) {
  .region-footer {
    display: grid;
    gap: 2rem;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, calc(50% - 1rem));
    align-items: center;
    grid-template-areas:
    "A A"
    "B C"
    "B D"
    "E E"
    "F G";
    grid-auto-rows: max-content;
  }
  .region-footer .block-logo {
    grid-area: A;
  }
  .region-footer .block-newsletter {
    grid-area: B;
  }
  .region-footer .menu--social {
    grid-area: C;
  }
  .region-footer .menu--footer {
    grid-area: D;
  }
  .region-footer .block-footer-address {
    grid-area: E;
  }
  .region-footer .block-app {
    grid-area: F;
  }
}
@media all and (min-width: 1200px) {
  .region-footer {
    grid-template-columns: 42% 28% 28%;
    gap: 2rem;
    align-items: initial;
    grid-template-areas:
      "A B C"
      "A B D"
      "A E E"
      "A F F";
  }
  .region-footer .menu--social {
    align-self: center;
  }
  .region-footer .menu--footer {
    transform: translateY(-2rem);
  }
}


/**
 * Main Footer
 */

.main__footer-content {
  background-color: var(--color-primary--2);
  position: relative;
  padding: 1rem 1rem 2rem;
}
.main__footer-content::before {
  content: '';
  display: block;
  position: absolute;
  top: -38px;
  left: 0;
  right: 0;
  height: 200px;
  background-repeat: no-repeat;
  background-image: url("../../images/footer-divider-mobile.svg");
  background-size: 105%;
  background-position: top center;
}
@media all and (min-width: 700px) {
  .main__footer-content::before {
    background-image: url("../../images/footer-divider.svg");
    top: -21px;
  }
}
@media all and (min-width: 1000px) {
  .main__footer-content::before {
    top: -30px;
  }
}
@media all and (min-width: 1200px) {
  .main__footer-content {
    padding: 3rem 1rem;
  }
}

/**
 * Footer Logo
 */

.main__footer-content .block-logo img{
  margin: 0;
  display: block;
}

/**
 * Footer Newsletter
 */

.main__footer-content .block-newsletter {
  margin: 2rem 0;
}
.main__footer-content .block-newsletter > p {
  font-weight: 700;
  color: var(--color-secondary--4);
  margin-bottom: 0.5rem;
}
@media all and (min-width: 600px) {
  .main__footer-content .block-newsletter {
    margin: 0;
  }
}

/**
 * footer address
 */

.main__footer-content .block-footer-address {
  margin: 2rem 0;
}
.main__footer-content .block-footer-address p {
  color: var(--color-secondary--4);
  margin: 0.33rem 0;
}
.main__footer-content .block-footer-address__address {
  margin-bottom: 2rem;
}
@media all and (min-width: 600px) {
  .main__footer-content .block-footer-address {
    margin: 0;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, calc(50% - 1rem));
  }
  .main__footer-content .block-footer-address__address {
    margin-bottom: 0;
  }
}

/**
 * Menu social
 */

.menu--social {
  margin: 2rem 0;
}
.menu--social ul.menu {
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}
.menu__icon-footer {
  overflow: hidden;
  text-indent: -9999px;
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  background-position: center;
  background-repeat: no-repeat;
  transition: 0.1s;
}
.menu__icon-footer:hover {
  transform: scale(1.05);
}
.menu__icon-footer--facebook {
  background-image: url("../../images/facebook.svg");
}
.menu__icon-footer--instagram {
  background-image: url("../../images/insta.svg");
}
.menu__icon-footer--linkedin {
  background-image: url("../../images/linkedin.svg");
}
.menu__icon-footer--youtube {
  background-image: url("../../images/youtube.svg");
}
@media all and (min-width: 600px) {
  .menu--social {
    margin: 0;
  }
}


/**
 * Menu Footer
 */

.menu--footer {
  margin: 2rem 0;
}
.menu--footer ul.menu {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.menu--footer .menu__link {
  color: var(--color-secondary--4);
  font-weight: 500;
}
.menu--footer ul.menu a.is-active {
  color: var(--color-secondary--4);
}
@media all and (min-width: 600px) {
  .menu--footer {
    margin: 0;
  }
}

/**
 * Block App
 */

.block-app {
  display: grid;
  grid-template-columns: 60px calc(100% - 76px);
  gap: 1rem;
  margin: 2rem 0;
  max-width: 375px;
}
.block-app__text p {
  color: var(--color-secondary--4);
  margin: 0;
  font-size: 700;
}
.block-app:hover p {
  text-decoration: underline;
}
@media all and (min-width: 600px) {
  .block-app {
    margin: 0;
  }
}


/**
 * Footer secondary
 */

.main__footer-secondary {
  background-color: #00473D;
  padding: 2rem 0;
}
.main__footer-secondary #block-footerlogo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}
.main__footer-secondary .footer-image {
  display: inline-block;
}
@media all and (min-width: 700px) {
  .main__footer-secondary #block-footerlogo {
    justify-content: start;
  }
}


