/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--bg); }

/* CTA band -> tall full-bleed image showcase (client-directed, Convoy reference).
   Reuses the same full-bleed-photo + dark-scrim technique Hero already established
   (css/sections/hero.css .hero--fullbleed) rather than inventing a second visual
   language, but the composition is deliberately different: centered copy (not
   bottom-left), and the scrim resolves to a flat var(--ink-deep) at its base so the
   image bleeds directly into the footer below it with no visible seam. */
.footer-showcase {
  position: relative;
  min-height: clamp(30rem, 85vh, 50rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.footer-showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.footer-showcase-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ink-deep) 40%, transparent) 0%,
    color-mix(in srgb, var(--ink-deep) 80%, transparent) 55%,
    var(--ink-deep) 100%
  );
}
.footer-showcase-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 46ch;
  margin-inline: auto;
  padding-block: clamp(2rem, 6vw, 3rem);
}
/* line-height explicit here - without it this display-size heading inherits body's
   1.65 line-height (meant for paragraphs), which reads as an oversized gap between
   "Ready to talk" and "trade?" once it wraps to two lines. Matches hero.css's h1. */
.footer-showcase-inner h2 { font-size: var(--h2); line-height: 1.05; color: var(--bg); margin-bottom: 0.4em; }
.footer-showcase-inner p { color: color-mix(in srgb, var(--bg) 82%, transparent); margin-inline: auto; }
.footer-showcase-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* Single fade-up on scroll into view (heading, copy, actions move together as one
   composition, not staggered piece by piece) - same technique and rhythm as every
   other section's reveal (see script.js's initScrollReveal). */
.footer-showcase [data-reveal] {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-showcase .is-pre-reveal { opacity: 0; transform: translateY(20px); }
.footer-showcase .is-pre-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 560px) {
  .footer-showcase { min-height: 70vh; }
}

/* Main footer grid: brand column, two nav columns, and the Contact details
   (address/hours) that used to be their own page section — phone and email
   stay in the brand column below rather than repeating in this column too. */
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 15%, transparent);
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo { display: flex; align-items: center; gap: 0.65rem; }
.footer-knot { width: 34px; height: 41px; margin: 0; }
.footer-brand .logo-name { color: var(--bg); }
.footer-brand .logo-sub { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.footer-tagline {
  margin: 1rem 0 1.25rem;
  color: color-mix(in srgb, var(--bg) 75%, transparent);
  font-size: var(--small);
}
.footer-contact { display: flex; flex-direction: column; gap: 0.6rem; font-size: var(--small); }
.footer-contact a { display: inline-flex; align-items: center; gap: 0.5em; color: color-mix(in srgb, var(--bg) 80%, transparent); }
.footer-contact i { color: var(--terracotta); }

/* ---------- Social links (parts/site-footer.php) ----------
   Rendered only for a Customizer URL that is actually set, so this row can
   be absent entirely.

   Sizing and hover deliberately match .footer-contact above rather than
   introducing a third treatment in the same column: same muted link colour
   at rest, same terracotta on hover. The icons differ from the contact ones
   in being inline SVG rather than Phosphor glyphs, which is why they need
   `fill/stroke: currentColor` here - that is what makes one colour rule
   cover both states without the SVG carrying a hardcoded hex. */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.9rem;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* A 2.25rem tap target around a ~1.25rem mark. The icons are small and
     sit close together; without the padding the hit areas would be under
     the 24px minimum and effectively adjacent on a phone. */
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: color-mix(in srgb, var(--bg) 80%, transparent);
  transition: color 0.2s ease, background 0.2s ease;
}
.footer-social-link svg { display: block; }
.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--terracotta);
  background: color-mix(in srgb, var(--bg) 10%, transparent);
}

.footer-col-title {
  font-size: var(--eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 55%, transparent);
  margin: 0 0 1rem;
}
.footer-nav-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav-col a { font-size: var(--small); color: color-mix(in srgb, var(--bg) 80%, transparent); }
.footer-nav-col a:hover { color: var(--bg); }

.footer-contact-details > div { margin-bottom: 0.85rem; }
.footer-contact-details > div:last-child { margin-bottom: 0; }
.footer-contact-details dt {
  font-size: var(--small);
  color: color-mix(in srgb, var(--bg) 55%, transparent);
  margin-bottom: 0.2em;
}
.footer-contact-details dd {
  margin: 0;
  font-size: var(--small);
  color: color-mix(in srgb, var(--bg) 85%, transparent);
}

.footer-legal { padding-block: 1.25rem; }
.footer-legal p { margin: 0; font-size: var(--small); color: color-mix(in srgb, var(--bg) 60%, transparent); }

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

@media (max-width: 560px) {
  .footer-showcase-actions { flex-direction: column; align-items: stretch; }
  .footer-inner { grid-template-columns: 1fr; }
}
