
footer hr {
  width: 20%;
  margin: 30px 0 0 0;
}

.footer-top {
  background: url(/wp-content/themes/sacomms-master/images/sa_footer_top_nocurve.png) no-repeat center bottom;
  min-height: 180px;
  padding-top: 30px;
  border-top-right-radius: 160px;
  margin-top: 20px;  
}

.footer-top .social-icons {
  padding: 0 2em;
  color: #fff;
  font-size: 1.25em;
}

.footer-middle {
  min-height: 126px;
  padding-top: 20px;
  background: linear-gradient(to right, #001f5b, #000814);
}

.footer-bottom {
  background: #fff;
  padding: 10px 2em;
}

.footer-top.footer-row, 
.footer-middle.footer-row {
  padding-left: 2%;
}

.footer-bottom.footer-row {
  padding-left: 2.5rem;
}

.footer-column.logo-column {
  padding: 0 2em;
}

.footer-top-inner,
.footer-middle-inner,
.footer-bottom .container {
  align-items: center;
  justify-content: space-between;
}

.footer-bottom .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0.5em;
}


.footer-top-inner .col-brand {
  padding-right: 2em;
}

.footer-top-inner.container .col.col-brand {
    padding: 2.5em 0 0 0;
}

.footer-middle-inner .logo-column {
  padding: 0 1em;
}

.footer-top a, 
.footer-middle a, 
.footer-top p, 
.footer-middle p {
  color: #fff;
}

.footer-top li a, 
.footer-top li, 
.footer-middle li, 
.footer-middle li a {
  text-decoration: none;
  list-style: none;
  font-family: "Inter", sans-serif;
  font-size: 0.9375em; /* 15px */
}

.footer-top li a:hover, 
.footer-middle li a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-top p {
  font-size: 1.3125em; /* 21px */
  font-family: 'Source Serif 4', serif !important;
}

.footer-top .address p {
  font-size: 0.9375em; /* 15px */
  line-height: 2.2;
  font-family: "Inter", sans-serif !important;
}

.footer-top-inner img {
    padding: 1em 0;
}

.footer-bottom.footer-row p {
  font-size: 0.875em; /* 14px */
}

.footer-top-inner,
.footer-middle-inner {
  display: grid;
  grid-template-columns: 35% 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0px auto;
  align-items: start;
}

.footer-top-inner .col,
.footer-middle-inner .col {
  min-width: 0;
  padding-top: 1em;
  padding-bottom: 1em;
  padding-left: 0;
  padding-right: 0;
}

.footer-middle-inner ul,
.footer-top-inner ul {
  padding-left: 0;
}

.footer-top li a, 
.footer-top li {
  padding: 4px 0;
  line-height: 1.5;
}


/* Overiding Social Media Icons   */
.footer-widget > ul.aligncenter {
  display: flex !important;
  gap: 25px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  justify-content: flex-start !important;
}

.footer-widget > ul.aligncenter > li > a {
  display: inline-flex !important;
  width: 31px !important;
  height: 31px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: #ddd !important;    
  color: #000 !important;        
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.footer-widget > ul.aligncenter > li > a:hover {
  background: #FDB515 !important;
  color: #000 !important;
}

.footer-widget > ul.aligncenter > li > a svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  fill: currentColor !important;
}

/*Tablet Media Query */
@media (max-width: 1200px) {
  .footer-top {
    background-size: auto 100%  
} }
@media (max-width: 1100px) {
.footer-top-inner, .footer-middle-inner {
    grid-template-columns: 27% 1fr 1fr 1fr;
    gap: 0rem;
} }

/* Mobile Media Query */
@media (max-width: 768px) {

  .footer-top-inner,
  .footer-middle-inner {
    display: grid;
    grid-template-columns: 1fr; /* 🔥 forces stacking */
    align-items: start;
  }

  .footer-top.footer-row, 
  .footer-middle.footer-row {
    padding-left: 10%;
  }
  
  .footer-top-inner .col,
  .footer-middle-inner .col,
  .footer-top-inner .col-brand,
  .footer-middle-inner .logo-column {
    width: 100%;
    max-width: 100%;
    border-right: none;
    margin-right: 0;
    padding: 1em 0;
  }

  .footer-top {
    background: url(/wp-content/themes/sacomms-master/images/sa_top_footer_mobile_nocurve.png) no-repeat center bottom;
    background-position: 0 0;
    background-size: cover;
    padding-bottom: 1.25em; /* was 20px */
  }

  .footer-bottom.footer-row p {
    font-size: 0.75em; /* was 12px */
    letter-spacing: 0.03125em; /* was 0.5px */
  }

  .footer-bottom {
    padding: 0.3125em 2em 0.3125em 0; /* was 5px */
  }

  .footer-middle-inner .col {
    padding: 0;
    display: block; /* 🔥 remove flex */
  }
  
  .footer-middle-inner .col:nth-child(4) {
    margin-bottom: 3em;
}

  .footer-middle-inner .logo-column {
    padding-top: 1em;
  }

  .footer-widget ul {
    padding: 0;
    margin: 0;
  }

  .footer-middle ul {
    margin: 0.3125em 0; /* was 5px */
  }

  .logo-column {
    order: unset; /* 🔥 grid ignores order like flex, so reset */
  }
}