/* ==========================================================================
   Site footer. Loaded last (via footer.php), so keep selectors scoped to
   footer elements — anything global here would override the page sheets.
   ========================================================================== */

/* Sticky footer: push the footer down on short pages */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
  width: 100%;
  background: var(--brand-900, #062617);
  color: rgba(255, 255, 255, .75);
  font-size: .94rem;
  line-height: 1.7;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr .85fr 1.75fr 1.25fr;
  gap: clamp(28px, 5vw, 56px);
  max-width: var(--wrap, 1180px);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 32px);
}

/* Brand column */
.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: #fff;
  text-decoration: none;
}
.footer-brand .logo:hover { text-decoration: none; }

.footer-brand .logo img {
  height: 54px;
  width: 54px;
  max-width: none;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5);
  padding: 2px;
  transition: transform .3s ease;
}
.footer-brand .logo:hover img { transform: scale(1.05); }

.footer-brand .logo span {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #fff;
}

.footer-brand .tagline {
  max-width: 34ch;
  margin: 0;
  color: rgba(255, 255, 255, .6);
  font-size: .92rem;
}

/* Link columns */
.footer-col h4 {
  margin: 0 0 16px;
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

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

.footer-col li { margin-bottom: 9px; }

/* All ten departments are listed, so split them into two columns rather than
   letting one column run twice as tall as everything else in the footer. */
.footer-departments ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}

.footer-col a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  transition: color .18s ease;
}

.footer-col a:hover {
  color: var(--accent, #c9a227);
  text-decoration: none;
}

/* Contact column */
.footer-contact .address {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .7);
  font-size: .92rem;
}

.footer-contact .address a { color: var(--accent, #c9a227); }
.footer-contact .address a:hover { color: #e6cc6a; text-decoration: underline; }

.social {
  display: flex;
  gap: 10px;
}

.social .links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.social .links svg {
  height: 19px;
  width: 19px;
  fill: #fff;
}

.social .links:hover {
  background: var(--accent, #c9a227);
  border-color: var(--accent, #c9a227);
  transform: translateY(-3px);
}
.social .links:hover svg { fill: var(--brand-900, #062617); }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: .87rem;
  color: rgba(255, 255, 255, .55);
}

.footer-bottom strong { color: rgba(255, 255, 255, .8); font-weight: 650; }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-departments { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .social { justify-content: flex-start; }
}
