
/* Shared footer system: one footer for FSE and classic PHP templates. */
html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .wp-site-blocks {
  flex: 1 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .wp-site-blocks > main,
body > .wp-site-blocks > .osint4all-fse-main,
body > .site-header + .container,
body > .site-header + main,
body > .site-header + .section {
  flex: 1 0 auto;
}

.osint4all-unified-footer {
  padding: clamp(50px, 5.5vw, 78px) 0 34px;
  border-top: 1px solid rgba(173, 178, 182, 0.12);
  background:
    radial-gradient(circle at 82% 12%, rgba(200, 184, 141, 0.2), transparent 24rem),
    linear-gradient(180deg, rgba(4, 5, 9, 0.98), #03060b 72%);
}

.osint4all-footer-newsletter-section {
  margin-top: auto;
  padding: clamp(38px, 5vw, 72px) 0 clamp(30px, 4vw, 54px);
  border-top: 1px solid rgba(173, 178, 182, 0.1);
  background:
    radial-gradient(circle at 86% 0%, rgba(200, 184, 141, 0.16), transparent 20rem),
    linear-gradient(180deg, rgba(3, 6, 11, 0.99), rgba(5, 6, 11, 0.98));
}

.osint4all-unified-footer > * {
  padding-inline: 0;
}

.osint4all-unified-footer .site-footer-shell {
  display: grid;
  gap: clamp(26px, 3vw, 42px);
}

.osint4all-unified-footer .footer-brand {
  max-width: 58rem;
  margin-inline: auto;
  padding-top: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
}

.osint4all-unified-footer .footer-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 22px);
  overflow: visible;
}

.osint4all-unified-footer .footer-brand-symbol {
  width: clamp(58px, 5vw, 86px);
  height: auto;
  max-height: none;
  object-fit: contain;
}

.osint4all-unified-footer .footer-brand-wordmark {
  width: clamp(220px, 20vw, 360px);
  max-width: 58vw;
  height: auto;
  object-fit: contain;
}

.osint4all-unified-footer .footer-brand p {
  max-width: 52rem;
  margin: 0;
  color: rgba(216, 220, 223, 0.76);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.65;
}

.osint4all-unified-footer .footer-grid {
  width: min(100%, 1080px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 52px;
}

.osint4all-unified-footer .footer-grid h3 {
  margin: 0 0 15px;
  color: rgba(245, 246, 247, 0.94);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.2;
}

.osint4all-unified-footer .footer-menu {
  display: grid;
  gap: 10px;
  justify-content: start;
}

.osint4all-unified-footer .footer-menu a {
  color: rgba(216, 220, 223, 0.76);
  text-decoration: none;
}

.osint4all-unified-footer .footer-menu a:hover,
.osint4all-unified-footer .footer-menu a:focus-visible {
  color: #ffffff;
}

.osint4all-footer-newsletter-section .footer-newsletter.fse-footer-newsletter {
  width: min(100%, 1120px) !important;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(173, 178, 182, 0.14);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 0%, rgba(200, 184, 141, 0.2), transparent 16rem),
    linear-gradient(180deg, rgba(17, 18, 25, 0.94), rgba(7, 8, 13, 0.96));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.osint4all-footer-newsletter-section .footer-newsletter-copy {
  align-self: center;
}

.osint4all-footer-newsletter-section .footer-newsletter-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 1.7vw, 1.75rem);
}

.osint4all-footer-newsletter-section .footer-newsletter-copy p {
  max-width: 30rem;
  margin: 0;
  color: rgba(216, 220, 223, 0.76);
  line-height: 1.6;
}

.osint4all-footer-newsletter-section .footer-newsletter-form {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.osint4all-footer-newsletter-section .newsletter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr);
  gap: 12px;
  align-items: end;
}

.osint4all-footer-newsletter-section .newsletter-form > .osint4all-form-note,
.osint4all-footer-newsletter-section .newsletter-form > label:has(input[type="checkbox"]),
.osint4all-footer-newsletter-section .newsletter-form > button {
  grid-column: 1 / -1;
}

.osint4all-footer-newsletter-section .newsletter-form > .osint4all-form-note {
  padding: 11px 13px;
  border: 1px solid rgba(173, 178, 182, 0.12);
  border-radius: 14px;
  background: rgba(3, 6, 11, 0.38);
  color: rgba(216, 220, 223, 0.72);
  font-size: 0.86rem;
  line-height: 1.45;
}

.osint4all-footer-newsletter-section .newsletter-form > label {
  display: grid;
  gap: 7px;
  color: rgba(245, 246, 247, 0.9);
  font-size: 0.88rem;
}

.osint4all-footer-newsletter-section .newsletter-form input[type="email"],
.osint4all-footer-newsletter-section .newsletter-form select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
}

.osint4all-footer-newsletter-section .newsletter-form > label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 44rem;
  color: rgba(216, 220, 223, 0.82);
  line-height: 1.45;
}

.osint4all-footer-newsletter-section .newsletter-form input[type="checkbox"] {
  margin-top: 4px;
  flex: 0 0 auto;
}

.osint4all-footer-newsletter-section .newsletter-form > button {
  justify-self: start;
  min-width: 180px;
  min-height: 46px;
}

.osint4all-unified-footer .footer-meta {
  margin: 0;
  padding: 0;
  color: rgba(173, 178, 182, 0.7);
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .osint4all-unified-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .osint4all-footer-newsletter-section .footer-newsletter.fse-footer-newsletter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .osint4all-footer-newsletter-section {
    padding-block: 32px 28px;
  }

  .osint4all-unified-footer {
    padding-block: 42px 32px;
  }

  .osint4all-unified-footer .footer-brand {
    text-align: center;
    justify-items: center;
  }

  .osint4all-unified-footer .footer-brand-link {
    max-width: 100%;
  }

  .osint4all-unified-footer .footer-brand-symbol {
    width: 44px;
  }

  .osint4all-unified-footer .footer-brand-wordmark {
    width: min(190px, 58vw);
    max-width: 58vw;
  }

  .osint4all-unified-footer .footer-grid,
  .osint4all-footer-newsletter-section .newsletter-form {
    grid-template-columns: 1fr;
  }

  .osint4all-unified-footer .footer-grid {
    gap: 22px;
  }

  .osint4all-footer-newsletter-section .footer-newsletter.fse-footer-newsletter {
    border-radius: 22px;
  }

  .osint4all-footer-newsletter-section .newsletter-form > button {
    justify-self: stretch;
  }
}
