/* Shared responsive layout. Loaded after the original site styles. */
:root {
  --content-width: 1240px;
  --page-gutter: 32px;
}

.header-inner,
.hero-content,
.section-inner,
.footer-inner,
.footer-bottom {
  width: min(var(--content-width), calc(100% - var(--page-gutter) * 2)) !important;
  max-width: calc(100% - var(--page-gutter) * 2);
  margin-inline: auto;
}

.header-inner {
  gap: 24px;
}

.brand img {
  width: 200px;
}

.site-nav {
  gap: 18px;
  font-size: 14px;
}

.section-inner > *,
.blog-article-head > *,
.blog-article-shell,
.footer-inner > *,
.footer-nav > *,
.cta-box > *,
.hero-copy {
  min-width: 0;
}

.blog-article-head h2 {
  overflow-wrap: anywhere;
  word-break: normal;
}

.partner-showcase {
  grid-template-columns: minmax(0, 1fr);
}

.section-inner.narrow {
  width: min(920px, calc(100% - var(--page-gutter) * 2)) !important;
}

.section h2 {
  font-size: 32px;
  line-height: 1.5;
  white-space: normal;
}

.section-heading.compact h2 {
  font-size: 28px;
  line-height: 1.5;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading > p:not(.section-kicker),
.section-heading .lead-copy,
.cta-box > div > p:not(.section-kicker),
.hero-lead {
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.9;
}

.section-heading > p:not(.section-kicker) {
  font-size: 16px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.4;
}

body[data-page="home"] .hero h1 {
  font-size: 64px;
  line-height: 1.45;
}

body[data-page="home"] .hero-lead {
  max-width: 680px;
  font-size: 18px;
}

.hero-actions {
  flex-wrap: wrap;
}

.hero-actions .button {
  min-width: 200px;
  min-height: 54px;
  font-size: 16px;
}

.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: 32px;
  align-items: center;
}

.cta-box h2 {
  font-size: 28px;
  white-space: normal !important;
}

.cta-actions,
.cta-actions .button,
.cta-actions .phone-link {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.cta-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.section .concept-title {
  font-size: 52px;
  line-height: 1.25;
}

.cta-actions .button {
  white-space: normal;
  text-align: center;
}

.footer-inner {
  grid-template-columns: 1fr;
  gap: 40px;
  padding-block: 48px 32px;
}

.footer-profile {
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.footer-profile p {
  max-width: none;
  font-size: 14px;
  line-height: 1.9;
}

.footer-nav {
  grid-template-columns: 0.7fr 1fr 1.35fr 0.85fr 1.25fr;
  gap: 24px;
}

.footer-nav div,
.footer-nav .footer-privacy-links {
  display: grid;
  grid-column: auto;
  align-content: start;
  align-items: start;
  justify-content: stretch;
  gap: 12px;
  margin: 0;
  padding: 0 0 0 18px;
  border-top: 0;
  border-left: 1px solid #cfe8f5;
}

.footer-nav a {
  min-width: 0;
  font-size: 14px;
  line-height: 1.75;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.footer-nav .footer-heading {
  font-size: 15px;
  margin-bottom: 8px;
}

.business-aqua-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="home"] .business-aqua-card {
  width: 100%;
  min-width: 0;
  transform: none;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 16px;
}

.aqua-card-icon {
  width: 48px;
  height: 48px;
}

body[data-page="home"] .aqua-card-copy {
  width: auto;
}

.aqua-card-copy strong {
  font-size: 16px;
  line-height: 1.6;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

@media (max-width: 1180px) {
  .brand img { width: 175px; }
  .site-nav { gap: 12px; font-size: 13px; }
  .header-inner { gap: 16px; }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .business-aqua-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  :root { --page-gutter: 24px; }
  .site-nav { gap: 0; }
  .footer-profile { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .cta-box { grid-template-columns: 1fr; gap: 24px; }
  .cta-actions { max-width: 480px; }
  .section h2 { font-size: 28px; }
  .section-heading.compact h2 { font-size: 26px; }
  body[data-page="home"] .hero h1 { font-size: 48px; }
}

@media (max-width: 640px) {
  :root { --page-gutter: 20px; }
  .header-inner { max-width: calc(100% - 32px); width: calc(100% - 32px) !important; }
  .brand img { width: 165px; }
  .nav-toggle { margin-right: 0; flex: 0 0 44px; }
  .section h2 { font-size: 25px; line-height: 1.55; }
  .section-heading.compact h2 { font-size: 24px; }
  .section-heading { margin-bottom: 24px; }
  .hero h1 { font-size: 30px !important; line-height: 1.45; }
  body[data-page="home"] .hero h1 { font-size: 38px !important; }
  .hero-lead, body[data-page="home"] .hero-lead { font-size: 15px; }
  .section .concept-title { font-size: 40px; }
  .hero-actions .button { min-width: 0; }
  .footer-profile { grid-template-columns: 1fr; gap: 20px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-nav div, .footer-nav .footer-privacy-links { padding-left: 12px; }
  .footer-nav .footer-privacy-links { grid-column: 1 / -1; }
  .footer-inner { gap: 32px; }
  .business-aqua-grid { grid-template-columns: 1fr; }
  body[data-page="home"] .business-aqua-card { grid-template-columns: 56px minmax(0, 1fr); padding: 20px; }
  .aqua-card-icon { width: 56px; height: 56px; }
}

@media (max-width: 360px) {
  .partner-name-list { grid-template-columns: minmax(0, 1fr); }
  .partner-name-list > li { min-width: 0; overflow-wrap: anywhere; }
  .partner-logo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    padding-inline: 0;
  }
  .partner-logo-list > li { min-width: 0; }
  body[data-page="staffing"] .hero h1 { font-size: 26px !important; }
  body[data-page="training"] .training-work-title { font-size: 21px; }
}
