/* ==================================================
   SITE FOOTER
   Purpose:
   The large navigational footer — brand summary, link
   columns for services, technologies, industries and
   locations, contact block, social placeholders and the
   legal bar.

   The link columns are deliberately curated rather than
   exhaustive: dumping all ninety pages into every footer
   would bury the important ones and dilute internal link
   equity. Full catalogues live on the index pages.
================================================== */

.site-footer {
  background: var(--gradient-night);
  color: var(--color-on-dark-muted);
  padding-top: clamp(3rem, 2.2rem + 3.6vw, 5rem);
  position: relative;
  isolation: isolate;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--gradient-rule);
  opacity: 0.5;
}

/* ==================================================
   PRIMARY FOOTER GRID
================================================== */

.site-footer__main {
  display: grid;
  gap: clamp(2.25rem, 1.8rem + 2.4vw, 3.5rem);
  grid-template-columns: 1fr;
  padding-bottom: clamp(2.5rem, 2rem + 2.4vw, 3.5rem);
}

@media (min-width: 700px) {
  .site-footer__main { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .site-footer__main {
    grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(0, 1fr));
    gap: clamp(2rem, 1.4rem + 2vw, 3rem);
  }
}

/* ---- Brand column ----------------------------------------------------- */

.site-footer__brand { max-width: 340px; }

.site-footer__summary {
  margin-top: var(--s-5);
  font-size: var(--fs-sm);
  line-height: 1.68;
  color: var(--color-on-dark-muted);
}

.site-footer__contact { margin-top: var(--s-6); }

.site-footer .contact-list__item { color: var(--color-on-dark-muted); }
.site-footer .contact-list__item a { color: #FFFFFF; }
.site-footer .contact-list__item a:hover { color: var(--brand-300); }
.site-footer .contact-list__label { color: var(--ink-300); }
.site-footer .contact-list__icon { background-color: var(--brand-300); }

/* ---- Link columns ------------------------------------------------------ */

.footer-column__title {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: var(--s-5);
}

.footer-column__list { display: grid; gap: var(--s-3); }

.footer-column__link {
  font-size: var(--fs-sm);
  color: var(--color-on-dark-muted);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-column__link:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-column__more {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--brand-300);
}

.footer-column__more::after {
  content: "";
  width: 13px;
  height: 13px;
  background-color: currentColor;
  mask: url("../assets/icons/ui/arrow-right.svg") no-repeat center / contain;
  -webkit-mask: url("../assets/icons/ui/arrow-right.svg") no-repeat center / contain;
  transition: transform var(--transition-fast);
}

.footer-column__more:hover::after { transform: translateX(3px); }

/* ==================================================
   SOCIAL PLACEHOLDERS
   Rendered as real links only once a profile exists; the
   markup ships with the profiles the company actually
   has, rather than a row of dead icons.
================================================== */

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-6);
}

.footer-social__link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--color-on-dark-muted);
  transition: border-color var(--transition-fast),
              background-color var(--transition-fast),
              color var(--transition-fast);
}

.footer-social__link:hover {
  border-color: var(--brand-400);
  background-color: var(--brand-wash);
  color: #FFFFFF;
}

.footer-social__glyph {
  width: 19px;
  height: 19px;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

/* ==================================================
   SERVICE AREA STRIP
   A compact, crawlable list of the districts covered,
   linking to the location pages.
================================================== */

.footer-areas {
  padding-block: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-areas__title {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: var(--s-4);
}

.footer-areas__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
}

.footer-areas__link {
  font-size: var(--fs-xs);
  color: var(--color-on-dark-muted);
  transition: color var(--transition-fast);
}

.footer-areas__link:hover { color: var(--brand-300); }

.footer-areas__separator {
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
}

/* ==================================================
   LEGAL BAR
================================================== */

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
}

.site-footer__copyright { color: var(--ink-300); }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-5);
}

.legal-links__link { color: var(--color-on-dark-muted); }
.legal-links__link:hover { color: #FFFFFF; }

/* Extra clearance so the floating WhatsApp button and the mobile call bar
   never sit on top of the legal links. */
@media (max-width: 767px) {
  .site-footer__legal { padding-bottom: calc(var(--s-6) + 7rem); }
}
