/* ============================================
   Footer badge — "Find us on Mobile Mechanic Near Me"
   (/css/* is cached for a year: rename this file if you change it)
   ============================================ */

.footer-badges {
  display: flex;
  justify-content: center;
  margin: 0 0 var(--space-lg);
}

.mmnm-badge {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: stretch;
  border-radius: 10px;
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(180deg, #2B2B2B 0%, #222222 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px -14px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s cubic-bezier(.2, .8, .2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

/* light sweep on hover */
.mmnm-badge::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.mmnm-badge:hover,
.mmnm-badge:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(232, 73, 29, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 28px -14px rgba(232, 73, 29, 0.55);
}

.mmnm-badge:hover::after,
.mmnm-badge:focus-visible::after {
  left: 120%;
}

.mmnm-badge:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* orange flag with a swallowtail notch */
.mmnm-flag {
  display: grid;
  place-items: center;
  width: 50px;
  padding-right: 8px;
  background: linear-gradient(160deg, #F25A2C 0%, var(--orange) 55%, #C93A12 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%);
}

.mmnm-flag svg {
  width: 20px;
  height: 20px;
}

.mmnm-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.55rem 0.9rem 0.55rem 0.7rem;
  line-height: 1.1;
}

.mmnm-kicker {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.mmnm-name {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
}

.mmnm-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.mmnm-rating svg {
  width: 14px;
  height: 14px;
  fill: var(--orange);
}

.mmnm-arrow {
  align-self: center;
  width: 14px;
  height: 14px;
  margin-right: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease, color 0.3s ease;
}

.mmnm-badge:hover .mmnm-arrow,
.mmnm-badge:focus-visible .mmnm-arrow {
  transform: translate(2px, -2px);
  color: var(--orange);
}

@media (max-width: 380px) {
  .mmnm-rating { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mmnm-badge,
  .mmnm-badge::after,
  .mmnm-arrow { transition: none; }
  .mmnm-badge:hover,
  .mmnm-badge:focus-visible { transform: none; }
}
