/* V14 · Footer social/newsletter redesign based on the supplied reference */
.footer.footer-wireframe {
  --footer-accent: var(--pink-strong);
  --footer-muted-accent: var(--pink);
  position: relative;
}

.footer-wireframe-grid {
  min-height: 236px;
  padding-block: 42px 38px;
  grid-template-columns:
    108px
    minmax(132px, .72fr)
    minmax(105px, .58fr)
    12px
    minmax(248px, 1.18fr)
    12px
    minmax(310px, 1.45fr);
  gap: clamp(20px, 2.45vw, 42px);
}

.footer-separator {
  width: 10px;
  height: 148px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--footer-accent), var(--footer-muted-accent));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    0 8px 24px rgba(0, 0, 0, .08);
  transform: none;
}

.footer-social {
  min-height: 148px;
  align-self: center;
  align-content: center !important;
  justify-items: center;
  padding-inline: 8px;
}

.footer-wireframe .footer-social h2 {
  margin-bottom: 18px;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1;
  letter-spacing: .01em;
}

.footer-social-links {
  width: 100%;
  justify-content: space-evenly;
  gap: clamp(14px, 1.8vw, 26px);
  margin-top: 0;
}

.footer-social-links a {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

.footer-newsletter {
  min-height: 148px;
  align-self: center;
  align-content: center !important;
  justify-content: stretch;
  gap: 7px !important;
  padding-inline: 6px;
}

.newsletter-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 16px;
  margin-bottom: 1px;
}

.newsletter-dots span {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
  background: var(--footer-accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.footer-wireframe .footer-newsletter h2 {
  margin: 0 0 3px;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.05;
  font-weight: 400;
}

.newsletter-form {
  position: relative;
  display: block;
  width: 100%;
}

.newsletter-form label {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
  color: #fff;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1;
  font-weight: 800;
  pointer-events: none;
}

.newsletter-form input {
  height: 58px;
  padding: 9px 20px 9px 91px;
  border-width: 4px;
  border-color: var(--footer-accent);
  background: rgba(255, 255, 255, .015);
  transition: background-color .2s ease, box-shadow .2s ease;
}

.newsletter-form input:hover {
  background: rgba(255, 255, 255, .035);
}

.newsletter-form input:focus {
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 0 0 4px rgba(242, 197, 206, .2);
}

.newsletter-status {
  min-height: 13px;
  margin-top: 5px;
}

@media (max-width: 1100px) and (min-width: 981px) {
  .footer-wireframe-grid {
    width: min(100% - 34px, 1040px);
    grid-template-columns: 92px 124px 96px 8px minmax(210px, 1fr) 8px minmax(270px, 1.25fr);
    gap: 18px;
  }

  .footer-separator {
    width: 8px;
  }
}

@media (max-width: 980px) {
  .footer-wireframe-grid {
    min-height: 0;
    grid-template-columns: 104px minmax(0, 1fr) 10px minmax(290px, 1.15fr);
    grid-template-areas:
      "logo legal legal support"
      "sep-primary sep-primary sep-primary sep-primary"
      "social social sep-secondary newsletter";
    align-items: start;
    gap: 28px 30px;
  }

  .footer-branding-wireframe { grid-area: logo; }
  .footer-legal { grid-area: legal; }
  .footer-support { grid-area: support; }
  .footer-social { grid-area: social; }
  .footer-newsletter { grid-area: newsletter; }
  .footer-separator-primary { grid-area: sep-primary; }
  .footer-separator-secondary { grid-area: sep-secondary; }

  .footer-separator {
    display: block;
  }

  .footer-separator-primary {
    width: 100%;
    height: 8px;
    justify-self: stretch;
  }

  .footer-separator-secondary {
    width: 8px;
    height: 138px;
  }

  .footer-social,
  .footer-newsletter {
    min-height: 138px;
  }

  .footer-wireframe .footer-social h2 {
    width: 100%;
    text-align: center;
  }

  .footer-social-links {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .footer-wireframe-grid {
    width: min(100% - 30px, 560px);
    padding-block: 34px;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas:
      "logo social"
      "legal support"
      "sep-primary sep-primary"
      "newsletter newsletter";
    gap: 28px 26px;
  }

  .footer-separator-primary {
    display: block;
    height: 8px;
  }

  .footer-separator-secondary {
    display: none;
  }

  .footer-social {
    min-height: 0;
    align-self: start;
    padding-inline: 0;
  }

  .footer-wireframe .footer-social h2 {
    margin-bottom: 14px;
    text-align: left;
  }

  .footer-social-links {
    justify-content: flex-start;
  }

  .footer-newsletter {
    min-height: 0;
    padding-inline: 0;
  }

  .newsletter-dots span {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  .newsletter-form input {
    height: 54px;
  }
}

@media (max-width: 420px) {
  .footer-wireframe-grid {
    width: 100%;
    padding: 30px 18px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "social"
      "legal"
      "support"
      "sep-primary"
      "newsletter";
    gap: 24px;
  }

  .footer-branding-wireframe img {
    width: 88px;
  }

  .footer-social-links {
    justify-content: flex-start;
    gap: 16px;
  }

  .footer-separator-primary {
    height: 7px;
  }

  .newsletter-dots {
    margin-bottom: 2px;
  }

  .newsletter-form label {
    left: 18px;
  }

  .newsletter-form input {
    padding-left: 82px;
  }
}

/* V18 · Transparent monochrome social icons */
.footer-social-links a {
  background: transparent;
  overflow: visible;
  border-radius: 50%;
  box-shadow: none;
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  box-shadow: none;
}

.footer-social-links img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, .12));
}

@media (max-width: 420px) {
  .footer-social-links img {
    width: 29px;
    height: 29px;
  }
}
