/* ==========================================================================
   FOOTER — MaskeZaMob.rs
   File: flatsome-child/css/_footer.css
   Verzija: 1.0
   Enqueue: priority 20 (zajedno sa ostalim CSS fajlovima)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Flatsome „Absolute Footer" — sklonjen u celosti
   --------------------------------------------------------------------------

   Flatsome ispod našeg footera ispisuje svoju traku: „Copyright 2026 ©
   Flatsome Theme" i red ikonica za plaćanje.

   Tekst se gasi u Customize → Footer → Absolute Footer, ali **ikonice u ovoj
   verziji teme nemaju svoje podešavanje** — provereno kroz Customizer, opcije
   nema. Zato pravilo ovde, a ne kao workaround napisan unapred.

   Dva razloga zašto ide cela traka, ne samo ikonice:

   1. Duplikat — naš footer već ispisuje „© 2026 MaskeZaMob.rs Sva prava
      zadržana." i svoj red kartica (Visa, Mastercard, Maestro, DinaCard,
      Amex, Banca Intesa).
   2. Netačno — Flatsome-ov red pokazuje PayPal i Stripe, koje prodavnica ne
      prima. Kupac to vidi u footeru, a sazna tek na checkoutu.

   Bez `!important`: naš CSS ide sa priority 20, dakle posle Flatsome-ovog, pa
   pri istoj specifičnosti pobeđuje. Ako se ikad ne primeni, uzrok je redosled
   učitavanja, ne specifičnost.

   Ako Absolute Footer ikad zatreba, obriši ovo pravilo.
   -------------------------------------------------------------------------- */
.absolute-footer {
  display: none;
}

/* --------------------------------------------------------------------------
   1. Budi Human traka (humanitarna komponenta)
   -------------------------------------------------------------------------- */
.projekat__budi-human {
  background-color: var(--projekat-accent, #3c83f5);
  color: #ffffff;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 4vw, 2rem);
}

.projekat__budi-human-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  text-align: center;
  flex-wrap: wrap;
}

.projekat__budi-human-logo {
  flex-shrink: 0;
  height: 32px;
  width: auto;
  border-radius: 4px;
}

.projekat__budi-human-text {
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  line-height: 1.4;
}

.projekat__budi-human-text strong {
  font-weight: 700;
}

.projekat__budi-human-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
  white-space: nowrap;
}

.projekat__budi-human-link:hover {
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   2. Glavni footer — navy pozadina
   -------------------------------------------------------------------------- */
.projekat__footer {
  background-color: #0e1629;
  color: #ffffff;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem) clamp(1.5rem, 3vw, 2rem);
}

.projekat__footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   3. Glavni grid — 4 kolone desktop, stack mobile
   -------------------------------------------------------------------------- */
.projekat__footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 2.5rem);
}

@media (min-width: 550px) {
  .projekat__footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 850px) {
  .projekat__footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
  }
}

/* --------------------------------------------------------------------------
   4. Kolona: O firmi / kontakt
   -------------------------------------------------------------------------- */
.projekat__footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.projekat__footer-logo {
  display: inline-block;
  max-width: 160px;
}

.projekat__footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.projekat__footer-contact {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.projekat__footer-contact strong {
  color: #ffffff;
  font-weight: 600;
}

.projekat__footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.projekat__footer-contact a:hover {
  color: var(--projekat-accent, #3c83f5);
}

.projekat__footer-hours {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.projekat__footer-hours-title {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   5. Kolone sa linkovima
   -------------------------------------------------------------------------- */
.projekat__footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.1rem 0;
  letter-spacing: 0.01em;
}

.projekat__footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.projekat__footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.projekat__footer-links a:hover {
  color: var(--projekat-accent, #3c83f5);
}

/* --------------------------------------------------------------------------
   6. Payment ikonice
   -------------------------------------------------------------------------- */
.projekat__footer-payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.projekat__footer-payments img {
  height: 28px;
  width: auto;
  /* placeholder ikonice su belog/sivog tona; ako su pune boje ostavi bez filtera */
  filter: grayscale(20%) opacity(0.9);
}

/* --------------------------------------------------------------------------
   7. Bottom traka — copyright + social
   -------------------------------------------------------------------------- */
.projekat__footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: clamp(1.25rem, 3vw, 1.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 650px) {
  .projekat__footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.projekat__footer-copyright {
  line-height: 1.6;
}

.projekat__footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.projekat__footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.projekat__footer-social a:hover {
  background-color: var(--projekat-accent, #3c83f5);
}

.projekat__footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================================================
   9. Mobile accordion za footer kolone (Informacije/Poručivanje/Pomoć)
   ========================================================================== */
@media (max-width: 849px) {
  .projekat__footer-col-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 0;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .projekat__footer-col-title::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease;
    line-height: 1;
  }

  .projekat__footer-col.is-open .projekat__footer-col-title::after {
    content: '−';
  }

  .projekat__footer-links {
    max-height: 0;
    overflow: hidden;
    gap: 0;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0;
  }

  .projekat__footer-col.is-open .projekat__footer-links {
    max-height: 400px;
    padding: 0.9rem 0;
    gap: 0.65rem;
  }

  /* Brand kolona ostaje uvek vidljiva, bez accordion-a */
  .projekat__footer-brand {
    margin-bottom: 0.5rem;
  }

  .projekat__footer-grid {
    gap: 0;
  }
}