/* =============================================================
   Commercial page styles
   Loaded AFTER css/modern.css + css/residential.css.
   All `.c-*` classes are scoped to commercial.html.
   ============================================================= */

/* ─── Shared utilities (defined here because they're missing from
   modern.css + residential.css — should be promoted to modern.css
   in a future refactor). ─── */
.m-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--m-primary);
  color: #fff;
  font-family: var(--m-font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 0 0 var(--m-radius-md) 0;
}
.m-skip-link:focus { left: 0; }

.m-section--bg-soft { background: var(--m-bg-alt); }

.m-section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.m-section__header--center .m-cta-form__lede {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 640px;
}

.m-system-rule {
  width: 44px;
  height: 2px;
  background: var(--m-accent);
  border: 0;
  margin: 0;
}

.r-featured { background: var(--m-bg-alt); }
.r-featured__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.r-featured__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--m-text-muted);
  margin: 0;
  max-width: 620px;
}


/* ─── Hero ─── */
/* No card overrides — uses the default .m-hero__card from modern.css
   (white, 480px max-width, 48px padding, 6px radius, soft shadow).
   Matches home / residential / metal. */

/* ─── Services intro split: pin align-items center ─── */
.commercial-services-intro .r-split { align-items: center; }

/* ─── Flat roof systems (2x2 grid of feature-card style) ─── */
/* Borderless cards (matches metal systems pattern): the brass
   seam-rule + whitespace separates cards, no borders. Image
   fills 100% height of the card so it stretches with the body. */
.c-systems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.c-system-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 0;
  overflow: hidden;
  background: var(--m-bg);
}
.c-system-card__media {
  overflow: hidden;
  min-height: 280px;
}
.c-system-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--m-radius-md);
}
.c-system-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px 0 28px;
  align-self: center;
}
.c-system-card__title {
  font-family: var(--m-font-heading);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.4px;
  line-height: 1.2;
  color: var(--m-text);
  margin: 0;
}
.c-system-card__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--m-text-muted);
  margin: 0;
}

/* Centered seam-rule + lede (matches metal systems pattern) */
.commercial-systems-section .m-section__header--center {
  margin-bottom: 56px;
}

/* ─── Coatings featured (centered) ─── */
.commercial-coatings-featured .m-eyebrow { margin-bottom: 16px; }

/* ─── Why-us section: drop the radial glow (matches metal why-us) ─── */
/* Header-only dark band — glow would compete with the centered
   heading + lede. Same pattern as metal. */
.commercial-why-us::before { display: none; }

/* Gallery: uses base .m-gallery (4-col) from modern.css, matching home/residential. */

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .c-systems-grid { grid-template-columns: 1fr; }
  .c-system-card { grid-template-columns: 1fr; }
  .c-system-card__media { min-height: 220px; }
  .c-system-card__body { padding: 24px 20px; }
}