/* Repairs for the original MPP theme. No framework reset or global overflow clipping. */
img { max-width: 100%; height: auto; }
.container > *, .section-contact-box > *, .serving-questions > *, .service-hero > *, .grid-3 > * { min-width: 0; }
.grid-3, .demos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.seo-faq__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.section-contact-box { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
a, p, li, h1, h2, h3, h4 { overflow-wrap: anywhere; }
input, textarea, select { max-width: 100%; min-width: 0; font: inherit; }
input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]), select, button, .btn { min-height: 44px; }
:focus-visible { outline: 3px solid #125ea9; outline-offset: 4px; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 12px; background: white; color: #191919; }
.skip-link:focus { top: 12px; }
.home-hero .hero-text { top: 13%; }
.home-hero::after, .our-service::after, .service-hero::after { pointer-events: none; }
.service-hero { height: auto; min-height: 530px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.free-estimate { max-width: 100%; }
.footer-main > *, .footer-sub > *, .footer-sub ul { min-width: 0; }
.footer-sub { flex-wrap: wrap; gap: 16px; }
.footer-sub ul { flex-wrap: wrap; gap: 8px; }

.footer-sub img { width: auto; max-width: 100%; object-fit: contain; }
.menu-toggle { display: none; }
.question { width: 100%; border: 0; text-align: left; color: inherit; background: transparent; font: inherit; }
.serving-tabs .serving { border: 0; font: inherit; font-size: 24px; font-weight: 700; padding: 16px; cursor: pointer; background: white; color: #191919; box-shadow: 0 0 20px rgba(0,0,0,.06); }
.serving-tabs .serving.active { background: #515151; color: white; }
.form-errors { padding: 16px; border: 2px solid #a21d28; background: #fff; color: #821923; }
.form-errors ul { padding-left: 20px; list-style: disc; }
.job-form .job-field, .emp-history .job-field { display: block; }
.job-form .job-field > label { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.job-form .job-field input { flex: 0 1 70%; }
.emp-history .fa-trash { border: 0; background: #fff; color: #191919; min-width: 44px; }
.sl-wrapper [role="button"] { cursor: pointer; }
/* Navigation collapses before the brand and six links compete for space. */
@media (max-width: 1199px) {
    .header-box { flex-wrap: wrap; padding: 12px 16px 0; }
    .header-box .logo { position: static; margin-right: 16px; }
    .header-box h2 { margin: 0 auto 0 0; }
    .header-box .nav { width: calc(100% + 32px); margin: 12px -16px 0; }
    .burger { display: flex; justify-content: space-between; align-items: center; background: #191919; padding: 8px 16px; }
    .menu-toggle { display: inline-flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid #fff; background: transparent; color: #fff; font: inherit; cursor: pointer; }
    .mobile-login a { color: #fff; padding: 8px; }
    .nav-links { display: flex; flex-direction: column; padding: 8px 0; }
    .nav-links[hidden] { display: none; }
    .nav-links a { padding: 12px 20px; font-size: 18px; text-align: left; }
    .nav-links li { width: 100%; margin: 0; }
}
@media (min-width: 1200px) { .nav-links[hidden] { display: flex; } }
/* Flowing hero text keeps all original content accessible at intermediate widths too. */
@media (max-width: 1024px) {
    .home-hero { background: #191919; }
    .home-hero .hero-text { position: relative; inset: auto; transform: none; width: 100%; padding: 24px 32px; }
    .home-hero .hero-text::before { display: block; left: 16px; top: 28px; }
    .home-hero .hero-text h1 { display: block; font-size: clamp(26px, 4vw, 40px); }
    .home-hero .hero-text strong { display: inline; }
    .home-hero .hero-text > a { display: inline-block; }
    .home-hero .hero-text img { max-width: 200px !important; }
    .home-hero::after { bottom: auto; }
    .serving-questions, .who-we-are { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .test-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 0; }
    .our-service { height: auto; min-height: 400px; padding: 32px 24px; display: flex; align-items: center; }
    .our-service .hero-text, .our-service .hero-text.right { position: relative; inset: auto; transform: none; width: 100%; margin: 0; }
    .our-service .hero-text :is(h1, h2), .our-service .hero-text > a { display: block; }
    .our-service .hero-text strong { display: inline; }
    .service-text { padding: 24px 16px; }
    .title { font-size: clamp(28px, 4vw, 40px); }
}
@media (max-width: 767px) {
    .service-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .service-hero .free-estimate.desktop { display: none; }
    .free-estimate.mob { display: block; padding: 24px 16px; }
    .section-contact-box { grid-template-columns: minmax(0, 1fr); }
    .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .serving-tabs { grid-template-columns: minmax(0, 1fr); }
    .serving-tabs .serving { font-size: 20px; }
    .footer-main { padding: 24px 16px; }
    .job-form > div:not(.emp-history), .emp-history > div { flex-direction: column; }
    .job-form .job-field > label { display: block; }
    .job-form .job-field input, .job-form .job-input, .job-form > div > label, .emp-history > div > label { width: 100%; }
    .job-form-radio { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
    .job-form-radio label { padding: 8px 0; }
    #add_history_form { width: 100%; }
    .contact-two-box { order: initial; }
}
@media (max-width: 480px) {
    .header-box { flex-direction: row; }
    .header-box h2 { margin: 0 auto; font-size: 20px; }
    .header-box h2 img { margin-right: 12px; }
    .header-box .nav { width: calc(100% + 32px); margin-top: 12px; }
    .home-hero .hero-text { top: auto; }
    .our-service .hero-text { top: auto; }
    .services, .test-boxes { grid-template-columns: minmax(0, 1fr); }
    .who__text, .who__img { padding: 16px; }
    /* Google's fixed-width 304px challenge needs local scaling within padded forms. */
    .g-recaptcha { transform: scale(.82); transform-origin: left top; width: 250px; margin-bottom: -14px; }
    .free-estimate { padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); white-space: nowrap; border: 0; }

form.stack-1 > input[name="submission"] + :not([type="hidden"]) { margin-top: 0; }

/* Focused initial hiring form; preserve the surrounding theme. */
.hiring-application { width: 100%; min-width: 0; }
.hiring-application .job-field { display: block; margin-bottom: 16px; }
.hiring-application .job-field > label { display: block; width: 100%; margin-bottom: 6px; }
.hiring-application .job-input { display: block; width: 100%; padding: 10px; font-size: 16px; }
.hiring-application section > p { margin: 12px 0; }
.hiring-application .assignment-card { min-width: 0; width: 100%; margin: 16px 0; padding: 16px; border: 1px solid #e0e0e0; border-radius: 10px; }
.hiring-application legend { max-width: 100%; padding: 0 4px; overflow-wrap: anywhere; }
.hiring-application :is(.add-assignment, .remove-assignment) { padding: 10px 14px; border: 1px solid #777; border-radius: 4px; background: #fff; color: #191919; font: inherit; cursor: pointer; }
.hiring-application button:disabled { opacity: .65; cursor: default; }
.hiring-application [hidden] { display: none; }
.hiring-application .g-recaptcha { display: block; }
.hiring-application .form-errors { display: block; }
