/*
 * Site footer — matches www.mailercloud.com (mailercloud-nuxt4
 * components/QuickLinks.vue + components/AppFooter.vue). Sizes, colours and
 * breakpoints are taken from the rendered marketing-site footer
 * (Bootstrap md = 768px, lg = 992px), so the two read as one site.
 * Markup: footer.php. Behaviour: js/blog-footer.js.
 * Versioned by filemtime in functions.php (style.css is linked unversioned).
 */

.mcf-quick,
.mcf-footer {
  font-family: 'NeutrifPro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}
.mcf-quick *,
.mcf-footer * {
  box-sizing: border-box;
  font-family: inherit; /* the blog sets Inter on links/headings globally */
}
.mcf-quick ul,
.mcf-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- Quick links band (Help center / support / demo / blogs) ----------- */

.mcf-quick {
  position: relative;
  z-index: 950; /* same layer as the footer: above the post's sticky sidebar CTA */
  width: 100%;
  background: #062440;
  padding: 80px 12px;
  /* old theme gave the band a top margin; the website's divider sits on top */
  margin-top: 33px;
}
.mcf-quick::before {
  content: '';
  position: absolute;
  top: -33px;
  left: 0;
  right: 0;
  height: 33px;
  background: url(../images/site-footer/bg-hash-divider.svg) center bottom / cover no-repeat;
}
.mcf-quick__list {
  text-align: center;
}
.mcf-quick__list li {
  display: inline-block;
  margin-right: 8px;
  padding-right: 60px;
}
.mcf-quick__list li:last-child {
  padding-right: 0;
  margin-right: 0;
}
.mcf-quick__list a {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  font-size: 24px;
  line-height: 36px;
  text-decoration: none;
}
.mcf-quick__list a:hover span {
  text-decoration: underline;
}
.mcf-quick__list img {
  width: 24px;
  height: 24px;
}

/* ---- Footer ------------------------------------------------------------ */

/* style.css styles the bare `footer` element for the old footer (white wave
   background, inline-block); reset it for this one. */
footer.mcf-footer {
  position: relative;
  z-index: 950;
  display: block;
  width: 100%;
  padding-top: 65px;
  background: #011834;
  overflow: hidden;
  color: #97a5b2;
}
.mcf-particle {
  position: absolute;
  pointer-events: none;
}
.mcf-particle img {
  display: block;
}
.mcf-particle--1 {
  left: 0;
  bottom: 0;
}
.mcf-particle--2 {
  right: 0;
  top: -1px;
}

.mcf-container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Link columns: Compare (1/3) | Company · Key features · Resources ·
   Compliance (2/3, 4 across from 992px, 2 across below). Under 768px
   Compare goes full width and the rest form a 2 × 2 grid. */
.mcf-links {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 24px;
}
.mcf-links__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}
.mcf-links__compare,
.mcf-links__grid > div {
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .mcf-links {
    grid-template-columns: 1fr 2fr;
  }
  .mcf-links__compare {
    padding-right: 24px;
  }
}
@media (min-width: 992px) {
  .mcf-links__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mcf-heading {
  margin: 0 0 25px;
  padding: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: normal;
}
.mcf-list li {
  margin: 0 0 20px;
  padding: 0;
  font-size: 15px;
  line-height: 24px;
}
.mcf-list a {
  color: #97a5b2;
  text-decoration: none;
}
.mcf-list a:hover {
  color: #97a5b2;
  text-decoration: underline;
}
/* "new" sparkle after Integrations, as on the website */
.mcf-new a {
  position: relative;
}
.mcf-new a::after {
  content: '';
  position: absolute;
  right: -12px;
  top: -2px;
  width: 11px;
  height: 14px;
  background: url(../images/site-footer/highlights-after.svg) no-repeat;
}

/* ---- Follow us + trust badges + back to top ---------------------------- */

.mcf-social-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
  padding-right: 80px; /* room for the back-to-top pill */
}
.mcf-social__list {
  display: flex;
  gap: 8px;
  margin-bottom: 16px !important;
}
.mcf-social__list a {
  display: block;
  line-height: 0;
}
.mcf-social__list img {
  width: 24px;
  height: 24px;
}
.mcf-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}
.mcf-badges img {
  display: block;
  height: 76px;
  width: auto;
  max-width: 100%;
}
.mcf-scroll-top {
  position: absolute;
  right: 15px;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62.5px;
  height: 100px;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}
.mcf-scroll-top::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 64px;
  border-radius: 50px;
  background: #fff;
  box-shadow: 0 3.75px 7.5px rgba(151, 165, 178, 0.25);
}
.mcf-scroll-top img {
  position: relative;
  z-index: 1;
}
.mcf-bounce {
  animation: mcf-bounce 2s infinite;
}
@keyframes mcf-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .mcf-bounce { animation: none; }
}
@media (max-width: 767.98px) {
  /* Stack: Follow us, then the badges one under the other (left aligned). */
  .mcf-social-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .mcf-badges {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Newsletter -------------------------------------------------------- */

.mcf-newsletter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 24px;
  align-items: center;
  margin: 8px -12px 25px;
  padding: 30px 12px 54px;
  border-top: 1px solid rgba(151, 165, 178, 0.25);
  border-bottom: 1px solid rgba(151, 165, 178, 0.25);
}
@media (min-width: 768px) {
  .mcf-newsletter {
    grid-template-columns: 1fr 1fr;
  }
  .mcf-newsletter__text {
    padding-right: 24px;
  }
}
.mcf-newsletter h4 {
  margin: 0 0 8px;
  padding: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
}
.mcf-newsletter__text p {
  margin: 0;
  padding: 0;
  color: #97a5b2;
  font-size: 13px;
  line-height: 19.5px;
}
.mcf-newsletter__form {
  display: flex;
  gap: 24px;
}
.mcf-newsletter__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 55px;
  padding: 13.6px 16px;
  border: 1px solid #007bff;
  border-radius: 5px;
  background: #011834;
  color: #fff;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.mcf-newsletter__input::placeholder {
  color: #97a5b2;
}
.mcf-newsletter__input:focus {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.35);
}
.mcf-newsletter__input.is-invalid {
  border-color: #dc3545;
}
.mcf-newsletter__btn {
  flex: 0 0 auto;
  height: 55.5px;
  padding: 14px 32px;
  border: 1px solid #0d6efd;
  border-radius: 5px;
  background: #0d6efd;
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}
.mcf-newsletter__btn:hover {
  background: #0b5ed7;
  border-color: #0b5ed7;
}
.mcf-newsletter__btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.mcf-newsletter__error {
  margin: 8px 0 0;
  color: #ff6b6b;
  font-size: 13px;
}
.mcf-newsletter__success {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 40px 16px 16px;
  border-radius: 8px;
  background: #fff;
  color: #020a13;
  font-size: 14px;
  line-height: 20px;
}
.mcf-newsletter__form[hidden],
.mcf-newsletter__success[hidden],
.mcf-newsletter__error[hidden] {
  display: none;
}
.mcf-newsletter__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: none;
  color: #4e5e70;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.mcf-copy {
  margin: 0;
  padding: 0 0 48px;
  text-align: center;
  color: #97a5b2;
  font-size: 13px;
  line-height: 19.5px;
}

/* ---- Phones ------------------------------------------------------------ */

@media (max-width: 767.98px) {
  .mcf-quick {
    padding: 15px 12px;
  }
  .mcf-quick__list {
    text-align: left;
  }
  .mcf-quick__list li {
    display: block;
    margin: 0 0 24px;
    padding-right: 0;
  }
  .mcf-quick__list li:last-child {
    margin-bottom: 0;
  }
  .mcf-quick__list a {
    font-size: 22px;
    line-height: 33px;
  }
}
