/* JEDI Footer Premium V1 — page-global, intentionally scoped to the footer. */
.site-footer .footer-grid {
  display: grid;
  grid-template-columns:
    minmax(205px, 1.08fr)
    minmax(140px, .72fr)
    minmax(175px, .86fr)
    minmax(235px, 1.18fr);
  align-items: start;
  column-gap: clamp(20px, 2.6vw, 38px);
  row-gap: 30px;
}

.site-footer .footer-grid > * {
  min-width: 0;
}

.site-footer .footer-heading {
  margin: 0 0 16px;
  color: #f7f9fc;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .105em;
  line-height: 1.35;
  text-transform: uppercase;
}

.site-footer .footer-copy {
  max-width: 320px;
  color: rgba(232, 239, 247, .74);
  font-size: 13px;
  line-height: 1.85;
}

.site-footer .footer-links {
  display: grid;
  gap: 10px;
}

.site-footer .footer-links a {
  width: fit-content;
  max-width: 100%;
  color: rgba(232, 239, 247, .76);
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color .2s ease, transform .2s ease;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible {
  color: #d99170;
  transform: translateX(3px);
}

.jedi-footer-map-column {
  min-width: 0;
  padding: 0;
}

.jedi-footer-map-heading {
  margin: 0 0 12px;
  color: #f7f9fc;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .105em;
  line-height: 1.35;
  text-transform: uppercase;
}

.jedi-footer-map-address {
  max-width: 280px;
  margin: -3px 0 12px;
  color: rgba(232, 239, 247, .68);
  font-size: 12px;
  line-height: 1.65;
}

.jedi-footer-map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 142px;
  max-height: 174px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 13px;
  background: #142c47;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, .17),
    inset 0 1px 0 rgba(255, 255, 255, .10);
}

.jedi-footer-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 142px;
  border: 0;
  filter: saturate(.86) contrast(.97);
}

.jedi-footer-map-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  color: #e0a083;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .015em;
  text-decoration: none;
  transition: color .2s ease, gap .2s ease;
}

.jedi-footer-map-link:hover,
.jedi-footer-map-link:focus-visible {
  color: #f1b99d;
  gap: 11px;
}

.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  color: rgba(232, 239, 247, .58);
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(220px, 1.1fr) minmax(155px, .8fr) minmax(185px, .9fr);
  }
  .jedi-footer-map-column {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(190px, .75fr) minmax(260px, 1.25fr);
    column-gap: 22px;
    align-items: end;
  }
  .jedi-footer-map-column .jedi-footer-map-heading,
  .jedi-footer-map-column .jedi-footer-map-address,
  .jedi-footer-map-column .jedi-footer-map-link {
    grid-column: 1;
  }
  .jedi-footer-map-column .jedi-footer-map-frame {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

@media (max-width: 760px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 30px;
  }
  .site-footer .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
  .jedi-footer-map-column {
    grid-column: 1 / -1;
    display: block;
    max-width: 460px;
  }
  .jedi-footer-map-frame {
    aspect-ratio: 16 / 9;
    min-height: 158px;
    max-height: 190px;
  }
  .jedi-footer-map-frame iframe {
    min-height: 158px;
  }
}

@media (max-width: 480px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 27px;
  }
  .site-footer .footer-grid > :first-child,
  .jedi-footer-map-column {
    grid-column: auto;
  }
  .site-footer .footer-copy {
    max-width: 100%;
  }
  .site-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .footer-links a,
  .jedi-footer-map-link {
    transition: none !important;
  }
}

/* JEDI Footer Refinement V1.1: real hero logo, social icon row, compact global nav. */
.site-footer .footer-brand-logo {
  display: block;
  width: min(100%, 162px);
  height: auto;
  max-height: 78px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .95);
  object-fit: contain;
  object-position: left center;
  margin: 0 0 18px;
  filter: none;
}

.site-footer .footer-copy {
  max-width: 310px;
  margin-top: 0 !important;
  color: rgba(232, 239, 247, .72);
  font-size: 12.5px;
  line-height: 1.8;
}

.site-footer .footer-links {
  gap: 11px;
}

.site-footer .jedi-footer-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 19px;
}

.site-footer .jedi-footer-social-link {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
  text-decoration: none;
  transform: translateY(0);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.site-footer .jedi-footer-social-link svg {
  display: block;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.site-footer .jedi-footer-social-link--whatsapp {
  background: #16bf72;
  border-color: rgba(255, 255, 255, .10);
}

.site-footer .jedi-footer-social-link--instagram {
  background: linear-gradient(145deg, #6b35bd 0%, #c72d89 48%, #f08a3c 100%);
  border-color: rgba(255, 255, 255, .10);
}

.site-footer .jedi-footer-social-link--tiktok {
  background: #08090c;
  border-color: rgba(255, 255, 255, .25);
}

.site-footer .jedi-footer-social-link:hover,
.site-footer .jedi-footer-social-link:focus-visible {
  transform: translateY(-4px);
  filter: brightness(1.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .27), 0 0 0 3px rgba(217, 145, 112, .13);
  outline: none;
}

.site-footer .jedi-footer-social-link:focus-visible {
  outline: 2px solid #e0a083;
  outline-offset: 3px;
}

.site-footer .jedi-footer-map-link {
  color: #e0a083;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .01em;
}

.site-footer .jedi-footer-map-link:hover,
.site-footer .jedi-footer-map-link:focus-visible {
  color: #f1b99d;
}

/* Keep the desktop navigation centered and compact without removing any menu items. */
@media (min-width: 801px) {
  .site-header .navbar-shell {
    width: min(calc(100% - 40px), 1020px) !important;
    min-height: 76px !important;
    gap: 13px !important;
  }

  .site-header .navbar-shell .brand-logo {
    display: block;
    width: clamp(112px, 7.5vw, 128px) !important;
    max-width: 128px !important;
    height: auto !important;
  }

  .site-header .jedi-nav-compact {
    width: min(calc(100% - 40px), 1020px) !important;
  }

  .site-header .desktop-nav {
    gap: clamp(9px, .8vw, 13px) !important;
  }

  .site-header .desktop-nav .nav-link {
    font-size: 12px !important;
    letter-spacing: -.012em;
    white-space: nowrap;
  }

  .jedi-language-picker__trigger {
    min-width: 56px;
    min-height: 38px;
    padding-inline: 8px;
  }

  .desktop-cta .nav-cta {
    min-height: 40px;
    padding: 0 13px !important;
    font-size: 11.5px !important;
    white-space: nowrap;
  }
}

@media (max-width: 1100px) and (min-width: 801px) {
  .site-header .navbar-shell {
    width: min(calc(100% - 32px), 960px) !important;
    gap: 9px !important;
  }
  .site-header .navbar-shell .brand-logo {
    width: 108px !important;
  }
  .site-header .jedi-nav-compact {
    width: min(calc(100% - 32px), 960px) !important;
  }
  .site-header .desktop-nav {
    gap: 8px !important;
  }
  .site-header .desktop-nav .nav-link {
    font-size: 11px !important;
  }
  .desktop-cta .nav-cta {
    padding-inline: 10px !important;
    font-size: 10.5px !important;
  }
}

@media (max-width: 760px) {
  .site-footer .footer-brand-logo {
    width: 148px;
    max-height: 72px;
    margin-bottom: 14px;
  }
  .site-footer .jedi-footer-socials {
    margin-top: 16px;
    gap: 10px;
  }
  .site-footer .jedi-footer-social-link {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .jedi-footer-social-link {
    transition: none !important;
  }
}

/* JEDI DESKTOP LANGUAGE PICKER POSITION V1 */
/* Keep the desktop language selector immediately before the consultation CTA. */
@media (min-width: 801px) {
    .site-header[data-jedi-global-header] .desktop-cta {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: clamp(10px, 1vw, 15px);
        flex: 0 0 auto;
    }

    .site-header[data-jedi-global-header] .desktop-cta > .jedi-language-picker {
        flex: 0 0 auto;
        margin: 0;
    }

    .site-header[data-jedi-global-header] .desktop-cta > .nav-cta {
        flex: 0 0 auto;
    }
}

