/* APIIP footer v2: newsletter band + wave + footer grid. Matches style.css tokens. */

.apiip-newsletter {
  position: relative;
  background: #f4f7fa;
  color: #00053c;
  font-family: 'Poppins', sans-serif;
  padding: 80px 15px 0;
  text-align: center;
  overflow: hidden;
}
.apiip-newsletter__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.apiip-newsletter__eyebrow {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c24300; /* 4.77:1 on the band; #fe5900 is only 2.94:1 */
  font-weight: 600;
}
.apiip-newsletter__title {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  color: #00053c;
}
.apiip-newsletter__lead {
  margin: 0;
  font-size: 15px;
  line-height: 25px;
  color: rgba(0, 5, 60, 0.72);
}
.apiip-newsletter__form {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 4px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 5, 60, 0.08);
}
.apiip-newsletter__form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  border-radius: 4px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  color: #00053c;
  background: #fff;
}
.apiip-newsletter__form input:focus {
  outline: 2px solid #fe5900;
  outline-offset: 1px;
}
.apiip-newsletter__form button {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: #fe5900;
  color: #00053c; /* 6.11:1 on the orange; white is only 3.16:1 */
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.apiip-newsletter__form button:hover,
.apiip-newsletter__form button:focus { background: #d94c00; }
.apiip-newsletter__note {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: rgba(0, 5, 60, 0.65); /* 5.78:1; 0.55 is only 4.09:1 */
}
.apiip-newsletter__note a { color: #c24300; text-decoration: underline; }
.apiip-newsletter__status {
  margin: 0;
  min-height: 20px;
  font-size: 13px;
  line-height: 20px;
}
.apiip-newsletter__status.is-ok { color: #1d6b3f; }
.apiip-newsletter__status.is-error { color: #b3261e; }
.apiip-newsletter__wave {
  display: block;
  width: 100%;
  height: 90px;
  margin-top: 30px;
  overflow: visible;
}

.apiip-footer {
  background: #1f2546;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 26px;
  padding: 64px 15px 56px;
}
.apiip-footer p,
.apiip-footer li,
.apiip-footer span:not([class]) { color: #e8eaf2; }
.apiip-footer a { color: #e8eaf2; text-decoration: none; transition: color 0.2s; }
.apiip-footer a:hover,
.apiip-footer a:focus { color: #ffb078; }
.apiip-footer ul { list-style: none; margin: 0; padding: 0; }
.apiip-footer__grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 48px;
}
.apiip-footer h5 {
  margin: 0 0 22px;
  color: #fe5900;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
}
.apiip-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.apiip-footer__brand img { display: block; width: 200px; height: auto; }
.apiip-footer__address { margin: 0; max-width: 380px; color: #e8eaf2; line-height: 26px; }
.apiip-footer__social { display: flex; gap: 10px; }
.apiip-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border-radius: 100px;
  background: #fe5900;
  color: #fff;
  font-size: 14px;
}
.apiip-footer__social a:hover,
.apiip-footer__social a:focus { background: #ff7a33; color: #fff; }
.apiip-footer__contact { display: flex; flex-direction: column; gap: 18px; }
.apiip-footer__contact li { display: flex; gap: 14px; align-items: flex-start; }
.apiip-footer__contact li > i { font-size: 22px; line-height: 26px; color: #fe5900; flex-shrink: 0; }
.apiip-footer__contact li > div { display: flex; flex-direction: column; }
.apiip-footer__contact li > div a,
.apiip-footer .apiip-footer__contact li > div span:not(.apiip-footer__label) { color: #fff; font-size: 15px; line-height: 24px; }
.apiip-footer .apiip-footer__label {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a8aaba; /* 6.46:1 on the navy */
}
.apiip-footer__links { display: flex; flex-direction: column; gap: 12px; }
.apiip-footer__links a { display: flex; gap: 12px; align-items: baseline; }
.apiip-footer__links a::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #fe5900;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

/* GIGW bar: same navy family as the footer */
.gigw-footer-bar { background: #262c52; padding-top: 18px; }
.gigw-footer-links-row { border-bottom: 0; padding-bottom: 18px; max-width: 1140px; }
.gigw-compliance-bar { background: #1f2546; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 14px 15px; }

@media (max-width: 991px) {
  .apiip-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .apiip-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .apiip-newsletter { padding-top: 56px; }
  .apiip-newsletter__title { font-size: 30px; }
  .apiip-newsletter__form { flex-direction: column; background: transparent; box-shadow: none; padding: 0; gap: 10px; }
  .apiip-newsletter__form input { border: 1px solid #d7dce6; }
  .apiip-newsletter__wave { height: 48px; }
  .apiip-footer { padding: 40px 20px 32px; }
  .apiip-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .apiip-footer__brand img { width: 170px; }
  .apiip-footer__social a { width: 44px; height: 44px; }
  .apiip-footer__links li a { min-height: 44px; align-items: center; }
  .apiip-footer__links a::before { top: 0; }
}
