/* DEC footer contact bar, shared by all public pages.
   Scoped to the global footer so the Services page, hero, and admin are untouched.
   Retains the original admin-managed phone, email, address, and optional social links. */
.dec-ref-footer .dec-ref-footer-contact {
  background: linear-gradient(105deg, #082949 0%, #092e52 58%, #073152 100%);
  border-top: 1px solid rgba(201, 222, 240, .19);
  border-bottom: 1px solid rgba(201, 222, 240, .16);
}
.dec-ref-footer .dec-ref-footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  align-items: stretch;
  gap: 0;
}
.dec-ref-footer .dec-ref-footer-contact-grid > * {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  min-width: 0;
  min-height: 64px;
  margin: 0;
  padding: 11px clamp(14px, 2vw, 27px);
  gap: 12px;
  border: 0;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.dec-ref-footer .dec-ref-footer-contact-grid > :first-child { padding-left: 0; }
.dec-ref-footer .dec-ref-footer-contact-grid > :last-child { padding-right: 0; }
.dec-ref-footer .dec-ref-footer-contact-grid > :not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 23%;
  bottom: 23%;
  width: 1px;
  background: rgba(207, 229, 244, .20);
  pointer-events: none;
}
.dec-ref-footer .dec-ref-footer-contact-grid > :not(.dec-ref-footer-social) > svg {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  stroke-width: 1.85;
  color: #edf6ff;
}
.dec-ref-footer .dec-ref-footer-contact-grid > :not(.dec-ref-footer-social) > span {
  min-width: 0;
  display: block;
  line-height: 1.35;
}
.dec-ref-footer .dec-ref-footer-contact-grid strong {
  display: block;
  color: #f7fbff;
  font-size: 12.5px;
  font-weight: 570;
  line-height: 1.3;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.dec-ref-footer .dec-ref-footer-contact-grid small {
  display: block;
  margin-top: 2px;
  color: #b7cee1;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}
.dec-ref-footer .dec-ref-footer-contact-grid > a:hover {
  background: rgba(255,255,255,.055);
}
.dec-ref-footer .dec-ref-footer-contact-grid > a:focus-visible,
.dec-ref-footer .dec-ref-footer-social a:focus-visible {
  outline: 2px solid #9ad9ff;
  outline-offset: -3px;
}
/* Social links appear only when populated in the existing admin settings. */
.dec-ref-footer .dec-ref-footer-contact-grid > .dec-ref-footer-social {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
}
.dec-ref-footer .dec-ref-footer-social > span {
  flex: 0 0 auto;
  margin-right: 4px;
  color: #dbeaf8;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
  line-height: 1.25;
}
.dec-ref-footer .dec-ref-footer-social a {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #145580;
  color: #fff;
  transition: background-color .2s ease, transform .2s ease;
}
.dec-ref-footer .dec-ref-footer-social a svg { width: 15px; height: 15px; }
.dec-ref-footer .dec-ref-footer-social a:hover { background: #237eae; transform: translateY(-1px); }

@media (min-width: 761px) and (max-width: 1040px) {
  /* An optional 4th (socials) block breaks into two even columns on tablets. */
  .dec-ref-footer .dec-ref-footer-contact-grid:has(> .dec-ref-footer-social) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dec-ref-footer .dec-ref-footer-contact-grid:has(> .dec-ref-footer-social) > :nth-child(2)::after { display: none; }
  .dec-ref-footer .dec-ref-footer-contact-grid:has(> .dec-ref-footer-social) > :nth-child(-n + 2) {
    border-bottom: 1px solid rgba(207, 229, 244, .12);
  }
}
@media (max-width: 760px) {
  .dec-ref-footer .dec-ref-footer-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dec-ref-footer .dec-ref-footer-contact-grid > * {
    min-height: 64px;
    padding: 12px 12px;
  }
  .dec-ref-footer .dec-ref-footer-contact-grid > :first-child { padding-left: 12px; }
  .dec-ref-footer .dec-ref-footer-contact-grid > :last-child { padding-right: 12px; }
  .dec-ref-footer .dec-ref-footer-contact-grid > :nth-child(even)::after { display: none; }
  .dec-ref-footer .dec-ref-footer-contact-grid > :nth-child(-n + 2) {
    border-bottom: 1px solid rgba(207, 229, 244, .12);
  }
  .dec-ref-footer .dec-ref-footer-contact-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .dec-ref-footer .dec-ref-footer-contact-grid { grid-template-columns: minmax(0,1fr); }
  .dec-ref-footer .dec-ref-footer-contact-grid > * {
    min-height: 54px;
    padding: 11px 0;
    gap: 13px;
    border-bottom: 1px solid rgba(207, 229, 244, .12);
  }
  .dec-ref-footer .dec-ref-footer-contact-grid > :first-child { padding-left: 0; }
  .dec-ref-footer .dec-ref-footer-contact-grid > :last-child { padding-right: 0; border-bottom: 0; }
  .dec-ref-footer .dec-ref-footer-contact-grid > :not(:last-child)::after { display: none; }
  .dec-ref-footer .dec-ref-footer-contact-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .dec-ref-footer .dec-ref-footer-contact-grid > :nth-child(-n + 2) { border-bottom: 1px solid rgba(207, 229, 244, .12); }
  .dec-ref-footer .dec-ref-footer-social > span { margin-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .dec-ref-footer .dec-ref-footer-social a { transition: none; }
  .dec-ref-footer .dec-ref-footer-social a:hover { transform: none; }
}
