/*
 * Global footer component.
 *
 * The footer uses a calm brand surface, keeps all navigation destinations,
 * and owns its responsive layout independently from legacy base styles.
 */

.site-footer {
  position: relative;
  margin-top: auto;
  overflow: hidden;
  border-top: 0;
  background: #f4fafe;
  color: var(--isp-ink);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #73c0ee 0 38%, #ed73a4 38% 70%, #ebbf7a 70% 100%);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.38fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: start;
  padding-block: clamp(58px, 6vw, 78px);
}

.footer-brand {
  min-width: 0;
  padding: 0;
  text-align: left;
}

.footer-brandmark {
  margin-bottom: 22px;
}

.footer-logo,
.footer-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.footer-logo .custom-logo {
  width: auto;
  max-width: min(100%, 230px);
  max-height: 74px;
}

.footer-site-name {
  margin: 0;
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.footer-site-name a {
  color: var(--isp-ink);
  text-decoration: none;
}

.footer-brand p {
  max-width: 460px;
  margin: 0 0 24px;
  color: #646769;
  font-size: .97rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.site-footer .social-link {
  --social-bg-one: #73c0ee;
  --social-bg-two: #438fbc;
  --social-accent: #347da8;
  width: auto;
  min-width: 0;
  min-height: 54px;
  padding: 7px 16px 7px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(68, 68, 68, .08);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--social-bg-one), var(--social-bg-two));
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(68, 68, 68, .15);
  font-size: .88rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.site-footer .social-link::after {
  content: none;
}

.site-footer .social-link__icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--social-accent);
  box-shadow: 0 4px 12px rgba(68, 68, 68, .14);
}

.site-footer .social-link svg {
  width: 20px;
  height: 20px;
}

.site-footer .social-link__label {
  white-space: nowrap;
}

.site-footer .social-link__arrow {
  font-size: 1rem;
  line-height: 1;
  transition: transform .18s ease;
}

.site-footer .social-link:hover,
.site-footer .social-link:focus-visible {
  color: #fff !important;
  box-shadow: 0 15px 34px rgba(68, 68, 68, .2);
  filter: saturate(1.06);
  transform: translateY(-2px);
}

.site-footer .social-link:hover .social-link__arrow,
.site-footer .social-link:focus-visible .social-link__arrow {
  transform: translateX(3px);
}

.site-footer .social-link--pinterest {
  --social-bg-one: #ed73a4;
  --social-bg-two: #d95b90;
  --social-accent: #c85886;
}

.site-footer .social-link--instagram {
  --social-bg-one: #d84d9b;
  --social-bg-two: #f08b5c;
  --social-accent: #c84a8d;
}

.site-footer .social-link--facebook {
  --social-bg-one: #1877f2;
  --social-bg-two: #0d5fc8;
  --social-accent: #1468d2;
}

.site-footer .social-link--youtube {
  --social-bg-one: #ff4242;
  --social-bg-two: #d90000;
  --social-accent: #d90000;
}

.site-footer .social-link--tiktok,
.site-footer .social-link--x,
.site-footer .social-link--threads {
  --social-bg-one: #353535;
  --social-bg-two: #111;
  --social-accent: #222;
}

.site-footer .social-link--linkedin {
  --social-bg-one: #0a66c2;
  --social-bg-two: #07569f;
  --social-accent: #07569f;
}

.site-footer .social-link--whatsapp {
  --social-bg-one: #35bf61;
  --social-bg-two: #128c7e;
  --social-accent: #188b63;
}

.site-footer .social-link--telegram {
  --social-bg-one: #39aee8;
  --social-bg-two: #168ac2;
  --social-accent: #168ac2;
}

.footer-links {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.footer-nav {
  min-width: 0;
  padding: 27px 29px 29px;
  border: 1px solid rgba(68, 68, 68, .07);
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 28px rgba(68, 68, 68, .04);
}

.site-footer .footer-nav h3 {
  margin: 0 0 17px;
  color: #438fbc;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-footer .footer-nav--information h3 {
  color: #c85886;
}

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

.site-footer .footer-menu li {
  margin: 0;
}

.site-footer .footer-menu a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 5px 0;
  color: #55585a;
  font-size: .92rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color .16s ease, transform .16s ease;
}

.site-footer .footer-menu a:hover,
.site-footer .footer-menu a:focus-visible {
  color: #347da8;
  text-decoration: none;
  transform: translateX(3px);
}

.site-footer .footer-menu .current-menu-item > a {
  color: var(--isp-ink);
  font-weight: 850;
  text-decoration: none;
}

.site-footer .footer-menu--information {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.footer-bottom {
  border-top: 1px solid rgba(68, 68, 68, .08);
  background: rgba(255, 255, 255, .9);
}

.site-footer .footer-bottom__inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-block: 16px;
}

.site-footer .footer-copyright {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  color: #626567;
  font-size: .86rem;
  line-height: 1.5;
  text-align: center;
}

.site-footer .back-to-top {
  position: static;
  grid-column: 3;
  justify-self: end;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(115, 192, 238, .25);
  border-radius: 15px;
  background: #dff3fd;
  color: var(--isp-ink) !important;
  box-shadow: 0 9px 22px rgba(68, 68, 68, .055);
  text-decoration: none;
  transform: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.site-footer .back-to-top svg {
  width: 20px;
  height: 20px;
}

.site-footer .back-to-top:hover,
.site-footer .back-to-top:focus-visible {
  background: var(--isp-primary, #73c0ee);
  box-shadow: 0 12px 27px rgba(115, 192, 238, .22);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand p {
    max-width: 620px;
  }

  .footer-links {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  }
}

@media (max-width: 700px) {
  .footer-main {
    padding-block: 50px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-nav {
    padding: 24px;
    border-radius: 20px;
  }

  .site-footer .footer-menu--information {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .footer-logo .custom-logo {
    max-width: 190px;
    max-height: 64px;
  }

  .footer-social {
    gap: 8px;
  }

  .site-footer .social-link {
    min-height: 50px;
    padding: 6px 13px 6px 7px;
    gap: 8px;
    font-size: .84rem;
  }

  .site-footer .social-link__icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .site-footer .footer-menu--information {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-bottom__inner {
    min-height: 116px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding-block: 18px;
  }

  .site-footer .footer-copyright,
  .site-footer .back-to-top {
    grid-column: 1;
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .social-link,
  .site-footer .social-link__arrow,
  .site-footer .footer-menu a,
  .site-footer .back-to-top {
    transition: none;
  }
}
