/* =======================================================
   ALETTA NUTRITION - CUSTOM FOOTER
======================================================= */

/* Hide the Astra footer only when the custom footer
   PHP snippet is active. */

body.aletta-custom-footer-active #colophon,
body.aletta-custom-footer-active footer.site-footer,
body.aletta-custom-footer-active
  .site-footer:not(.aletta-custom-footer) {
  display: none !important;
}

/* Custom footer foundation */

footer.aletta-custom-footer {
  position: relative !important;
  overflow: visible !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 52px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  text-align: left !important;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif !important;
  box-shadow: none !important;
}

.aletta-custom-footer__surface {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: min(1500px, 100%);
  margin: 0 auto;
  border-radius: 38px 38px 0 0;
  background:
    radial-gradient(
      circle at 8% 18%,
      rgba(185, 211, 198, 0.14),
      transparent 29%
    ),
    radial-gradient(
      circle at 92% 85%,
      rgba(255, 255, 255, 0.06),
      transparent 28%
    ),
    #17372f;
  box-shadow: 0 -18px 65px rgba(23, 55, 47, 0.09);
}

.aletta-custom-footer__surface::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -130px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(185, 211, 198, 0.08);
  pointer-events: none;
}

.aletta-custom-footer__surface::after {
  content: "";
  position: absolute;
  bottom: -190px;
  left: -150px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  pointer-events: none;
}

.aletta-custom-footer__inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 76px 70px 30px;
}

/* Main footer grid */

.aletta-custom-footer__grid {
  display: grid;
  grid-template-columns:
    minmax(280px, 1.35fr)
    minmax(140px, 0.62fr)
    minmax(210px, 0.92fr)
    minmax(280px, 1fr);
  align-items: start;
  gap: 56px;
}

/* Brand area */

.aletta-custom-footer__brand {
  max-width: 390px;
}

.aletta-custom-footer__logo {
  display: flex;
  align-items: center;
  min-height: 54px;
  margin-bottom: 24px;
}

.aletta-custom-footer__logo .custom-logo-link {
  display: inline-flex !important;
  align-items: center;
  padding: 0 !important;
  background: transparent !important;
  text-decoration: none !important;
}

.aletta-custom-footer__logo img.custom-logo {
  display: block !important;
  width: auto !important;
  max-width: 245px !important;
  height: auto !important;
  max-height: 54px !important;
  margin: 0 !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1);
  opacity: 0.96 !important;
}

.aletta-custom-footer__text-logo {
  color: #ffffff !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  text-decoration: none !important;
}

footer.aletta-custom-footer
  .aletta-custom-footer__introduction {
  max-width: 370px;
  margin: 0 0 25px !important;
  color: #dce8e2 !important;
  font-size: 15.5px !important;
  line-height: 1.72 !important;
}

.aletta-custom-footer__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aletta-custom-footer__credentials span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: #dce8e2;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

/* Footer columns */

.aletta-custom-footer__column h2,
footer.aletta-custom-footer
  .aletta-custom-footer__eyebrow {
  margin: 4px 0 22px !important;
  color: #b9d3c6 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

.aletta-custom-footer__links {
  display: grid !important;
  align-items: start !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.aletta-custom-footer__links li {
  margin: 0 !important;
  padding: 0 !important;
}

footer.aletta-custom-footer
  .aletta-custom-footer__links a {
  position: relative;
  display: inline-flex !important;
  padding: 2px 0 !important;
  background: transparent !important;
  color: #dce8e2 !important;
  font-size: 13.5px !important;
  font-weight: 550 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
  transition:
    color 0.22s ease,
    translate 0.22s ease !important;
}

footer.aletta-custom-footer
  .aletta-custom-footer__links a::after {
  content: "↗";
  margin-left: 7px;
  color: #829e90;
  font-size: 10px;
  opacity: 0;
  translate: -4px 2px;
  transition:
    opacity 0.22s ease,
    translate 0.22s ease;
}

footer.aletta-custom-footer
  .aletta-custom-footer__links a:hover {
  color: #ffffff !important;
  translate: 2px 0;
}

footer.aletta-custom-footer
  .aletta-custom-footer__links a:hover::after {
  opacity: 1;
  translate: 0 0;
}

/* Start card */

.aletta-custom-footer__start {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

footer.aletta-custom-footer
  .aletta-custom-footer__start
  .aletta-custom-footer__eyebrow {
  margin: 0 0 13px !important;
}

footer.aletta-custom-footer
  .aletta-custom-footer__start h2 {
  margin: 0 0 14px !important;
  color: #ffffff !important;
  font-size: 25px !important;
  font-weight: 650 !important;
  line-height: 1.14 !important;
  letter-spacing: -0.04em !important;
  text-transform: none !important;
}

footer.aletta-custom-footer
  .aletta-custom-footer__start > p:not(
    .aletta-custom-footer__eyebrow
  ) {
  margin: 0 0 22px !important;
  color: #dce8e2 !important;
  font-size: 13.5px !important;
  line-height: 1.65 !important;
}

footer.aletta-custom-footer
  .aletta-custom-footer__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 13px 20px !important;
  border-radius: 999px;
  background: #ffffff !important;
  color: #17372f !important;
  font-size: 13.5px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.13);
  transition:
    transform 0.22s ease,
    background-color 0.22s ease !important;
}

footer.aletta-custom-footer
  .aletta-custom-footer__button:hover {
  transform: translateY(-2px);
  background: #b9d3c6 !important;
  color: #17372f !important;
}

footer.aletta-custom-footer
  .aletta-custom-footer__email {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px !important;
  padding: 0 !important;
  background: transparent !important;
  color: #dce8e2 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.aletta-custom-footer__email svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #b9d3c6;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

footer.aletta-custom-footer
  .aletta-custom-footer__email:hover {
  color: #ffffff !important;
}

/* Footer bottom row */

.aletta-custom-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 58px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

footer.aletta-custom-footer
  .aletta-custom-footer__bottom p {
  margin: 0 !important;
  color: #aebfb7 !important;
  font-size: 11.5px !important;
  line-height: 1.5 !important;
}

.aletta-custom-footer__legal {
  display: flex;
  align-items: center;
  gap: 24px;
}

footer.aletta-custom-footer
  .aletta-custom-footer__legal a {
  padding: 2px 0 !important;
  background: transparent !important;
  color: #dce8e2 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
}

footer.aletta-custom-footer
  .aletta-custom-footer__legal a:hover {
  color: #ffffff !important;
}


/* Tablet */

@media (max-width: 1180px) {
  .aletta-custom-footer__inner {
    padding-right: 48px;
    padding-left: 48px;
  }

  .aletta-custom-footer__grid {
    grid-template-columns:
      minmax(260px, 1.2fr)
      minmax(150px, 0.7fr)
      minmax(260px, 1fr);
    gap: 44px;
  }

  .aletta-custom-footer__brand {
    grid-column: span 2;
    max-width: 620px;
  }
}

@media (max-width: 820px) {
  .aletta-custom-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aletta-custom-footer__brand {
    grid-column: 1 / -1;
  }

  .aletta-custom-footer__start {
    grid-column: 1 / -1;
  }
}

/* Mobile */

@media (max-width: 700px) {
  footer.aletta-custom-footer {
    width: 100% !important;
    margin: 42px 0 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .aletta-custom-footer__surface {
    border-radius: 28px 28px 0 0;
  }

  .aletta-custom-footer__inner {
    padding: 56px 22px 26px;
  }

  .aletta-custom-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .aletta-custom-footer__brand,
  .aletta-custom-footer__start {
    grid-column: auto;
  }

  .aletta-custom-footer__brand {
    max-width: none;
  }

  .aletta-custom-footer__logo {
    justify-content: flex-start;
    min-height: 0;
  }

  .aletta-custom-footer__logo img.custom-logo {
    max-width: 225px !important;
    max-height: 50px !important;
    margin: 0 !important;
  }

  footer.aletta-custom-footer
    .aletta-custom-footer__introduction {
    max-width: 440px;
    font-size: 15px !important;
  }

  .aletta-custom-footer__credentials {
    justify-content: flex-start;
  }

  .aletta-custom-footer__column {
    text-align: left;
  }

  .aletta-custom-footer__links {
    display: grid !important;
    flex-direction: initial !important;
    align-items: start !important;
    gap: 13px !important;
  }

  footer.aletta-custom-footer
    .aletta-custom-footer__links a {
    display: inline-flex !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .aletta-custom-footer__start {
    padding: 26px 22px;
    text-align: left;
  }

  footer.aletta-custom-footer
    .aletta-custom-footer__email {
    justify-content: flex-start;
    overflow-wrap: anywhere;
  }

  .aletta-custom-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 45px;
  }

  .aletta-custom-footer__legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  footer.aletta-custom-footer
    .aletta-custom-footer__legal a {
    display: inline-block !important;
    margin: 0 !important;
    text-align: left !important;
  }
}

@media (max-width: 390px) {
  .aletta-custom-footer__inner {
    padding-right: 18px;
    padding-left: 18px;
  }

  .aletta-custom-footer__credentials span {
    white-space: normal;
  }
}

/* =======================================================
   CUSTOM FOOTER - DYNAMIC SOCIAL LINKS
======================================================= */

.aletta-custom-footer__socials {
  margin-top: 27px;
}

footer.aletta-custom-footer
  .aletta-custom-footer__socials-title {
  margin: 0 0 12px !important;
  color: #b9d3c6 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
}

.aletta-custom-footer__socials-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

footer.aletta-custom-footer
  .aletta-custom-footer__social {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  margin: 0 !important;
  padding: 8px 13px !important;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065) !important;
  color: #dce8e2 !important;
  font-size: 11.5px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease !important;
}

footer.aletta-custom-footer
  .aletta-custom-footer__social:hover {
  transform: translateY(-2px);
  border-color: #b9d3c6;
  background: #b9d3c6 !important;
  color: #17372f !important;
}

.aletta-custom-footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.aletta-custom-footer__social-icon svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aletta-custom-footer__social-label {
  display: inline-block;
}

@media (max-width: 700px) {
  .aletta-custom-footer__socials {
    margin-top: 25px;
  }

  .aletta-custom-footer__socials-list {
    justify-content: flex-start;
  }

  footer.aletta-custom-footer
    .aletta-custom-footer__social {
    display: inline-flex !important;
    width: auto;
    text-align: left !important;
  }
}

/* Mobile footer final spacing and fixed-button clearance */

@media (max-width: 700px) {
  .aletta-custom-footer__grid {
    gap: 36px;
  }

  .aletta-custom-footer__bottom {
    margin-top: 38px;
    padding-top: 23px;
    padding-bottom: 72px;
  }

  .aletta-custom-footer__legal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  footer.aletta-custom-footer
    .aletta-custom-footer__legal a {
    line-height: 1.5 !important;
  }
}

