/* ==========================================================================
   Footer — Variation A: linen ground, 4-column grid, wordmark hero
   ========================================================================== */

.site-footer {
  background: var(--linen);
  color: var(--charcoal);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 28px;
}

/* ── Wordmark ─────────────────────────────────────────────────────────── */

.footer-wordmark {
  margin-bottom: 40px;
}

.footer-wordmark a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-bottom: 0;
  text-decoration: none;
}

/* /img/wordmark-tight.svg has a tight viewBox (321 321 638 127, ratio 5.02:1),
   so the lettering fills ~96% of the box: 32px tall renders ~31px of type and
   ~161px wide. (wordmark-standalone.svg has a 1280x769 viewBox with the
   lettering in a ~127px band in the middle, which rendered the type ~5px tall
   at this size.) Height drives the size; width follows the artwork's own ratio. */
.footer-wm-img {
  height: 32px;
  width: auto;
  max-width: 100%;
  display: block;
}

/* ── 4-column grid ────────────────────────────────────────────────────── */

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 48px;
  align-items: start;
}

/* ── Column shared ───────────────────────────────────────────────────── */

.footer-col-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
  margin-bottom: 16px;
  font-family: var(--font-sans);
}

/* ── Column 1: Company ────────────────────────────────────────────────── */

.footer-addr {
  font-size: 14px;
  color: var(--stone);
  line-height: 1.8;
}

.footer-phone {
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 0;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: var(--numerals-tabular, "lnum", "tnum");
  transition: color var(--dur-base) var(--ease);
}

.footer-phone:hover {
  color: var(--brass);
}

.footer-hours {
  margin-top: 10px;
  font-size: 13px;
  color: var(--stone);
}

/* ── Columns 2 + 3: Link lists ────────────────────────────────────────── */

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    color var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease);
}

.footer-links a:hover {
  color: var(--brass);
  border-bottom-color: var(--brass);
}

.footer-ext-link {
  font-size: 14px;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--dur-base) var(--ease);
}

.footer-ext-link:hover {
  color: var(--brass);
}

.footer-ext-link:hover .ext-icon {
  opacity: 0.9;
}

/* ── Column 4: EHO ───────────────────────────────────────────────────── */

.footer-col--eho {
  display: flex;
  justify-content: flex-end;
}

.footer-eho-img {
  height: 64px;
  width: auto;
  display: block;
}

/* ── Bottom strip ─────────────────────────────────────────────────────── */

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--pebble);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: var(--stone);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  font-size: 12px;
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease);
}

.footer-legal-links a:hover {
  color: var(--brass);
  border-bottom-color: var(--brass);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ~900px: 2-column grid */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-col--eho {
    justify-content: flex-start;
    grid-column: 1 / -1;
    order: 10; /* push EHO below nav columns */
  }
}

/* ~620px: single column */
@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col--eho {
    grid-column: 1;
    order: 10;
  }

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

  .footer-container {
    padding: 48px 24px 24px;
  }
}
