/* =====================================================================
   Site footer (includes/footer.php). Every class is prefixed "sf-" so
   page stylesheets cannot clash with it.
   ===================================================================== */
.site-footer {
  --sf-navy: #061a45;
  --sf-navy-2: #082256;
  --sf-text: #c9d6ee;
  --sf-white: #ffffff;
  background: linear-gradient(180deg, var(--sf-navy-2) 0%, var(--sf-navy) 100%);
  color: var(--sf-text);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  line-height: 1.6;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 0 !important; /* pages with an old generic "footer" rule must not add padding */
  text-align: left;
}
/* dotted world-map texture on the right */
.site-footer::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 0;
  width: 520px;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1.2px, transparent 1.3px);
  background-size: 11px 11px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 60% 45%, #000 40%, transparent 72%);
          mask-image: radial-gradient(ellipse 60% 55% at 60% 45%, #000 40%, transparent 72%);
  pointer-events: none;
}
.site-footer a { color: var(--sf-text); text-decoration: none; }
.site-footer a:hover { color: var(--sf-white); }
.site-footer a:focus-visible { outline: 2px solid #8cb8ff; outline-offset: 3px; border-radius: 2px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }

.sf-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.sf-logo img {
  height: 58px;
  width: auto;
  /* logo artwork is dark blue; give it a white chip so it reads on navy */
  background: #fff;
  border-radius: 12px;
  padding: 6px 12px;
}
.sf-brand p { margin: 16px 0 0; max-width: 30ch; }

.sf-heading {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--sf-white);
  margin: 0 0 14px;
  letter-spacing: 0;
}
.sf-links ul { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 8px 24px; }
.sf-contact li { display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.sf-contact i { width: 14px; color: #8cb8ff; }

.sf-global { display: flex; gap: 12px; align-items: center; align-self: center; color: var(--sf-white); }
.sf-global i { font-size: 30px; color: #8cb8ff; }
.sf-global strong { display: block; font-size: var(--fs-md); font-weight: 600; line-height: 1.2; }
.sf-global span { font-size: var(--fs-sm); color: var(--sf-text); }

.sf-bottom {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: var(--fs-sm);
}
.sf-bottom p { margin: 0; }
.sf-bottom i { color: #25d366; margin-right: 4px; }

@media (max-width: 991px) {
  .sf-inner { grid-template-columns: 1fr 1fr; }
  .sf-global { display: none; }
}
@media (max-width: 575px) {
  .sf-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
}

/* Defensive rules: some page stylesheets set colour/size on every p, li and a
   with !important. These keep the footer identical on every page. */
.site-footer :is(p, li, span, a, strong) {
  font-family: var(--font-sans) !important;
  line-height: 1.6 !important;
}
.site-footer :is(p, li, span, a) { color: var(--sf-text) !important; font-size: var(--fs-sm) !important; font-weight: 400 !important; }
.site-footer a:hover { color: var(--sf-white) !important; }
.site-footer .sf-heading { color: var(--sf-white) !important; font-size: var(--fs-base) !important; font-weight: 600 !important; line-height: 1.4 !important; margin: 0 0 14px !important; padding: 0 !important; text-transform: none !important; letter-spacing: 0 !important; font-family: var(--font-sans) !important; }
.site-footer .sf-global strong { color: var(--sf-white) !important; font-size: var(--fs-md) !important; font-weight: 600 !important; }
.site-footer .sf-global span { font-size: var(--fs-sm) !important; }
.site-footer .sf-bottom :is(p, a) { font-size: var(--fs-sm) !important; }
.site-footer ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.site-footer li { margin-top: 0; }
