.malito-home-services,
.malito-home-contact {
    padding-block: clamp(58px, 7vw, 100px);
    scroll-margin-top: 76px;
    color: var(--mp-ink);
}

.malito-home-services {
    background: radial-gradient(ellipse at 90% 4%, #e2f0f9, transparent 54%), #f4f7fa;
    border-block: 1px solid #e3edf4;
}

.malito-home-contact {
    background: linear-gradient(150deg, #f6f9fc, #edf4fa);
}

.mh-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px 40px;
    margin-block-end: clamp(24px, 4vw, 40px);
}

.mh-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-block-end: 10px;
    color: #005987;
    font-size: .82rem;
    font-weight: 700;
}

.mh-kicker svg { inline-size: 17px; block-size: 17px; }

.mh-section-heading h2 {
    margin: 0;
    color: var(--mp-ink);
    font-size: clamp(1.65rem, 3vw, 2.65rem);
    font-weight: 800;
    line-height: 1.45;
    text-wrap: balance;
}

.mh-section-heading h2 span { color: #00638f; }

.mh-section-heading p {
    max-inline-size: 34ch;
    margin: 0;
    color: var(--mp-muted);
    font-size: .92rem;
    line-height: 1.85;
}

.mh-service-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mh-service-card {
    --mh-accent: #00638f;
    --mh-wash: #eaf5fc;
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-content: start;
    gap: 18px 14px;
    min-inline-size: 0;
    padding: 24px;
    border: 1px solid #d9e6ef;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--mh-wash), #fff 49%);
    box-shadow: 0 8px 20px #112f4a08;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.mh-service-card:nth-child(3) { --mh-accent: #0a6762; --mh-wash: #e8f7f4; }
.mh-service-card:nth-child(4) { --mh-accent: #855712; --mh-wash: #fdf4e0; }
.mh-service-card:nth-child(5) { --mh-accent: #4f5693; --mh-wash: #eeeffb; }

.mh-service-card:hover {
    border-color: var(--mh-accent);
    box-shadow: 0 12px 26px #14374d16;
}

.mh-service-card:focus-visible,
.mh-office-action:focus-visible { outline: 3px solid #0076ab; outline-offset: 3px; }

.mh-service-icon,
.mh-contact-icon {
    display: grid;
    place-items: center;
    inline-size: 48px;
    block-size: 48px;
    border-radius: 13px;
    background: var(--mh-wash, #e6f4fb);
    color: var(--mh-accent, #005987);
}

.mh-service-icon svg,
.mh-contact-icon svg { inline-size: 23px; block-size: 23px; stroke-width: 1.7; }

.mh-service-copy h3,
.mh-contact-grid h3 {
    margin: 0;
    color: var(--mp-ink);
    font-size: 1.06rem;
    font-weight: 750;
    line-height: 1.55;
}

.mh-service-copy p,
.mh-office address {
    margin: 6px 0 0;
    color: var(--mp-muted);
    font-size: .86rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.mh-service-action,
.mh-office-action {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 7px;
    color: var(--mh-accent, #005987);
    font-size: .82rem;
    font-weight: 750;
    text-decoration: none;
}

.mh-service-action { grid-column: 2; }
.mh-service-action svg,
.mh-office-action svg { inline-size: 16px; block-size: 16px; }
.mh-service-card:hover .mh-service-action,
.mh-office-action:hover { text-decoration: underline; text-underline-offset: 4px; }

.mh-service-featured {
    grid-row: span 2;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    isolation: isolate;
    overflow: hidden;
    gap: 26px;
    padding: clamp(26px, 3vw, 38px);
    border-color: #185576;
    background: radial-gradient(ellipse at 100% 0, #105b83, transparent 73%), #0e2e48;
    box-shadow: 0 14px 32px #153a5326;
}

.mh-service-featured::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-inline-end: -90px;
    inset-block-end: -116px;
    inline-size: 300px;
    aspect-ratio: 1;
    border: 1px solid #8ed9f54d;
    border-radius: 50%;
    box-shadow: 0 0 0 25px #82c8ed1c, 0 0 0 51px #82c8ed13, 0 0 0 77px #82c8ed0b;
    pointer-events: none;
}

.mh-service-featured .mh-service-icon { inline-size: 60px; block-size: 60px; color: #b4e9fa; background: #ffffff1a; }
.mh-service-featured .mh-service-icon svg { inline-size: 29px; block-size: 29px; }
.mh-service-featured h3 { color: #fff; font-size: clamp(1.45rem, 2.45vw, 2rem); text-wrap: balance; }
.mh-service-featured p { color: #c9dfef; font-size: .94rem; max-inline-size: 30ch; }
.mh-service-featured .mh-service-action { grid-column: 1; color: #ffcb75; }

.mh-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 18px;
}

.mh-office,
.mh-phone-card {
    min-inline-size: 0;
    padding: clamp(19px, 2.5vw, 32px);
    border: 1px solid #dae6ef;
    border-radius: 20px;
}

.mh-office {
    display: grid;
    justify-items: start;
    align-content: start;
    gap: 12px;
    background: #fff;
}

.mh-office address { margin: 0; font-style: normal; }
.mh-office-action { min-block-size: 44px; }

.mh-phone-card {
    border-color: #215570;
    background: linear-gradient(135deg, #123d5a, #0d2a43);
    box-shadow: 0 12px 27px #12364f24;
}

.mh-phone-heading { display: flex; align-items: center; gap: 12px; margin-block-end: 18px; }
.mh-phone-heading h3 { color: #fff; }
.mh-phone-heading .mh-contact-icon { background: #ffffff1a; color: #b4e9fa; }

.mh-phone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.mh-phone-link {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-content: center;
    align-items: center;
    gap: 4px 6px;
    min-block-size: 67px;
    padding: 10px;
    border: 1px solid #ffffff36;
    border-radius: 11px;
    background: #ffffff0b;
    color: #fff;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease;
}

.mh-phone-link:hover { border-color: #98d6ee; background: #ffffff19; color: #fff; }
.mh-phone-link:focus-visible { outline: 2px solid #ffcb75; outline-offset: 2px; }
.mh-phone-link svg { inline-size: 16px; block-size: 16px; color: #a2ddf2; }
.mh-phone-label { color: #c4dbea; font-size: .73rem; line-height: 1.4; }
.mh-phone-link bdi { grid-column: 1 / -1; justify-self: start; font-size: .92rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.mh-phone-landline { grid-row: span 2; border-color: #e5b66f80; background: #ffbf5b14; }
.mh-phone-landline bdi, .mh-phone-landline svg { color: #ffd18a; }
.mh-phone-landline bdi { font-size: 1.06rem; }

@media (max-width: 991px) {
    .mh-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mh-service-featured { grid-column: 1 / -1; grid-row: auto; gap: 17px; }
    .mh-phone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mh-phone-landline { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 767px) {
    .mh-section-heading { flex-direction: column; align-items: start; }
    .mh-service-grid, .mh-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .mh-service-card { padding: 20px; }
    .mh-service-featured { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .mh-service-card, .mh-phone-link { transition: none; }
}
