/* EM2026 — Footer */

/* =============================================
   CTA BANNER
   ============================================= */

.em-footer-cta {
  background: rgba(var(--em-color-main-rgb), 0.2);
  padding: 2rem;
  text-align: center;
}

.em-footer-cta__inner {
  gap: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.em-footer-cta__heading {
  color: var(--em-color-main);
  font-weight: 600;
  margin-top: 0;
  font-size: 1.5rem;
}

.em-footer-cta__sub {
  color: var(--em-color-blue);
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

/* =============================================
   MAIN FOOTER
   ============================================= */

.em-footer {
  --em-footer-navy: #0f1f3d;
  --em-footer-gold: #b8913a;
  --em-footer-gold-light: #c9a55a;
  --em-footer-cream: #f3f0eb;
  --em-footer-ink: rgba(255, 255, 255, 0.86);
  --em-footer-muted: rgba(255, 255, 255, 0.7);
  --em-footer-line: rgba(255, 255, 255, 0.14);
  --em-footer-circle: rgba(255, 255, 255, 0.14);
}

.em-footer__inner {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.em-footer__main,
.em-footer__legal {
  background-color: var(--em-footer-navy);
  color: var(--em-footer-ink);
  padding: 3rem 1.5rem;
}

.em-footer__main a:not(.em-button),
.em-footer__legal a {
  color: var(--em-footer-ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.em-footer__main a:not(.em-button):hover,
.em-footer__legal a:hover {
  color: var(--em-footer-gold-light);
}

.em-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.em-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Eyebrows, headings, gold rule */
.em-footer__eyebrow {
  margin: 0;
  font-family: var(--em-font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  line-height: 1.4;
}

.em-footer__col-heading {
  color: #fff;
}

.em-footer__eyebrow--brand {
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  color: var(--em-footer-muted);
}

.em-footer__eyebrow--dark {
  color: var(--em-footer-navy);
  margin-bottom: 0.75rem;
}

.em-footer__rule {
  display: block;
  width: 3rem;
  height: 2px;
  margin: 1rem 0 1.5rem;
  background-color: var(--em-footer-gold);
}

/* Brand column */
.em-footer__logo {
  display: inline-block;
  line-height: 0;
}

.em-footer__logo img {
  width: 240px;
  max-width: 100%;
  height: auto;
}

.em-footer__brand-tagline {
  margin: 0 0 1.5rem;
  max-width: 22rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #fff;
}

/* Icon circles */
.em-footer__icon-circle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--em-footer-circle);
  color: #fff;
  font-size: 1.125rem;
}

/* Contact list */
.em-footer__contact {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.em-footer__contact li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
}

.em-footer__contact a {
  overflow-wrap: anywhere;
}

.em-footer__cta {
  max-width: 100%;
}

.em-footer__cta:hover,
.em-footer__cta:focus {
  color: var(--em-color-blue) !important;
  background-color: var(--em-color-page) !important;
}

/* Link lists */
.em-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.em-footer__links a {
  font-size: 1.0625rem;
}

/* Appointments */
.em-footer__location {
  display: flex;
  gap: 1.25rem;
  width: 100%;
}

.em-footer__location+.em-footer__location {
  margin-top: 1.5rem;
}

.em-footer__location-body {
  flex: 1;
}

.em-footer__location-title {
  margin: 0.5rem 0 0.75rem;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
}

.em-footer__address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--em-footer-muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--em-footer-line);
}

.em-footer__address+.em-footer__address {
  padding-top: 1rem;
}

.em-footer__address strong {
  color: #fff;
  font-weight: 500;
}

.em-footer__location-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--em-footer-muted);
}

/* =============================================
   HEALTHMATTERS GROUP STRIP
   ============================================= */

.em-footer__group {
  background-color: var(--em-footer-cream);
  color: var(--em-footer-navy);
  padding: 2.5rem 1.5rem;
}

.em-footer__group-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.em-footer__group-logo {
  display: inline-block;
  line-height: 0;
}

.em-footer__group-logo img {
  width: 200px;
  max-width: 100%;
  height: auto;
}

.em-footer__group-text p:last-child {
  margin: 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--em-color-text);
}

.em-footer__group-button {
  flex-shrink: 0;
}

/* =============================================
   LEGAL BAR
   ============================================= */

.em-footer__legal {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.em-footer__legal p {
  margin: 0;
}

.em-footer__legal-top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--em-footer-line);
}

.em-footer__legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 0.75rem 2rem;
}

.em-footer__legal-links li {
  display: flex;
  align-items: center;
  font-size: 0.9375rem;
}

.em-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

.em-footer__social a {
  display: flex;
  font-size: 1.75rem;
}

.em-footer__notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--em-footer-line);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.em-footer__notice .em-footer__icon-circle {
  font-size: 1.25rem;
}

.em-footer__legal-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--em-footer-muted);
}

.em-footer__company {
  max-width: 56rem;
}

/* =============================================
   TABLET (≥768px)
   ============================================= */

@media (min-width: 768px) {

  .em-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .em-footer__legal-top,
  .em-footer__legal-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .em-footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0;
  }

  .em-footer__legal-links li+li::before {
    content: "|";
    margin: 0 1.25rem;
    color: var(--em-footer-muted);
  }

  .em-footer__copyright {
    text-align: right;
    white-space: nowrap;
  }
}

/* =============================================
   DESKTOP (≥1200px)
   ============================================= */

@media (min-width: 1200px) {

  .em-footer-cta {
    padding: 2rem 4rem;
  }

  .em-footer-cta__inner {
    flex-direction: row;
    gap: 3rem;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 1440px;
    justify-content: space-between;
  }

  .em-footer-cta__heading {
    margin-bottom: .5rem;
  }

  .em-footer__main {
    padding: 4rem 4rem 3.5rem;
  }

  .em-footer__group,
  .em-footer__legal {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .em-footer__grid {
    grid-template-columns: 1.75fr 1fr 1fr 1.25fr;
    gap: 3rem;
  }

  .em-footer__group-inner {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
  }

  .em-footer__group-logo {
    padding-right: 3.5rem;
    border-right: 1px solid rgba(var(--em-color-text-rgb), 0.25);
  }

  .em-footer__group-text {
    flex: 1;
  }
}