/**
 * Friends of Bulgaria - Footer Styles
 * Mobile-first approach with multi-column layout stacking below 768px.
 * Requirements: 3.14, 4.2
 *
 * @package Friends_of_Bulgaria
 * @since   1.0.0
 */

/* =========================================
   Site Footer
   ========================================= */

.site-footer {
  background-color: var(--fob-ink);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  padding-top: 64px;
  padding-bottom: 0;
}

/* =========================================
   Footer Container - Multi-column Layout
   ========================================= */

.site-footer__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--fob-line-light);
}

/* Column headings — small tracked-out labels, not display type. */
.site-footer__heading {
  font-family: var(--fob-sans);
  font-size: 0.76rem;
  font-weight: var(--fob-font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--fob-red-soft);
  margin-bottom: 16px;
}

.site-footer__blurb {
  max-width: 34ch;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.66);
}

/* =========================================
   Footer Navigation
   ========================================= */

.footer-navigation__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-navigation__list li {
  margin-bottom: 9px;
}

.footer-navigation__list a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  line-height: var(--fob-line-height-base);
  transition: color 0.2s ease;
}

.footer-navigation__list a:hover,
.footer-navigation__list a:focus {
  color: var(--fob-white);
  text-decoration: underline;
}

.footer-navigation__list .current-menu-item > a,
.footer-navigation__list .current_page_item > a {
  color: var(--fob-white);
  font-weight: var(--fob-font-weight-semibold);
}

/* =========================================
   Footer Contact Details
   ========================================= */

.site-footer__address {
  font-style: normal;
  margin-bottom: 9px;
}

.site-footer__address-line {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  line-height: var(--fob-line-height-base);
}

.site-footer__people {
  margin-top: 9px;
}

.site-footer__people p {
  margin: 0 0 var(--fob-space-xs);
  color: rgba(255, 255, 255, 0.74);
}

.site-footer__phone {
  margin: 0;
}

.site-footer__phone a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__phone a:hover,
.site-footer__phone a:focus {
  color: var(--fob-white);
  text-decoration: underline;
}

.site-footer__contact-link {
  margin-top: var(--fob-space-md);
}

.site-footer__contact-link a {
  font-weight: var(--fob-font-weight-semibold);
  color: var(--fob-red-soft);
}

.site-footer__contact-link a:hover,
.site-footer__contact-link a:focus {
  color: var(--fob-white);
  text-decoration: underline;
}

/* =========================================
   Footer Bottom Bar
   ========================================= */

.site-footer__bottom {
  padding: 24px 0 30px;
}

.site-footer__bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer__bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  text-align: center;
}

.site-footer__bottom-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--fob-space-md);
  justify-content: center;
}

.site-footer__bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__bottom-links a:hover,
.site-footer__bottom-links a:focus {
  color: var(--fob-white);
  text-decoration: underline;
}

.site-footer__bottom-links a:focus-visible {
  outline: 2px solid var(--fob-white);
  outline-offset: 4px;
  border-radius: 2px;
}

/* =========================================
   Responsive - Tablet and Above (768px)
   ========================================= */

@media (min-width: 861px) {
  /* Brand column is widest, then the two link columns. */
  .site-footer__container {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    align-items: start;
  }

  .site-footer__bottom .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* =========================================
   Focus Styles for Accessibility
   ========================================= */

.footer-navigation__list a:focus-visible {
  outline: 2px solid var(--fob-white);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-footer__phone a:focus-visible {
  outline: 2px solid var(--fob-white);
  outline-offset: 4px;
  border-radius: 2px;
}
