#mmpc-custom-landing .mmpc-hero-content, 
#mmpc-custom-landing .mmpc-hero-mask-layer .mmpc-hero-content {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0); 
    backface-visibility: hidden;
}

/* Standardized Section Padding & Prevents Theme Double-Borders */
#mmpc-custom-landing .mmpc-services-section,
#mmpc-custom-landing #eco-methods,
#mmpc-custom-landing .mmpc-about-section,
#mmpc-custom-landing .mmpc-secondary-form-section,
#mmpc-custom-landing .mmpc-intro-section {
    padding: 3.5rem 0;
}

#mmpc-custom-landing .mmpc-trust-banner { 
    padding-top: 1.75rem; 
    padding-bottom: 3.5rem; 
}
 
#mmpc-custom-landing .mmpc-gallery-section {
    margin-top: 1rem;
}

/* Kept !important here only because it targets body/html directly outside our wrapper */
html.crjs, 
body.page-template-test {
    padding-top: 0 !important;
}
 
#mmpc-custom-landing #eco-methods .l-page-section__inner.o-content {
    border-bottom: none;
}
 
#mmpc-custom-landing .mmpc-hero-scroll-wrapper {
    position: relative;
    height: 150vh; 
}

#mmpc-custom-landing .mmpc-hero-section {
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px 20px;
    overflow: hidden; 
}

#mmpc-custom-landing .mmpc-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

#mmpc-custom-landing .mmpc-hero-mask-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background-color: rgba(83, 220, 49, 0.85); 
    backdrop-filter: grayscale(100%);
    -webkit-backdrop-filter: grayscale(100%); 
    clip-path: circle(var(--clip-radius, 250px) at var(--clip-x, 50%) var(--clip-y, 50%));
    -webkit-clip-path: circle(var(--clip-radius, 250px) at var(--clip-x, 50%) var(--clip-y, 50%));
    display: flex;
    align-items: center;
    padding: 20px 20px;
    box-sizing: border-box;
    overflow: hidden; 
    pointer-events: none; 
}
 
#mmpc-custom-landing .mmpc-hero-mask-layer .mmpc-hero-headline,
#mmpc-custom-landing .mmpc-hero-mask-layer .mmpc-hero-intro,
#mmpc-custom-landing .mmpc-hero-mask-layer .mmpc-contact-link {
    -webkit-text-stroke: 0.25px #184343;
}

#mmpc-custom-landing .mmpc-hero-mask-layer .mmpc-contact-icon svg {
    transform: scale(1.02);
}
 
#mmpc-custom-landing .mmpc-hero-mask-layer .mmpc-hero-headline,
#mmpc-custom-landing .mmpc-hero-mask-layer .mmpc-hero-intro,
#mmpc-custom-landing .mmpc-hero-mask-layer .mmpc-hero-contact,
#mmpc-custom-landing .mmpc-hero-mask-layer .mmpc-contact-link,
#mmpc-custom-landing .mmpc-hero-mask-layer .mmpc-contact-icon {
    color: #184343; 
}

#mmpc-custom-landing .mmpc-hero-mask-layer .mmpc-contact-icon svg path,
#mmpc-custom-landing .mmpc-hero-mask-layer .mmpc-contact-icon svg rect,
#mmpc-custom-landing .mmpc-hero-mask-layer .mmpc-contact-icon svg circle {
    fill: #184343;
}

#mmpc-custom-landing .mmpc-hero-container {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
    position: relative;
}

#mmpc-custom-landing .mmpc-hero-content {
    flex: 1;
    text-align: left; 
    color: #ffffff; 
    position: relative;
    z-index: 2; 
}

#mmpc-custom-landing .mmpc-hero-headline {
    margin-bottom: 1.5rem; 
    color: #ffffff; 
}
 
#mmpc-custom-landing .mmpc-hero-intro {
    font-size: 1.125rem;
    line-height: 1.5625rem;
    color: #ffffff; 
}

#mmpc-custom-landing .mmpc-hero-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    width: fit-content;
}

#mmpc-custom-landing .mmpc-contact-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    font-size: inherit; 
    font-weight: inherit;
    color: inherit;
    transition: color 0.3s ease;
}

#mmpc-custom-landing .mmpc-hero-contact .mmpc-contact-link {
    background: linear-gradient(transparent 55%, #53dc31 55%);
    padding: 0 6px 0 2px;
    display: inline-flex;
}
 
/* Invert highlighter to white inside the green mask layer */
#mmpc-custom-landing .mmpc-hero-mask-layer .mmpc-hero-contact .mmpc-contact-link {
    background: linear-gradient(transparent 55%, #ffe800 55%);
}

#mmpc-custom-landing .mmpc-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#mmpc-custom-landing .mmpc-contact-icon svg {
    width: 1.5rem;
    height: auto;
}

#mmpc-custom-landing .mmpc-contact-icon svg path,
#mmpc-custom-landing .mmpc-contact-icon svg rect,
#mmpc-custom-landing .mmpc-contact-icon svg circle {
    fill: currentColor;
    transition: fill 0.3s ease;
}

#mmpc-custom-landing .mmpc-hero-contact .mmpc-contact-icon {
    color: #ffffff; 
}

#mmpc-custom-landing .mmpc-hero-form-box {
    width: 100%;
    max-width: 500px; 
    padding: 40px; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
}

#mmpc-custom-landing .mmpc-real-form-box {
    position: relative;
    z-index: 20; 
}

#mmpc-custom-landing .mmpc-form-heading,
#mmpc-custom-landing .mmpc-hero-gf-wrapper {
    position: relative;
    z-index: 2; 
    width: 100%;
}

#mmpc-custom-landing .mmpc-form-heading {
    color: #184343;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper form {
    margin-bottom: 0;
}
 
#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .gform_body .gform_fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 10px;
}

#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .gform_body .gform_fields::before,
#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .gform_body .gform_fields::after {
    display: none;
}

#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .gfield_visibility_hidden,
#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .gform_hidden,
#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .gform_validation_container {
    display: none;
}

#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .gfield.gfield--half {
    width: 100%; 
    margin: 0;
    padding: 0;
}

#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .gfield:not(.gfield--half) {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0; 
    padding: 0;
}
 
#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .gfield_label {
    display: none;
}

#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper input:not([type="submit"]):not([type="button"]):not([type="radio"]):not([type="checkbox"]),
#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #184343;
    font-size: 1.125rem; 
    line-height: 1.5625rem; 
    position: relative;
    z-index: 10;
}

#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper textarea {
    height: 90px;
    min-height: 80px; 
    resize: vertical;
}

#mmpc-custom-landing .mmpc-hero-form-box:has(.gform_validation_errors) .mmpc-form-heading,
#mmpc-custom-landing .mmpc-hero-form-box:has(.validation_error) .mmpc-form-heading,
#mmpc-custom-landing .mmpc-hero-form-box:has(.gform_confirmation_wrapper) .mmpc-form-heading {
    display: none;
}

#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .gform_validation_errors,
#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .validation_error,
#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .gform_validation_errors,
#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .validation_error {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0 0 20px 0; 
    border: none;
    display: block; 
}

#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .gform_validation_errors h2,
#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .validation_error h2,
#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .gform_validation_errors h2,
#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .validation_error h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem; 
    line-height: 1.5625rem; 
    font-weight: 400; 
    color: #d90000; 
    margin: 0;
    text-align: center;
}

#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .gform_validation_errors p,
#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .gform_validation_errors p {
    display: none; 
}

#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .gfield_validation_message,
#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .gfield_validation_message {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    color: #d90000;
    font-weight: 600;
    margin-top: 4px;
    padding: 0 5px;
    text-align: left;
}

#mmpc-custom-landing .mmpc-hero-form-box .gform_confirmation_wrapper,
#mmpc-custom-landing .mmpc-sfs-form-box .gform_confirmation_wrapper {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 40px 30px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

#mmpc-custom-landing .mmpc-hero-form-box .gform_confirmation_message,
#mmpc-custom-landing .mmpc-sfs-form-box .gform_confirmation_message {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem; 
    line-height: 1.5625rem; 
    color: #184343;
    text-align: center;
    margin: 0;
    padding: 0;
}

#mmpc-custom-landing .mmpc-intro-section .o-content {
    margin: 0 auto;
    max-width: 880px;
}

#mmpc-custom-landing .mmpc-intro-section .o-content,
#mmpc-custom-landing .mmpc-intro-section .o-content h2,
#mmpc-custom-landing .mmpc-intro-section .o-content p {
    text-align: center;
}

#mmpc-custom-landing .mmpc-trust-banner {
    background-color: transparent;
    text-align: center;
    border-bottom: 2px solid #eaeaea; 
}

#mmpc-custom-landing .mmpc-banner-header {
    margin-bottom: 3.5rem;
}

#mmpc-custom-landing .mmpc-banner-stars {
    display: inline-flex;
    justify-content: center;
    font-size: 2.5rem; 
    line-height: 1;
    margin-bottom: .875rem;
}

#mmpc-custom-landing .mmpc-banner-stars span {
    color: #184343; 
    letter-spacing: 4px; 
    transition: color 0.15s ease-out;
}
#mmpc-custom-landing .mmpc-banner-stars span.is-filled {
    color: #ffe800;
}

#mmpc-custom-landing .mmpc-banner-total {
    margin: 0 auto;
    font-size: 1.4rem;
    line-height: 1.8rem;
}

#mmpc-custom-landing .mmpc-banner-total a {
    text-decoration: underline;
    color: inherit;
}

#mmpc-custom-landing .mmpc-banner-track {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap;
}

#mmpc-custom-landing .mmpc-banner-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1 1 33%; 
}

@media screen and (min-width: 769px) {
    #mmpc-custom-landing .mmpc-banner-item:first-child { justify-content: flex-start; }
    #mmpc-custom-landing .mmpc-banner-item:nth-child(2) { justify-content: center; }
    #mmpc-custom-landing .mmpc-banner-item:last-child { justify-content: flex-end; }
}

#mmpc-custom-landing .mmpc-banner-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}
 
#mmpc-custom-landing .mmpc-trust-banner .mmpc-banner-item p {
    text-align: left;
    font-size: 1.125rem; 
    line-height: 1.5625rem; 
    margin: 0;
    display: block;
}
 
#mmpc-custom-landing .mmpc-services-section {
    background-color: #cde4e8; 
    color: #184343; 
}

#mmpc-custom-landing .mmpc-services-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 90%;
}

#mmpc-custom-landing .mmpc-services-intro {
    max-width: 880px; 
    margin: 0 auto 3.5rem auto;
}

#mmpc-custom-landing .mmpc-services-section a {
    color: #184343;
    text-decoration: underline;
    font-weight: 500;
}

#mmpc-custom-landing .mmpc-feature-grid {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    max-width: 880px;
    margin: 0 auto;
}

#mmpc-custom-landing .mmpc-feature-row {
    display: flex;
    align-items: center; 
    gap: 50px; 
}

#mmpc-custom-landing .mmpc-feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

#mmpc-custom-landing .mmpc-feature-image {
    flex: 1;
}

#mmpc-custom-landing .mmpc-feature-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

#mmpc-custom-landing .mmpc-feature-text {
    flex: 1;
}

#mmpc-custom-landing .mmpc-about-section {
    background-color: #ffffff;
}

#mmpc-custom-landing .mmpc-about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

#mmpc-custom-landing .mmpc-about-text {
    flex: 1.5;
}

#mmpc-custom-landing .mmpc-about-heading {
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 300;
    color: #184343;
    margin-bottom: 30px;
    text-align: center; 
}

#mmpc-custom-landing .mmpc-about-subheading {
    color: #00a651;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.8rem;
    margin-top: 1.8rem;
    margin-bottom: 0;
}

#mmpc-custom-landing .mmpc-about-image img {
    width: 100%;
    height: auto;
}

#mmpc-custom-landing .mmpc-about-image--desktop {
    display: none;
}
 
#mmpc-custom-landing .mmpc-about-image--mobile {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 40px 0;
}

@media screen and (min-width: 769px) {
    #mmpc-custom-landing .mmpc-about-container {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 80px;
    }
    #mmpc-custom-landing .mmpc-about-heading { text-align: left; }
    #mmpc-custom-landing .mmpc-about-image--mobile { display: none; }
    #mmpc-custom-landing .mmpc-about-image--desktop {
        display: block;
        flex: 1;
        width: 100%;
        max-width: 450px; 
        align-self: flex-end;
    }
}
 
#mmpc-custom-landing .mmpc-about-image--desktop,
#mmpc-custom-landing .mmpc-about-image--mobile {
    aspect-ratio: 1 / 1; 
}

#mmpc-custom-landing .mmpc-tree-mask {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    background-image: var(--reveal-image);
    background-size: cover;
    background-position: center center;
    -webkit-mask-image: url('https://mandmpestcontrol.com/wp-content/uploads/2026/04/MMPC_Tree_Vector.svg');
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('https://mandmpestcontrol.com/wp-content/uploads/2026/04/MMPC_Tree_Vector.svg');
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
}

#mmpc-custom-landing .mmpc-tree-mask::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://mandmpestcontrol.com/wp-content/uploads/2026/04/MMPC_Tree_Vector.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--mask-opacity, 1);
    transition: opacity 0.1s linear; 
    z-index: 2;
}

#mmpc-custom-landing .mmpc-about-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 3.5rem;
    width: 100%;
}

#mmpc-custom-landing .mmpc-about-logo-item {
    position: relative;
    display: block;
    flex: 0 0 auto;
}

#mmpc-custom-landing .mmpc-logo-placeholder {
    visibility: hidden;
    height: 55px;
    width: auto;
    display: block;
}

#mmpc-custom-landing .mmpc-logo-default,
#mmpc-custom-landing .mmpc-logo-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease-in;
}

#mmpc-custom-landing .mmpc-logo-hover { opacity: 0; }
#mmpc-custom-landing .mmpc-about-logo-item:hover .mmpc-logo-default { opacity: 0; }
#mmpc-custom-landing .mmpc-about-logo-item:hover .mmpc-logo-hover { opacity: 1; }

@media (max-width: 767px) {
    #mmpc-custom-landing .mmpc-about-logos {
        justify-content: center;
        gap: 25px;
        margin-top: 40px;
    }
    #mmpc-custom-landing .mmpc-logo-placeholder {
        height: 40px; 
    }
}
 
#mmpc-custom-landing #mmpc-custom-grid {
    width: 100%;
    border-bottom: none;
}

#mmpc-custom-landing .mmpc-boxes-wrapper {
    display: grid;
    gap: 20px; 
    width: 100%;
    padding-bottom: 0; 
    transition: all 0.3s ease-in-out;
}

#mmpc-custom-landing #mmpc-custom-grid.mmpc-grid-cols-2 .mmpc-boxes-wrapper { grid-template-columns: repeat(2, 1fr); }
#mmpc-custom-landing #mmpc-custom-grid.mmpc-grid-cols-3 .mmpc-boxes-wrapper { grid-template-columns: repeat(3, 1fr); }
#mmpc-custom-landing #mmpc-custom-grid.mmpc-grid-cols-4 .mmpc-boxes-wrapper { grid-template-columns: repeat(4, 1fr); }

#mmpc-custom-landing #mmpc-custom-grid:has(.is-active) .mmpc-boxes-wrapper,
#mmpc-custom-landing #mmpc-custom-grid:has(.active) .mmpc-boxes-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px; 
    padding-bottom: 10px;
    border-bottom: 1px solid #184343;
    position: relative;
}

#mmpc-custom-landing #mmpc-custom-grid:has(.is-active) .l-collapsible-grid__item,
#mmpc-custom-landing #mmpc-custom-grid:has(.active) .l-collapsible-grid__item {
    flex: 1 1 0%; 
    padding: 15px 5px; 
    aspect-ratio: auto; 
    justify-content: flex-start; 
}

#mmpc-custom-landing #mmpc-custom-grid:has(.is-active) .c-icon-block__heading,
#mmpc-custom-landing #mmpc-custom-grid:has(.active) .c-icon-block__heading {
    font-size: 0.75rem; 
    height: 40%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 5% 5px; 
    margin: 0;
}

#mmpc-custom-landing #mmpc-custom-grid:has(.is-active) .c-icon-block__graphic,
#mmpc-custom-landing #mmpc-custom-grid:has(.active) .c-icon-block__graphic {
    height: 60%;
    width: 100%;
    display: flex; 
    align-items: flex-start;
    justify-content: center;
    padding: 0 5% 10px; 
    margin: 0;
}

#mmpc-custom-landing #mmpc-custom-grid:has(.is-active) .c-icon-block__graphic svg, 
#mmpc-custom-landing #mmpc-custom-grid:has(.is-active) .c-icon-block__graphic img,
#mmpc-custom-landing #mmpc-custom-grid:has(.active) .c-icon-block__graphic svg, 
#mmpc-custom-landing #mmpc-custom-grid:has(.active) .c-icon-block__graphic img {
    width: 60px; 
    height: 60px;
}

#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item.is-active .c-icon-block__graphic,
#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item.active .c-icon-block__graphic {
    display: none; 
}

#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item.is-active .c-icon-block__heading,
#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item.active .c-icon-block__heading {
    height: 100%;
    align-items: center;
    padding-bottom: 0;
}

#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item {
    margin: 0;
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    height: auto; 
    background-color: #53dc31;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    text-align: center;
    padding: 0;
    container-type: inline-size; 
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}
 
#mmpc-custom-landing #mmpc-custom-grid .c-icon-block__heading {
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    font-size: clamp(12px, 8cqi, 20px); 
    height: 40%; 
    width: 100%;
    display: flex;
    align-items: center; 
    justify-content: center;
    padding: 15px 10% 5px; 
    margin: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#mmpc-custom-landing #mmpc-custom-grid .c-icon-block__graphic { 
    order: 2; 
    height: 60%; 
    width: 100%;
    display: flex;
    align-items: flex-start; 
    justify-content: center;
    padding: 0 10% 10%; 
    margin: 0; 
    box-sizing: border-box;
    transition: all 0.3s ease;
}
 
#mmpc-custom-landing #mmpc-custom-grid .c-icon-block__graphic svg, 
#mmpc-custom-landing #mmpc-custom-grid .c-icon-block__graphic img {
    width: 100px; 
    height: 100px; 
    object-fit: contain; 
    margin: 0 auto;
    display: block;
    transition: all 0.3s ease;
}

#mmpc-custom-landing #mmpc-custom-grid .c-icon-block__graphic svg, 
#mmpc-custom-landing #mmpc-custom-grid .c-icon-block__graphic img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item:not(.is-active):not(.active):hover .c-icon-block__graphic svg,
#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item:not(.is-active):not(.active):hover .c-icon-block__graphic img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(21%) saturate(2284%) hue-rotate(137deg) brightness(96%) contrast(90%);
}

#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item:not(.is-active):not(.active):hover .c-icon-block__graphic svg path,
#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item:not(.is-active):not(.active):hover .c-icon-block__graphic svg circle,
#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item:not(.is-active):not(.active):hover .c-icon-block__graphic svg rect,
#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item:not(.is-active):not(.active):hover .c-icon-block__graphic svg polygon,
#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item:not(.is-active):not(.active):hover .c-icon-block__graphic svg line,
#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item:not(.is-active):not(.active):hover .c-icon-block__graphic svg polyline,
#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item:not(.is-active):not(.active):hover .c-icon-block__graphic svg ellipse {
    stroke: #184343;
}

#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item:not(.is-active):not(.active):hover .c-icon-block__graphic img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(21%) saturate(2284%) hue-rotate(137deg) brightness(96%) contrast(90%);
}

#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item.is-active,
#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item.active {
    background-color: #184343;
    z-index: 5;
}

#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item.is-active::after,
#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item.active::after {
    content: "";
    position: absolute;
    display: block; 
    left: 50%;
    top: 100%;
    margin: 0; 
    padding: 0;
    right: auto;
    bottom: auto;
    transform: translate(-50%, calc(10px - 50%)) rotate(45deg);
    width: 18px;
    height: 18px;
    background-color: #ffffff; 
    border-right: 1px solid #184343;
    border-bottom: 1px solid #184343;
    border-top: 2px solid #ffffff; 
    border-left: 2px solid #ffffff; 
    z-index: -1;
}
 
#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__content {
    padding: 0; 
    margin-top: 0;
    border-top: none; 
    border-bottom: none; 
}

#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__content.is-active,
#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__content.active {
    padding-top: 3.5rem; 
    padding-bottom: 3.5rem;
}

#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__content h4,
#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__content h4.u-text-green {
    margin-top: 1.75rem; 
    padding-top: 0;
    color: #184343; 
}
 
#mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__content p:empty {
    display: none;
    margin: 0;
    padding: 0;
}
 
#mmpc-custom-landing .mmpc-method-row {
    display: flex;
    align-items: center; 
    gap: 50px; 
}

#mmpc-custom-landing .mmpc-method-text {
    flex: 1;
}

#mmpc-custom-landing .mmpc-method-photo {
    flex: 1;
    margin-top: 20px; 
    width: 100%;
}
 
#mmpc-custom-landing .mmpc-method-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

#mmpc-custom-landing .mmpc-sfs-container {
    display: flex;
    align-items: flex-start;
    gap: 3.5rem;
}

#mmpc-custom-landing .mmpc-sfs-content {
    flex: 1;
}

#mmpc-custom-landing .mmpc-sfs-form-box {
    flex: 1.2;
    width: 100%;
}

#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper form { margin-bottom: 0; }
#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .gform_body .gform_fields::before,
#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .gform_body .gform_fields::after,
#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .gfield_visibility_hidden,
#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .gform_hidden,
#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .gform_validation_container,
#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .gfield_label {
    display: none;
}

#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .gform_body .gform_fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 8px;
}

#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .gfield.gfield--half {
    width: 100%; 
    margin: 0; padding: 0;
}

#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .gfield:not(.gfield--half) {
    grid-column: 1 / -1; 
    width: 100%; margin: 0; padding: 0;
}

#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper input:not([type="submit"]):not([type="button"]):not([type="radio"]):not([type="checkbox"]),
#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: #f2f6f8; 
    color: #184343;
    font-size: 1.125rem; 
    box-sizing: border-box;
}

#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper textarea {
    height: 120px;
    resize: vertical;
}

#mmpc-custom-landing .mmpc-gallery-section {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden; 
    margin-left: calc(50% - 50vw);
}

#mmpc-custom-landing .mmpc-gallery-wrapper {
    width: 100%; 
    overflow: hidden;
}

#mmpc-custom-landing .mmpc-gallery-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: mmpcScrollGallery 30s linear infinite; 
}

@keyframes mmpcScrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

#mmpc-custom-landing .mmpc-gallery-slide img {
    width: auto;
    height: 400px; 
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
 
#mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .gform_footer input[type="submit"],
#mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .gform_footer input[type="submit"] {
    width: 100%;
    margin-top: 10px;
}
 
#mmpc-custom-landing .mmpc-faq-section .o-drawer__content {
    height: auto; 
    max-height: 0;
    padding-top: 0; 
    padding-bottom: 0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out, margin 0.3s ease-out;
}
 
#mmpc-custom-landing .mmpc-faq-section .o-drawer__content.is-open {
    max-height: 3000px; 
    padding-top: 0.75rem; 
    padding-bottom: 0.75rem;
}

@media (max-width: 768px) {
    #mmpc-custom-landing .mmpc-intro-section h2,
    #mmpc-custom-landing .mmpc-services-section h2,
    #mmpc-custom-landing #eco-methods h2,
    #mmpc-custom-landing .mmpc-secondary-form-section h2,
    #mmpc-custom-landing .mmpc-about-section h2 {
        font-size: 1.75rem;
        font-weight: 400;
    }
    
    #mmpc-custom-landing .mmpc-hero-scroll-wrapper {
        height: 150vh; 
    }
    #mmpc-custom-landing .mmpc-hero-section {
        background-image: var(--bg-mobile);
        position: sticky; 
        height: 100vh; 
        padding: 10px 15px;
        display: flex;
        align-items: center;
    }
    
    #mmpc-custom-landing .mmpc-hero-mask-layer {
        padding: 10px 15px;
    }

    #mmpc-custom-landing .mmpc-hero-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
    #mmpc-custom-landing .mmpc-hero-content {
        text-align: center;
        width: 90%;
        margin: 3.5rem auto 0;
    }
    #mmpc-custom-landing .mmpc-hero-contact {
        align-items: center;
        width: 100%;
        margin: 0 auto 15px; 
        gap: 10px;
        border: none;
        padding: 0;
    }

    #mmpc-custom-landing .mmpc-hero-form-box {
        width: 360px;
        height: 360px;
        max-width: 100%;
        padding: 20px; 
        margin: 0 auto;
        aspect-ratio: 1 / 1; 
    }
    
    #mmpc-custom-landing .mmpc-hero-headline {
        font-size: 1.875rem;
        margin-bottom: 1.5rem;
    }
    #mmpc-custom-landing .mmpc-hero-intro {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    #mmpc-custom-landing .mmpc-sfs-form-box .gform_wrapper .gform_body .gform_fields {
        grid-template-columns: 1fr; 
    }
    
    #mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .gform_body .gform_fields {
        row-gap: 6px;
        column-gap: 6px;
    }
    #mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper input:not([type="submit"]):not([type="button"]):not([type="radio"]):not([type="checkbox"]) {
        padding: 8px;
        font-size: 0.95rem;
    }
    #mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper textarea {
        height: 50px;
        min-height: 50px;
        padding: 8px;
    }
    #mmpc-custom-landing .mmpc-hero-form-box .gform_wrapper .gform_footer input[type="submit"] {
        padding: 10px;
        margin: 10px 0 0 0;
        font-size: 1rem;
    }
    #mmpc-custom-landing .mmpc-form-heading {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    #mmpc-custom-landing .mmpc-feature-row, 
    #mmpc-custom-landing .mmpc-feature-row:nth-child(even) {
        flex-direction: column;
        gap: 20px;
    }

    #mmpc-custom-landing .mmpc-feature-image {
        width: 100%;
    }

    #mmpc-custom-landing .mmpc-banner-track {
        gap: 30px; 
        flex-direction: column; 
    }
    #mmpc-custom-landing .mmpc-banner-item {
        justify-content: center; 
        width: 100%;
    }
    
    #mmpc-custom-landing .mmpc-method-row {
        flex-direction: column;
        gap: 20px;
    }
    
    #mmpc-custom-landing .mmpc-method-photo {
        margin-top: 0;
    }

    #mmpc-custom-landing #mmpc-custom-grid.mmpc-grid-cols-2 .mmpc-boxes-wrapper,
    #mmpc-custom-landing #mmpc-custom-grid.mmpc-grid-cols-3 .mmpc-boxes-wrapper,
    #mmpc-custom-landing #mmpc-custom-grid.mmpc-grid-cols-4 .mmpc-boxes-wrapper { 
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    #mmpc-custom-landing #mmpc-custom-grid .c-icon-block__heading {
        font-size: 0.85rem; 
        padding: 10px 5% 0;
    }
    #mmpc-custom-landing #mmpc-custom-grid .c-icon-block__graphic svg, 
    #mmpc-custom-landing #mmpc-custom-grid .c-icon-block__graphic img {
        width: 60px; 
        height: 60px;
    }

    #mmpc-custom-landing #mmpc-custom-grid:has(.is-active) .mmpc-boxes-wrapper,
    #mmpc-custom-landing #mmpc-custom-grid:has(.active) .mmpc-boxes-wrapper { 
        display: flex;
        flex-wrap: nowrap; 
        gap: 10px;
    }
    #mmpc-custom-landing #mmpc-custom-grid:has(.is-active) .l-collapsible-grid__item,
    #mmpc-custom-landing #mmpc-custom-grid:has(.active) .l-collapsible-grid__item { 
        flex: 1 1 0%; 
        max-width: none; 
        padding: 10px 2px; 
    }
    #mmpc-custom-landing #mmpc-custom-grid:has(.is-active) .c-icon-block__heading,
    #mmpc-custom-landing #mmpc-custom-grid:has(.active) .c-icon-block__heading {
        font-size: 0.65rem; 
        line-height: 1.1;
        word-break: break-word; 
        height: auto; 
        padding: 5px 2px; 
    }
    #mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item.is-active .c-icon-block__heading,
    #mmpc-custom-landing #mmpc-custom-grid .l-collapsible-grid__item.active .c-icon-block__heading {
        height: 100%;
    }
    #mmpc-custom-landing #mmpc-custom-grid:has(.is-active) .c-icon-block__graphic svg, 
    #mmpc-custom-landing #mmpc-custom-grid:has(.is-active) .c-icon-block__graphic img,
    #mmpc-custom-landing #mmpc-custom-grid:has(.active) .c-icon-block__graphic svg, 
    #mmpc-custom-landing #mmpc-custom-grid:has(.active) .c-icon-block__graphic img {
        width: 60px; 
        height: 60px;
    }
    
    #mmpc-custom-landing .mmpc-gallery-slide img {
        height: 250px; 
    }

    #mmpc-custom-landing .mmpc-sfs-container {
        flex-direction: column;
        gap: 40px;
    }
    
    #mmpc-custom-landing .mmpc-contact-link {
        font-size: 1.25rem;
        gap: .5rem;
    }

    #mmpc-custom-landing .mmpc-contact-icon svg,
    #mmpc-custom-landing .mmpc-hero-contact .mmpc-contact-icon svg {
        width: 1.5rem;
        height: auto;
    }
}