/* ============================================================
   footer.css — Mastery Logistics Systems Footer Component
   Desktop styles first. Mobile overrides in @media block at bottom.
============================================================ */

/* ============================================================
   FOOTER BASE
============================================================ */
.site-footer {
  --footer-bg:          #111111;
  --footer-border:      #2a2a2a;
  --footer-text:        #888888;
  --footer-text-hover:  #ffffff;
  --footer-header:      #ffffff;
  --footer-legal:       #999999;
  --footer-legal-hover: #888888;
  --footer-copper:      #C0532A;
  --font-footer: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  background: var(--footer-bg);
  font-family: var(--font-footer);
  width: 100%;
}


/* ============================================================
   FOOTER MAIN — four-column grid
============================================================ */
.footer-main {
  display: grid;
  grid-template-columns: 200px 1fr 170px 160px;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2.5rem;
}


/* ============================================================
   COLUMN BASE STYLES
============================================================ */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col--brand {
  gap: 1.1rem;
  align-items: flex-start;
}


/* ============================================================
   COLUMN 1 — Brand, LinkedIn, CTA
============================================================ */

/* Horizontal logo */
.footer-logo-link {
  display: inline-block;
  line-height: 0;
}

.footer-logo {
  height: 52px;
  width: auto;
  display: block;
  margin-top: -14px;
  margin-bottom: -14px;
  margin-left: -8px;
}

/* LinkedIn icon */
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.footer-linkedin svg {
  fill: #ffffff;
}

.footer-linkedin:hover {
  opacity: 1;
}

/* Get In Touch — white text link */
.footer-cta {
  font-size: 13px;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-footer);
  transition: color 0.15s;
  display: inline-block;
}

.footer-cta:hover {
  color: var(--footer-copper);
}


/* ============================================================
   COLUMN HEADERS
============================================================ */
.footer-col-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--footer-header);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-family: var(--font-footer);
  margin-bottom: 1rem;
  display: block;
}


/* ============================================================
   COLUMN LINKS
============================================================ */
.footer-link {
  font-size: 13px;
  color: var(--footer-text);
  text-decoration: none;
  font-family: var(--font-footer);
  padding: 2.5px 0;
  line-height: 1.6;
  display: block;
  transition: color 0.15s;
}

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


/* ============================================================
   COLUMN 2 — The Platform three-sub-column grid
============================================================ */
.footer-platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 1.5rem;
}

.footer-platform-sub {
  display: flex;
  flex-direction: column;
}


/* ============================================================
   DIVIDER
============================================================ */
.footer-divider {
  border: none;
  border-top: 0.5px solid var(--footer-border);
  margin: 0 2rem;
}


/* ============================================================
   FOOTER BOTTOM BAR
============================================================ */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
}

.footer-copy {
  font-size: 12px;
  color: var(--footer-legal);
  font-family: var(--font-footer);
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-legal-link {
  font-size: 12px;
  color: var(--footer-legal);
  text-decoration: none;
  font-family: var(--font-footer);
  transition: color 0.15s;
}

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

/* Cookie Settings opens the HubSpot consent banner, so it is a button
   dressed as one of the legal links. */
.footer-legal-button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: inherit;
}

.footer-legal-button[hidden] {
  display: none;
}


/* ============================================================
   RESPONSIVE — MOBILE OVERRIDES
   All mobile styles live in this block. Desktop styles above.
============================================================ */
@media (max-width: 768px) {

  /* Hide the four navigation columns on mobile */
  .footer-main {
    display: none;
  }

  /* Hide the divider on mobile — bottom bar stands alone */
  .footer-divider {
    display: none;
  }

  /* Bottom bar stacks on mobile */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  /* Legal links wrap naturally on small screens */
  .footer-legal {
    gap: 1rem;
  }

  .footer-legal-link {
    font-size: 12px;
  }

}
