/**
 * SAVA MOTORS site shell.
 * 3 contextual headers / 3 contextual footers.
 */

body.sm-core-active header#site-header.site-header,
body.sm-core-active footer#site-footer.site-footer {
  display: none !important;
}

body.sm-core-active {
  --sm-shell-dealer: #111111;
  --sm-shell-ford: #002b5c;
  --sm-shell-chery: #a4896c;
  --sm-shell-text: #1e1e1e;
  --sm-shell-muted: #686868;
  --sm-shell-border: rgba(0, 0, 0, 0.1);
  --sm-shell-bg: #ffffff;
  --sm-shell-dark: #111111;
}

.sm-site-header,
.sm-site-footer {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--sm-shell-text);
}

.sm-site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--sm-shell-bg);
  border-bottom: 1px solid var(--sm-shell-border);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.055);
}

body.admin-bar .sm-site-header {
  top: 32px;
}

.sm-site-header__top {
  background: #111111;
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1.2;
}

.sm-site-header__top-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.sm-site-header__top-link {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
}

.sm-site-header__top-link:hover,
.sm-site-header__top-link:focus {
  color: #ffffff;
  opacity: 1;
}

.sm-site-header__top-separator {
  opacity: 0.4;
}

.sm-site-header__main {
  background: #ffffff;
}

.sm-site-header__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.sm-site-header__logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.sm-site-header__logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: 190px;
  object-fit: contain;
}

.sm-site-header__nav {
  flex: 1 1 auto;
}

.sm-site-header__nav ul,
.sm-site-header__mobile-nav ul,
.sm-site-footer__nav ul,
.sm-site-footer__contacts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sm-site-header__nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 1.7vw, 26px);
}

.sm-site-header__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #1f1f1f;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sm-site-header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: #111111;
  transition: transform 180ms ease;
}

.sm-site-header--ford .sm-site-header__nav a::after {
  background: var(--sm-shell-ford);
}

.sm-site-header--chery .sm-site-header__nav a::after {
  background: var(--sm-shell-chery);
}

.sm-site-header__nav a:hover::after,
.sm-site-header__nav a:focus::after,
.sm-site-header__nav .is-active a::after {
  transform: scaleX(1);
}

.sm-site-header__nav .is-active a {
  color: #000000;
}

.sm-site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.sm-site-header__phone,
.sm-site-header__cta,
.sm-site-header__mobile-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.sm-site-header__phone {
  color: #111111;
  background: #f3f3f3;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.sm-site-header__cta {
  color: #ffffff;
  background: #111111;
  border: 1px solid #111111;
}

.sm-site-header--ford .sm-site-header__cta {
  background: var(--sm-shell-ford);
  border-color: var(--sm-shell-ford);
}

.sm-site-header--chery .sm-site-header__cta {
  background: var(--sm-shell-chery);
  border-color: var(--sm-shell-chery);
}

.sm-site-header__phone:hover,
.sm-site-header__phone:focus {
  color: #000000;
  background: #e9e9e9;
}

.sm-site-header__cta:hover,
.sm-site-header__cta:focus {
  color: #ffffff;
  filter: brightness(0.92);
}

.sm-site-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: #ffffff;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.sm-site-header__toggle span:not(.screen-reader-text) {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #111111;
  display: block;
}

.sm-site-header__mobile {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.sm-site-header__mobile-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 8px;
}

.sm-site-header__mobile-nav li + li {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.sm-site-header__mobile-nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  color: #111111;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
}

.sm-site-header__mobile-nav .is-active a {
  color: #000000;
}

.sm-site-header__mobile-actions {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sm-site-header__mobile-actions a:first-child {
  color: #111111;
  background: #f3f3f3;
}

.sm-site-header__mobile-actions a:last-child {
  color: #ffffff;
  background: #111111;
}

.sm-site-header--ford .sm-site-header__mobile-actions a:last-child {
  background: var(--sm-shell-ford);
}

.sm-site-header--chery .sm-site-header__mobile-actions a:last-child {
  background: var(--sm-shell-chery);
}

.sm-site-footer {
  background: #111111;
  color: #ffffff;
  margin-top: 0;
}

.sm-site-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 0.8fr) minmax(260px, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.sm-site-footer__logo-link {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.sm-site-footer__logo {
  display: block;
  width: auto;
  height: 50px;
  max-width: 190px;
  object-fit: contain;
}

.sm-site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.65;
}

.sm-site-footer__address {
  margin-top: 14px !important;
  color: #ffffff !important;
}

.sm-site-footer__column h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sm-site-footer__nav li + li {
  margin-top: 9px;
}

.sm-site-footer__nav a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-size: 0.95rem;
}

.sm-site-footer__nav a:hover,
.sm-site-footer__nav a:focus,
.sm-site-footer__nav .is-active a {
  color: #ffffff;
}

.sm-site-footer__contacts {
  display: grid;
  gap: 13px;
}

.sm-site-footer__contacts span {
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sm-site-footer__contacts a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 650;
}

.sm-site-footer__contacts a:hover,
.sm-site-footer__contacts a:focus {
  text-decoration: underline;
}

.sm-site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sm-site-footer__bottom p {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
}

@media (max-width: 1180px) {
  .sm-site-header__inner {
    gap: 18px;
  }

  .sm-site-header__nav ul {
    gap: 14px;
  }

  .sm-site-header__nav a {
    font-size: 0.82rem;
  }

  .sm-site-header__phone {
    display: none;
  }
}

@media (max-width: 940px) {
  body.admin-bar .sm-site-header {
    top: 46px;
  }

  .sm-site-header__top {
    display: none;
  }

  .sm-site-header__inner {
    min-height: 68px;
  }

  .sm-site-header__logo {
    height: 44px;
    max-width: 158px;
  }

  .sm-site-header__nav,
  .sm-site-header__cta {
    display: none;
  }

  .sm-site-header__toggle {
    display: inline-flex;
  }

  .sm-site-header.is-open .sm-site-header__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .sm-site-header.is-open .sm-site-header__toggle span:nth-child(2) {
    opacity: 0;
  }

  .sm-site-header.is-open .sm-site-header__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .sm-site-footer__inner {
    grid-template-columns: 1fr;
    padding: 40px 0 26px;
  }
}

@media (max-width: 520px) {
  .sm-site-header__inner,
  .sm-site-header__mobile-nav,
  .sm-site-header__mobile-actions,
  .sm-site-footer__inner,
  .sm-site-footer__bottom p {
    width: min(100% - 24px, 1180px);
  }

  .sm-site-header__mobile-actions {
    grid-template-columns: 1fr;
  }

  .sm-site-footer__logo {
    height: 44px;
    max-width: 170px;
  }
}

/* SM 5.4E-6-FIX Reno Sava footer credit */
.sm-site-footer__bottom a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 500;
}

.sm-site-footer__bottom a:hover,
.sm-site-footer__bottom a:focus {
  color: #ffffff;
  text-decoration: underline;
}

/* SM 5.4E-7 center footer credit */
.sm-site-footer__bottom {
  text-align: center;
}

.sm-site-footer__bottom p {
  text-align: center;
  display: block;
}

/* SM 5.4E-8 remove top contact strip */
.sm-site-header__top {
  display: none !important;
}

/* SM 5.4E-9 remove footer logo */
.sm-site-footer__logo-link,
.sm-site-footer__logo {
  display: none !important;
}


/* SM SERVICE SUBMENU */
.sm-site-header__nav li {
  position: relative;
}
.sm-site-header__nav .sm-site-header__submenu {
  position: absolute;
  z-index: 1000;
  top: calc(100% - 2px);
  left: 50%;
  display: block;
  width: 270px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e1e6eb;
  border-radius: 7px;
  box-shadow: 0 16px 36px rgba(23,40,59,.14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%,8px);
  transition: opacity .16s ease,transform .16s ease,visibility .16s ease;
}
.sm-site-header__nav .has-children:hover > .sm-site-header__submenu,
.sm-site-header__nav .has-children:focus-within > .sm-site-header__submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%,0);
}
.sm-site-header__nav .sm-site-header__submenu li {
  display: block;
}
.sm-site-header__nav .sm-site-header__submenu a {
  display: flex;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  white-space: normal;
}
.sm-site-header__nav .sm-site-header__submenu a::after {
  display: none;
}
.sm-site-header__nav .sm-site-header__submenu a:hover,
.sm-site-header__nav .sm-site-header__submenu a:focus {
  background: #f3f6f8;
  color: #ed1c24;
}
.sm-site-header__mobile-nav .sm-site-header__submenu {
  display: block;
  padding: 0 0 8px 18px;
}
.sm-site-header__mobile-nav .sm-site-header__submenu a {
  min-height: 42px;
  color: #5f6974;
  font-size: 14px;
  text-transform: none;
}



/* SM GLOBAL NO UNDERLINE .141 */

body.sm-core-active a,
body.sm-core-active a:link,
body.sm-core-active a:visited,
body.sm-core-active a:hover,
body.sm-core-active a:focus,
body.sm-core-active a:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
}

/* Header / footer navigacija */
body.sm-core-active .sm-site-header__nav a,
body.sm-core-active .sm-site-footer__nav a,
body.sm-core-active .sm-site-header__nav a:hover,
body.sm-core-active .sm-site-header__nav a:focus,
body.sm-core-active .sm-site-footer__nav a:hover,
body.sm-core-active .sm-site-footer__nav a:focus {
    border-bottom: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Aktivni meni — bez linije */
body.sm-core-active .sm-site-header__nav a::after,
body.sm-core-active .sm-site-header__nav .current-menu-item > a::after,
body.sm-core-active .sm-site-header__nav .current_page_item > a::after {
    display: none !important;
    content: none !important;
}

/* CTA / tekstualni linkovi */
body.sm-core-active [class*="button"],
body.sm-core-active [class*="btn"],
body.sm-core-active [class*="cta"],
body.sm-core-active [class*="text-link"] {
    text-decoration: none !important;
}
