/* Property Care reference, desktop only. Keep section spacing, content, hero and
   footer in index.php unchanged. The media gate also protects tablet/mobile. */
@media (min-width: 1024px) {
  .maintego-home :is(#services, #how-it-works, #landlords, #tenants, #projects, #faq, .service-area-section) {
    --section-hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 357 387'%3E%3Cpath fill='white' d='M149 9 Q178.5 -9 208 9 L326 79 Q357 97 357 132 L357 255 Q357 290 326 308 L208 378 Q178.5 396 149 378 L31 308 Q0 290 0 255 L0 132 Q0 97 31 79 Z'/%3E%3C/svg%3E");
    --section-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 132'%3E%3Cpath d='M54 4Q60 1 66 4L111 30Q117 33 117 40V92Q117 99 111 102L66 128Q60 131 54 128L9 102Q3 99 3 92V40Q3 33 9 30Z' fill='none' stroke='%23b7ddc8' stroke-width='1.5'/%3E%3C/svg%3E");
  }
  .maintego-home :is(#services, #how-it-works, #landlords, #tenants, #projects, #faq, .service-area-section) h2 {
    font-size: clamp(30px, 2.65vw, 38px);
    line-height: 1.15;
    letter-spacing: -.04em;
  }
  .maintego-home :is(#services, #how-it-works, #landlords, #tenants, #projects, #faq, .service-area-section) .section-kicker {
    font-size: 11px;
    letter-spacing: .13em;
  }

  /* One featured column + four equal service columns. No content truncation. */
  .maintego-home #services .desktop-services-heading {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .75fr);
    align-items: center;
    gap: 40px;
  }
  .maintego-home #services .desktop-services-heading h2 { max-width: none; margin-top: 10px; }
  .maintego-home #services .desktop-services-heading p { font-size: 14px; line-height: 1.6; }
  .maintego-home #services .desktop-services-grid {
    grid-template-columns: minmax(0, 2.25fr) repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(190px, auto)) auto;
    gap: 12px;
    margin-top: 30px;
    align-items: stretch;
  }
  .maintego-home #services .desktop-service-feature {
    grid-column: 1;
    grid-row: 1 / 4;
    grid-template-rows: minmax(230px, 1fr) auto;
    min-height: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .maintego-home #services .desktop-service-feature-media {
    margin-top: -26px;
    border-radius: 12px 12px 0 0;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M46 2Q50 0 54 2L96 21Q100 23 100 28V100H0V28Q0 23 4 21Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  }
  .maintego-home #services .desktop-service-feature-media img { object-position: 50% 35%; }
  .maintego-home #services .desktop-service-feature-copy { padding: 20px 22px; border-radius: 0 0 12px 12px; }
  .maintego-home #services .desktop-service-feature-copy h3 { font-size: 23px; }
  .maintego-home #services .desktop-service-feature-copy p { font-size: 13px; line-height: 1.6; }
  .maintego-home #services .desktop-service-feature-link { font-size: 12px; }
  .maintego-home #services .desktop-service-card {
    min-height: 0;
    padding: 18px 14px;
    border-color: #e0e9e4;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgb(11 23 57 / 3%);
  }
  .maintego-home #services .desktop-service-card-icon {
    width: 46px;
    height: 50px;
    border-radius: 0;
    background: #e6f2eb;
    color: #17613b;
    box-shadow: none;
    mask: var(--section-hex) center / 100% 100% no-repeat;
  }
  .maintego-home #services .desktop-service-card-icon svg { width: 25px; height: 25px; }
  .maintego-home #services .desktop-service-card h3 { margin-top: 12px; font-size: 13px; line-height: 1.4; }
  .maintego-home #services .desktop-service-card p { margin-top: 7px; font-size: 12px; line-height: 1.55; }
  .maintego-home #services .desktop-services-all {
    grid-column: 2 / -1;
    min-height: 48px;
    padding: 10px 18px;
    gap: 16px;
    border-radius: 8px;
    box-shadow: none;
    background: #287b4b;
  }
  .maintego-home #services .desktop-services-all strong { font-size: 14px; }
  .maintego-home #services .desktop-services-all-footer { align-items: center; }
  .maintego-home #services .desktop-services-all small { max-width: none; font-size: 11px; }
  .maintego-home #services .desktop-services-all-arrow { width: 24px; height: 24px; flex-basis: 24px; background: none; color: #fff; }

  /* The existing panel and section paddings deliberately remain untouched. */
  .maintego-home #how-it-works .process-panel { background: #eef7f2; }
  .maintego-home #how-it-works .process-card-grid { gap: 32px; }
  .maintego-home #how-it-works .process-card-grid::before {
    content: '';
    position: absolute;
    top: 49px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: repeating-linear-gradient(90deg, #93c5a7 0 5px, transparent 5px 14px);
  }
  .maintego-home #how-it-works .process-card { padding: 0 12px; border: 0; border-radius: 0; background: none; text-align: center; }
  .maintego-home #how-it-works .process-card .process-card-visual {
    width: 92px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 0;
    background: #6eaa87;
    mask: var(--section-hex) center / 100% 100% no-repeat;
  }
  .maintego-home #how-it-works .process-card-visual::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: #fff;
    mask: var(--section-hex) center / 100% 100% no-repeat;
  }
  .maintego-home #how-it-works .process-card .process-card-number {
    top: auto;
    bottom: 8px;
    left: 34px;
    width: 24px;
    height: 16px;
    background: transparent;
    color: #31764f;
    font-size: 9px;
  }
  .maintego-home #how-it-works .process-card-copy h3 { font-size: 17px; }
  .maintego-home #how-it-works .process-card-copy p { max-width: 230px; margin: 10px auto 0; font-size: 14px; }
  .maintego-home #how-it-works .process-arrow {
    display: grid;
    top: 49px;
    width: 20px;
    height: 20px;
    border: 0;
    background: #eef7f2;
    color: #31764f;
    box-shadow: none;
  }

  .maintego-home :is(#landlords, #tenants) > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
  .maintego-home :is(#landlords, #tenants) h2 { margin-top: 14px; }
  .maintego-home :is(#landlords, #tenants) h2 + p { margin-top: 16px; font-size: 16px; line-height: 1.6; }
  .maintego-home :is(#landlords, #tenants) .audience-benefits { gap: 24px 20px; margin-top: 28px; }
  .maintego-home :is(#landlords, #tenants) .audience-benefit { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .maintego-home :is(#landlords, #tenants) .audience-benefit-icon {
    width: 40px;
    height: 44px;
    border-radius: 0;
    color: #267046;
    background: #e6f2eb;
    mask: var(--section-hex) center / 100% 100% no-repeat;
  }
  .maintego-home :is(#landlords, #tenants) .audience-benefit h3 { font-size: 13px; line-height: 1.4; }
  .maintego-home :is(#landlords, #tenants) .audience-benefit p { font-size: 12px; line-height: 1.55; }
  .maintego-home #landlords .landlord-savings-cta { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 18px; border-color: #d7e9df; border-radius: 12px; margin-top: 28px; background: #f6faf7; }
  .maintego-home #landlords .landlord-savings-cta .text-xl { font-size: 14px; }
  .maintego-home #landlords .landlord-savings-cta strong { font-size: 36px; }
  .maintego-home #landlords .landlord-savings-cta p { font-size: 12px; }
  .maintego-home #landlords .landlord-savings-button { min-width: 0; padding: 12px 18px; gap: 12px; border-radius: 7px; background: #287b4b; font-size: 13px; box-shadow: none; }
  .maintego-home #landlords .audience-landlord-media {
    width: 100%;
    max-width: 480px;
    min-height: 0;
    aspect-ratio: 357 / 387;
    justify-self: center;
    background: transparent;
    overflow: visible;
    border-radius: 0;
  }
  .maintego-home #landlords .audience-media-image {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    mask: var(--section-hex) center / 100% 100% no-repeat;
  }
  .maintego-home #landlords .audience-landlord-media > .absolute { background: none; pointer-events: none; }
  .maintego-home :is(#landlords, #tenants) .audience-media::before {
    content: '';
    position: absolute;
    z-index: 0;
    left: -34px;
    top: 26%;
    width: 112px;
    height: 123px;
    background: var(--section-outline) center / contain no-repeat;
    pointer-events: none;
  }
  .maintego-home #landlords .audience-metrics {
    left: auto;
    right: -8px;
    bottom: 10px;
    width: min(350px, 83%);
    gap: 16px 0;
    padding: 20px 8px;
    border: 1px solid #e3ece6;
    border-radius: 12px;
    background: #fff;
    color: #0b1739;
    box-shadow: 0 8px 24px rgb(11 23 57 / 7%);
    backdrop-filter: none;
  }
  .maintego-home #landlords .audience-metric { padding: 0 12px; border-color: #e3ece6; }
  .maintego-home #landlords .audience-metric > div:first-child { font-size: 20px; color: #287b4b; }
  .maintego-home #landlords .audience-metric > div:not(:first-child) { font-size: 11px; color: #526174; }
  .maintego-home #tenants .audience-tenant-media { min-height: 0; overflow: visible; border-radius: 14px; background: none; }
  .maintego-home #tenants .audience-media-image {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 380px;
    border-radius: 14px;
    object-position: right center;
    transform: none;
  }
  .maintego-home #tenants .tenant-process-card {
    position: relative;
    bottom: auto;
    left: auto;
    width: calc(100% - 24px);
    margin: -38px auto 0;
    padding: 18px;
    border: 1px solid #e3ece6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 20px rgb(11 23 57 / 5%);
  }
  .maintego-home #tenants .tenant-process-card > .mt-5 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
  .maintego-home #tenants .tenant-process-card > .mt-5 > div { flex-direction: column; gap: 8px; margin: 0; }
  .maintego-home #tenants .tenant-process-card .text-sm { font-size: 11px; }
  .maintego-home #tenants .tenant-process-card p { font-size: 11px; line-height: 1.5; }
  .maintego-home #tenants .tenant-process-card .h-8 { width: 24px; height: 24px; }
  .maintego-home #tenants a[href='#how-it-works'] { border-color: #75b48e; color: #287b4b; border-radius: 8px; }
  .maintego-home .audience-section-transition::before { height: 1px; clip-path: none; background: #eaf3ed; }
  .maintego-home .audience-section-transition span { visibility: hidden; }

  .maintego-home #projects > div > div:first-child { max-width: none; margin-left: 0; text-align: left; }
  .maintego-home #projects .portfolio-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto; grid-auto-rows: auto; gap: 18px; margin-top: 28px; }
  .maintego-home #projects .portfolio-item { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; border: 1px solid #dfe7e2; border-radius: 10px; box-shadow: none; }
  .maintego-home #projects .portfolio-item-featured { grid-row: span 2; }
  .maintego-home #projects .portfolio-item img { display: block; min-height: 0; height: 180px; }
  .maintego-home #projects .portfolio-item-featured img { height: 100%; min-height: 330px; }
  .maintego-home #projects .portfolio-overlay { position: static; padding: 16px 18px; color: #0b1739; background: #fff; }
  .maintego-home #projects .portfolio-overlay h3 { font-size: 16px; }
  .maintego-home #projects .portfolio-overlay p { font-size: 13px; line-height: 1.5; color: #526174; }
  .maintego-home #projects .portfolio-overlay > span { color: #287b4b; font-size: 10px; }
  .maintego-home #projects .portfolio-grid:has(.portfolio-item:nth-child(4)) { grid-template-columns: 1.4fr .9fr .9fr; }
  .maintego-home #projects .portfolio-grid:has(.portfolio-item:nth-child(4)) .portfolio-item:nth-child(4) { grid-column: 3; grid-row: 1 / 3; }
  .maintego-home #projects .portfolio-grid:has(.portfolio-item:nth-child(4)) .portfolio-item:nth-child(4) img { height: 100%; min-height: 330px; }
  .maintego-home #projects .portfolio-grid:not(:has(.portfolio-item:nth-child(3))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .maintego-home #projects .portfolio-grid:not(:has(.portfolio-item:nth-child(3))) .portfolio-item { grid-row: auto; }
  .maintego-home #projects .portfolio-grid:not(:has(.portfolio-item:nth-child(3))) .portfolio-item img { height: 320px; min-height: 0; }
  .maintego-home #projects .portfolio-item:only-child { grid-column: 1 / -1; }

  .maintego-home #faq .faq-layout { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; }
  .maintego-home #faq .faq-media-frame {
    width: 100%;
    max-width: 430px;
    height: auto;
    aspect-ratio: 357 / 387;
    justify-self: center;
    border-radius: 0;
    mask: var(--section-hex) center / 100% 100% no-repeat;
  }
  .maintego-home #faq .faq-media-frame img { object-position: 46% center; }
  .maintego-home #faq h2 { font-size: clamp(28px, 2.3vw, 34px); }
  .maintego-home :is(#faq, .service-area-section) h2 > span { display: inline; }
  .maintego-home :is(#faq, .service-area-section) h2 > span + span::before { content: ' '; }
  .maintego-home #faq .faq-list { margin-top: 24px; gap: 8px; }
  .maintego-home #faq .faq-item { border-radius: 8px; border-color: #e0e7e3; box-shadow: 0 2px 5px rgb(11 23 57 / 2%); }
  .maintego-home #faq .faq-item summary { min-height: 48px; padding: 12px 16px; font-size: 13px; font-weight: 600; }
  .maintego-home #faq .faq-item:hover, .maintego-home #faq .faq-item[open] { border-color: #93c5a7; }

  .maintego-home .service-area-section { background: #eef7f2; }
  /* Decorative strip lives inside the existing bottom padding, not the footer. */
  .maintego-home .service-area-section::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 66px;
    pointer-events: none;
    opacity: .45;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='66' viewBox='0 0 128 66'%3E%3Cdefs%3E%3Cpath id='h' d='M16 1 31 10V28L16 37 1 28V10Z'/%3E%3C/defs%3E%3Cg stroke='%23fff' stroke-width='1.5'%3E%3Cuse href='%23h' fill='%2393bd9e'/%3E%3Cuse href='%23h' x='32' fill='%23c7dfcc'/%3E%3Cuse href='%23h' x='64' fill='%237ba889'/%3E%3Cuse href='%23h' x='96' fill='%23dae9dd'/%3E%3Cuse href='%23h' x='-16' y='28' fill='%23c7dfcc'/%3E%3Cuse href='%23h' x='16' y='28' fill='%23b2d1ba'/%3E%3Cuse href='%23h' x='48' y='28' fill='%23e4eee7'/%3E%3Cuse href='%23h' x='80' y='28' fill='%2393bd9e'/%3E%3Cuse href='%23h' x='112' y='28' fill='%23c7dfcc'/%3E%3C/g%3E%3C/svg%3E") left bottom / 128px 66px repeat-x;
    mask-image: linear-gradient(90deg, #000, rgb(0 0 0 / .15) 55%, rgb(0 0 0 / .65));
  }
  .maintego-home .service-area-section .service-area-layout { grid-template-columns: 1.15fr .85fr; gap: 80px; }
  .maintego-home .service-area-section h2 { font-size: clamp(28px, 2.3vw, 34px); }
  .maintego-home .service-area-section .service-area-copy > p { max-width: 470px; font-size: 15px; line-height: 1.6; margin-top: 16px; }
  .maintego-home .service-area-section .service-area-points { max-width: none; gap: 8px; }
  .maintego-home .service-area-section .service-area-point { min-height: 30px; padding: 6px 12px; font-size: 12px; background: #fff; border-color: transparent; }
  .maintego-home .service-area-section .service-area-cta { max-width: 510px; padding: 20px; margin-top: 16px; gap: 12px 16px; border-radius: 12px; border-color: #e5eee8; box-shadow: 0 4px 12px rgb(11 23 57 / 3%); }
  .maintego-home .service-area-section .service-area-cta-copy h3 { font-size: 16px; }
  .maintego-home .service-area-section .service-area-cta-copy p { font-size: 13px; line-height: 1.5; }
  .maintego-home .service-area-section .service-area-cta-actions { grid-column: 2; gap: 10px; }
  .maintego-home .service-area-section .service-area-cta-primary { padding: 0 14px; font-size: 12px; border-radius: 7px; }
  .maintego-home .service-area-section .service-area-cta-contact { min-height: 48px; padding: 0 16px; justify-content: center; border: 1px solid #75b48e; border-radius: 7px; font-size: 12px; color: #287b4b; text-decoration: none; }
  .maintego-home .service-area-section .service-area-map-frame { position: relative; width: 100%; max-width: 400px; justify-self: center; border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .maintego-home .service-area-section .service-area-map-frame::before { content: ''; position: absolute; top: 20%; left: -60px; width: 110px; height: 121px; background: var(--section-outline) center / contain no-repeat; pointer-events: none; }
  .maintego-home .service-area-section .service-area-map-inner { position: relative; height: auto; aspect-ratio: 357 / 387; mask: var(--section-hex) center / 100% 100% no-repeat; }
  /* Reveal the complete embedded UI when navigating the map with a keyboard. */
  .maintego-home .service-area-section .service-area-map-inner:focus-within { mask: none; border-radius: 14px; overflow: hidden; outline: 2px solid #287b4b; outline-offset: 3px; }
  .maintego-home .service-area-section .service-area-map-caption { position: relative; padding: 14px 0 0; justify-content: center; gap: 0 12px; font-size: 11px; text-align: center; }
}
