/* Simpl Fulfillment site footer. Self-contained — no Webflow dependencies. */

/*
 * Outer `.footer-section` div is preserved for legacy regex anchors
 * (blog-post-html, 404 injector). Strip the Webflow base/tablet/mobile
 * styles so the new <footer> below owns the full visual treatment.
 */
.footer-section {
  background: transparent;
  padding: 0;
  display: block;
}

/* The original Webflow up-arrow image and any other stale siblings are gone, but
   guard against future stragglers — only render the new footer inside this wrapper. */
.footer-section > :not(.sf-footer) {
  display: none;
}

.sf-footer {
  position: relative;
  background: #081f4d;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(0, 131, 255, .14), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(0, 112, 214, .12), transparent 55%);
  color: rgba(255, 255, 255, .82);
  font-family: Poppins, "Poppins-fallback", system-ui, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  padding: clamp(3rem, 6vw, 5rem) 0 1.75rem;
}

.sf-footer * {
  box-sizing: border-box;
}

.sf-footer__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sf-footer__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.sf-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.25rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

/* Brand column */

.sf-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 22rem;
}

.sf-footer__logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.sf-footer__logo img {
  display: block;
  width: 140px;
  height: auto;
}

.sf-footer__tagline {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}

.sf-footer__contact {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  font-style: normal;
}

.sf-footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: .9375rem;
  transition: color 120ms ease;
}

.sf-footer__contact-link:hover,
.sf-footer__contact-link:focus-visible {
  color: #5ab2ff;
}

.sf-footer__contact-link:focus-visible {
  outline: 2px solid #5ab2ff;
  outline-offset: 3px;
  border-radius: 2px;
}

.sf-footer__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #5ab2ff;
  flex-shrink: 0;
}

.sf-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: .8125rem 1.375rem;
  background: #0070d6;
  color: #fff;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: .5rem;
  margin-top: .25rem;
  transition: background-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.sf-footer__cta:hover,
.sf-footer__cta:focus-visible {
  background: #0083ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 131, 255, .35);
}

.sf-footer__cta:focus-visible {
  outline: 2px solid #5ab2ff;
  outline-offset: 2px;
}

/* Link columns */

.sf-footer__col {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  min-width: 0;
}

.sf-footer__heading {
  margin: 0;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}

.sf-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.sf-footer__list a {
  display: inline-block;
  padding: .125rem 0;
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.45;
  transition: color 120ms ease;
}

.sf-footer__list a:hover,
.sf-footer__list a:focus-visible {
  color: #fff;
}

.sf-footer__list a:focus-visible {
  outline: 2px solid #5ab2ff;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Bottom bar */

.sf-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .7);
}

.sf-footer__copyright {
  margin: 0;
  color: rgba(255, 255, 255, .7);
}

.sf-footer__legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}

.sf-footer__legal a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-weight: 500;
  transition: color 120ms ease;
}

.sf-footer__legal a:hover,
.sf-footer__legal a:focus-visible {
  color: #fff;
}

.sf-footer__legal a:focus-visible {
  outline: 2px solid #5ab2ff;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Back-to-top */

.sf-footer__top {
  position: absolute;
  top: -1.375rem;
  right: clamp(1.25rem, 4vw, 2.5rem);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0070d6;
  color: #fff;
  border: 2px solid #081f4d;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
  transition: background-color 120ms ease, transform 150ms ease;
}

.sf-footer__top:hover,
.sf-footer__top:focus-visible {
  background: #0083ff;
  transform: translateY(-2px);
}

.sf-footer__top:focus-visible {
  outline: 2px solid #5ab2ff;
  outline-offset: 3px;
}

.sf-footer__top-icon {
  display: inline-flex;
}

/* Tablet */

@media (max-width: 991px) {
  .sf-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .sf-footer__brand {
    grid-column: 1 / -1;
    max-width: 32rem;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .sf-footer {
    padding-top: clamp(2.5rem, 8vw, 3.5rem);
  }

  .sf-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .sf-footer__brand {
    gap: 1rem;
  }

  .sf-footer__cta {
    align-self: stretch;
  }

  .sf-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    padding-top: 1.25rem;
  }

  .sf-footer__top {
    right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-footer *,
  .sf-footer *::before,
  .sf-footer *::after {
    transition: none !important;
  }

  .sf-footer__top {
    transform: none !important;
  }
}
