/* Top City v14 — shared fluid layout and overflow protection. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-width: 320px;
}

.page-shell,
.site-header,
.site-footer,
section,
nav,
article,
figure,
div {
  min-width: 0;
}

img,
svg,
video {
  max-width: 100%;
}

.page-shell {
  width: 100%;
  max-width: 2560px;
}

.content-section,
.content-band {
  width: 100%;
}

.section-heading h2,
.inner-heading h2,
.page-hero h1,
.catalog-card-copy h3,
.page-cta h2 {
  overflow-wrap: anywhere;
}

/* Keep dense desktop grids inside the viewport instead of creating overflow. */
.catalog-grid,
.priority-grid,
.selection-steps,
.production-capabilities,
.process-grid,
.contact-channels,
.office-layout,
.locations-layout,
.contact-form-layout,
.cases-showcase,
.case-concepts-grid,
.company-system-grid,
.company-values-grid {
  max-width: 100%;
}

@media (width <= 1540px) {
  .content-section,
  .content-band {
    padding-right: clamp(28px, 4vw, 62px);
    padding-left: clamp(28px, 4vw, 62px);
  }

  .inner-page .site-header {
    grid-template-columns: 104px minmax(0, 1fr) auto;
    gap: 16px;
    padding-right: 28px;
    padding-left: 28px;
  }

  .inner-page .desktop-nav {
    gap: clamp(13px, 1.35vw, 22px);
    font-size: 12px;
  }

  .inner-page .header-actions {
    gap: 14px;
  }

  .inner-page .button-compact {
    min-width: 188px;
    padding-inline: 20px;
  }
}

@media (width <= 1320px) {
  .inner-page .site-header {
    grid-template-columns: 96px minmax(0, 1fr) auto;
  }

  .inner-page .phone {
    display: none;
  }

  .catalog-card figure {
    height: clamp(285px, 31vw, 410px);
  }

  .catalog-card-featured figure {
    height: auto;
  }
}

@media (width <= 1180px) {
  .inner-page .desktop-nav {
    display: none;
  }

  .inner-page .site-header {
    grid-template-columns: 1fr auto;
  }

  .inner-page .header-actions {
    justify-self: end;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-card-featured {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  }

  .catalog-card-featured figure {
    min-height: 520px;
  }
}

@media (width <= 980px) {
  .content-section,
  .content-band {
    padding-right: 28px;
    padding-left: 28px;
  }

  .catalog-card-featured {
    grid-template-columns: 1fr;
  }

  .catalog-card-featured figure {
    min-height: 460px;
  }

  .finishes-section,
  .products-faq,
  .office-layout,
  .locations-layout,
  .contact-form-layout {
    grid-template-columns: 1fr;
  }

  .form-intro,
  .faq-heading {
    position: static;
  }
}

@media (width <= 680px) {
  .content-section,
  .content-band {
    padding-right: 18px;
    padding-left: 18px;
  }

  .inner-page .site-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .catalog-grid,
  .priority-grid,
  .selection-steps,
  .production-capabilities,
  .process-grid,
  .contact-channels,
  .cases-showcase,
  .case-concepts-grid,
  .company-system-grid,
  .company-values-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card,
  .catalog-card-featured {
    grid-column: auto;
  }

  .catalog-card figure,
  .catalog-card-featured figure {
    height: 310px;
    min-height: 0;
  }

  .inner-heading,
  .section-heading,
  .page-cta {
    min-width: 0;
  }

  .page-cta-actions,
  .page-cta-actions .button,
  .page-hero-actions .button {
    width: 100%;
    min-width: 0;
  }
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}
