/* Mazic Line v6 — site-wide vertical rhythm correction.
   This stylesheet is intentionally loaded LAST so prior legacy section padding
   rules cannot reintroduce large blank bands. Hero/About composition remains
   intentionally distinct; all other main sections use a compact, consistent rhythm. */
html body main > section:not(.hero):not(.brand-story) {
  height: auto !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: clamp(34px, 3.5vw, 46px) !important;
  padding-bottom: clamp(34px, 3.5vw, 46px) !important;
}

/* Connected section transitions: avoid stacking a large bottom pad on one
   section with a large top pad on the next. */
html body main > section#services.services-section {
  padding-bottom: 18px !important;
}
html body main > section#planner.ml-planner-section {
  padding-top: 24px !important;
  padding-bottom: clamp(34px, 3.4vw, 44px) !important;
}
html body main > section#industries.industries-section {
  padding-top: clamp(38px, 3.8vw, 48px) !important;
  padding-bottom: 10px !important;
}
html body main > section#media.media-section {
  padding-top: 16px !important;
  padding-bottom: clamp(38px, 3.8vw, 48px) !important;
}
html body main > section#process.process-section,
html body main > section#solutions.outcomes-section,
html body main > section#faqs.faq-section {
  padding-top: clamp(38px, 3.8vw, 48px) !important;
  padding-bottom: clamp(38px, 3.8vw, 48px) !important;
}
html body main > section#contact.contact-section {
  padding-top: clamp(40px, 4vw, 50px) !important;
  padding-bottom: clamp(40px, 4vw, 50px) !important;
  margin-block: 0 !important;
}

/* The brand promise sits outside main above the footer; keep it purposeful,
   not full-screen tall. */
html body section#brand-promise.brand-promise {
  padding-top: clamp(42px, 4.4vw, 58px) !important;
  padding-bottom: clamp(42px, 4.4vw, 58px) !important;
  min-height: 0 !important;
  margin-block: 0 !important;
}

/* Prevent inherited minimum heights from card groups from expanding sections. */
html body main > section#services .service-grid,
html body main > section#media .inventory-panel,
html body main > section#process .process-grid,
html body main > section#solutions .outcomes-layout,
html body main > section#faqs .faq-list {
  min-height: 0 !important;
}

@media (max-width: 760px) {
  html body main > section:not(.hero):not(.brand-story) {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }
  html body main > section#services.services-section { padding-bottom: 12px !important; }
  html body main > section#planner.ml-planner-section { padding-top: 18px !important; padding-bottom: 30px !important; }
  html body main > section#industries.industries-section { padding-top: 30px !important; padding-bottom: 8px !important; }
  html body main > section#media.media-section { padding-top: 12px !important; padding-bottom: 32px !important; }
  html body main > section#process.process-section,
  html body main > section#solutions.outcomes-section,
  html body main > section#faqs.faq-section { padding-block: 32px !important; }
  html body main > section#contact.contact-section { padding-top: 32px !important; padding-bottom: 32px !important; }
  html body section#brand-promise.brand-promise { padding-top: 34px !important; padding-bottom: 34px !important; }
}
