/**
 * Editorial footer inspired by the approved Conecte visual system.
 * Loaded last so the Theme Builder and PHP fallback remain visually identical.
 */

:where(.ci-elementor-footer, .ci-footer) {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  min-height: 0 !important;
  height: auto !important;
  padding: 48px 0 18px !important;
  overflow: hidden;
  color: #f8f5ef;
  border-radius: 0 0 22px 22px;
  background:
    radial-gradient(circle at 92% 4%, rgba(211, 161, 68, .12), transparent 28%),
    linear-gradient(145deg, #03101d 0%, #06182b 62%, #0a2741 100%) !important;
}

:where(.ci-elementor-footer, .ci-footer)::before {
  position: absolute;
  z-index: -1;
  right: -165px;
  bottom: -280px;
  width: 520px;
  height: 520px;
  content: "";
  border: 1px solid rgba(237, 199, 123, .18);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(237, 199, 123, .035),
    0 0 0 104px rgba(237, 199, 123, .025);
  pointer-events: none;
}

.ci-elementor-footer .ci-footer-elementor-grid,
.ci-elementor-footer .ci-footer-elementor-bottom,
.ci-footer .ci-shell {
  width: min(1110px, calc(100% - 48px)) !important;
  max-width: 1110px !important;
  margin-inline: auto !important;
}

.ci-elementor-footer .ci-footer-elementor-grid,
.ci-footer .ci-footer__grid {
  display: block !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
}

.ci-elementor-footer .ci-footer-elementor-grid > .e-con-inner {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

.ci-elementor-footer .ci-footer-intro,
.ci-footer .ci-footer-intro {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.ci-elementor-footer .ci-footer-intro .elementor-widget-image,
.ci-elementor-footer .ci-footer-intro .elementor-widget-image img,
.ci-footer .ci-footer-intro > a,
.ci-footer .ci-footer-intro > a img {
  display: block;
  width: 194px !important;
  max-width: 194px !important;
  height: auto !important;
  object-fit: contain;
}

.ci-elementor-footer .ci-footer-tagline {
  width: 100%;
  max-width: 620px;
  margin-top: 18px;
}

.ci-elementor-footer .ci-footer-tagline .elementor-heading-title,
.ci-footer .ci-footer-tagline {
  max-width: 620px;
  margin: 18px 0 0 !important;
  color: #f9f7f2 !important;
  font-family: "Sora", Arial, sans-serif !important;
  font-size: clamp(21px, 1.7vw, 24px) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  letter-spacing: -.035em;
}

.ci-elementor-footer .ci-footer-socials,
.ci-elementor-footer .ci-footer-socials > .e-con-inner,
.ci-footer .ci-footer-socials {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}

.ci-elementor-footer .ci-footer-socials,
.ci-footer .ci-footer-socials {
  margin-top: 19px;
}

.ci-elementor-footer .ci-footer-social-button {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.ci-elementor-footer .ci-footer-social-button .elementor-button,
.ci-footer .ci-footer-social-button {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  box-sizing: border-box;
  min-width: 142px;
  min-height: 42px;
  padding: 9px 15px !important;
  overflow: hidden;
  color: #fff !important;
  border: 1px solid rgba(217, 221, 224, .35) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .025) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  font-family: "Sora", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: color .28s ease, border-color .28s ease, background-color .28s ease, box-shadow .28s ease, transform .28s ease;
}

.ci-elementor-footer .ci-footer-social-button .elementor-button::before,
.ci-footer .ci-footer-social-button::before {
  position: absolute;
  inset: -35% auto -35% -45%;
  width: 34%;
  content: "";
  opacity: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .48), transparent);
  transform: skewX(-18deg);
  transition: left .62s cubic-bezier(.2, .7, .2, 1), opacity .2s ease;
}

.ci-elementor-footer .ci-footer-social-button .elementor-button:hover,
.ci-elementor-footer .ci-footer-social-button .elementor-button:focus-visible,
.ci-footer .ci-footer-social-button:hover,
.ci-footer .ci-footer-social-button:focus-visible {
  color: #03101d !important;
  border-color: #edc77b !important;
  background: linear-gradient(135deg, #edc77b, #d3a144) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
  transform: translateY(-2px);
}

.ci-elementor-footer .ci-footer-social-button .elementor-button:hover::before,
.ci-elementor-footer .ci-footer-social-button .elementor-button:focus-visible::before,
.ci-footer .ci-footer-social-button:hover::before,
.ci-footer .ci-footer-social-button:focus-visible::before {
  left: 112%;
  opacity: 1;
}

.ci-elementor-footer .ci-footer-social-button .elementor-button-icon,
.ci-footer .ci-footer-social-button > svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0 !important;
  color: #edc77b;
  transition: color .28s ease, transform .28s ease;
}

.ci-elementor-footer .ci-footer-social-button .elementor-button-icon svg,
.ci-footer .ci-footer-social-button > svg {
  width: 17px !important;
  height: 17px !important;
  stroke-width: 1.8;
}

.ci-elementor-footer .ci-footer-social-button .elementor-button:hover .elementor-button-icon,
.ci-elementor-footer .ci-footer-social-button .elementor-button:focus-visible .elementor-button-icon,
.ci-footer .ci-footer-social-button:hover > svg,
.ci-footer .ci-footer-social-button:focus-visible > svg {
  color: #03101d;
  transform: scale(1.05);
}

.ci-elementor-footer .ci-footer-columns,
.ci-elementor-footer .ci-footer-columns > .e-con-inner,
.ci-footer .ci-footer-columns {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(38px, 6vw, 86px) !important;
  width: 100% !important;
}

.ci-elementor-footer .ci-footer-columns,
.ci-footer .ci-footer-columns {
  margin-top: 34px;
  padding-top: 27px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.ci-elementor-footer .ci-footer-column,
.ci-footer .ci-footer-column {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  min-width: 0;
}

.ci-elementor-footer .ci-footer-column .elementor-heading-title,
.ci-footer .ci-footer-column h2 {
  margin: 0 !important;
  color: #fff !important;
  font-family: "Sora", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.ci-elementor-footer .ci-footer-column .elementor-icon-list-items,
.ci-footer .ci-footer-menu {
  display: grid !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ci-elementor-footer .ci-footer-column .elementor-icon-list-icon {
  display: none !important;
}

.ci-elementor-footer .ci-footer-column .elementor-icon-list-item,
.ci-elementor-footer .ci-footer-column .elementor-icon-list-item > a {
  align-items: flex-start !important;
  gap: 0 !important;
  padding: 0 !important;
}

.ci-elementor-footer .ci-footer-column .elementor-icon-list-text,
.ci-elementor-footer .ci-footer-column .elementor-widget-text-editor,
.ci-elementor-footer .ci-footer-column .elementor-widget-text-editor p,
.ci-footer .ci-footer-column,
.ci-footer .ci-footer-column a {
  color: #c9d0d7 !important;
  font-family: "Manrope", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

.ci-elementor-footer .ci-footer-column .elementor-widget-text-editor p {
  margin: 0 0 4px;
}

.ci-elementor-footer .ci-footer-column a,
.ci-footer .ci-footer-column a {
  text-decoration: none !important;
  transition: color .22s ease, transform .22s ease;
}

.ci-elementor-footer .ci-footer-column a:hover,
.ci-elementor-footer .ci-footer-column a:focus-visible,
.ci-footer .ci-footer-column a:hover,
.ci-footer .ci-footer-column a:focus-visible {
  color: #edc77b !important;
}

.ci-elementor-footer .ci-footer-contact a:first-child,
.ci-footer .ci-footer-contact li:first-child a {
  color: #edc77b !important;
}

.ci-elementor-footer .ci-footer-elementor-bottom,
.ci-footer .ci-footer__bottom {
  box-sizing: border-box;
  height: auto !important;
  margin-top: 32px !important;
  padding: 20px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .14) !important;
}

.ci-elementor-footer .ci-footer-elementor-bottom > .e-con-inner,
.ci-footer .ci-footer__bottom {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 34px;
}

.ci-elementor-footer .ci-footer-elementor-bottom,
.ci-elementor-footer .ci-footer-elementor-bottom p,
.ci-elementor-footer .ci-footer-elementor-bottom a,
.ci-footer .ci-footer__bottom,
.ci-footer .ci-footer__bottom a {
  color: #bdc6ce !important;
  font-family: "Manrope", Arial, sans-serif !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
}

.ci-elementor-footer .ci-footer-elementor-bottom p {
  margin: 0;
}

.ci-elementor-footer .ci-footer-elementor-bottom > .e-con-inner > :nth-child(2),
.ci-footer .ci-footer__bottom > :nth-child(2) {
  justify-self: center !important;
}

.ci-elementor-footer .ci-footer-elementor-bottom > .e-con-inner > :last-child,
.ci-footer .ci-footer__bottom > :last-child {
  justify-self: end !important;
}

.ci-elementor-footer .ci-footer-elementor-bottom > .e-con-inner > :last-child a,
.ci-elementor-footer .ci-footer-elementor-bottom > .e-con-inner > :last-child strong,
.ci-footer .ci-footer__bottom > :last-child,
.ci-footer .ci-footer__bottom > :last-child strong {
  color: #edc77b !important;
}

@media (max-width: 1024px) {
  .ci-elementor-footer .ci-footer-elementor-grid,
  .ci-elementor-footer .ci-footer-elementor-bottom,
  .ci-footer .ci-shell {
    width: min(940px, calc(100% - 36px)) !important;
  }

  .ci-elementor-footer .ci-footer-columns,
  .ci-elementor-footer .ci-footer-columns > .e-con-inner,
  .ci-footer .ci-footer-columns {
    gap: 34px !important;
  }
}

@media (max-width: 767px) {
  :where(.ci-elementor-footer, .ci-footer) {
    padding: 36px 0 16px !important;
    border-radius: 0 0 22px 22px;
  }

  :where(.ci-elementor-footer, .ci-footer)::before {
    right: -220px;
    bottom: -175px;
    width: 430px;
    height: 430px;
  }

  .ci-elementor-footer .ci-footer-elementor-grid,
  .ci-elementor-footer .ci-footer-elementor-bottom,
  .ci-footer .ci-shell {
    width: calc(100% - 32px) !important;
  }

  .ci-elementor-footer .ci-footer-intro .elementor-widget-image,
  .ci-elementor-footer .ci-footer-intro .elementor-widget-image img,
  .ci-footer .ci-footer-intro > a,
  .ci-footer .ci-footer-intro > a img {
    width: 160px !important;
    max-width: 160px !important;
  }

  .ci-elementor-footer .ci-footer-tagline,
  .ci-elementor-footer .ci-footer-tagline .elementor-heading-title,
  .ci-footer .ci-footer-tagline {
    max-width: 300px;
    margin-top: 18px !important;
    font-size: clamp(18px, 5.5vw, 21px) !important;
    line-height: 1.34 !important;
  }

  .ci-elementor-footer .ci-footer-socials,
  .ci-elementor-footer .ci-footer-socials > .e-con-inner,
  .ci-footer .ci-footer-socials {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .ci-elementor-footer .ci-footer-socials,
  .ci-footer .ci-footer-socials {
    margin-top: 20px;
  }

  .ci-elementor-footer .ci-footer-social-button,
  .ci-elementor-footer .ci-footer-social-button .elementor-button,
  .ci-footer .ci-footer-social-button {
    width: 100% !important;
  }

  .ci-elementor-footer .ci-footer-social-button .elementor-button,
  .ci-footer .ci-footer-social-button {
    justify-content: center !important;
    gap: 5px !important;
    min-width: 0;
    min-height: 42px;
    padding: 8px 6px !important;
    font-size: 10px !important;
    white-space: nowrap;
  }

  .ci-elementor-footer .ci-footer-social-button .elementor-button-icon svg,
  .ci-footer .ci-footer-social-button > svg {
    width: 15px !important;
    height: 15px !important;
  }

  .ci-elementor-footer .ci-footer-columns,
  .ci-elementor-footer .ci-footer-columns > .e-con-inner,
  .ci-footer .ci-footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 22px !important;
    row-gap: 25px !important;
  }

  .ci-elementor-footer .ci-footer-columns,
  .ci-footer .ci-footer-columns {
    margin-top: 29px;
    padding-top: 25px;
  }

  .ci-elementor-footer .ci-footer-contact,
  .ci-footer .ci-footer-contact {
    grid-column: 1 / -1 !important;
  }

  .ci-elementor-footer .ci-footer-column,
  .ci-footer .ci-footer-column {
    gap: 7px !important;
  }

  .ci-elementor-footer .ci-footer-column .elementor-heading-title,
  .ci-footer .ci-footer-column h2 {
    font-size: 13px !important;
  }

  .ci-elementor-footer .ci-footer-column .elementor-icon-list-text,
  .ci-elementor-footer .ci-footer-column .elementor-widget-text-editor,
  .ci-elementor-footer .ci-footer-column .elementor-widget-text-editor p,
  .ci-footer .ci-footer-column,
  .ci-footer .ci-footer-column a {
    font-size: 10px !important;
    line-height: 1.4 !important;
  }

  .ci-elementor-footer .ci-footer-column .elementor-icon-list-items,
  .ci-footer .ci-footer-menu {
    gap: 2px !important;
  }

  .ci-elementor-footer .ci-footer-elementor-bottom,
  .ci-footer .ci-footer__bottom {
    margin-top: 27px !important;
    padding-top: 15px !important;
  }

  .ci-elementor-footer .ci-footer-elementor-bottom > .e-con-inner,
  .ci-footer .ci-footer__bottom {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px 14px !important;
  }

  .ci-elementor-footer .ci-footer-elementor-bottom > .e-con-inner > *,
  .ci-footer .ci-footer__bottom > * {
    justify-self: start !important;
    align-self: center !important;
    width: auto !important;
    margin: 0 !important;
  }

  .ci-elementor-footer .ci-footer-elementor-bottom > .e-con-inner > :nth-child(2),
  .ci-footer .ci-footer__bottom > :nth-child(2) {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: start !important;
  }

  .ci-elementor-footer .ci-footer-elementor-bottom > .e-con-inner > :last-child,
  .ci-footer .ci-footer__bottom > :last-child {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }

  .ci-elementor-footer .ci-footer-elementor-bottom,
  .ci-elementor-footer .ci-footer-elementor-bottom p,
  .ci-elementor-footer .ci-footer-elementor-bottom a,
  .ci-footer .ci-footer__bottom,
  .ci-footer .ci-footer__bottom a {
    font-size: 9px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ci-elementor-footer .ci-footer-social-button .elementor-button,
  .ci-elementor-footer .ci-footer-social-button .elementor-button::before,
  .ci-footer .ci-footer-social-button,
  .ci-footer .ci-footer-social-button::before,
  .ci-elementor-footer .ci-footer-column a,
  .ci-footer .ci-footer-column a {
    transition: none !important;
  }
}
