/* Footer cleanup v2: centered footer, even mobile accordion rows (v1.3.3) */

.footer-contact { margin-top: 1.35rem; }
.footer-book { margin: 1rem 0 0; }
.footer-book-btn {
  display: inline-flex;
  text-decoration: none;
}
.footer-book-btn:hover,
.footer-book-btn:focus-visible { color: var(--text); }

.footer-acc-title {
  margin: 0;
}
/* Beat .site-footer h2 { margin-bottom: 0.8rem } so collapsed accordion
   rows are not left with leftover heading space. */
.site-footer .footer-acc-title {
  margin: 0;
}
.footer-acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: default;
}
.footer-acc-icon {
  display: none;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  color: var(--amber);
}

.footer-more a { font-weight: 650; color: var(--text); }
.footer-more a:hover { color: var(--amber); }

.footer-col-stack { display: grid; gap: 0; align-content: start; width: 100%; }

/* -------------------------------------------------------------------------
   Center the footer on every breakpoint: logo, tagline, contact, Book a
   call, column headings and links, copyright, and the legal row.
   The Powered-by credit is already centered in styles.css.
   ------------------------------------------------------------------------- */
.site-footer {
  text-align: center;
}
.site-footer .footer-brand .logo {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-inline: auto;
}
.site-footer .footer-brand p {
  margin-inline: auto;
}
.site-footer .footer-book {
  display: flex;
  justify-content: center;
}
.site-footer .footer-bottom {
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
}
.site-footer .footer-legal {
  justify-content: center;
}

/* Desktop: columns stay open and sit as a centered group, with centered
   text in each column. Long lists stay trimmed. */
@media (min-width: 981px) {
  .footer-grid-clean.footer-grid-4 {
    grid-template-columns: minmax(14rem, 20rem) repeat(3, minmax(10rem, 13.5rem));
    justify-content: center;
    justify-items: stretch;
    column-gap: 2.25rem;
    row-gap: 0;
  }
  .footer-acc-btn {
    pointer-events: none;
    justify-content: center;
    text-align: center;
  }
  .footer-acc-icon { display: none; }
  .footer-col-stack { gap: 1.5rem; }
  .footer-trim-hide { display: none; }
  .footer-contact h2 { margin-top: 0; }
}

/* Tablet and phone: the 4-column grid already stacks at 980px. Use an accordion. */
@media (max-width: 980px) {
  /* v1 used gap: 1.5rem on this grid. Explore and Services are their own
     grid items, so they picked up that gap under the heading. Industries
     and Locations share .footer-col-stack (gap: 0) and did not, which
     left uneven collapsed rows. Keep space only under the brand block. */
  .footer-grid-clean.footer-grid-4 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-grid-clean > .footer-brand {
    margin-bottom: 1.5rem;
  }
  .footer-grid-clean > .footer-acc,
  .footer-col-stack > .footer-acc {
    border-top: 1px solid var(--line);
  }
  .footer-col-stack > .footer-acc:last-child { border-bottom: 1px solid var(--line); }
  .footer-col-stack { gap: 0; }
  .footer-acc-btn {
    cursor: pointer;
    padding: 0.95rem 0;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: 1.05rem 1fr 1.05rem;
    align-items: center;
    justify-content: stretch;
    gap: 0.6rem;
    text-align: center;
  }
  .footer-acc-btn > span {
    grid-column: 2;
    justify-self: center;
  }
  .footer-acc-btn:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
    border-radius: 4px;
  }
  .footer-acc-icon {
    display: block;
    grid-column: 3;
    justify-self: end;
    transition: transform 0.2s var(--ease, ease);
  }
  .footer-acc.is-open .footer-acc-icon { transform: rotate(180deg); }
  .site-footer .footer-acc-title { margin: 0 0; }
  .footer-acc-panel {
    display: none;
    padding: 0 0 1rem;
  }
  .footer-acc.is-open .footer-acc-panel { display: block; }
  .footer-trim-hide { display: list-item; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-acc-icon { transition: none; }
}


/* Smaller footer logo - 2026-12-01 */
.site-footer .logo-img, .site-footer .footer-brand .logo-img { height: 40px !important; width: auto !important; max-width: 100%; }
@media (max-width: 640px) { .site-footer .logo-img, .site-footer .footer-brand .logo-img { height: 34px !important; } }
