/* =============================================================
   Spartan Agency — Site footer

   All-plum footer, three vertically-stacked rows:

     Row 1  .site-footer__phone       Centered white H3 phone
     Row 2  .site-footer__cols        3-column grid:
              .site-footer__col--find      Find Us
              .site-footer__col--area      Our Service Area
              .site-footer__col--contact   Contact Us + schema
     Row 3  .site-footer__ribbon      Copyright + legal + socials

   Mirrors the scraped Hibu `dmFooterResp`. Colors from tokens.css.
   The old `.tx-contact-block` + `.site-footer__inner` +
   `.footer__badges` structures are retired.
   ============================================================= */

.site-footer {
  background: var(--surface-footer);
  color: var(--text-on-dark);
  padding-block: var(--s-8) var(--s-5);
  font-family: var(--font-body);
  border-top: 3px solid var(--brand-primary);
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--accent); }

/* ---------- Row 1: centered phone H3 ---------- */
.site-footer__phone {
  text-align: center;
  padding: 0 var(--gutter) var(--s-6);
}

.site-footer__phone-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  letter-spacing: 0.01em;
  color: var(--on-plum);
}

.site-footer__phone-heading a { color: var(--on-plum); }
.site-footer__phone-heading a:hover,
.site-footer__phone-heading a:focus-visible { color: var(--accent); }

/* ---------- Row 2: three columns ---------- */
.site-footer__cols {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-7);
  align-items: start;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-width: 0;
}

.site-footer__col-title {
  margin: 0 0 var(--s-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--accent);
  letter-spacing: 0.01em;
}

.site-footer__col p,
.site-footer__col address,
.site-footer__col ul,
.site-footer__col figure {
  margin: 0;
}

.site-footer__address {
  font-style: normal;
  line-height: var(--lh-body);
  color: var(--on-plum);
}

/* -- Find Us -- */
.site-footer__map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule-dark);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--charcoal-2);
}

.site-footer__map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.site-footer__cta {
  margin-top: var(--s-2);
}

/* -- Our Service Area -- */
.site-footer__area-map {
  border: 1px solid var(--rule-dark);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--charcoal-2);
}

.site-footer__area-map img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.92;
}

.site-footer__area-lead {
  font-weight: 600;
  color: var(--on-plum);
}

.site-footer__area-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-1) var(--s-4);
  color: var(--on-plum);
  line-height: 1.6;
}

.site-footer__area-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

/* -- Contact Us / schema -- */
.site-footer__contact-name {
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.site-footer__contact-address {
  color: var(--on-plum);
  line-height: var(--lh-body);
}

.site-footer__contact-line {
  color: var(--on-plum);
  line-height: 1.5;
}

.site-footer__contact-label {
  display: inline-block;
  min-width: 48px;
  color: var(--on-plum-muted);
}

.site-footer__contact-line a { color: var(--on-plum); border-bottom: 1px dotted var(--rule-dark); }
.site-footer__contact-line a:hover,
.site-footer__contact-line a:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }

.site-footer__contact-hours {
  color: var(--on-plum-muted);
  font-size: var(--fs-small);
}

.site-footer__badges {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-top: var(--s-3);
}

/* Badge sits inside a subtle bone-tinted card so trademarked marks
   (NARPM color logo + Equal Housing black-on-white glyph) stay
   legible on the dark footer without a heavy full-white chip that
   floats loud on the charcoal. */
.site-footer__badge {
  height: 56px;
  width: auto;
  background: var(--bone);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.site-footer__disclaimer {
  margin-top: var(--s-3);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--on-plum-muted);
}

/* ---------- Row 3: legal ribbon ---------- */
.site-footer__ribbon {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule-dark);
}

.site-footer__ribbon-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.8125rem;
  color: var(--on-plum-muted);
}

.site-footer__legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.site-footer__legal a { color: var(--on-plum-muted); }
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible { color: var(--accent); }

/* Quiet attribution to Traxx IT, ported from the aci-traxx agency
   footer. Muted by default, gold with a thin underline on hover so it
   reads as proud-but-restrained credit. Never wraps. */
.site-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: var(--on-plum-muted);
}

.site-footer__credit a {
  color: var(--on-plum);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.site-footer__socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--s-4);
  align-items: center;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--on-plum);
  border: 1px solid var(--rule-dark);
  border-radius: 50%;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.site-footer__social svg {
  width: 16px;
  height: 16px;
}

.site-footer__social:hover,
.site-footer__social:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

/* `.tx-btn` pill utilities (gold / gold-ghost / outline) live in
   base.css — they are used by the footer, listing templates, and
   shortcodes alike. */

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .site-footer__cols {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .site-footer__ribbon-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer__area-list {
    grid-template-columns: 1fr;
  }
}

/* Utility: reveal-on-mobile helpers used by footer CTAs.
   Kept scoped here so the footer's phone-only CTA doesn't require
   pulling in the global responsive helpers. */
.site-footer .show-on-mobile-only { display: none; }
@media (max-width: 899px) {
  .site-footer .show-on-mobile-only { display: block; }
}
