jmj-site-footer {
  display: block;
  color: var(--jmj-muted, #596277);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

jmj-site-footer * {
  box-sizing: border-box;
}

jmj-site-footer .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

jmj-site-footer .site-footer {
  padding: 2.5rem 1rem;
  border-top: 0.3rem solid var(--jmj-primary, #0b4fc4);
  background: #fff;
  color: var(--jmj-muted, #596277);
}

jmj-site-footer .footer-inner {
  display: grid;
  width: min(100%, var(--container, 1240px));
  margin: 0 auto;
  align-items: start;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(30rem, 1.3fr) auto;
  gap: 2rem;
}

jmj-site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

jmj-site-footer .footer-brand img {
  display: block;
  width: 10rem;
  height: auto;
  max-width: 100%;
}

jmj-site-footer .footer-inner p {
  margin: 0 0 0.1rem;
}

jmj-site-footer .footer-contact {
  display: grid;
  gap: 0.65rem;
}

jmj-site-footer .footer-contact p {
  margin-bottom: 0;
  color: var(--jmj-text, #172033);
}

jmj-site-footer .footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.5rem;
}

jmj-site-footer .footer-contact-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.6rem;
  padding: 0.15rem 0;
  color: var(--jmj-primary-dark, #07358a);
  text-decoration: none;
  transition: color 160ms ease;
}

jmj-site-footer .footer-contact-item:hover,
jmj-site-footer .footer-contact-item:focus-visible {
  color: var(--jmj-primary, #0b4fc4);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

jmj-site-footer .footer-contact-item > span:last-of-type {
  min-width: 0;
}

jmj-site-footer .footer-contact-item strong,
jmj-site-footer .footer-item-label {
  display: block;
}

jmj-site-footer .footer-item-label {
  margin-bottom: 0.05rem;
  color: var(--jmj-muted, #596277);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

jmj-site-footer .footer-contact-item strong {
  color: var(--jmj-primary-dark, #07358a);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

jmj-site-footer .footer-icon {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 1.8rem;
  place-items: center;
  color: var(--jmj-primary, #0b4fc4);
}

jmj-site-footer .footer-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

jmj-site-footer .footer-icon-phone svg,
jmj-site-footer .footer-icon-facebook svg {
  fill: currentColor;
  stroke: none;
}

jmj-site-footer .footer-icon-instagram .instagram-dot {
  fill: currentColor;
  stroke: none;
}

jmj-site-footer .footer-inner a {
  color: var(--jmj-primary, #0b4fc4);
  font-weight: 800;
}

jmj-site-footer .footer-inner a:hover,
jmj-site-footer .footer-inner a:focus-visible {
  color: var(--jmj-primary-dark, #07358a);
}

jmj-site-footer .footer-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  text-decoration: none;
}

jmj-site-footer .footer-top-icon {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 50%;
  background: var(--jmj-surface-blue, #e9f1ff);
}

@media (max-width: 1024px) {
  jmj-site-footer .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  jmj-site-footer .site-footer {
    padding: 2rem 1rem;
  }

  jmj-site-footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
  }

  jmj-site-footer .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  jmj-site-footer .footer-contact-grid {
    grid-template-columns: 1fr;
  }

  jmj-site-footer .footer-top {
    width: fit-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  jmj-site-footer *,
  jmj-site-footer *::before,
  jmj-site-footer *::after {
    transition-duration: 0.01ms !important;
  }
}
