﻿/* === FOOTER === */

.am-footer {
  margin-top: 72px;
  background: #0f1d34;
  color: #ffffff;
  padding: 0;
  width: 100%;
  max-width: none;
}

/*
 * WordPress w wersji EN potrafi trzymać stopkę w kontenerze treści.
 * Ten full-bleed wyciąga ją do krawędzi okna również wtedy,
 * gdy stopka jest wklejona w treść strony jako am-english-page-footer.
 */
.am-footer.alignfull,
html[lang^="en"] .wp-site-blocks footer.am-english-page-footer.alignfull {
  width: auto !important;
  max-width: none !important;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
}

html[lang^="en"] .wp-site-blocks footer.am-english-page-footer .am-footer {
  width: 100% !important;
  max-width: none !important;
}

footer.am-english-page-footer {
  margin: 0 !important;
}

.am-footer-inner {
  padding-top: 64px;
  padding-bottom: 52px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 48px 42px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 0.9fr;
  gap: 42px;
  align-items: start;
}

.am-footer h2,
.am-footer h3,
.am-footer p {
  margin: 0;
}

.am-footer h2 {
  color: #ffffff;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 400;
}

.am-footer h3 {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.am-footer p,
.am-footer li,
.am-footer a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.7;
}

.am-footer-brand p {
  max-width: 430px;
  margin-top: 16px;
}

.am-footer-nav,
.am-footer-services,
.am-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.am-footer-nav a {
  text-decoration: none;
  transition: 0.2s ease;
}

.am-footer-nav a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.am-footer-services ul {
  margin: 0;
  padding-left: 18px;
}

.am-footer-services li {
  margin: 0 0 4px;
}

.am-footer-contact {
  gap: 0;
}

.am-footer-contact .wp-block-buttons {
  margin-top: 18px;
  width: 100%;
}

.am-footer-contact .wp-block-button {
  margin: 0;
}

.am-footer-contact .wp-block-button__link {
  height: 42px;
  min-height: 42px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--am-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.am-footer-contact .wp-block-button__link:hover {
  background: #f3f6ff;
  color: var(--am-ink);
}

.am-footer-bottom {
  padding-top: 22px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 48px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.am-footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.7;
}

/* Mobile */
@media (max-width: 900px) {
  .am-footer {
    margin-top: 56px;
  }

  .am-footer-inner {
    padding: 42px 24px 32px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .am-footer h2 {
    font-size: 28px;
  }

  .am-footer-bottom {
    padding: 18px 24px 24px;
  }
}

