/* =============================================
   VERDE PRIME — Footer
   ============================================= */

.vp-footer {
  position: relative;
  overflow: hidden;
  /* Solid kolor domyślny — tło-obraz ładowane lazy przez JS gdy footer zbliża się do viewportu.
     Oszczędza 312KB JPEG w pierwszym renderze (fix-6: main.js IntersectionObserver). */
  background-color: #1F1F1F;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.vp-footer.is-bg-loaded {
  background-image: url('../images/tlo-1.jpeg');
}

.vp-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 31, 0.93);
}

.vp-footer > * {
  position: relative;
  z-index: 1;
}

.vp-footer__inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 96px 60px 60px;
}

/* --- Hero (logo + kontakt) --- */
.vp-footer__hero {
  text-align: center;
  margin-bottom: 56px;
}

.vp-footer__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-decoration: none;
}

.vp-footer__logo-img {
  height: 72px;
  width: auto;
  filter: brightness(0) invert(1);
}

.vp-footer__logo-text {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  text-align: center;
  line-height: 1.2;
}

.vp-footer__logo-text small {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gray-500);
}

/* Divider */
.vp-footer__divider {
  width: 48px;
  height: 2px;
  background: #dbe442;
  margin: 0 auto 24px;
}

.vp-footer__phone {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 600;
  color: #dbe442;
  letter-spacing: 2px;
  text-decoration: none;
  margin-bottom: 8px;
  transition: opacity 0.2s;
}

.vp-footer__phone:hover { opacity: 0.8; }

.vp-footer__email {
  display: block;
  font-size: 15px;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.vp-footer__email:hover { color: #dbe442; }

/* --- Nav columns --- */
.vp-footer__cols {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  margin-bottom: 48px;
}

.vp-footer__col {
  padding: 0 48px;
  text-align: center;
}

.vp-footer__col-sep {
  background: #222;
}

/* Nagłówek kolumny */
.vp-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vp-footer__nav-list > li:first-child > a,
.vp-footer__col-heading {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #dbe442;
  margin-bottom: 16px;
  pointer-events: none;
}

.vp-footer__nav-list li a {
  display: block;
  color: #bbb;
  font-size: 13px;
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.2s;
}

.vp-footer__nav-list li a:hover { color: #dbe442; }

/* --- Social icons --- */
.vp-footer__social {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.vp-footer__social-link {
  width: 56px;
  height: 56px;
  border: 2px solid #C5D4A8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C5D4A8;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.vp-footer__social-link:hover {
  background: #C5D4A8;
  color: #1f1f1f;
  transform: translateY(-2px);
}

/* --- Copyright bar --- */
.vp-footer__bottom {
  border-top: 1px solid #1a1a1a;
  /* iOS safe-area-inset-bottom — żeby linki nie chowały się za dolnym paskiem Safari/Chrome.
     env() resolvuje do 0 na desktop, ~34px na iPhone z notch/home-indicator. */
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  max-width: 1800px;
  margin: 0 auto;
}

.vp-footer__bottom p {
  color: #777;
  font-size: 11px;
  letter-spacing: 0.5px;
  margin: 0;
}

.vp-footer__legal {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  margin-top: 8px;
}

.vp-footer__legal a {
  color: #555;
  font-size: 11px;
  text-decoration: none;
  transition: color 0.2s;
}

.vp-footer__legal a:hover { color: #dbe442; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .vp-footer {
    background-attachment: scroll;
  }

  .vp-footer::before {
    background: rgba(31, 31, 31, 0.88);
  }

  .vp-footer__inner {
    padding: 56px 24px 40px;
  }

  /* Mobile: zwiększony bottom padding na linki cookies — żeby NIGDY nie zniknęły za dolnym toolbarem Safari/Chrome.
     60px = rezerwa na URL bar + tab switcher + home indicator. Plus env() dla iPhone z viewport-fit=cover. */
  .vp-footer__bottom {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }

  .vp-footer__phone {
    font-size: 28px;
  }

  .vp-footer__cols {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .vp-footer__col {
    padding: 20px 0;
    border-bottom: 1px solid #222;
  }

  .vp-footer__col:last-child { border-bottom: none; }

  .vp-footer__col-sep { display: none; }

  .vp-footer__social-link {
    width: 48px;
    height: 48px;
    font-size: 14px;
  }

  .vp-footer__bottom {
    /* NIE używaj shorthand `padding` — to resetuje bottom safe-area z reguły wyżej.
       Mobile small: 20px top + 24px sides + dynamic bottom (rezerwa na Safari/Chrome toolbar). */
    padding-top: 20px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .vp-footer__legal { flex-wrap: wrap; }
}
