/* Site footer, floating WhatsApp button and the quote-list toast — all ship
   on every page (footer.php). */

.site-footer {
  margin-top: var(--space-10);
  background: var(--color-navy-deep);
  color: var(--color-on-navy-muted);
  font-size: 0.9375rem;
}
.site-footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-10) var(--space-5) var(--space-8);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: var(--space-8);
}
.site-footer__logo { display: inline-block; margin-bottom: var(--space-4); }
.site-footer__logo-img { height: 56px; width: auto; }
.site-footer__tagline {
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-3);
}
.site-footer__blurb { max-width: 38ch; line-height: 1.6; }

.site-footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-4);
}
.site-footer__col ul { display: grid; gap: var(--space-2); }
.site-footer a { transition: color 0.15s var(--ease-standard); }
.site-footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.site-footer__contact address {
  font-style: normal;
  line-height: 1.65;
  margin-bottom: var(--space-4);
}
.site-footer__contact address strong { color: #fff; font-weight: 600; }
/* phone / email / map links must read as links, not as more address text */
.site-footer__contact a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.site-footer__contact a:hover { text-decoration-color: currentColor; }

.site-footer__bottom { border-top: 1px solid var(--color-border-on-navy); }
.site-footer__bottom-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  font-size: 0.8125rem;
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-fab {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 52px;
  padding-inline: var(--space-5) var(--space-5);
  border-radius: 26px;
  background: var(--color-success);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-standard);
}
.whatsapp-fab:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--color-success) 86%, black); }
.whatsapp-fab svg { width: 24px; height: 24px; flex-shrink: 0; }

/* ---------- Quote-list toast ---------- */
.rfq-toast {
  position: fixed;
  left: 50%;
  bottom: var(--space-5);
  z-index: 95;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: min(92vw, 520px);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-navy);
  color: #fff;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.16s var(--ease-out);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.rfq-toast__link { color: var(--color-electric-light); font-weight: 600; white-space: nowrap; }
.rfq-toast__link:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1023px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: var(--space-6); padding-inline: var(--space-4); }
  .site-footer__bottom-inner { padding-inline: var(--space-4); }
  /* icon-only circle on phones: the pill would cover too much content */
  .whatsapp-fab { right: var(--space-4); bottom: var(--space-4); width: 54px; height: 54px; padding: 0; justify-content: center; border-radius: 50%; }
  .whatsapp-fab__label { display: none; }
  .rfq-toast { bottom: 84px; }
}
