/* AIMS SITEWIDE CENTERED RESPONSIVE GRID â€” user-controlled browser zoom.
   Never use zoom, scale, min-width page canvases or viewport-spanning inner content.
   Full-width decorative bands/banners are kept; their content is centered. */
:root {
  --aims-content-max: 1320px;
  --aims-page-gutter: clamp(16px, 3vw, 48px);
}
html, body { max-width: 100%; min-width: 0; }
body { margin: 0; }
/* The SAME rail is used for the header, main content, CTAs and footer. */
body > .topbar .wrap,
body > header.siteheader .wrap,
body > main > .wrap,
body > main > section > .wrap,
body > footer .wrap,
body > .cta .wrap,
body > main .aims-contact-shell,
body > main .aims-contact-branches-grid,
body > main .aims-gallery-dynamic > .wrap,
body > main .aims-gallery-dynamic .aims-gallery-content {
  box-sizing: border-box !important;
  width: calc(100% - (2 * var(--aims-page-gutter))) !important;
  max-width: var(--aims-content-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  min-width: 0 !important;
}
/* Nested rails fill their centered parent; do not subtract gutters repeatedly. */
body > main .wrap > .wrap,
body > main .aims-contact-shell .wrap,
body > main .aims-gallery-dynamic > .wrap .wrap {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-inline: auto !important;
}
/* Keep homepage sections visually tied to the common center line. */
body > main .servicecards {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
}
body > main .servicecards > .servicecard,
body > main .servicecards .servicebody,
body > main .servicecards .servicepic { min-width: 0 !important; }
body > main .aims-leaders-section {
  box-sizing: border-box !important;
  width: calc(100% - (2 * var(--aims-page-gutter))) !important;
  max-width: var(--aims-content-max) !important;
  margin-inline: auto !important;
}
body > main .aims-leaders-section > .wrap {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}
body > main .aims-leaders-section .aims-leaders-logos { max-width: 100% !important; }
body > header.siteheader .headin {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(12px, 2vw, 35px);
}
body > header.siteheader nav { min-width: 0; }
body > footer .footgrid {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 55px);
}
body > footer .footgrid > * { min-width: 0; }
body > main img, body > main video, body > main iframe { max-width: 100%; }
/* Normal responsive reflow at higher browser zoom and on narrow devices. */
@media (max-width: 900px) {
  :root { --aims-page-gutter: clamp(16px, 3vw, 32px); }
  body > footer .footgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  :root { --aims-page-gutter: 16px; }
  body > footer .footgrid { grid-template-columns: minmax(0, 1fr); }
}