/* Changes strictly needed for forms added by the WordPress adapter. */
.msk-honeypot { position:absolute!important; left:-9999px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.msk-form-message { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: inherit; }
.msk-form-message.is-error { color: #b3261e; }
.modal-form-content button[type=submit]:disabled { opacity: .65; cursor: wait; }
.admin-bar .mobile-menu { /* WordPress admin bar does not alter custom dialog sizing. */ }
/* ACF partner logos uploaded to Media Library keep the same grayscale/color interaction. */
.home-partner--custom { --partner-width: 200px; }
.home-partner--custom::after { display: none; }
.home-partner--custom img { opacity: 1; filter: grayscale(1); max-height: 85px; object-fit: contain; }
.home-partner--custom:is(:hover, :focus-visible, .is-color) img { filter: grayscale(0); }

/* ACF photos should never inherit the source mockup's per-photo crop coordinates. */
.catalog-card--custom-image .catalog-photo img {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    object-position: center;
}

/* Custom ACF service images use predictable crop; original art keeps precise source positioning. */
.service-detail .detail-gallery--custom-image .detail-photo img {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    object-position: center;
}
.service-detail .detail-hero--custom-image .detail-hero-art img {
    width: 64%;
    height: 100%;
    left: auto;
    right: 0;
    top: 0;
    bottom: auto;
    object-fit: contain;
    object-position: right bottom;
    transform: none;
}
@media (max-width: 767px) {
    .service-detail .detail-hero--custom-image .detail-hero-art img {
        width: 100%;
        height: 70%;
        left: 0;
        right: auto;
        top: auto;
        bottom: 0;
        object-position: center bottom;
    }
}

/* Optional text in a CPT service does not alter the original empty-content layout. */
.msk-service-description { margin: 0 0 24px; font: inherit; }
.msk-service-description p { margin: 0 0 16px; }
.msk-service-description > :last-child { margin-bottom: 0; }

/* Keep the source typography when rich text is edited in ACF/TinyMCE. */
.company-intro p, .company-copy p { color:#070a0f; font-size:22px; line-height:36px; font-weight:300; }
.company-intro p + p, .company-copy p + p { margin-top:25px; }
@media (max-width:600px) { .company-intro p, .company-copy p { font-size:clamp(18px,5.5vw,22px); } }

/* ACF replacement photos must not inherit exact crop transforms for the original mockups. */
.company-photo--custom img { width:100%; height:100%; left:0; top:0; object-fit:cover; object-position:center; }

/* Native WordPress menu items preserve the layout of the original footer. */
.footer-bottom > nav { min-width: 0; }
.footer-menu-list, .footer-menu-sublist {
    display: flex; flex-direction: column; align-items: flex-start;
    list-style: none; margin: 0; padding: 0;
}
.footer-menu-list > li, .footer-menu-sublist > li { margin: 0; padding: 0; }
.footer-menu-list a { width: fit-content; }
.footer-menu-sublist { padding-left: 15px; }
.footer-bottom-center .footer-menu-list { gap: 6px; }
@media (max-width: 767px) {
    .footer-nav .footer-menu-list > li:not(:last-child) > .footer-link { margin-bottom: 13px; }
    .footer-nav .footer-menu-list > li:last-child > .footer-link { margin-bottom: 0; }
    .footer-services .footer-menu-list > li:not(:last-child) > .footer-link { margin-bottom: 18px; }
    .footer-services .footer-menu-list > li:last-child > .footer-link { margin-bottom: 0; }
}
