/* =============================================================
   Newsletter signup — shared footer call-to-action
   ============================================================= */

.jd-newsletter {
  width: min(100%, 30.75rem);
  margin: 0 auto clamp(4rem, 7vw, 5rem);
  scroll-margin-top: 140px;
}

.jd-newsletter__inner {
  width: 100%;
  margin-inline: auto;
}

.jd-newsletter__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.7rem);
  font-weight: var(--weight-light);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.jd-newsletter__intro {
  max-width: none;
  margin: 1rem auto;
  color: rgba(245, 245, 240, 0.92);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.5;
}

.jd-newsletter__form {
  width: 100%;
  margin-inline: auto;
}

.jd-newsletter__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
}

.site-footer .jd-newsletter__email {
  width: 100%;
  min-width: 0;
  height: 3rem;
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid rgba(245, 245, 240, 0.36) !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  outline: none;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  caret-color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-footer .jd-newsletter__email::placeholder {
  color: rgba(245, 245, 240, 0.48);
  opacity: 1;
}

.site-footer .jd-newsletter__email:hover {
  border-color: rgba(245, 245, 240, 0.6) !important;
}

.site-footer .jd-newsletter__email:focus {
  border-color: #fff !important;
  box-shadow: inset 0 0 0 1px #fff !important;
}

.site-footer .jd-newsletter__submit {
  min-width: 0;
  height: 3rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--color-accent) !important;
  color: var(--color-deep-sky) !important;
  font-family: var(--font-ui) !important;
  font-size: 0.8125rem !important;
  font-weight: var(--weight-regular) !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.site-footer .jd-newsletter__submit:hover,
.site-footer .jd-newsletter__submit:focus-visible {
  background: #fff !important;
  color: var(--color-deep-sky) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.site-footer .jd-newsletter__email:disabled,
.site-footer .jd-newsletter__submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.jd-newsletter__privacy {
  max-width: none;
  margin: 1rem auto 0;
  color: rgba(245, 245, 240, 0.54);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  line-height: 1.85;
}

.jd-newsletter__privacy a {
  color: rgba(245, 245, 240, 0.72) !important;
  text-decoration: underline;
  text-decoration-color: rgba(245, 245, 240, 0.38);
  text-underline-offset: 0.2em;
}

.jd-newsletter__privacy a:hover,
.jd-newsletter__privacy a:focus-visible {
  color: #fff !important;
  text-decoration-color: #fff;
}

.jd-newsletter__notice {
  width: 100%;
  max-width: none;
  margin: 0 auto 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(245, 245, 240, 0.25);
  color: rgba(245, 245, 240, 0.9);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  line-height: 1.5;
}

.jd-newsletter__notice--success {
  border-color: rgba(180, 214, 183, 0.48);
  background: rgba(180, 214, 183, 0.08);
}

.jd-newsletter__notice--error {
  border-color: rgba(223, 169, 155, 0.5);
  background: rgba(223, 169, 155, 0.08);
}

.jd-newsletter__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.has-reveal-motion .jd-newsletter {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  will-change: opacity, transform;
}

.has-reveal-motion .site-footer.is-revealed .jd-newsletter {
  animation: jd-rise-in 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (max-width: 600px) {
  .jd-newsletter {
    margin-bottom: 4rem;
  }

  .jd-newsletter__intro {
    margin-block: 1rem;
  }

  .site-footer .jd-newsletter__email {
    padding-inline: 0.875rem;
  }

  .jd-newsletter__privacy {
    margin-top: 1rem;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jd-newsletter {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
