/* ==========================================================================
   Site footer — shared by index.html, about.html and contact.html.
   Kept out of home.css because the footer is not homepage-specific.

   The theme shipped this footer with no background and a single half-empty
   column. It is now a dark brand-green closing block: a dark footer at the end
   of a light page is a layout convention, not a mid-page theme switch.
   Every foreground colour here is a solid value chosen to clear WCAG AA
   against #1f5439, rather than an alpha blend whose real contrast is a guess.
   ========================================================================== */

.main-footer {
  --ft-bg: #1f5439;
  --ft-head: #9fd9bd;
  --ft-text: #d7e3dd;
  --ft-muted: #b3c7bd;

  background: var(--ft-bg);
  color: var(--ft-text);
}

.main-footer .widgets-section {
  padding: 72px 0 44px;
}

.ft-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 44px;
}

.ft-col h4 {
  margin: 0 0 18px;
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ft-head);
}

.ft-brand__name {
  margin: 0 0 14px;
  font-family: "Libre Baskerville", serif;
  font-size: 19px;
  line-height: 1.4;
  color: #fff;
}

.ft-brand__name a {
  color: inherit;
  text-decoration: none;
}

.ft-brand__name a:hover,
.ft-brand__name a:focus {
  color: var(--ft-head);
}

.ft-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-col li + li {
  margin-top: 11px;
}

.ft-col p {
  margin: 0 0 12px;
}

.ft-col a,
.ft-col p {
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  line-height: 1.68;
  color: var(--ft-text);
  text-decoration: none;
}

.ft-col a:hover,
.ft-col a:focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ft-col a:focus-visible {
  outline: 2px solid var(--ft-head);
  outline-offset: 3px;
}

.ft-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ft-contact .icon {
  flex: 0 0 auto;
  margin-top: 4px;
  font-size: 15px;
  color: var(--ft-head);
}

/* ---------- bottom bar ---------- */

.main-footer .footer-bottom .bottom-inner {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.ft-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}

.main-footer .footer-bottom .copyright,
.ft-credit {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ft-muted);
}

.ft-credit a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ft-credit a:hover,
.ft-credit a:focus {
  color: var(--ft-head);
}

.ft-credit a:focus-visible {
  outline: 2px solid var(--ft-head);
  outline-offset: 3px;
}

/* ---------- responsive ---------- */

@media (max-width: 991px) {
  .ft-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }
  .main-footer .widgets-section {
    padding: 56px 0 34px;
  }
}

@media (max-width: 575px) {
  .ft-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .ft-bottom {
    justify-content: flex-start;
  }
}
