/* WTE-style footer — BLTM tokens. Plain CSS port of WTE's Tailwind/BS5 footer (BLTM runs Bootstrap 3). */

@keyframes pulseVertical {
  0%,
  100% {
    transform: translateY(-2px);
  }

  50% {
    transform: translateY(2px);
  }
}

.animate-pulse-vertical {
  display: inline-block;
  animation: pulseVertical 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .animate-pulse-vertical {
    animation: none;
  }
}

/* ---------- Newsletter card (sits half over the footer) — BLTM yellow + dark text ---------- */

/* How far the card hangs down into the footer; the footer pads its top by the same amount */
:root {
  --nl-overlap: 140px;
}

.newsletter-footer-wrapper {
  position: relative;
  z-index: 2;
  margin-top: 72px;
  font-family: var(--font-family), sans-serif;
}

.newsletter-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.newsletter-card-over {
  color: var(--dark);
  border-radius: 20px;
  padding: 4rem 4.5rem 2.75rem;
  margin-bottom: calc(-1 * var(--nl-overlap));
  background: linear-gradient(235deg, #fcc93f 0%, var(--primary) 55%, #f0a800 100%);
  box-shadow: 0 24px 48px rgba(247, 183, 23, 0.25);
}

.newsletter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.newsletter-intro {
  flex: 0 1 46%;
}

.newsletter-card-over h2 {
  font-family: var(--font-family), sans-serif;
  font-weight: 600;
  font-size: 44px;
  line-height: 110%;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin: 0 0 16px;
}

.newsletter-card-over .newsletter-intro p {
  font-size: 18px;
  line-height: 155%;
  color: rgba(6, 0, 15, 0.72);
  margin: 0;
}

.newsletter-form {
  flex: 0 1 52%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.newsletter-fields {
  flex: 1 1 auto;
  display: flex;
  min-width: 0;
}

.newsletter-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  margin: 0;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.6);
  color: var(--dark);
  transition: background 0.2s ease;
}

.newsletter-email {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 12px 0 0 12px;
}

/* the thin divider between email and profile, as on WTE */
.newsletter-email::after {
  content: "";
  position: absolute;
  right: 0;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: rgba(6, 0, 15, 0.18);
}

.newsletter-profile {
  flex: 0 0 190px;
  border-radius: 0 12px 12px 0;
}

.newsletter-field > i {
  position: absolute;
  pointer-events: none;
  color: rgba(6, 0, 15, 0.6);
}

.newsletter-email > i {
  left: 18px;
  font-size: 16px;
}

.newsletter-profile > i {
  right: 16px;
  font-size: 18px;
}

.newsletter-field input,
.newsletter-field select {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: var(--dark);
  font-family: inherit;
  font-size: 15px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.newsletter-field input {
  padding: 0 16px 0 46px;
}

.newsletter-field select {
  padding: 0 40px 0 18px;
  cursor: pointer;
}

.newsletter-field input::placeholder {
  color: rgba(6, 0, 15, 0.6);
}

.newsletter-field select:invalid {
  color: rgba(6, 0, 15, 0.6);
}

.newsletter-field select option {
  color: var(--dark);
}

.newsletter-field:focus-within {
  background: var(--white);
}


.newsletter-btn {
  flex: 0 0 auto;
  height: 56px;
  padding: 0 32px;
  border: none;
  border-radius: 12px;
  background: var(--dark);
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-btn:hover,
.newsletter-btn:focus {
  background: #00407b;
}

.newsletter-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.newsletter-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.newsletter-message {
  flex: 0 0 100%;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #0f5132;
}

.newsletter-message.is-error {
  color: #9b0f2e;
}




.newsletter-divider {
  border: none;
  height: 2px;
  background: rgba(6, 0, 15, 0.12);
  margin: 2.75rem 0 1.75rem;
}

.newsletter-follow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.newsletter-follow span {
  font-size: 20px;
  font-weight: 600;
  line-height: 120%;
  letter-spacing: -0.03em;
}

.newsletter-social {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.newsletter-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--dark);
  border-radius: 10px;
  color: var(--dark);
  font-size: 17px;
  text-decoration: none;
  transition: var(--transition);
}

.newsletter-social a:hover,
.newsletter-social a:focus,
.newsletter-social a:hover i.fa {
  background: var(--dark);
  color: var(--primary);
}

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

footer.otm-footer {
  background: var(--footer-bg);
  color: #8f8fa6;
  margin: 0;
  padding: calc(var(--nl-overlap) + 56px) 0 28px;
  font-family: var(--font-family), sans-serif;
  position: relative;
  z-index: 1;
}

.otm-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
}

.otm-footer-grid {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: 32px;
  padding-bottom: 8px;
}

.otm-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.otm-footer .footer-heading {
  font-family: var(--font-family), sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1.5rem;
}

.otm-footer .footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.otm-footer .footer-link-list li {
  margin-bottom: 0.9rem;
  padding: 0;
}

.otm-footer .footer-link-list a,
.otm-footer .footer-link,
.otm-footer .footer-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 144%;
  letter-spacing: -0.02em;
  color: var(--surface);
  text-decoration: none;
}

.otm-footer .footer-text {
  line-height: 180%;
  margin: 0 0 12px;
}

.otm-footer .footer-text a {
  color: #d9d9d9;
  text-decoration: none;
}

.otm-footer .footer-label {
  text-transform: uppercase;
}

.otm-footer .footer-link-underline {
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 12px;
}

.otm-footer .footer-link-list a:hover,
.otm-footer .footer-link-list a:focus,
.otm-footer .footer-link:hover,
.otm-footer .footer-link:focus,
.otm-footer .footer-text a:hover,
.otm-footer .footer-text a:focus {
  color: var(--primary);
  text-decoration: underline;
}

.otm-footer .footer-link-list a[aria-current="page"] {
  color: var(--primary);
}

.otm-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 2px solid rgba(217, 217, 217, 0.16);
  padding-top: 2rem;
  margin-top: 1rem;
}

.otm-footer .privacyFooter,
.otm-footer .scrollToTopBtn {
  color: var(--white);
  font-size: 14px;
  line-height: 144%;
  letter-spacing: -0.02em;
}

.otm-footer .privacyFooter a {
  color: var(--white);
  text-decoration: none;
}

.otm-footer .privacyFooter a:hover,
.otm-footer .privacyFooter a:focus {
  color: var(--primary);
}

.otm-footer .scrollToTopBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.otm-footer .scrollToTopBtn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.otm-footer .scrollToTopBtn:hover,
.otm-footer .scrollToTopBtn:focus {
  color: var(--primary);
}

/* Tablet: quick links + location side by side, contact below */
@media (max-width: 991.98px) {
  .newsletter-card-over {
    padding: 3rem 2.5rem 2.25rem;
  }

  .newsletter-card-over h2 {
    font-size: 38px;
  }

  .newsletter-top {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .newsletter-intro,
  .newsletter-form {
    flex-basis: auto;
  }

  .otm-footer-inner {
    padding: 0 24px;
  }

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

  .otm-footer-grid > .otm-footer-col:last-child {
    grid-column: 1 / -1;
  }
}

/* Mobile: single column, bottom bar stacks */
@media (max-width: 767.98px) {
  :root {
    --nl-overlap: 100px;
  }

  .newsletter-footer-wrapper {
    margin-top: 40px;
  }

  .newsletter-container {
    padding: 0 12px;
  }

  .newsletter-card-over {
    padding: 2.25rem 1.25rem 1.75rem;
    border-radius: 16px;
  }

  .newsletter-card-over h2 {
    font-size: 30px;
    line-height: 115%;
  }

  .newsletter-card-over .newsletter-intro p {
    font-size: 16px;
  }

  .newsletter-divider {
    margin: 2rem 0 1.25rem;
  }

  .newsletter-form,
  .newsletter-fields {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-fields {
    gap: 10px;
  }

  .newsletter-email,
  .newsletter-profile {
    flex: 0 0 52px;
    border-radius: 12px;
  }

  .newsletter-email::after {
    display: none;
  }

  .newsletter-btn {
    width: 100%;
  }

  .newsletter-follow {
    flex-direction: column;
    align-items: flex-start;
  }

  footer.otm-footer {
    padding-bottom: 20px;
  }

  .otm-footer-inner {
    padding: 0 16px;
  }

  .otm-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .otm-footer .footer-heading {
    margin-bottom: 1.2rem;
  }

  .otm-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.9rem;
  }

  .otm-footer .privacyFooter {
    line-height: 200%;
  }
}

@media (min-width: 1900px) {
  .otm-footer .footer-link-list a,
  .otm-footer .footer-link,
  .otm-footer .footer-text {
    font-size: 18px;
  }

  .otm-footer .footer-heading {
    font-size: 20px;
  }

  .otm-footer .privacyFooter,
  .otm-footer .scrollToTopBtn {
    font-size: 16px;
  }

  .newsletter-card-over h2 {
    font-size: 50px;
  }

  .newsletter-card-over .newsletter-intro p,
  .newsletter-follow span {
    font-size: 21px;
  }
}
