/* Block: Footer (VCA) */

.vca-footer {
  background: #181327;
  color: #cdd6df;
  padding: 70px 0 25px;
}

.wp-site-blocks > footer.vca-footer,
.wp-site-blocks > .vca-footer {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

/* Nad footerem: bez marginesu (main → template-part / stopka w layoutcie bloków) */
.wp-site-blocks > main + .wp-block-template-part,
.wp-site-blocks > main + footer {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

.wp-site-blocks > .wp-block-template-part:has(.vca-footer),
.wp-site-blocks > .wp-block-template-part:has(footer#colophon) {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

footer.vca-footer#colophon {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

.vca-footer__container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.vca-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.vca-footer__title {
  font-family: type-36, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  line-height: 26px !important;
  height: auto;
  color: #fff !important;
  margin: 0 0 24px;
}

.vca-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vca-footer__list li {
  margin: 10px 0;
}

.vca-footer__list--contact li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  margin: 14px 0;
}

.vca-footer__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vca-footer__svg {
  width: 18px;
  height: 18px;
}

.vca-footer__icon-email {
  width: 21px;
  height: 14px;
  object-fit: contain;
  display: block;
  /* #23c767 */
  filter: brightness(0) saturate(100%) invert(58%) sepia(93%) saturate(478%) hue-rotate(105deg);
}

.vca-footer__icon-adres {
  width: 16px;
  height: 20px;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(58%) sepia(93%) saturate(478%) hue-rotate(105deg);
}

.vca-footer__icon-phone {
  width: 16px;
  height: 27px;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(58%) sepia(93%) saturate(478%) hue-rotate(105deg);
}

.vca-footer__link {
  display: flex;
  font-family: type-36, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgb(167, 166, 169);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.vca-footer__text {
  font-family: type-36, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgb(167, 166, 169);
}

/* Fallback: apply the same typography to any footer links without vca-footer__link class. */
.vca-footer a:not(.vca-footer__social-link) {
  font-family: type-36, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.vca-footer__link:hover {
  color: #23c767;
}

.vca-footer__link--accent {
  color: #23c767;
}

/* Pierwsza kolumna: numery telefonów na zielono */
.vca-footer__col--company .vca-footer__link[href^="tel:"] {
  color: #23c767;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
}

.vca-footer__col--company .vca-footer__link[href^="tel:"]:hover {
  color: #23c767;
  text-decoration: underline;
}

.vca-footer__col--company .vca-footer__muted {
  display: inline;
  white-space: nowrap;
}

/* Pierwsza kolumna: adres mailowy na zielono */
.vca-footer__col--company .vca-footer__link[href^="mailto:"] {
  color: #23c767;
}

.vca-footer__col--company .vca-footer__link[href^="mailto:"]:hover {
  color: #23c767;
  text-decoration: underline;
}

.vca-footer__muted {
  color: rgba(205, 214, 223, 0.7);
}

.vca-footer__label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin: 12px 0 8px;
}

/* Slightly bigger spacing above phone section headings in the info column. */
.vca-footer__info-block + .vca-footer__info-block .vca-footer__label {
  margin-top: 18px;
}

.vca-footer__phones {
  line-height: 1.35;
}

.vca-footer__phones .vca-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  line-height: 1.35;
}

.vca-footer__phones .vca-footer__muted {
  display: inline;
  white-space: nowrap;
}

.vca-footer__info-block {
  margin: 0 0 14px;
}

.vca-footer__payments {
  margin: 55px auto 0;
}

/* Sekcja płatności: bez gridu, bez tła, grafika na 100% (nadpisuje style z theme) */
.vca-footer__payments-inner {
  background: none !important;
  border-radius: 0 !important;
  padding: 2.5rem 0 !important;
  display: block !important;
  grid-template-columns: unset !important;
  gap: unset !important;
  align-items: unset !important;
}

.vca-footer__payments-inner--image {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.vca-footer__payments-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.vca-footer__paynow {
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.02em;
  color: #0e061f;
  display: inline-block;
  line-height: 1;
}

.vca-footer__banks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: flex-start;
  color: #0e061f;
  font-size: 13px;
}

.vca-footer__banks li {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(14, 6, 31, 0.12);
  border-radius: 999px;
  background: rgba(14, 6, 31, 0.03);
  white-space: nowrap;
}

.vca-footer__bottom {
  margin-top: 56px;
}

.vca-footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 18px;
}

.vca-footer__bottom-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: rgba(205, 214, 223, 0.8);
  font-size: 13px;
}

.vca-footer__copyright {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
}

.vca-footer__copyright .vca-footer__link {
  margin-left: 5px;
}

.vca-footer__sep {
  margin: 0 8px;
  color: rgba(205, 214, 223, 0.5);
}

.vca-footer__social {
  display: inline-flex;
  gap: 14px;
  align-items: center;
}

.vca-footer__social-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  color: rgba(205, 214, 223, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.vca-footer__social-link:hover {
  background: transparent;
  color: #fff;
}

.vca-footer__social-svg {
  width: 16px;
  height: 16px;
}

/* Kolor ikon social: #a7a6a9, hover: zielony #23c767 */
.vca-footer__social-link .vca-footer__social-svg,
.vca-footer__social-link svg.vca-footer__social-svg {
  filter: brightness(0) saturate(100%) invert(66%);
  transition: filter 0.2s ease;
}

.vca-footer__social-link:hover .vca-footer__social-svg,
.vca-footer__social-link:hover svg.vca-footer__social-svg {
  filter: brightness(0) saturate(100%) invert(100%);
}

.vca-footer__icon-fb {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(66%);
  transition: filter 0.2s ease;
}

.vca-footer__social-link:hover .vca-footer__icon-fb {
  filter: brightness(0) saturate(100%) invert(100%);
}

@media (max-width: 1024px) {
  .vca-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .vca-footer__payments-inner {
    display: block !important;
    grid-template-columns: unset !important;
    text-align: unset !important;
    justify-items: unset !important;
  }
  .vca-footer__banks {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .vca-footer {
    padding-top: 55px;
  }

  .vca-footer,
  .vca-footer__title,
  .vca-footer__text,
  .vca-footer__link,
  .vca-footer__label,
  .vca-footer__copyright,
  .vca-footer__bottom-row {
    text-align: center;
    justify-content: center;
  }

  .vca-footer__list--contact li {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .vca-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .vca-footer__paynow {
    font-size: 38px;
  }
}
