/* ==========================================================================
   FOOTER
   Desktop first (>1023px), zatim tablet (768-1023px) i mobile (<=767px).
   ========================================================================== */

.site-footer {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;

  padding: 80px 0 40px 0;
  background: #161616;
}

.site-footer__inner {
  width: 100%;
  max-width: var(--container-width);
  padding: 0 48px;
}

/* ---- Row 1: brand (logo + text) + app badges ---- */
.site-footer__row1 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  max-width: 352px;
}

.site-footer__logo {
  display: flex;
  height: 48px;
  align-items: center;
}

.site-footer__logo svg {
  display: block;
  height: 48px;
  width: auto;
}

.site-footer__text {
  margin: 0;
  color: var(--color-text-muted);
  text-align: left;
  font-family: var(--font-family);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px; /* 150% */
}

.site-footer__text--brand {
  margin-top: 24px;
}

.site-footer__text--contact {
  margin-top: 16px;
  white-space: nowrap;
}

.site-footer__text a {
  color: inherit;
  transition: color var(--transition-fast);
}

.site-footer__text a:hover {
  color: var(--color-white);
}

/* App store / google play badges */
.site-footer__badges {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.site-footer__badge {
  display: flex;
  height: 48px;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.site-footer__badge img {
  display: block;
  height: 48px;
  width: auto;
}

.site-footer__badge:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ---- Divider: tacno 50% plava / 50% crvena linija, na SVIM breakpointima ---- */
.site-footer__divider {
  margin-top: 40px;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--main-blue) 0%, var(--main-blue) 50%, var(--main-red) 50%, var(--main-red) 100%);
}

/* ---- Row 3: copyright + terms links ---- */
.site-footer__bottom {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__copyright,
.site-footer__terms-link {
  margin: 0;
  color: var(--color-text-muted);
  text-align: center;
  font-family: var(--font-family);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.5px; /* 150% */
  transition: color var(--transition-fast);
}

.site-footer__terms-link:hover {
  color: var(--color-white);
}

.site-footer__terms {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer__terms-divider {
  color: rgba(255, 255, 255, 0.20);
  text-align: center;
  font-family: var(--font-family);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.5px; /* 150% */
}

/* ==========================================================================
   TABLET (768px - 1023px)
   ========================================================================== */
@media (max-width: 1023px) {

  .site-footer {
    padding: 80px 0 48px 0;
  }

  .site-footer__inner {
    padding: 0 24px;
  }

  .site-footer__row1 {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__brand {
    max-width: 100%;
  }

  .site-footer__text--brand {
    margin-top: 16px;
  }

  .site-footer__badges {
    margin-top: 48px;
  }

}

/* ==========================================================================
   MOBILE (<= 767px)
   Terms row ide PRE copyright reda (obrnut redosled u odnosu na desktop/tablet).
   ========================================================================== */
@media (max-width: 767px) {

  .site-footer__bottom {
    flex-direction: column-reverse;
    align-items: center;
    gap: 16px;
  }

  .site-footer__terms {
    flex-wrap: wrap;
    justify-content: center;
  }
}
