/* Footer layout and footer-specific links. */

.site-footer {
  padding: 34px 24px;
  overflow-x: clip;
  background: var(--bg, var(--wt-navy));
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  color: var(--soft, #8e9baa);
}

.footer-grid {
  width: min(var(--container, 1200px), calc(100% - 32px));
  max-width: var(--container, 1200px);
  min-width: 0;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0 auto;
}

.footer-grid > * {
  min-width: 0;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  max-width: min(340px, 100%);
  margin-bottom: 20px;
  text-decoration: none;
}

.footer-logo-img {
  display: block;
  width: min(340px, 100%);
  max-height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.3));
}

.footer-grid h4 {
  margin-bottom: 16px;
  color: #ffffff;
}

.footer-grid p {
  color: var(--soft, #8e9baa);
}

.footer-grid a,
.footer-bottom a {
  display: block;
  margin-bottom: 10px;
  color: var(--soft, #8e9baa);
  text-decoration: none;
  transition:
    transform 260ms ease,
    opacity 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease,
    background-color 260ms ease,
    color 260ms ease;
}

.footer-grid a:hover,
.footer-bottom a:hover {
  color: var(--wt-copper-light);
}

.footer-bottom {
  width: min(var(--container, 1200px), calc(100% - 32px));
  max-width: var(--container, 1200px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--soft, #8e9baa);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.footer-bottom a {
  display: inline;
  margin-bottom: 0;
}

.footer-inner {
  width: min(var(--container, 1180px), calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
  color: var(--soft);
}

.footer-inner div {
  display: grid;
  gap: 4px;
}

.footer-inner strong {
  color: var(--text);
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-world {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.3fr) minmax(220px, 0.8fr);
  align-items: start;
}

.footer-brand-block,
.footer-world-block,
.footer-action-block {
  display: grid;
  gap: 10px;
}

.footer-world-block > strong,
.footer-action-block > strong,
.footer-brand-block > strong {
  color: var(--text);
}

.footer-world-links,
.footer-action-block {
  display: grid;
  gap: 10px;
}

.footer-world-links a,
.footer-action-block a {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.footer-world-links a:hover,
.footer-action-block a:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--wt-copper-rgb), 0.34);
  background: rgba(var(--wt-copper-rgb), 0.08);
  color: var(--text);
}

.footer-world-links span,
.footer-action-block a {
  font-weight: 800;
}

.footer-world-links small {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.footer-bottom-line {
  width: min(var(--container, 1180px), calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 13px;
}

@media (max-width: 980px) {
  .footer-world {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    line-height: 1.7;
  }
}

@media (max-width: 760px) {
  .footer-inner {
    flex-direction: column;
  }

  .footer-world-links a:hover,
  .footer-action-block a:hover {
    transform: none;
  }
}

@media (max-width: 700px) {
  .site-footer {
    padding: 56px 16px 28px;
  }

  .footer-grid,
  .footer-bottom {
    width: 100%;
  }
}

/* Visual parity: footer rules from origin/main active cascade. */
.site-footer {
  padding: 70px 60px 30px;
  background: var(--wt-navy);
  color: #94a3b8;
}

.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h3 {
  color: var(--wt-copper);
  font-size: clamp(24px, 4vw, 28px);
  margin-bottom: 14px;
}

.footer-grid h4 {
  color: white;
  margin-bottom: 16px;
}

.footer-grid a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 10px;
}

.footer-grid a:hover {
  color: var(--wt-copper-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

body.home .site-footer,
body.front-page .site-footer,
body.page-template-page-systeme .site-footer,
body.page-template-page-systeme-php .site-footer {
  padding: 34px 24px;
  background: var(--bg, var(--wt-navy));
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.1));
}

body.home .footer-grid,
body.front-page .footer-grid,
body.page-template-page-systeme .footer-grid,
body.page-template-page-systeme-php .footer-grid {
  width: min(var(--container, 1200px), calc(100% - 32px));
  margin-inline: auto;
}

body.home .footer-bottom,
body.front-page .footer-bottom,
body.page-template-page-systeme .footer-bottom,
body.page-template-page-systeme-php .footer-bottom {
  color: var(--soft, #8e9baa);
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-footer {
    padding: 56px 20px 28px;
  }

  .footer-bottom {
    line-height: 1.7;
  }
}

/* Final footer polish for the current four-column markup. */
.footer-grid {
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  align-items: start;
}

.footer-grid h3 {
  color: var(--wt-copper);
}

.footer-grid a:hover,
.footer-bottom a:hover {
  color: var(--wt-copper-light);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #8e9baa;
}

body.home .footer-grid,
body.front-page .footer-grid,
body.page-template-page-systeme .footer-grid,
body.page-template-page-systeme-php .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

@media (max-width: 900px) {
  .footer-grid,
  body.home .footer-grid,
  body.front-page .footer-grid,
  body.page-template-page-systeme .footer-grid,
  body.page-template-page-systeme-php .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .footer-grid,
  body.home .footer-grid,
  body.front-page .footer-grid,
  body.page-template-page-systeme .footer-grid,
  body.page-template-page-systeme-php .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Premium footer polish: dark, copper-accented footer for all active pages. */
.site-footer,
body.home .site-footer,
body.front-page .site-footer,
body.page-template-page-systeme .site-footer,
body.page-template-page-systeme-php .site-footer {
  padding: 78px 32px 34px !important;
  background:
    linear-gradient(180deg, var(--wt-navy) 0%, var(--wt-navy-2) 58%, var(--wt-navy) 100%) !important;
  color: var(--wt-muted) !important;
  border-top: 1px solid rgba(var(--wt-copper-rgb), 0.42) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

.footer-grid,
body.home .footer-grid,
body.front-page .footer-grid,
body.page-template-page-systeme .footer-grid,
body.page-template-page-systeme-php .footer-grid {
  width: min(var(--container, 1200px), calc(100% - 32px)) !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(34px, 5vw, 58px) !important;
  align-items: start !important;
}

.footer-grid > * {
  min-width: 0 !important;
}

.footer-brand {
  display: grid !important;
  align-content: start !important;
  justify-items: start !important;
  gap: 14px !important;
}

.footer-grid .footer-brand-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  max-width: min(480px, 100%) !important;
  margin: 0 0 6px !important;
  line-height: 0 !important;
}

.footer-grid .footer-logo-img {
  display: block !important;
  width: min(480px, 100%) !important;
  max-height: 120px !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.3)) !important;
}

.footer-grid h4 {
  margin-bottom: 16px !important;
  color: var(--wt-text) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  letter-spacing: 0.02em !important;
}

.footer-grid p {
  max-width: 44rem !important;
  color: #b8aa9c !important;
}

.footer-brand p {
  max-width: 28rem !important;
  margin: 0 !important;
  color: var(--wt-muted) !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

.footer-grid a,
.footer-bottom a {
  color: var(--wt-muted) !important;
  text-decoration: none !important;
  transition:
    color 180ms ease,
    transform 180ms ease !important;
}

.footer-grid a {
  margin-bottom: 11px !important;
}

.footer-grid a:hover,
.footer-bottom a:hover {
  color: var(--wt-copper-light) !important;
}

.footer-bottom,
body.home .footer-bottom,
body.front-page .footer-bottom,
body.page-template-page-systeme .footer-bottom,
body.page-template-page-systeme-php .footer-bottom {
  width: min(var(--container, 1200px), calc(100% - 32px)) !important;
  max-width: 1200px !important;
  margin: 46px auto 0 !important;
  padding-top: 24px !important;
  border-top: 1px solid rgba(var(--wt-copper-rgb), 0.2) !important;
  color: #9f9184 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px 22px !important;
}

@media (max-width: 900px) {
  .footer-grid,
  body.home .footer-grid,
  body.front-page .footer-grid,
  body.page-template-page-systeme .footer-grid,
  body.page-template-page-systeme-php .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 34px !important;
  }
}

@media (max-width: 700px) {
  .site-footer,
  body.home .site-footer,
  body.front-page .site-footer,
  body.page-template-page-systeme .site-footer,
  body.page-template-page-systeme-php .site-footer {
    padding: 58px 18px 30px !important;
  }

  .footer-grid,
  body.home .footer-grid,
  body.front-page .footer-grid,
  body.page-template-page-systeme .footer-grid,
  body.page-template-page-systeme-php .footer-grid {
    width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .footer-grid .footer-logo-img {
    width: min(360px, 100%) !important;
    max-height: 92px !important;
  }

  .footer-bottom,
  body.home .footer-bottom,
  body.front-page .footer-bottom,
  body.page-template-page-systeme .footer-bottom,
  body.page-template-page-systeme-php .footer-bottom {
    width: 100% !important;
    margin-top: 34px !important;
    justify-content: flex-start !important;
  }
}
