/* Footer — scoped to beat global heading styles in text.css */

.site-footer-wrapper {
  padding: 4rem 2rem 2.5rem;
  background-color: #043548;
  color: #ffffff;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer-columns {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.7fr;
  gap: 3rem 2.5rem;
  align-items: start;
}

.site-footer-col.wide p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 520px;
}

/* Override global h3/h4 { color: #063a4b !important } from text.css */
.site-footer-wrapper .site-footer-col h3,
.site-footer-wrapper .site-footer-col h4 {
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.site-footer-wrapper .site-footer-col h4 {
  margin-top: 0.5rem;
}

.site-footer-col.wide h4:first-of-type {
  margin-top: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffcc66;
}

.footer-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 1.5rem;
}

.footer-icon-row a {
  display: block;
  line-height: 0;
}

.footer-icon {
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  padding: 8px;
  border-radius: 8px;
  object-fit: contain;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-icon-row a:hover .footer-icon {
  transform: translateY(-2px);
  background-color: #f0f0f0;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer-left {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer-bottom a:hover {
  color: #ffcc66;
}

/* Tablet */
@media (max-width: 1024px) {
  .site-footer-columns {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer-col.wide {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .site-footer-wrapper {
    padding: 3rem 1.25rem 2rem;
  }

  .site-footer-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer-col.wide p {
    max-width: none;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-right {
    flex-direction: column;
    gap: 0.75rem;
  }
}
