.newsletter {
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.newsletter__card {
  position: relative;
  max-width: var(--container-max-width);
  margin: 0 auto;
  height: fit-content;
  border-radius: var(--radius-lg);
  padding: 4rem 4rem 12rem 4rem; /* 64px */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  overflow: hidden;
}

.newsletter__media {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.newsletter__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.newsletter__person-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.newsletter__person-img {
  position: absolute;
  width: 100%;
  height: 467%;
  top: -211%;
  left: 0;
  object-fit: cover;
}

.newsletter__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 27, 0.65);
  border-radius: var(--radius-lg);
}

.newsletter__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem; /* 8px */
  color: var(--color-white);
  max-width: 38%;
  text-align: left;
  height: fit-content;
}

.newsletter__title {
  font-size: var(--font-size-h2); /* 30px */
  font-weight: var(--font-weight-semibold);
  line-height: 1.167; /* 35px */
  color: var(--color-white);
  margin: 0;
}

.newsletter__subtitle {
  font-size: 0.9375rem; /* 15px */
  font-weight: var(--font-weight-medium);
  line-height: 1.75rem; /* 28px */
  color: var(--color-white);
}

/* ── Newsletter signup (right side) ── */
.newsletter__signup {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* 12px — space between label and form */
  flex: 0 1 38rem;
  max-width: 38rem;
  height: fit-content;
}

.newsletter__label {
  font-size: 1rem; /* 16px */
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
}

.newsletter__form {
  display: flex;
  align-items: stretch;
  gap: 0.75rem; /* 12px */
  width: 100%;
}

.newsletter__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.875rem 1.25rem; /* 14px 20px */
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md); /* 10px */
  background: rgba(4, 6, 27, 0.35);
  color: var(--color-white);
  font-size: 1rem; /* 16px */
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
}

.newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--color-white);
  background: rgba(4, 6, 27, 0.5);
}

.newsletter__submit {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ── Footer ── */
.footer {
  background: transparent;
  position: relative;
  z-index: 2;
  margin-top: -10rem; /* overlap newsletter bottom by wave height */
}

.footer__wave {
  height: 10rem; /* 160px — matches SVG viewBox */
  line-height: 0;
  overflow: visible;
  --footer-wave-back: var(--color-bg-footer-wave-back);
  --footer-wave-front: var(--color-bg-footer-wave-front);
}

.footer__wave-back {
  fill: var(--footer-wave-back);
}

.footer__wave-front {
  fill: var(--footer-wave-front);
}

.footer__wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footer__body {
  background: var(--color-bg-footer-wave-front);
  padding: 3rem 2.5rem 3.25rem; /* 48px top (after wave), 52px bottom */
}

.footer__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  gap: 1.25rem; /* 20px */
}

.footer__col {
  flex: 1 0 0;
  min-width: 0;
}

.footer__heading {
  font-size: 1rem; /* 16px */
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.5rem; /* 24px */
  margin-bottom: 0.8125rem; /* 13px — gap to first link */
}

.footer__heading--white {
  color: var(--color-white);
  margin-top: 1rem;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.footer__links a {
  text-decoration: none;
  font-size: 0.9375rem; /* 15px */
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  line-height: 1.75rem; /* 28px */
  transition: opacity 0.15s ease;
}

.footer__links a:hover {
  opacity: 0.7;
}

.footer__links--contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links--contact a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.625rem; /* 10px — space between icon and text */
}

.footer__links--contact i,
.footer__links--contact svg {
  width: 1rem;
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.footer__subheading {
  font-size: 0.9375rem; /* 15px */
  font-weight: var(--font-weight-bold);
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.75rem; /* 28px */
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.footer__address {
  font-size: 0.9375rem; /* 15px */
  font-weight: var(--font-weight-regular);
  font-style: normal;
  color: var(--color-white);
  line-height: 1.75rem; /* 28px */
  margin-bottom: 0;
}

.footer__hours {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
}

.footer__hours li {
  font-size: 0.9375rem; /* 15px */
  color: var(--color-white);
  line-height: 1.75rem; /* 28px */
  display: flex;
  gap: 0.375rem;
}

.footer__hours-day {
  font-weight: var(--font-weight-regular);
  min-width: 7rem;
}

.footer__hours-time {
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
}

.footer__logos {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* 12px */
  margin-top: 1.75rem;
}

.footer__logo {
  width: 2.5rem; /* 41px */
  height: 2.5rem; /* 33px */
  object-fit: contain;
  opacity: 0.6;
}

/* ── Footer Bottom Bar ── */
.footer__bottom {
  background-color: var(--color-bg-footer-wave-front);
  border-top: 1px solid hsla(0, 0%, 100%, 0.08);
  padding: 0 2.5rem;
}

.footer__bottom-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0; /* 12px */
  font-size: 0.8125rem; /* 13px */
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  line-height: 1.75rem;
}

.footer__bottom-inner a {
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.footer__bottom-inner a:hover {
  opacity: 0.7;
}

@media ( max-width: 70rem ) {
  .newsletter__card {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .newsletter__content,
  .newsletter__signup {
    flex-basis: 100%;
    max-width: 100%;
    width: 100%;
  }

  .footer__container {
    flex-wrap: wrap;
  }

  .footer__col {
    flex: 1 1 calc(50% - 0.625rem);
  }
}

@media ( max-width: 48rem ) {

  .newsletter__card {
    padding: 2rem 2rem 12rem 2rem;
    flex-wrap: wrap;
  }

  .newsletter__form {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter__submit {
    width: 100%;
  }

  .footer__wave {
    overflow: hidden;
  }

  .footer__wave svg {
    width: 300%;
    transform: translateX(-50%);
  }

  .footer__body {
    padding: 2rem 1.25rem 2.5rem;
  }
}

@media ( max-width: 40rem ) {
  .footer__col {
    flex: 1 1 100%;
  }
}

@media ( max-width: 30rem ) {
  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* ── Newsletter signup modal ── */
.nl-modal[hidden] {
  display: none;
}

.nl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.nl-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 27, 0.6);
}

.nl-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 37.5rem; /* 600px */
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.25);
}

.nl-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-heading);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nl-modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.nl-modal__title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-heading);
  line-height: var(--line-height-tight);
  margin: 0 0 1.5rem;
  padding-right: 2.5rem;
}

/* ── Newsletter modal form ── */
.nl-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nl-form__required {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin: 0;
}

.nl-form__asterisk {
  color: #c02b0a;
}

.nl-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nl-form__row {
  display: flex;
  gap: 1rem;
}

.nl-form__row .nl-form__field {
  flex: 1 1 0;
  min-width: 0;
}

.nl-form label,
.nl-form legend {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-heading);
  line-height: var(--line-height-normal);
}

.nl-form input[type="email"],
.nl-form input[type="text"] {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.7;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
}

.nl-form input[type="email"]:focus,
.nl-form input[type="text"]:focus {
  border-color: var(--color-primary-dark);
}

.nl-form__group {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nl-form__group legend {
  padding: 0;
  margin-bottom: 0.25rem;
}

.nl-form__check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.nl-form__check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin: 0;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  background: var(--color-bg-white);
  cursor: pointer;
}

.nl-form__check input[type="checkbox"]:checked {
  border-color: var(--color-primary-dark);
  background: var(--color-primary-dark);
}

.nl-form__check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 0.3125rem;
  top: 0.0625rem;
  width: 0.3125rem;
  height: 0.625rem;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.nl-form__gdpr {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.nl-form__gdpr p {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-light);
  line-height: 1.5;
}

.nl-form__gdpr-title {
  font-size: var(--font-size-base) !important;
  font-weight: var(--font-weight-bold) !important;
  color: var(--color-text-heading) !important;
}

.nl-form__submit {
  align-self: flex-start;
  margin-top: 0.5rem;
}

@media ( max-width: 30rem ) {
  .nl-modal__dialog {
    padding: 1.5rem;
  }

  .nl-form__row {
    flex-direction: column;
  }
}