/* Shared footer navigation and five replaceable social QR images. */
body .footer-unified {
  display: block;
  width: 100%;
  padding: 44px 0 12px;
  background: #f5f6f8 !important;
  border-top: 4px solid #d61319;
  box-sizing: border-box
}

body .footer-unified>.wrap {
  display: block;
  width: min(1200px, calc(100% - 40px));
  max-width: 1200px;
  margin: 0 auto;
  padding: 0
}

body .footer-unified .footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1.15fr 1fr;
  gap: 40px;
  margin: 0;
  padding: 0
}

body .footer-unified .footer-grid>div {
  grid-column: auto;
  min-width: 0
}

body .footer-unified .footer-brand .logo {
  display: block;
  position: relative;
  width: 174px;
  height: 47px;
  margin: 0 0 16px;
  background: transparent !important;
  font-size: 0;
  color: transparent !important;
  overflow: hidden;
  -webkit-mask: none;
  mask: none
}

body .footer-unified .footer-brand .logo:before,
body .footer-unified .footer-brand .logo:after {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: url('brand-logo.png') center/contain no-repeat;
  mask: url('brand-logo.png') center/contain no-repeat;
  pointer-events: none
}

body .footer-unified .footer-brand .logo:before {
  background: #d61319;
  clip-path: inset(0 70% 0 0)
}

body .footer-unified .footer-brand .logo:after {
  background: #55585d;
  clip-path: inset(0 0 0 31%)
}

body .footer-unified .logo-badge {
  display: none
}

body .footer-unified h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: #41464d !important
}

body .footer-unified .footer-brand p {
  max-width: none;
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.8;
  color: #59636f !important
}

body .footer-unified .footer-brand .footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 6px 0 !important;
  color: #c4131c !important;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none
}

body .footer-unified .footer-brand .footer-address {
  font-size: 13px
}

body .footer-unified .footer-link-group a {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 2px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #59636f !important;
  text-decoration: none;
  box-sizing: border-box
}

body .footer-unified .footer-link-group a:hover {
  color: #c4131c !important;
  text-decoration: underline
}

body .footer-unified .footer-social {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  margin: 30px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid #dfe4e9
}

body .footer-unified .footer-social-heading p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #59636f !important
}

body .footer-unified .social-swipe-hint {
  display: none
}

body .footer-unified .footer-social-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px
}

body .footer-unified .footer-social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 16px 6px;
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 10px;
  text-align: center
}

body .footer-unified .footer-social-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: #41464d
}

body .footer-unified .footer-social-card p {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #697482 !important
}

body .footer-unified .copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid #dfe4e9;
  color: #697482 !important;
  font-size: 12px;
  line-height: 1.7
}

body .footer-unified .copyright>span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px
}

body .footer-unified .copyright a {
  display: inline;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #697482 !important;
  text-decoration: none
}

@media(max-width:900px) {
  body .footer-unified .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px
  }

  body .footer-unified .footer-brand {
    grid-column: 1/-1 !important
  }

  body .footer-unified .footer-social {
    grid-template-columns: 1fr;
    gap: 18px
  }
}

@media(max-width:760px) {
  body {
    padding-bottom: 0
  }

  body .footer-unified {
    padding: 30px 0 max(12px, env(safe-area-inset-bottom))
  }

  body .footer-unified>.wrap {
    width: calc(100% - 32px)
  }

  body .footer-unified .footer-grid {
    gap: 22px 12px
  }

  body .footer-unified .footer-brand .logo {
    width: 150px;
    height: 41px;
    margin-bottom: 10px
  }

  body .footer-unified .footer-brand p br {
    display: none
  }

  body .footer-unified h3 {
    font-size: 16px;
    margin-bottom: 6px
  }

  body .footer-unified .footer-link-group a {
    min-height: 44px;
    font-size: 14px
  }

  body .footer-unified .footer-social {
    margin-top: 20px;
    padding-top: 22px;
    gap: 14px
  }

  body .footer-unified .social-swipe-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #697482
  }

  body .footer-unified .footer-social-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(248px, 80vw, 280px);
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: #c4ccd5 transparent;
    -webkit-overflow-scrolling: touch
  }

  body .footer-unified .footer-social-card {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 20px 16px;
    text-align: center;
    scroll-snap-align: start;
    scroll-snap-stop: always
  }

  body .footer-unified .footer-social-card img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
    background: #fff
  }

  body .footer-unified .footer-social-card h4 {
    font-size: 16px
  }

  body .footer-unified .footer-social-card p {
    font-size: 13px
  }

  body .footer-unified .copyright {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    padding-top: 10px
  }

  body .footer-unified .copyright>span:last-child {
    gap: 2px 12px
  }
}

/* Replace assets/social/<platform>-qr.png to update each account image. */
body .footer-unified .footer-social-card {
  padding: 12px;
  gap: 8px
}

body .footer-unified .footer-social-card .social-qr-image {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff
}

body .footer-unified .footer-social-card h4 {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600
}

@media(min-width:761px) and (max-width:1100px) {
  body .footer-unified .footer-social {
    grid-template-columns: 1fr;
    gap: 16px
  }
}

@media(max-width:760px) {
  body .footer-unified .footer-social-card {
    padding: 12px;
    gap: 8px
  }

  body .footer-unified .footer-social-card h4 {
    font-size: 13px
  }
}

@media(min-width:761px) and (max-width:900px) {
  body .footer-unified .social-swipe-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #697482
  }

  body .footer-unified .footer-social-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 248px;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: #c4ccd5 transparent
  }

  body .footer-unified .footer-social-card {
    scroll-snap-align: start
  }
}
