/* =========================================================
   Footer + Mobile Sticky CTA
   ========================================================= */

.footer {
  width: 100%;
  margin: 0 auto;
  padding: 4.8rem 0 2.4rem;
  border-top: 1px solid rgba(238, 238, 238, 0.1);
  background:
    radial-gradient(
      600px 400px at 80% 20%,
      rgba(168, 230, 195, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #1f1f1f, #181818);
  color: #fff;
}

.footer .description {
  color: #fff;
}

.container-footer {
  width: min(120rem, calc(100% - 3.2rem));
  margin: 0 auto;
  padding: 0;
}

.footer hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Main footer grid */
.grid-footer {
  width: min(120rem, calc(100% - 3.2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr 0.9fr;
  gap: 2.4rem;
  align-items: start;
}

.footer-title {
  margin: 0 0 1.6rem;
  padding: 0;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
}

.footer-title span {
  display: block;
  font-size: 2.2rem;
}

.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link:link,
.footer-link:visited {
  display: inline-block;
  text-decoration: none;
  line-height: 1.9;
  font-size: 1.6rem;
  color: #fff;
  opacity: 0.75;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.footer-link:hover,
.footer-link:active {
  opacity: 1;
  text-decoration: underline;
}

.footer .link {
  display: block;
}

.footer .grid-footer img {
  display: block;
  width: 100%;
  height: auto;
}

/* Map image */
.footer .grid-footer > div:nth-child(3) img {
  width: auto;
  max-width: 32rem;
  max-height: 32rem;
  object-fit: contain;
  border-radius: 1.8rem;
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.24);
}

/* Logo column */
.footer .grid-footer > div:nth-child(3),
.grid-footer > div:nth-child(4) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer .grid-footer > div:nth-child(4) img {
  width: auto;
  max-width: 32rem;
  max-height: 32rem;
  object-fit: contain;
  border-radius: 1.8rem;
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.24);
}

.logo-footer {
  display: block;
  width: auto;
  height: 8rem;
  margin: 0 auto;
}

.footer-logo-title,
.footer-text {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.8;
  color: #fff;
  opacity: 0.7;
}

.footer-column-top-margin {
  margin-top: 1rem;
}

.footer-link-title {
  padding-top: 0.6rem;
  font-size: 1.6rem;
  font-weight: 300;
  color: #fff;
}

.cta-text p {
  padding-top: 0.8rem;
  font-size: 1.8rem;
  font-weight: 300;
  color: #fff;
}

.whiteColor {
  fill: #fff;
  color: #fff !important;
}

/* Social row */
.grid-footer-social {
  width: min(42rem, calc(100% - 3.2rem));
  margin: 2.4rem auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  align-items: center;
}
.grid-footer-social,
.grid-footer-social.grid--4-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  align-items: center;
  justify-items: center;
}
.social-icon:link,
.social-icon:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 2.2rem;
  color: #fff;
  text-decoration: none;
  transition:
    background 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.social-icon:hover,
.social-icon:active {
  opacity: 1;
  background: rgba(177, 241, 196, 0.16);
  transform: translateY(-2px);
}

.white-svg,
.white-svg-social {
  display: block;
  width: auto;
  margin: 0 auto;
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%)
    contrast(100%);
}

.white-svg {
  height: 7rem;
  padding: 1rem;
}

.white-svg-social {
  height: 7rem;
  padding: 1rem;
}

.copyright {
  max-width: min(90rem, calc(100% - 3.2rem));
  margin: 1.8rem auto 0;
  padding: 0 0 1rem;
  font-size: 1.3rem;
  line-height: 1.6;
  color: #fff;
  opacity: 0.7;
  text-align: center;
}

/* Desktop side info actions */
.info-action-box {
  position: fixed;
  bottom: 50%;
  right: 0;
  transform: translateY(50%);
  background-color: #f5f5f5;
  width: 4.6rem;
  padding: 0.2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 2rem 0 0 2rem;
  z-index: 10;
}

.info-action-box.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.info-action-item {
  color: #5b946c;
  font-size: 2.2rem;
  margin: 1rem 0 1rem 0.4rem;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
  position: relative;
}

.info-action-item:hover {
  transform: scale(1.2);
  color: #446f51;
}

@media (min-width: 768px) {
  .info-action-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 4rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 0.4rem;
    white-space: nowrap;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .info-action-item:hover::after {
    opacity: 1;
  }
}

/* Mobile sticky CTA */
.sticky-mobile-cta-wrapper {
  display: none;
}

.sticky-mobile-cta-button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .grid-footer {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer .grid-footer > div:nth-child(4) {
    justify-content: flex-start;
  }

  .footer .grid-footer > div:nth-child(4) img {
    max-width: 18rem;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 7.2rem;
  }

  .footer {
    padding: 3.6rem 0 8.8rem;
  }

  .grid-footer {
    width: min(100% - 2.4rem, 120rem);
    grid-template-columns: 1fr;
    gap: 2.8rem;
    text-align: center;
  }

  .footer-title {
    font-size: 2.4rem;
    margin-bottom: 1.2rem;
  }

  .footer-link:link,
  .footer-link:visited {
    font-size: 1.8rem;
    line-height: 2;
  }

  .footer .grid-footer > div:nth-child(3) img {
    max-width: 34rem;
    max-height: 34rem;
    margin: 0 auto;
  }

  .footer .grid-footer > div:nth-child(4) {
    justify-content: center;
  }

  .footer .grid-footer > div:nth-child(4) img {
    max-width: 34rem;
    max-height: 34rem;
  }

  .container-footer {
    width: min(100% - 2.4rem, 120rem);
  }

  .grid-footer-social {
    width: min(30rem, calc(100% - 2.4rem));
    gap: 0.8rem;
  }
  @media (max-width: 767px) {
    .grid-footer-social,
    .grid-footer-social.grid--4-cols {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  .social-icon:link,
  .social-icon:visited {
    width: 4.6rem;
    height: 4.6rem;
    font-size: 2.3rem;
  }

  .copyright {
    width: min(100% - 2.4rem, 90rem);
    font-size: 1.3rem;
  }

  .info-action-box,
  .info-action-item::after {
    display: none;
  }

  .sticky-mobile-cta-wrapper {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(31, 31, 31, 0.96);
    box-shadow: 0 -1rem 2.4rem rgba(0, 0, 0, 0.22);
  }

  .sticky-mobile-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 4.8rem;
    width: 100%;
    margin: 0;
    padding: 1rem 0.8rem;
    border-radius: 1.2rem;
    background-color: #5b946c;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
  }

  .sticky-mobile-cta-button i {
    font-size: 1.9rem;
  }
}

@media (max-width: 420px) {
  .sticky-mobile-cta-wrapper {
    gap: 0.6rem;
    padding: 0.7rem;
  }

  .sticky-mobile-cta-button {
    min-height: 4.6rem;
    font-size: 1.55rem;
    border-radius: 1rem;
  }

  .sticky-mobile-cta-button i {
    font-size: 1.7rem;
  }
}
