/* HMS WEBSITE FOOTER — mobile-only layout. */
@media(max-width:760px){
  .site-footer{display:grid!important;grid-template-columns:1fr 1fr!important;gap:25px 18px!important;padding:35px 20px 122px!important;background:linear-gradient(145deg,#092a45,#123d58)!important}
  .site-footer .footer-intro{grid-column:1/-1!important;padding-bottom:19px!important;border-bottom:1px solid rgba(255,255,255,.12)!important}.site-footer .site-brand{align-items:center!important}.site-footer .brand-logo{width:52px!important;height:52px!important}.site-footer .site-brand strong{font-size:1rem!important}.site-footer .site-brand small{font-size:.68rem!important;color:#9fc8d5!important}.site-footer .footer-intro>p{max-width:340px!important;margin:14px 0!important;font-size:.82rem!important;line-height:1.65!important}.site-footer h4{margin:0 0 11px!important;color:#fff!important;font-size:.85rem!important}.site-footer a{margin:0 0 8px!important;font-size:.76rem!important;color:#c9dce5!important}.site-footer .footer-social{display:flex!important;gap:9px!important;margin-top:14px!important}.site-footer .footer-social a{width:36px!important;height:36px!important;display:grid!important;place-items:center!important;margin:0!important;border-radius:11px!important;background:rgba(255,255,255,.1)!important;color:#8fece2!important}.site-footer .footer-contact{grid-column:1/-1!important;padding:16px!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:15px!important;background:rgba(255,255,255,.06)!important}.site-footer .footer-contact h4{margin-bottom:10px!important}.site-footer .footer-contact p{margin:7px 0!important;font-size:.76rem!important;line-height:1.45!important;color:#c9dce5!important}.site-footer .footer-bottom{grid-column:1/-1!important;margin-top:1px!important;padding-top:18px!important;font-size:.65rem!important;line-height:1.65!important;text-align:center!important;color:#9db8c5!important}.site-footer .footer-bottom span{display:block!important;margin-top:5px!important}
}

@media(max-width:760px){.site-footer>div:nth-of-type(2){grid-column:1!important}.site-footer>div:nth-of-type(3){grid-column:2!important}.site-footer>div:nth-of-type(2) a,.site-footer>div:nth-of-type(3) a{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}}

/* Final compact mobile footer polish. */
@media(max-width:760px){
  .site-footer{gap:22px 16px!important;padding:30px 20px 120px!important}
  .site-footer .site-brand{gap:11px!important}
  .site-footer .site-brand>div{min-width:0!important}
  .site-footer .site-brand strong{max-width:none!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important;font-size:1.02rem!important;line-height:1.2!important}
  .site-footer .site-brand small{margin-top:4px!important;font-size:.7rem!important}
  .site-footer .footer-intro>p{margin:12px 0!important;font-size:.8rem!important;line-height:1.55!important}
  .site-footer .footer-intro{padding-bottom:17px!important}
  .site-footer h4{padding-bottom:9px!important;margin:0 0 10px!important;font-size:.88rem!important}
  .site-footer h4:after{width:28px!important}
  .site-footer>div:nth-of-type(2) a,.site-footer>div:nth-of-type(3) a{font-size:.78rem!important;line-height:1.35!important;margin-bottom:9px!important}
  .site-footer .footer-contact{padding:15px 16px!important;border-radius:16px!important;background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.045))!important}
  .site-footer .footer-contact p{font-size:.78rem!important;margin:8px 0!important}
  .site-footer .footer-bottom{margin-top:0!important;padding-top:16px!important;font-size:.68rem!important}
}

/* Mobile footer: larger brand, centred tagline, balanced link columns. */
@media(max-width:760px){
  .site-footer .footer-intro .site-brand{
    display:grid!important;
    grid-template-columns:54px minmax(0,1fr)!important;
    align-items:center!important;
    column-gap:12px!important;
    width:100%!important;
  }
  .site-footer .footer-intro .site-brand>div{display:contents!important}
  .site-footer .footer-intro .brand-logo{
    grid-column:1!important;
    grid-row:1!important;
    width:54px!important;
    height:54px!important;
  }
  .site-footer .footer-intro .site-brand strong{
    grid-column:2!important;
    grid-row:1!important;
    max-width:none!important;
    font-size:1.14rem!important;
    line-height:1.13!important;
    letter-spacing:-.035em!important;
    white-space:nowrap!important;
  }
  .site-footer .footer-intro .site-brand small{
    grid-column:1 / -1!important;
    grid-row:2!important;
    width:100%!important;
    margin:11px 0 0!important;
    text-align:center!important;
    font-size:.76rem!important;
    font-weight:700!important;
    letter-spacing:.015em!important;
    white-space:nowrap!important;
  }
  .site-footer .footer-intro>p{
    max-width:360px!important;
    margin:12px auto!important;
    text-align:center!important;
  }
  .site-footer .footer-social{justify-content:center!important}
  .site-footer{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:22px 34px!important;
  }
  .site-footer>div{min-width:0!important}
  .site-footer .footer-intro,
  .site-footer .footer-contact,
  .site-footer .footer-bottom{flex:0 0 100%!important;width:100%!important}
  .site-footer>div:nth-of-type(2),
  .site-footer>div:nth-of-type(3){flex:0 0 130px!important;width:130px!important}
  .site-footer .footer-contact{
    width:100%!important;
    padding:20px!important;
    border-radius:18px!important;
  }
  .site-footer .footer-contact h4{font-size:1rem!important}
  .site-footer .footer-contact p{
    font-size:.88rem!important;
    line-height:1.55!important;
    margin:10px 0!important;
  }
}

@media(max-width:380px){
  .site-footer{column-gap:25px!important}
  .site-footer>div:nth-of-type(2),
  .site-footer>div:nth-of-type(3){flex-basis:125px!important;width:125px!important}
  .site-footer .footer-intro .site-brand strong{font-size:1.02rem!important}
  .site-footer .footer-contact p{font-size:.82rem!important}
}

/* Extra social colours for LinkedIn and X (Twitter). */
.footer-social a:nth-child(4):hover{background:#0a66c2!important;box-shadow:0 11px 22px #0a66c266!important}
.footer-social a:nth-child(5):hover{background:#050505!important;box-shadow:0 11px 22px #00000066!important}
