/* ==========================================================================
   Maple Majesty - UI/UX layer (October 2026)
   Loaded after global/section CSS.
   - Part 1 applies sitewide: button contrast, header phone button, footer.
   - Part 2 is the homepage. Everything there is scoped to #primary.mmx-home
     so it outranks the legacy nth-of-type / !important chains without
     touching any other template.
   ========================================================================== */

:root {
    --mx-red: #BF360C;
    --mx-red-dark: #8F2907;
    --mx-green: #315239;
    --mx-deep: #173C25;
    --mx-gold: #FFB300;
    --mx-on-gold: #2A1700;
    --mx-ink: #201A12;
    --mx-text: #3F382D;
    --mx-muted: #655C4E;
    --mx-line: #ECE2D4;
    --mx-cream: #FFF8F0;
    --mx-mint: #F0F7EE;
    --mx-tint: #FDEEE6;
    --mx-head: 'Montserrat', sans-serif;
    --mx-bodyf: 'Open Sans', sans-serif;
}

/* ==========================================================================
   PART 1 - SITEWIDE
   ========================================================================== */

/* Gold buttons: white text was ~2:1 contrast. Dark text reads at ~9:1. */
body .btn-primary,
body .btn-secondary,
body .btn-primary:hover,
body .btn-secondary:hover,
body .btn-primary:focus-visible,
body .btn-secondary:focus-visible {
    color: var(--mx-on-gold) !important;
    text-shadow: none !important;
}

.mmx-ic {
    width: 1.25em;
    height: 1.25em;
    flex: none;
}

/* Header phone number (desktop only; phones have the sticky call bar). */
.mmx-header-call {
    display: none;
}

@media (min-width: 1100px) {
    header.site-header #primary-menu {
        margin-left: auto;
    }

    .mmx-header-call {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-left: 2rem;
        padding: 11px 18px;
        border-radius: 999px;
        background: #fff;
        color: var(--mx-red-dark);
        font: 800 0.9375rem/1 var(--mx-head);
        letter-spacing: 0.01em;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mmx-header-call:hover,
    .mmx-header-call:focus-visible {
        color: var(--mx-red-dark);
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
    }

    .mmx-header-call .mmx-ic {
        width: 17px;
        height: 17px;
    }
}

/* Slimmer desktop header: 110px -> 92px. */
@media (min-width: 769px) {
    body header.site-header {
        height: 92px !important;
        min-height: 92px !important;
    }

    header.site-header .nav-icon-btn {
        width: 40px;
        height: 40px;
    }

    header.site-header .nav-item {
        gap: 0.3rem;
    }
}

/* Services dropdown was centred on its menu item and ran off the right edge
   below ~1370px. Anchor it to the header bar instead. */
@media (min-width: 769px) {
    header.site-header .has-dropdown {
        position: static;
    }

    header.site-header .has-dropdown .mega-menu {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* Footer on phones: link columns side by side instead of one long stack. */
@media (max-width: 600px) {
    footer.site-footer.custom-footer .custom-footer-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand brand"
            "services areas"
            "services company"
            "contact contact";
        gap: 24px 20px;
        padding-bottom: 28px;
    }

    footer.site-footer.custom-footer .custom-footer-grid > :nth-child(1) { grid-area: brand; }
    footer.site-footer.custom-footer .custom-footer-grid > :nth-child(2) { grid-area: services; }
    footer.site-footer.custom-footer .custom-footer-grid > :nth-child(3) { grid-area: areas; }
    footer.site-footer.custom-footer .custom-footer-grid > :nth-child(4) { grid-area: company; }
    footer.site-footer.custom-footer .custom-footer-grid > :nth-child(5) { grid-area: contact; }

    footer.site-footer.custom-footer .footer-heading {
        margin-bottom: 14px;
    }

    footer.site-footer.custom-footer .footer-list li {
        margin-bottom: 10px;
    }
}

/* ==========================================================================
   PART 2 - HOMEPAGE
   ========================================================================== */

#primary.mmx-home {
    color: var(--mx-text);
    font-family: var(--mx-bodyf);
    font-size: 1rem;
    line-height: 1.65;
}

#primary.mmx-home [id] {
    scroll-margin-top: 112px;
}

#primary.mmx-home .mmx-wrap {
    width: min(1200px, 100% - 40px);
    margin-left: auto;
    margin-right: auto;
}

/* ---- Section shell ------------------------------------------------------ */
#primary.mmx-home > section.mmx-sec,
#primary.mmx-home > section.mmx-legacy {
    padding-top: 76px !important;
    padding-bottom: 76px !important;
    margin: 0 !important;
    border: 0 !important;
}

#primary.mmx-home > section.mmx-bg-white { background: #fff !important; }
#primary.mmx-home > section.mmx-bg-mint { background: var(--mx-mint) !important; }

#primary.mmx-home .mmx-head {
    max-width: 780px;
    margin: 0 auto 44px;
    text-align: center;
}

#primary.mmx-home .mmx-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font: 700 0.8125rem/1.2 var(--mx-head);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mx-green);
}

#primary.mmx-home .mmx-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: #D48806;
    flex: none;
}

#primary.mmx-home h2.mmx-h2 {
    font: 800 clamp(1.625rem, 2.5vw, 2.125rem)/1.2 var(--mx-head) !important;
    color: var(--mx-red) !important;
    margin: 12px 0 16px !important;
    width: auto !important;
    max-width: none !important;
    text-align: inherit !important;
    text-wrap: balance;
}

#primary.mmx-home .mmx-lead {
    font-size: 1.0625rem;
    color: var(--mx-ink);
    margin: 0 0 10px;
}

#primary.mmx-home .mmx-lead-sub {
    font-size: 0.9688rem;
    color: var(--mx-muted);
    margin: 0;
}

#primary.mmx-home .mmx-takeaway {
    margin: 0 0 18px;
    padding: 16px 20px;
    background: #fff;
    border-left: 4px solid var(--mx-red);
    border-radius: 0 12px 12px 0;
    color: var(--mx-ink);
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(32, 26, 18, 0.05);
}

/* ---- Buttons ------------------------------------------------------------ */
#primary.mmx-home .mmx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 2px solid transparent;
    font: 800 1rem/1.1 var(--mx-head);
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

#primary.mmx-home .mmx-btn:hover { transform: translateY(-2px); }
#primary.mmx-home .mmx-btn:active { transform: translateY(0); }

#primary.mmx-home .mmx-btn:focus-visible,
#primary.mmx-home a:focus-visible,
#primary.mmx-home button:focus-visible,
#primary.mmx-home summary:focus-visible {
    outline: 3px solid #FFCA28;
    outline-offset: 3px;
}

#primary.mmx-home .mmx-btn--gold {
    background: linear-gradient(180deg, #FFCA28 0%, #FF9F0A 100%);
    color: var(--mx-on-gold);
    box-shadow: 0 8px 22px rgba(255, 143, 0, 0.32);
}

#primary.mmx-home .mmx-btn--gold:hover {
    color: var(--mx-on-gold);
    box-shadow: 0 12px 26px rgba(255, 143, 0, 0.44);
}

#primary.mmx-home .mmx-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

#primary.mmx-home .mmx-btn--ghost:hover {
    background: #fff;
    color: var(--mx-deep);
}

#primary.mmx-home .mmx-btn--white {
    background: #fff;
    color: var(--mx-red-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#primary.mmx-home .mmx-btn--white:hover { color: var(--mx-red-dark); }

/* ---- Hero --------------------------------------------------------------- */
#primary.mmx-home > section.hero-section.mmx-hero {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    margin: -92px 0 0 !important;
    padding: calc(92px + 60px) 0 116px !important;
    text-align: left !important;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 520px at 90% 0%, rgba(110, 170, 125, 0.30), transparent 62%),
        linear-gradient(160deg, #1D4D30 0%, #173C25 48%, #0E2817 100%) !important;
}

#primary.mmx-home .mmx-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
    align-items: center;
}

#primary.mmx-home .mmx-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFE08A;
    font: 700 0.8125rem/1.2 var(--mx-head);
    letter-spacing: 0.04em;
}

#primary.mmx-home .mmx-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6EE7A0;
    box-shadow: 0 0 0 4px rgba(110, 231, 160, 0.22);
    flex: none;
}

#primary.mmx-home h1.mmx-hero-title {
    font: 800 clamp(2.125rem, 4.3vw, 3.5rem)/1.08 var(--mx-head) !important;
    letter-spacing: -0.015em;
    color: #fff !important;
    margin: 0 0 18px !important;
    max-width: 15ch !important;
    text-align: left !important;
    text-wrap: balance;
}

#primary.mmx-home .mmx-hero-sub {
    max-width: 34rem;
    margin: 0 0 28px;
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

#primary.mmx-home .mmx-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

#primary.mmx-home .mmx-hero-note {
    margin: 18px 0 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.78);
}

#primary.mmx-home .mmx-hero-media {
    position: relative;
}

#primary.mmx-home .mmx-hero-media::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 2px solid rgba(255, 202, 40, 0.55);
    border-radius: 24px;
    pointer-events: none;
}

#primary.mmx-home .mmx-hero-img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    object-position: 70% center;
    border-radius: 22px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.38);
}

#primary.mmx-home .mmx-hero-badge {
    position: absolute;
    left: -22px;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 12px;
    background: #fff;
    border-radius: 14px;
    color: var(--mx-ink);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

#primary.mmx-home .mmx-hero-badge-ic {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--mx-tint);
    color: var(--mx-red);
    flex: none;
}

#primary.mmx-home .mmx-hero-badge strong {
    display: block;
    font: 700 0.9375rem/1.25 var(--mx-head);
    color: var(--mx-ink);
}

#primary.mmx-home .mmx-hero-badge small {
    display: block;
    font-size: 0.8125rem;
    color: var(--mx-muted);
}

/* ---- Trust strip + emergency band -------------------------------------- */
#primary.mmx-home .mmx-top {
    display: flow-root;
    position: relative;
    z-index: 2;
    background: var(--mx-cream);
    padding-bottom: 60px;
}

#primary.mmx-home ul.mmx-trust {
    list-style: none !important;
    margin: -48px 0 0 !important;
    padding: 20px 24px !important;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px 18px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(20, 15, 9, 0.14);
}

#primary.mmx-home ul.mmx-trust li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    font: 700 0.875rem/1.3 var(--mx-head);
    color: var(--mx-ink);
}

#primary.mmx-home .mmx-trust-ic {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mx-tint);
    color: var(--mx-red);
    flex: none;
}

#primary.mmx-home .mmx-emg {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    padding: 26px 32px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #5A1E05 0%, #8F2907 100%);
    box-shadow: 0 14px 34px rgba(90, 30, 5, 0.22);
}

#primary.mmx-home .mmx-emg-ic {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 202, 40, 0.16);
    color: #FFCA28;
    font-size: 1.4rem;
}

#primary.mmx-home h2.mmx-emg-title {
    font: 800 1.375rem/1.2 var(--mx-head) !important;
    color: #fff !important;
    margin: 0 0 6px !important;
    width: auto !important;
    text-align: left !important;
}

#primary.mmx-home .mmx-emg-lead {
    margin: 0 0 4px;
    font-size: 1rem;
    color: #fff;
}

#primary.mmx-home .mmx-emg-sub {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.82);
}

/* ---- Services ----------------------------------------------------------- */
#primary.mmx-home .mmx-svc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

#primary.mmx-home a.mmx-svc {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px 24px 22px;
    background: #fff;
    border: 1px solid var(--mx-line);
    border-radius: 16px;
    color: var(--mx-text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#primary.mmx-home a.mmx-svc:hover {
    transform: translateY(-3px);
    border-color: #E6B9A6;
    box-shadow: 0 16px 34px rgba(32, 26, 18, 0.10);
}

#primary.mmx-home .mmx-svc-ic {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--mx-tint);
    color: var(--mx-red);
    font-size: 1.3rem;
    flex: none;
}

#primary.mmx-home .mmx-svc-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

#primary.mmx-home h3.mmx-svc-title {
    font: 700 1.125rem/1.3 var(--mx-head);
    color: var(--mx-red);
    margin: 0 0 8px;
}

#primary.mmx-home .mmx-svc-desc {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--mx-text);
}

#primary.mmx-home .mmx-svc-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font: 700 0.875rem/1 var(--mx-head);
    color: var(--mx-green);
}

#primary.mmx-home .mmx-svc-more .mmx-ic {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

#primary.mmx-home a.mmx-svc:hover .mmx-svc-more .mmx-ic { transform: translateX(4px); }

#primary.mmx-home a.mmx-svc--urgent {
    background: #FFF5EF;
    border-color: #F1C7B2;
}

#primary.mmx-home a.mmx-svc--urgent .mmx-svc-ic {
    background: var(--mx-red);
    color: #fff;
}

/* ---- About -------------------------------------------------------------- */
#primary.mmx-home .mmx-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 64px;
    align-items: start;
}

#primary.mmx-home .mmx-about-copy p {
    margin: 0 0 16px;
}

#primary.mmx-home .mmx-about-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 22px 48px rgba(32, 26, 18, 0.16);
}

#primary.mmx-home details.mmx-more > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font: 700 0.9375rem/1.2 var(--mx-head);
    color: var(--mx-red);
    cursor: pointer;
    list-style: none;
}

#primary.mmx-home details.mmx-more > summary::-webkit-details-marker { display: none; }
#primary.mmx-home details.mmx-more > summary .mmx-ic { width: 18px; height: 18px; transition: transform 0.2s ease; }
#primary.mmx-home details.mmx-more[open] > summary .mmx-ic { transform: rotate(180deg); }
#primary.mmx-home details.mmx-more .mmx-more-open { display: none; }
#primary.mmx-home details.mmx-more[open] .mmx-more-open { display: inline; }
#primary.mmx-home details.mmx-more[open] .mmx-more-closed { display: none; }

#primary.mmx-home .mmx-more-body {
    padding-top: 10px;
}

#primary.mmx-home .mmx-more-body h3 {
    font: 700 1.0625rem/1.3 var(--mx-head);
    color: var(--mx-red);
    margin: 22px 0 12px;
}

#primary.mmx-home ul.mmx-mini {
    list-style: none !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#primary.mmx-home ul.mmx-mini li {
    margin: 0;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #DDE9D8;
    border-radius: 12px;
}

#primary.mmx-home ul.mmx-mini h4 {
    font: 700 0.9375rem/1.3 var(--mx-head);
    color: var(--mx-ink);
    margin: 0 0 4px;
}

#primary.mmx-home ul.mmx-mini p {
    margin: 0;
    font-size: 0.9063rem;
    line-height: 1.55;
}

/* ---- Why choose us ------------------------------------------------------ */
#primary.mmx-home .mmx-why-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

#primary.mmx-home .mmx-why-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 24px 20px;
    background: #F8FBF6;
    border: 1px solid #DDE9D8;
    border-radius: 16px;
}

#primary.mmx-home .mmx-why-card:nth-child(4),
#primary.mmx-home .mmx-why-card:nth-child(5) {
    grid-column: span 3;
}

#primary.mmx-home .mmx-why-ic {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #DDE9D8;
    color: var(--mx-red);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

#primary.mmx-home .mmx-why-card h3 {
    font: 700 1.0625rem/1.35 var(--mx-head);
    color: var(--mx-red);
    margin: 0 0 10px;
}

#primary.mmx-home .mmx-why-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--mx-text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

#primary.mmx-home .mmx-why-card.is-open .mmx-why-text {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

#primary.mmx-home button.mmx-why-toggle {
    margin-top: 10px;
    padding: 6px 0;
    background: none;
    border: 0;
    font: 700 0.875rem/1.2 var(--mx-head);
    color: var(--mx-green);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* ---- Process ------------------------------------------------------------ */
#primary.mmx-home ol.mmx-steps {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    counter-reset: none;
}

#primary.mmx-home .mmx-step {
    position: relative;
    margin: 0;
    padding: 0;
}

#primary.mmx-home .mmx-step-num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--mx-red);
    color: #fff;
    font: 800 1.125rem/1 var(--mx-head);
    box-shadow: 0 0 0 6px #fff;
    margin-bottom: 18px;
}

#primary.mmx-home .mmx-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 23px;
    left: 48px;
    right: -24px;
    height: 2px;
    background: repeating-linear-gradient(90deg, #E3C9B5 0 8px, transparent 8px 14px);
}

#primary.mmx-home .mmx-step h3 {
    font: 700 1rem/1.35 var(--mx-head);
    color: var(--mx-red);
    margin: 0 0 8px;
}

#primary.mmx-home .mmx-step p {
    margin: 0;
    font-size: 0.9063rem;
    line-height: 1.6;
}

/* ---- Pricing ------------------------------------------------------------ */
#primary.mmx-home .mmx-pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 56px;
    align-items: start;
}

#primary.mmx-home .mmx-pricing-copy p {
    margin: 0 0 18px;
}

#primary.mmx-home .mmx-pricing-copy .mmx-takeaway {
    border-left-color: var(--mx-green);
    font-size: 0.9375rem;
}

#primary.mmx-home .mmx-pricing-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 26px;
}

#primary.mmx-home .mmx-link-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 700 0.9375rem/1.2 var(--mx-head);
    color: var(--mx-green);
    text-decoration: none;
}

#primary.mmx-home .mmx-link-call:hover span { text-decoration: underline; }
#primary.mmx-home .mmx-link-call .mmx-ic { width: 17px; height: 17px; }

#primary.mmx-home ul.mmx-price-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    background: #fff;
    border: 1px solid #DDE9D8;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(32, 26, 18, 0.07);
    overflow: hidden;
}

#primary.mmx-home .mmx-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 15px 24px;
    border-bottom: 1px solid #EEF3EB;
}

#primary.mmx-home .mmx-price:last-child { border-bottom: 0; }
#primary.mmx-home .mmx-price--featured { background: #FFF7EA; }

#primary.mmx-home .mmx-price h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font: 700 1rem/1.3 var(--mx-head);
    color: var(--mx-ink);
    margin: 0 0 3px;
}

#primary.mmx-home .mmx-price p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--mx-muted);
}

#primary.mmx-home .mmx-price-amt {
    flex: none;
    font: 800 1.0625rem/1.25 var(--mx-head);
    color: var(--mx-red);
    text-align: right;
    white-space: nowrap;
}

#primary.mmx-home .mmx-price--long .mmx-price-amt {
    max-width: 150px;
    font-size: 0.875rem;
    white-space: normal;
}

#primary.mmx-home .mmx-chip {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    background: #5A1E05;
    color: #fff;
    font: 700 0.6875rem/1 var(--mx-head);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---- Contact ------------------------------------------------------------ */
#primary.mmx-home > section.mmx-contact {
    color: #fff;
    background:
        radial-gradient(800px 480px at 8% 0%, rgba(110, 170, 125, 0.24), transparent 62%),
        linear-gradient(160deg, #1D4D30 0%, #173C25 50%, #0E2817 100%) !important;
}

#primary.mmx-home .mmx-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 64px;
    align-items: start;
}

#primary.mmx-home .mmx-contact .mmx-kicker { color: #FFE08A; }
#primary.mmx-home .mmx-contact .mmx-kicker::before { background: #FFCA28; }
#primary.mmx-home .mmx-contact h2.mmx-h2 { color: #fff !important; }

#primary.mmx-home .mmx-contact-desc {
    margin: 0 0 22px;
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.9);
}

#primary.mmx-home ul.mmx-checks {
    list-style: none !important;
    margin: 0 0 28px !important;
    padding: 0 !important;
    display: grid;
    gap: 12px;
}

#primary.mmx-home ul.mmx-checks li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

#primary.mmx-home ul.mmx-checks .mmx-ic {
    width: 26px;
    height: 26px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(255, 202, 40, 0.18);
    color: #FFCA28;
    stroke-width: 3;
}

#primary.mmx-home a.mmx-callcard {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 26px 16px 16px;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
    transition: transform 0.2s ease;
}

#primary.mmx-home a.mmx-callcard:hover { transform: translateY(-2px); }

#primary.mmx-home .mmx-callcard-ic {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--mx-green);
    color: #fff;
    font-size: 1.15rem;
}

#primary.mmx-home .mmx-callcard-label {
    display: block;
    font: 700 0.8125rem/1.2 var(--mx-head);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mx-muted);
    margin-bottom: 4px;
}

#primary.mmx-home .mmx-callcard-num {
    display: block;
    font: 800 1.5rem/1.1 var(--mx-head);
    color: var(--mx-red);
}

#primary.mmx-home .mmx-contact-form {
    padding: 14px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
}

/* ---- Sections kept from the original build ------------------------------ */
#primary.mmx-home .mmx-legacy h2 {
    font-size: clamp(1.625rem, 2.5vw, 2.125rem) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
}

#primary.mmx-home .gallery-section.mmx-legacy .gallery-header { margin-bottom: 2rem; }
#primary.mmx-home .gallery-section.mmx-legacy .gallery-title-wrapper { margin-bottom: 0; }
#primary.mmx-home .service-areas-section.mmx-legacy .sa-header { margin-bottom: 2rem; }
#primary.mmx-home .service-areas-section.mmx-legacy .sa-title { margin: 0.5rem 0 0 !important; }

#primary.mmx-home .faqs-section.mmx-legacy .faqs-container { max-width: 920px !important; }
#primary.mmx-home .faqs-section.mmx-legacy .faqs-header { margin-bottom: 2rem; }
#primary.mmx-home .faqs-section.mmx-legacy .faqs-grid { gap: 12px; }
#primary.mmx-home .faqs-section.mmx-legacy .faq-item { margin-bottom: 0 !important; }
#primary.mmx-home .faqs-section.mmx-legacy .faq-summary { padding: 18px 22px; }

#primary.mmx-home .faqs-section.mmx-legacy .faq-question {
    padding: 0 !important;
    font-size: 1rem !important;
    line-height: 1.4;
}

/* The footer's 6rem top margin left an empty band under the last section. */
body.home footer.site-footer.custom-footer { margin-top: 0; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1099px) {
    #primary.mmx-home .mmx-hero-grid { gap: 44px; }
    #primary.mmx-home ul.mmx-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #primary.mmx-home .mmx-emg { grid-template-columns: auto minmax(0, 1fr); }
    #primary.mmx-home .mmx-emg .mmx-btn { grid-column: 2; justify-self: start; }
    #primary.mmx-home .mmx-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #primary.mmx-home a.mmx-svc--urgent { grid-column: 1 / -1; }
    #primary.mmx-home .mmx-why-card,
    #primary.mmx-home .mmx-why-card:nth-child(4),
    #primary.mmx-home .mmx-why-card:nth-child(5) { grid-column: span 3; }
    #primary.mmx-home .mmx-why-card:nth-child(5) { grid-column: span 6; }
    #primary.mmx-home ol.mmx-steps { grid-template-columns: 1fr; gap: 0; max-width: 720px; margin: 0 auto !important; }
    #primary.mmx-home .mmx-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding-bottom: 26px; }
    #primary.mmx-home .mmx-step:last-child { padding-bottom: 0; }
    #primary.mmx-home .mmx-step-num { margin-bottom: 0; }
    #primary.mmx-home .mmx-step:not(:last-child)::after {
        top: 48px;
        bottom: 0;
        left: 23px;
        right: auto;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(180deg, #E3C9B5 0 8px, transparent 8px 14px);
    }
    #primary.mmx-home .mmx-step-body { padding-top: 10px; }
    #primary.mmx-home .mmx-pricing-grid,
    #primary.mmx-home .mmx-contact-grid { gap: 40px; }
}

@media (max-width: 899px) {
    #primary.mmx-home .mmx-hero-grid,
    #primary.mmx-home .mmx-about-grid,
    #primary.mmx-home .mmx-pricing-grid,
    #primary.mmx-home .mmx-contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #primary.mmx-home .mmx-hero-grid { gap: 40px; }
    #primary.mmx-home .mmx-hero-media { max-width: 560px; }
    #primary.mmx-home .mmx-hero-media::before { display: none; }
    #primary.mmx-home .mmx-hero-badge { left: 14px; bottom: 14px; }
    #primary.mmx-home .mmx-about-grid { gap: 32px; }
    #primary.mmx-home .mmx-about-media { max-width: 480px; }
    #primary.mmx-home .mmx-about-media img { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Phone
   ========================================================================== */
@media (max-width: 768px) {
    #primary.mmx-home [id] { scroll-margin-top: 78px; }

    #primary.mmx-home > section.mmx-sec,
    #primary.mmx-home > section.mmx-legacy {
        padding-top: 52px !important;
        padding-bottom: 52px !important;
    }

    #primary.mmx-home .mmx-head {
        margin-bottom: 28px;
        text-align: left;
    }

    /* On phones the header sits in the flow above the hero, so no offset. */
    #primary.mmx-home > section.hero-section.mmx-hero {
        margin-top: 0 !important;
        padding: 30px 0 72px !important;
    }

    #primary.mmx-home .mmx-hero-grid { gap: 30px; }
    #primary.mmx-home .mmx-hero-tag { margin-bottom: 14px; font-size: 0.75rem; }
    #primary.mmx-home h1.mmx-hero-title { margin-bottom: 14px !important; max-width: none !important; }
    #primary.mmx-home .mmx-hero-sub { margin-bottom: 22px; font-size: 1.0313rem; }
    #primary.mmx-home .mmx-hero-cta { flex-direction: column; gap: 12px; }
    #primary.mmx-home .mmx-hero-cta .mmx-btn { width: 100%; }
    #primary.mmx-home .mmx-hero-note { margin-top: 14px; font-size: 0.875rem; }
    #primary.mmx-home .mmx-hero-img { aspect-ratio: 16 / 10; border-radius: 16px; }
    #primary.mmx-home .mmx-hero-badge { padding: 9px 14px 9px 9px; border-radius: 12px; }
    #primary.mmx-home .mmx-hero-badge-ic { width: 36px; height: 36px; }

    #primary.mmx-home .mmx-top { padding-bottom: 44px; }

    #primary.mmx-home ul.mmx-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
        margin-top: -40px !important;
        padding: 18px 16px !important;
        border-radius: 16px;
    }

    #primary.mmx-home ul.mmx-trust li { gap: 10px; font-size: 0.8125rem; }
    #primary.mmx-home ul.mmx-trust li:last-child { grid-column: 1 / -1; }
    #primary.mmx-home .mmx-trust-ic { width: 34px; height: 34px; }
    #primary.mmx-home .mmx-trust-ic .mmx-ic { width: 17px; height: 17px; }

    #primary.mmx-home .mmx-emg {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin-top: 20px;
        padding: 22px 20px;
    }

    #primary.mmx-home .mmx-emg-ic { width: 46px; height: 46px; border-radius: 13px; }
    #primary.mmx-home .mmx-emg .mmx-btn { grid-column: auto; justify-self: stretch; }
    #primary.mmx-home h2.mmx-emg-title { font-size: 1.25rem !important; }

    /* Services: compact rows instead of tall cards. */
    #primary.mmx-home .mmx-svc-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }

    #primary.mmx-home a.mmx-svc {
        flex-direction: row;
        gap: 14px;
        padding: 16px;
        border-radius: 14px;
    }

    #primary.mmx-home .mmx-svc-ic { width: 44px; height: 44px; border-radius: 12px; font-size: 1.1rem; }
    #primary.mmx-home h3.mmx-svc-title { font-size: 1.0313rem; margin-bottom: 4px; }
    /* Two-line teaser on phones; the full text is on each service page. */
    #primary.mmx-home .mmx-svc-desc {
        font-size: 0.9063rem;
        line-height: 1.55;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
    }

    #primary.mmx-home ul.mmx-mini { grid-template-columns: minmax(0, 1fr); }

    #primary.mmx-home .mmx-why-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }

    #primary.mmx-home .mmx-why-card,
    #primary.mmx-home .mmx-why-card:nth-child(4),
    #primary.mmx-home .mmx-why-card:nth-child(5) {
        grid-column: auto;
        padding: 20px 18px 14px;
    }

    #primary.mmx-home .mmx-why-ic { width: 42px; height: 42px; margin-bottom: 12px; }

    #primary.mmx-home .mmx-step { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; }
    #primary.mmx-home .mmx-step-num { width: 42px; height: 42px; font-size: 1rem; }
    #primary.mmx-home .mmx-step:not(:last-child)::after { top: 42px; left: 20px; }
    #primary.mmx-home .mmx-step-body { padding-top: 8px; }

    #primary.mmx-home .mmx-pricing-grid { gap: 28px; }
    #primary.mmx-home .mmx-pricing-cta .mmx-btn { width: 100%; }
    #primary.mmx-home .mmx-price { padding: 14px 16px; gap: 12px; }
    #primary.mmx-home .mmx-price h3 { font-size: 0.9375rem; }
    #primary.mmx-home .mmx-price p { font-size: 0.8438rem; }
    #primary.mmx-home .mmx-price-amt { font-size: 0.9688rem; }
    #primary.mmx-home .mmx-price--long .mmx-price-amt { max-width: 112px; font-size: 0.8125rem; }

    #primary.mmx-home .gallery-section.mmx-legacy .gallery-header,
    #primary.mmx-home .service-areas-section.mmx-legacy .sa-header,
    #primary.mmx-home .faqs-section.mmx-legacy .faqs-header { margin-bottom: 1.5rem; }
    #primary.mmx-home .faqs-section.mmx-legacy .faq-summary { padding: 15px 16px; }
    #primary.mmx-home .faqs-section.mmx-legacy .faq-answer { padding: 0.9rem 1rem 1.1rem !important; font-size: 0.9688rem; }

    #primary.mmx-home .mmx-contact-grid { gap: 30px; }
    #primary.mmx-home a.mmx-callcard { display: flex; }
    #primary.mmx-home .mmx-callcard-num { font-size: 1.375rem; }
    #primary.mmx-home .mmx-contact-form { padding: 8px; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    #primary.mmx-home * { transition: none !important; }
}
