/* NEXTCAR FLEET — H9 közös lábléc. Minden szabály a footerre szűkített.
 * Mobil: nyitott, egyoszlopos tartalom; tablet: márka/kontakt, majd két navcsoport;
 * desktop: 1.05fr / 1.2fr / 1.75fr, két belső navigációs oszloppal.
 * Nincs JavaScript-függőség, fix magasság vagy túlcsordulást elrejtő szabály.
 */
.site-footer {
  --footer-pad: 1.25rem;
  border-top: 1px solid var(--nc-color-border-on-dark);
  background: var(--nc-color-surface-dark);
  color: var(--nc-color-text-on-dark);
  font-family: var(--nc-font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.site-footer,
.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer :where(div, nav, ul, li, p, h2, dl, dt, dd, a, span) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-footer .site-footer__inner,
.site-footer .site-footer__bottom-inner {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--footer-pad);
}

.site-footer .site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
  padding-block: 2rem 1.5rem;
}

.site-footer .site-footer__brand {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
}

.site-footer .site-footer__brand-link {
  display: flex;
  width: max-content;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
}

.site-footer .site-footer__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 3rem;
  object-fit: contain;
}

.site-footer .site-footer__slogan {
  max-width: min(32ch, 100%);
  margin: 0;
  color: var(--nc-color-text-on-dark-muted);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
}

.site-footer .site-footer__nav-title {
  margin: 0 0 0.75rem;
  color: var(--nc-color-accent-on-dark);
  font-family: var(--nc-font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-footer .site-footer__contact-link,
.site-footer .site-footer__nav a,
.site-footer .site-footer__legal a {
  display: flex;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  padding: 0.5rem 0;
  color: var(--nc-color-text-on-dark-muted);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 150ms ease-out, text-decoration-color 150ms ease-out;
}

.site-footer .site-footer__contact-link {
  gap: 0.5rem;
}

.site-footer .site-footer__phone {
  color: var(--nc-color-accent-on-dark);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.site-footer .site-footer__email {
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.site-footer .site-footer__contact-text {
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-footer .site-footer__contact-link svg {
  display: block;
  flex: none;
  color: var(--nc-color-accent-on-dark);
}

.site-footer .site-footer__phone svg {
  width: 20px;
  height: 20px;
}

.site-footer .site-footer__email svg {
  width: 18px;
  height: 18px;
}

.site-footer .site-footer__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

.site-footer .site-footer__nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .site-footer__nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.site-footer .site-footer__company {
  grid-column: 1 / -1;
  border-top: 1px solid var(--nc-color-border-on-dark);
  padding-top: 1.25rem;
}

.site-footer .site-footer__placeholder-label {
  margin: 0;
  color: var(--nc-color-accent-on-dark);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

.site-footer .site-footer__company-data {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.875rem;
}

.site-footer .site-footer__company-data dt {
  color: var(--nc-color-text-on-dark-muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
}

.site-footer .site-footer__company-data dd {
  margin: 0.25rem 0 0;
  color: var(--nc-color-text-on-dark);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
}

.site-footer .site-footer__bottom {
  border-top: 1px solid var(--nc-color-border-on-dark);
  background: var(--nc-color-surface-darker);
}

.site-footer .site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding-block: 1rem;
}

.site-footer .site-footer__copyright {
  margin: 0;
}

.site-footer .site-footer__copyright,
.site-footer .site-footer__legal {
  color: var(--nc-color-text-on-dark-muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

.site-footer .site-footer__legal {
  display: flex;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.site-footer a {
  /* The 3px outline + 2px offset must also fit during native focus scrolling. */
  scroll-margin-block: 5px;
}

.site-footer a:focus-visible {
  outline: 3px solid var(--nc-focus-color-on-dark);
  outline-offset: 2px;
}

.site-footer .site-footer__contact-link:focus-visible,
.site-footer .site-footer__nav a:focus-visible,
.site-footer .site-footer__legal a:focus-visible {
  color: var(--nc-color-text-on-dark);
  text-decoration-color: var(--nc-color-accent-on-dark);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer .site-footer__contact-link:hover,
  .site-footer .site-footer__nav a:hover,
  .site-footer .site-footer__legal a:hover {
    color: var(--nc-color-text-on-dark);
    text-decoration-color: var(--nc-color-accent-on-dark);
  }
}

@media (width < 22.5rem) {
  .site-footer {
    --footer-pad: 1rem;
  }

  .site-footer .site-footer__phone {
    font-size: 1.375rem;
    line-height: 1.3;
  }
}

@media (min-width: 48rem) {
  .site-footer {
    --footer-pad: clamp(1rem, 4vw, 2rem);
  }

  .site-footer .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    padding-block: 2.5rem 2rem;
  }

  .site-footer .site-footer__slogan {
    font-size: 1rem;
  }

  .site-footer .site-footer__nav {
    grid-column: 1 / -1;
    /* em minima allow enlarged text to reflow without changing normal columns. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(11em, calc((100% - 2rem) / 2))), 1fr));
    gap: 2rem;
  }

  .site-footer .site-footer__company {
    margin-top: -0.5rem;
  }

  .site-footer .site-footer__company-data {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(14em, calc((100% - 3rem) / 3))), 1fr));
    gap: 1.5rem;
  }

  .site-footer .site-footer__bottom-inner {
    padding-block: 0.75rem;
  }

  .site-footer .site-footer__legal {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 1.5rem;
  }
}

@media (min-width: 75rem) {
  .site-footer {
    --footer-pad: 2rem;
  }

  .site-footer .site-footer__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, 1.75fr);
    gap: 1.5rem 2.5rem;
    padding-block: 3rem 2rem;
  }

  .site-footer .site-footer__brand {
    gap: 1rem;
  }

  .site-footer .site-footer__logo {
    height: 3.5rem;
  }

  .site-footer .site-footer__phone {
    font-size: 1.625rem;
    line-height: 1.2;
  }

  .site-footer .site-footer__nav {
    grid-column: auto;
  }

  .site-footer .site-footer__company {
    margin-top: 0;
  }

  .site-footer .site-footer__bottom-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    column-gap: 1.5rem;
  }

  .site-footer .site-footer__legal {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer,
  .site-footer *,
  .site-footer *::before,
  .site-footer *::after {
    /* Override the existing global 0.01ms !important rule only in this module. */
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}

/* Mobil tömörítés: két nyitott navigációs csoport, a linkek 44 px-esek maradnak. */
@media (max-width: 47.999rem) {
  .site-footer .site-footer__inner {
    gap: 1rem;
    padding-block: 1.5rem 1rem;
  }

  .site-footer .site-footer__brand {
    gap: 0.5rem;
  }

  .site-footer .site-footer__nav-title {
    margin-bottom: 0.5rem;
  }

  .site-footer .site-footer__company {
    padding-top: 1rem;
  }

  .site-footer .site-footer__company-data {
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .site-footer .site-footer__bottom-inner {
    gap: 0.25rem;
    padding-block: 0.75rem;
  }

  .site-footer .site-footer__legal {
    gap: 0.25rem;
  }
}

@media (min-width: 22.5rem) and (max-width: 47.999rem) {
  .site-footer .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding-block: 1.25rem 0.75rem;
  }

  .site-footer .site-footer__nav,
  .site-footer .site-footer__company {
    grid-column: 1 / -1;
  }

  .site-footer .site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .site-footer .site-footer__company-data {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0.5rem;
  }
}
