/* FOOTER HERO */
#footer {
  padding-top: 4rem;
  position: relative;
  z-index: 1;
  background-color: #000;
}

.footer-mask {
  display: none;
}

/* Navigation visibility control */
.footer-nav.mobile-nav {
  display: none;
}

.footer-nav.desktop-nav {
  display: block;
}

.footer-hero {
  position: relative;
  border-radius: 4rem 4rem 0 0;
  overflow: hidden;
  min-height: 240px;
  color: #e8f0f6;
  z-index: 1;
}

/* Tło wideo */
.footer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Przyciemnienie pod treść */
.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 35, 56, 0.75);
  z-index: 1;
  backdrop-filter: blur(0.5px);
}

/* Kontener treści */
.footer-inner {
  position: relative;
  z-index: 2;
  padding-top: 4rem; /* Zwiększony odstęp od góry */
  margin-left: 6%;
}

/* Top: logo + menu */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7rem;
  padding-top: 1rem;
}
.footer-logo img {
  height: 28px;
  width: auto;
}

/* Menu w stopce */
.footer-menu {
  display: flex;
  gap: 3rem; /* odstęp między pozycjami */
  list-style: none;
  margin: 0;
  padding: 0;
  background: none; /* usuwa tło */
  font-size: 2rem;
}
.footer-menu li {
  display: flex;
  align-items: center;
}
.footer-menu a {
  position: relative;
  color: white;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  font-weight: 400;
  padding-left: 22px; /* increased space for SVG arrow */
}
.footer-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='white'%3E%3Cpath d='M11.293 4.707 17.586 11H4v2h13.586l-6.293 6.293 1.414 1.414L21.414 12l-8.707-8.707-1.414 1.414z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.footer-menu a:hover {
  text-decoration: underline;
}

/* Middle: lewy tekst */
.footer-middle {
  margin-bottom: 8rem;
}
.footer-text-left {
  font-size: 1.6rem;
  line-height: 130%;
}

/* Divider */
.footer-divider {
  border: 0;
  height: 1px;
  background: #6a7a8c;
  margin: 2rem 0;
}

/* Bottom: lewy + prawy tekst */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.6rem;
  line-height: 130%;
  margin-bottom: 3rem;
}
.footer-bottom-left {
  opacity: 0.95;
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0.95;
}
.footer-bottom-right a {
  text-decoration: none;
  color: white;
}

.footer-bottom-right span {
  text-decoration: none;
}
.footer-bottom-right a:hover {
  text-decoration: underline;
}


body:not(.home) #footer {
    background-color: #f8f5f4;
}

@media screen and (max-width: 768px) {
  .footer-hero {
    border-radius: 24px 24px 0 0;
  }
}

/* RESPONSYWNOŚĆ */
@media (max-width: 1025px) {
  .footer-menu {
    gap: 14px;
    padding: 8px 0px;
  }

  .blog-card__content {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 2rem;
  }
  .footer-text-left {
    max-width: none;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .footer-bottom-left {
    width: 100%;
    text-align: center;
  }
  .footer-bottom-right {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    width: 100%;
  }
  /* Mobile navigation styling */
  .footer-nav.mobile-nav {
    display: block;
    margin-top: 1.5rem;
  }
  .footer-nav.desktop-nav {
    display: none;
  }
  .footer-nav.mobile-nav .footer-menu {
    flex-direction: column;
    gap: 1rem;
    font-size: 1.6rem;
  }

  .footer-bottom {
    font-size: 1.2rem;
    gap: 8px;
}
}
