/* =========================================================
   SECTION — Newsletter banner (docs/sections/newsletter.md)
   ========================================================= */

.newsletter {
  padding: 0;
  background: var(--color-white);
}

.newsletter__banner {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1198px;
  min-height: 360px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-primary);
  color: var(--color-white);
}
.newsletter__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.newsletter__banner::before {            /* soft blue fade on the left so white copy stays readable */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 60, 110, .35) 0%, rgba(8, 60, 110, .15) 45%, rgba(8, 60, 110, 0) 70%);
}

.newsletter__content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: 72px 64px;
}
.newsletter__title {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.newsletter__text {
  max-width: 590px;
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 28px;
}

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.newsletter__input {
  flex: 0 1 325px;
  min-width: 0;
  height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-dark);
  font: inherit;
  font-size: 16px;
}
.newsletter__input::placeholder { color: #6B7280; }
.newsletter__input:focus { outline: 2px solid var(--color-gold); outline-offset: 2px; }

/* "Submit" — 50px pill with a 44px white arrow circle */
.newsletter__submit {
  height: 50px;
  padding: 0 3px 0 24px;
  gap: 14px;
  font-size: 16px;
  font-weight: 500;
}
.newsletter__submit .icon-circle { width: 44px; height: 44px; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .newsletter__content { padding: 56px 40px; }
  .newsletter__title { font-size: 34px; line-height: 42px; }
  .newsletter__banner::before { background: linear-gradient(90deg, rgba(8, 60, 110, .55) 0%, rgba(8, 60, 110, .25) 60%, rgba(8, 60, 110, .1) 100%); }
}
@media (max-width: 575.98px) {
  .newsletter__banner { min-height: 0; border-radius: 18px; }
  .newsletter__bg { object-position: 75% center; }
  .newsletter__banner::before { background: rgba(8, 60, 110, .5); }
  .newsletter__content { padding: 40px 22px; }
  .newsletter__title { font-size: 28px; line-height: 34px; }
  .newsletter__text { font-size: 16px; line-height: 24px; }
  .newsletter__input { flex: 1 1 100%; }
  .newsletter__submit { width: 100%; justify-content: space-between; }
}

/* Inner pages (not home): the banner is the last section → room above it and before the footer.
   After a content section (which already has bottom padding) no extra top space. */
body:not(.page-home) .newsletter { padding: 70px 0 100px; }
body:not(.page-home) .content-section + .newsletter { padding-top: 0; }
@media (max-width: 767.98px) {
  body:not(.page-home) .newsletter { padding: 40px 0 60px; }
  body:not(.page-home) .content-section + .newsletter { padding-top: 0; }
}
