:root {
  --dhs-navy: var(--brand-navy);
  --dhs-blue: var(--brand-blue);
  --dhs-light-blue: var(--brand-sky);
  --dhs-cyan: var(--brand-sky);
  --dhs-white: var(--brand-white);
  --dhs-text: var(--brand-ink);
  --dhs-muted: var(--brand-muted);
  --dhs-light: var(--brand-soft);
  --dhs-line: var(--brand-line);
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  position: relative;
  background: var(--dhs-navy);
  color: #fff;
  overflow: hidden;
}

/* subtle background */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(90deg, rgba(36, 104, 173, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(36, 104, 173, 0.035) 1px, transparent 1px);

  background-size: 70px 70px;
}

/* =========================================
   FOOTER TOP
========================================= */

.footer-top {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 100px;

  padding-top: 80px;
  padding-bottom: 70px;
}

/* =========================================
   FOOTER BRAND
========================================= */

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo img {
  width: 175px;
  height: auto;
  max-height: 65px;
  object-fit: contain;
  display: block;
}

.footer-brand p {
  margin: 24px 0 0;

  max-width: 280px;

  color: rgba(255, 255, 255, 0.866);

  font-size: 13px;
  line-height: 1.8;
}

/* =========================================
   FOOTER LINKS
========================================= */

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-column b {
  position: relative;

  margin-bottom: 22px;

  color: #fff;

  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-column b::after {
  content: "";

  display: block;

  width: 28px;
  height: 2px;

  margin-top: 10px;

  background: var(--dhs-light-blue);
}

.footer-column a {
  position: relative;

  display: inline-block;

  margin-bottom: 13px;

  color: rgba(255, 255, 255, 0.866);

  font-size: 13px;
  line-height: 1.5;

  text-decoration: none;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.footer-column a:hover {
  color: var(--dhs-light-blue);
  transform: translateX(4px);
}

/* =========================================
   FOOTER BOTTOM
========================================= */

.footer-bottom {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;

  min-height: 70px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  color: rgba(255, 255, 255, 0.4);

  font-size: 11px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;

  transition: color 0.25s ease;
}

.footer-bottom a:hover {
  color: var(--brand-sky);
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {
  .footer-top {
    grid-template-columns: 240px 1fr;
    gap: 60px;
  }

  .footer-links {
    gap: 35px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 750px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 50px;

    padding-top: 60px;
    padding-bottom: 50px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-brand p {
    max-width: 420px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
  }

  .footer-column:last-child {
    grid-column: span 2;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;

    padding: 22px 0;

    gap: 10px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {
  .footer-top {
    padding-top: 50px;
    padding-bottom: 40px;
  }

  .footer-logo img {
    width: 145px;
    max-height: 55px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-column:last-child {
    grid-column: auto;
  }

  .footer-column a {
    margin-bottom: 11px;
  }

  .footer-bottom {
    font-size: 10px;
  }
}

/* Compact shared footer; override page-specific inherited spacing. */
footer.site-footer { padding-top: 0; }
.site-footer .footer-top { padding-top: 44px; padding-bottom: 36px; gap: 56px; }
.site-footer .footer-links { gap: 32px; }
.site-footer .footer-column b { margin-bottom: 16px; font-size: 11px; }
.site-footer .footer-column b::after { margin-top: 8px; }
.site-footer .footer-column a { margin: 0 0 10px; font-size: 12px; line-height: 1.6; }
.site-footer .footer-column a:last-child { margin-bottom: 0; }
.site-footer .footer-logo img { width: 155px; max-height: 58px; }
.site-footer .footer-brand p { margin-top: 18px; font-size: 12px; line-height: 1.8; }
.site-footer .footer-bottom { min-height: 56px; padding-top: 16px; padding-bottom: 16px; font-size: 10px; }
@media (max-width: 1000px) { .site-footer .footer-top { gap: 32px; } }
@media (max-width: 600px) { .site-footer .footer-top { padding-top: 32px; padding-bottom: 28px; gap: 28px; } .site-footer .footer-links { gap: 26px; } .site-footer .footer-bottom { gap: 9px; } }
