/* =========================================================
   WEATHERDUCK — SITE FOOTER (MU)
   Two-tier layout: brand row + page links on top,
   legal links + company details below the rule.
   Dark chrome to match the header (site-dark-chrome.css).
   ========================================================= */

.wd-footer {
  background: #1e2b22;
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: auto;
  font-family: var(--wd-font);
}

.wd-footer__wrap {
  width: 1168px;
  max-width: 100%;
  margin: 0 auto;
  padding: 26px 24px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "brand    nav      social"
    "rule     rule     rule"
    "copyline copyline copyline"
    "company  company  company";
  align-items: center;
  column-gap: 24px;
}

/* Brand row — logo + one-line wordmark + socials */
.wd-footer__brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wd-footer__logo {
  width: 38px;
  height: 38px;
  display: block;
}

.wd-footer__wordmark {
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .03em;
  white-space: nowrap;
}

.wd-footer__social {
  grid-area: social;
  display: flex;
  gap: 10px;
  justify-self: end;
}

.wd-footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #d2d6d3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e2b22;
}

.wd-footer__social a:hover {
  background: #fff;
}

.wd-footer__social svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Page links — bold tier */
.wd-footer__nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
}

.wd-footer__nav a {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.wd-footer__nav a:hover {
  color: #fff;
}

/* Rule */
.wd-footer__rule {
  grid-area: rule;
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255,255,255,.14);
  margin: 20px 0 16px;
}

/* Small print — one centred stack, two lines:
   © + legal links, then the company line. */
.wd-footer__copyline {
  grid-area: copyline;
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
}

.wd-footer__copyright {
  white-space: nowrap;
}

.wd-footer__copyline a {
  color: rgba(255,255,255,.6);
  font-weight: 500;
  text-decoration: none;
}

.wd-footer__copyline a:hover {
  color: rgba(255,255,255,.9);
}

.wd-footer__dot {
  color: rgba(255,255,255,.22);
  margin: 0 8px;
}

.wd-footer__company {
  grid-area: company;
  margin: 6px 0 0;
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,.28);
  line-height: 1.6;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {
  .wd-footer__wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "social"
      "nav"
      "rule"
      "copyline"
      "company";
    padding: 26px 24px 16px;
  }

  .wd-footer__brand {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }

  .wd-footer__logo {
    width: 48px;
    height: 48px;
  }

  .wd-footer__social {
    justify-content: center;
    justify-self: stretch;
    margin-top: 12px;
  }

  .wd-footer__nav {
    margin-top: 22px;
    gap: 8px 20px;
    justify-content: center;
  }

  .wd-footer__nav a {
    font-size: 15px;
    padding: 4px 0;
  }

  .wd-footer__copyline {
    line-height: 2;
  }

  /* © + company name on its own line, legal links beneath */
  .wd-footer__copyright {
    display: block;
  }

  .wd-footer__dot--lead {
    display: none;
  }

  /* Reserved space so the cookie banner + reCAPTCHA badge
     sit below the links instead of covering them */
  .wd-footer {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}
