/*
 * 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;
  }
}


/* Cohesive footer refinement: one calm surface with clearer navigation. */
.site-footer {
  background:
    radial-gradient(circle at 8% 14%, rgba(115, 192, 238, .10), transparent 24%),
    radial-gradient(circle at 94% 82%, rgba(237, 115, 164, .075), transparent 23%),
    linear-gradient(180deg, #f6fbfe 0%, #f2f9fd 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 4px 0 auto;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent);
  pointer-events: none;
}

.footer-main {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 0;
  margin-block: clamp(42px, 5vw, 64px);
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid rgba(68, 68, 68, .075);
  border-radius: 30px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 20px 50px rgba(68, 68, 68, .065);
  backdrop-filter: blur(10px);
}

.footer-brand {
  padding-right: clamp(30px, 5vw, 64px);
}

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

.footer-logo .custom-logo {
  max-width: min(100%, 210px);
  max-height: 68px;
}

.footer-brand p {
  max-width: 430px;
  margin-bottom: 22px;
  color: #5e6264;
  font-size: .94rem;
  line-height: 1.68;
}

.site-footer .social-link {
  min-height: 48px;
  padding: 6px 14px 6px 7px;
  gap: 9px;
  box-shadow: 0 9px 22px rgba(68, 68, 68, .12);
}

.site-footer .social-link__icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  box-shadow: 0 3px 9px rgba(68, 68, 68, .12);
}

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

.footer-links {
  align-self: stretch;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: 0;
}

.footer-nav {
  padding: 5px clamp(24px, 3vw, 38px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-nav:first-child {
  padding-left: 0;
}

.footer-nav--information {
  border-left: 1px solid rgba(68, 68, 68, .09);
}

.site-footer .footer-nav h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  font-size: .75rem;
}

.site-footer .footer-nav h3::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #73c0ee;
  box-shadow: 0 0 0 5px rgba(115, 192, 238, .12);
}

.site-footer .footer-nav--information h3::before {
  background: #ed73a4;
  box-shadow: 0 0 0 5px rgba(237, 115, 164, .11);
}

.site-footer .footer-menu {
  row-gap: 2px;
}

.site-footer .footer-menu a {
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 10px;
  color: #55595b;
  font-size: .9rem;
  transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

.site-footer .footer-menu a::after {
  content: "→";
  margin-left: auto;
  padding-left: 10px;
  color: #438fbc;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .16s ease, transform .16s ease;
}

.site-footer .footer-menu a:hover,
.site-footer .footer-menu a:focus-visible {
  background: rgba(115, 192, 238, .11);
  color: #2f7197;
  transform: translateX(2px);
}

.site-footer .footer-menu a:hover::after,
.site-footer .footer-menu a:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.site-footer .footer-menu .current-menu-item > a {
  background: rgba(115, 192, 238, .11);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top-color: rgba(68, 68, 68, .07);
  background: rgba(255, 255, 255, .72);
}

.site-footer .footer-bottom__inner {
  min-height: 76px;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding-block: 14px;
}

.site-footer .footer-copyright {
  grid-column: 1;
  justify-self: start;
  text-align: left;
}

.site-footer .back-to-top {
  grid-column: 2;
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

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

  .footer-brand {
    padding: 0 0 30px;
    border-bottom: 1px solid rgba(68, 68, 68, .09);
  }

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

@media (max-width: 700px) {
  .footer-main {
    gap: 8px;
    margin-block: 30px;
    padding: 26px 22px;
    border-radius: 24px;
  }

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

  .footer-nav,
  .footer-nav:first-child {
    padding: 23px 0;
  }

  .footer-nav--information {
    border-top: 1px solid rgba(68, 68, 68, .09);
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .footer-main {
    margin-block: 24px;
    padding: 24px 18px;
    border-radius: 22px;
  }

  .footer-logo .custom-logo {
    max-width: 180px;
    max-height: 60px;
  }

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

  .site-footer .footer-bottom__inner {
    min-height: 76px;
    grid-template-columns: 1fr auto;
    justify-items: initial;
    gap: 14px;
    padding-block: 14px;
  }

  .site-footer .footer-copyright {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }

  .site-footer .back-to-top {
    grid-column: 2;
    justify-self: end;
  }
}


/* Footer navigation outlines and persistent page controls. */
.footer-links {
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
}

.site-footer .footer-menu {
  display: grid;
  gap: 6px;
}

.site-footer .footer-menu a {
  border: 1px solid rgba(68, 68, 68, .075);
  background: rgba(255, 255, 255, .42);
}

.site-footer .footer-menu a:hover,
.site-footer .footer-menu a:focus-visible {
  border-color: rgba(115, 192, 238, .26);
  background: rgba(115, 192, 238, .12);
}

.site-footer .footer-nav--information .footer-menu a:hover,
.site-footer .footer-nav--information .footer-menu a:focus-visible {
  border-color: rgba(237, 115, 164, .24);
  background: rgba(237, 115, 164, .09);
  color: #a94470;
}

.site-footer .footer-nav--information .footer-menu a::after {
  color: #b24d78;
}

.site-footer .footer-bottom__inner {
  width: min(calc(100% - 32px), var(--isp-container));
  margin-inline: auto;
}

@media (max-width: 700px) {
  .site-footer .footer-bottom__inner {
    width: min(calc(100% - 24px), var(--isp-container));
  }
}

@media (max-width: 420px) {
  .site-footer .footer-bottom__inner {
    width: min(calc(100% - 20px), var(--isp-container));
  }
}


/* Keep outlined navigation and copyright orderly on narrow screens. */
@media (max-width: 700px) {
  .footer-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer .footer-bottom__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .site-footer .footer-copyright {
    grid-column: 1;
    justify-self: center;
    width: 100%;
    text-align: center;
  }
}
