/* Real Estate draft: full-viewport hero and more air around the lot review. */
body.page-id-4956 .hero-wrapper,
body.page-id-4956 .hero-wrapper > .bgc-layer {
    min-height: 100vh;
}

body.page-id-4956 .hero-wrapper > .bgc-layer {
    box-sizing: border-box;
    padding-block: clamp(120px, 12vh, 180px) 100px;
    background: linear-gradient(0deg,
        rgb(0 0 0 / 80%) 0%,
        rgb(0 0 0 / 62%) 45%,
        rgb(0 0 0 / 32%) 78%,
        rgb(0 0 0 / 10%) 100%);
}

body.page-id-4956 .hero-wrapper .content > .mt-20 {
    max-width: 1120px;
    margin-inline: auto;
}

body.page-id-4956 .evaluate-wrapper {
    padding-block: clamp(140px, 12vh, 190px);
}

@media (max-width: 767px) {
    body.page-id-4956 .hero-wrapper > .bgc-layer {
        padding-block: 120px 72px;
    }
    body.page-id-4956 .evaluate-wrapper {
        padding-block: 96px;
    }
}

/* Present the case study as a taller, static photograph. */
body.page-id-4956 .re-video-wrapper .re-video-media {
    min-height: clamp(320px, 65vw, 440px);
}

@media (min-width: 1023px) {
    body.page-id-4956 .re-video-wrapper .re-video-media {
        min-height: clamp(500px, 38vw, 640px);
    }
}

/* Reveal Tony while retaining contrast behind this card's left-hand copy. */
body.page-id-4956 .cew-grid > .cew-item:nth-child(4).cew-image-block {
    background-position: center 25%;
}

body.page-id-4956 .cew-grid > .cew-item:nth-child(4).cew-image-block .cew-img::before {
    background: linear-gradient(90deg,
        rgb(35 31 32 / 80%) 0%,
        rgb(35 31 32 / 55%) 36%,
        rgb(35 31 32 / 8%) 68%,
        transparent 100%);
}

@media (max-width: 767px) {
    body.page-id-4956 .cew-grid > .cew-item:nth-child(4).cew-image-block .cew-img {
        min-height: 320px;
    }
    body.page-id-4956 .cew-grid > .cew-item:nth-child(4).cew-image-block .cwe-text {
        top: 24px;
        left: 24px;
        right: 50%;
    }
    body.page-id-4956 .cew-grid > .cew-item:nth-child(4).cew-image-block .cew-arrow {
        left: 24px;
    }
    body.page-id-4956 .cew-grid > .cew-item:nth-child(4).cew-image-block h3 {
        font-size: 20px;
    }
    body.page-id-4956 .cew-grid > .cew-item:nth-child(4).cew-image-block .cew-text p {
        font-size: 14px;
        line-height: 1.5;
    }
    body.page-id-4956 .cew-grid > .cew-item:nth-child(4).cew-image-block .cew-text br {
        display: none;
    }
}

/* Subtle image-only zoom on the three related-content photographs. */
body.page-id-4956 .scwe-wrapper .cew-grid > .cew-image-block {
    overflow: hidden;
}

body.page-id-4956 .scwe-wrapper .cew-grid > .cew-image-block::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: inherit;
    background-position: inherit;
    background-size: inherit;
    background-repeat: no-repeat;
    pointer-events: none;
    transform: scale(1);
}

body.page-id-4956 .scwe-wrapper .cew-image-block .cew-img {
    z-index: 1;
}

body.page-id-4956 .scwe-wrapper .cew-image-block .cwe-text,
body.page-id-4956 .scwe-wrapper .cew-image-block .cew-arrow {
    z-index: 2;
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    body.page-id-4956 .scwe-wrapper .cew-grid > .cew-image-block::before {
        transition: transform 450ms ease;
    }
    body.page-id-4956 .scwe-wrapper .cew-grid > .cew-image-block:hover::before {
        transform: scale(1.035);
    }
}

/* Responsive QA: keep this page's reading scale and controls comfortable. */
body.page-id-4956 .hero-wrapper h1 {
    font-size: clamp(42px, 4.3vw, 62px);
    line-height: 1.2;
    font-weight: var(--weight-Regular);
}
body.page-id-4956 #lot-review,
body.page-id-4956 #lot-review-form {
    scroll-margin-top: 120px;
}
body.page-id-4956 .poc-member-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
}
body.page-id-4956 .poc-member-info > div { min-width: 0; }
body.page-id-4956 .cew-item:focus-within {
    outline: 2px solid #231f20;
    outline-offset: -4px;
}
@media (max-width: 767px) {
    body.page-id-4956 .hero-wrapper .btn-text > .re-hero-cta-line {
        display: block;
        white-space: nowrap;
    }
    body.page-id-4956 .hero-wrapper h1 {
        font-size: clamp(32px, 9vw, 40px);
    }
    body.page-id-4956 .hero-wrapper p,
    body.page-id-4956 .section-title .title-text p,
    body.page-id-4956 .scf-left-block .title-text p {
        font-size: 16px;
        line-height: 1.65;
    }
    body.page-id-4956 .section-title h2.text-1xl,
    body.page-id-4956 .scf-left-block h2.text-1xl,
    body.page-id-4956 .scf-form > h3 {
        font-size: clamp(30px, 8.7vw, 36px);
        line-height: 1.2;
    }
    body.page-id-4956 .section-title.mb-50 { margin-bottom: 32px; }
    body.page-id-4956 .evaluate-content h3 {
        font-size: 28px;
        line-height: 1.25;
    }
    body.page-id-4956 .evaluate-content-text p {
        font-size: 16px;
        line-height: 1.65;
    }
    body.page-id-4956 .evaluate-callout {
        padding: 16px;
        font-size: 14px;
    }
    body.page-id-4956 .re-expertise[data-re-scroll-section].is-scroll-layout .tc-deck-copy { padding-left: 28px; }
    body.page-id-4956 .wcw-grid .wcw-item:not(.wcw-image-block) {
        min-height: 0;
        padding: 24px;
        justify-content: flex-start;
    }
    body.page-id-4956 .wcw-grid .wcw-item.wcw-image-block { min-height: 220px; }
    body.page-id-4956 .wcw-grid .wcw-item h3 { font-size: 22px; }
    body.page-id-4956 .wcw-wrapper .mt-70 { margin-top: 36px; }
    body.page-id-4956 .re-video-info { gap: 32px; }
    body.page-id-4956 .re-video-text { margin-top: 0; }
    body.page-id-4956 .re-video-quote p { font-size: 16px; line-height: 1.65; }
    body.page-id-4956 .re-video-text h5 { font-size: 22px; }
    body.page-id-4956 .poc-member-name { font-size: 30px; }
    body.page-id-4956 .poc-member-role { font-size: 14px; }
    body.page-id-4956 .poc-note-title { font-size: 26px; }
    body.page-id-4956 .poc-note-text p { font-size: 16px; line-height: 1.65; }
    body.page-id-4956 .scf-wrapper .scf-form { padding: 24px 16px; }
    body.page-id-4956 .scf-form > h3 { margin-bottom: 24px; }
    body.page-id-4956 .mapinfo-wrapper .info-block > .image-block,
    body.page-id-4956 .mapinfo-wrapper .info-block > .mapinfo-block { grid-column: auto; }
    body.page-id-4956 .mapinfo-wrapper .info-block > .image-block { height: 240px; }
    body.page-id-4956 .mapinfo-wrapper .map-block iframe { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
    body.page-id-4956 .wow {
        animation: none !important;
        visibility: visible !important;
    }
}

/* Align the tablet contact row and fill the checklist's final grid row. */
@media (min-width: 768px) and (max-width: 1023px) {
    body.page-id-4956 .wcw-grid > .wcw-item:last-child { grid-column: 1 / -1; min-height: 0; }
    body.page-id-4956 .mapinfo-wrapper .info-block > .image-block,
    body.page-id-4956 .mapinfo-wrapper .info-block > .mapinfo-block { grid-column: auto; }
    body.page-id-4956 .mapinfo-wrapper .info-block > .image-block { height: 320px; }
    body.page-id-4956 .mapinfo-wrapper .map-block iframe { height: 320px; }
}
body.page-id-4956 .poc-wrapper .section-title h2 { text-wrap: balance; }

/* Use the supplied uncropped portrait without extra enlargement. */
body.page-id-4956 .re-expertise .re-deck-card--portrait .tc-deck-media img {
    transform: none;
    object-position: center 25%;
}

/* Keep the case-study statement above the homeowner testimonial. */
body.page-id-4956 .re-video-info {
    flex-direction: column;
    gap: clamp(32px, 4vw, 56px);
    padding: clamp(24px, 3vw, 44px);
}
body.page-id-4956 .re-video-text { margin-top: 0; }
body.page-id-4956 .re-video-text h3 {
    font-size: clamp(36px, 3.5vw, 56px);
    line-height: 1.1;
    margin: 0 0 12px;
    text-wrap: balance;
}
body.page-id-4956 .re-video-testimonial {
    border-top: 1px solid #e5e0da;
    padding-top: 28px;
    border-bottom: 0;
    padding-bottom: 0;
}

/* Stack each team CTA below the role and retain the whole-card link. */
body.page-id-4956 .poc-member {
    position: relative;
    display: flex;
    flex-direction: column;
}
body.page-id-4956 .poc-member-info {
    position: static;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}
body.page-id-4956 .poc-member-arrow {
    position: static;
    align-self: flex-start;
    justify-content: flex-start;
    gap: 10px;
    font-size: 16px;
    line-height: 1.4;
}
body.page-id-4956 .poc-member-cta-icon { font-size: 20px; }
body.page-id-4956 .poc-member-arrow::after {
    content: "";
    position: absolute;
    inset: 0;
}
body.page-id-4956 .poc-member:has(.poc-member-arrow:focus-visible) {
    outline: 2px solid #231f20;
    outline-offset: 4px;
}

/* Favor the home, pool, and fire pit over empty sky in the contact photograph. */
@media (min-width: 1023px) {
    body.page-id-4956 .scf-wrapper.bg-image {
        background-size: 0 0;
        background-repeat: no-repeat;
        background-color: #00558c;
    }
    body.page-id-4956 .scf-wrapper.bg-image::before { z-index: 1; }
    body.page-id-4956 .scf-wrapper.bg-image::after {
        content: "";
        position: absolute;
        inset: auto 0 0;
        width: 100%;
        height: 140%;
        background-image: inherit;
        background-size: cover;
        background-position: center bottom;
        pointer-events: none;
        z-index: 0;
    }
}

/* Keep the contact photo crisp above the taller mobile form. */
@media (max-width: 1022px) {
    body.page-id-4956 .scf-wrapper.bg-image {
        background-size: 0 0;
        background-color: #0b1e2a;
    }
    body.page-id-4956 .scf-wrapper.bg-image::before { z-index: 1; }
    body.page-id-4956 .scf-wrapper.bg-image::after {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        width: 100%;
        height: min(100%, 840px);
        background-image: inherit;
        background-size: auto 140%;
        background-position: center bottom;
        background-repeat: no-repeat;
        mask-image: linear-gradient(to bottom, #000 70%, transparent);
        pointer-events: none;
        z-index: 0;
    }
}

/* Every site-review row uses the same quick, local stagger. */
body.page-id-4956 .wcw-grid > .wcw-item.wow {
    animation-duration: 450ms !important;
    animation-delay: var(--re-grid-reveal-delay, 0ms) !important;
}

@media (max-width: 767px) {
    body.page-id-4956 .evaluate-content { order: -1; }
    body.page-id-4956 .poc-note { margin-top: 30px; }
    body.page-id-4956 .poc-note-title .poc-note-response { display: block; margin-top: 8px; }
    body.page-id-4956 .re-video-info { gap: 32px; padding: 28px; }
    body.page-id-4956 .re-video-text h3 { font-size: 36px; }
    body.page-id-4956 .wcw-grid > .wcw-item.wow {
        animation-duration: 350ms !important;
        animation-delay: 0s !important;
    }
    body.page-id-4956 .cew-grid > .cew-item .cew-arrow { left: 2.25rem; }
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    body.page-id-4956 .cew-grid > .cew-item:not(.cew-image-block) {
        transition: background-color 220ms ease;
    }
    body.page-id-4956 .cew-grid > .cew-item:not(.cew-image-block) .cew-arrow {
        transition: transform 220ms ease;
    }
    body.page-id-4956 .cew-grid > .cew-item:not(.cew-image-block):hover,
    body.page-id-4956 .cew-grid > .cew-item:not(.cew-image-block):focus-within {
        background-color: #eeeae4;
    }
    body.page-id-4956 .cew-grid > .cew-item:not(.cew-image-block):hover .cew-arrow,
    body.page-id-4956 .cew-grid > .cew-item:not(.cew-image-block):focus-within .cew-arrow {
        transform: translateX(5px);
    }
}

/* A rotated phone needs less vertical spacing than a full-height tablet. */
@media (min-width: 560px) and (max-width: 1023px) and (max-height: 500px) and (orientation: landscape) {
    body.page-id-4956 .hero-wrapper,
    body.page-id-4956 .hero-wrapper > .bgc-layer {
        min-height: 100svh;
    }
    body.page-id-4956 .hero-wrapper > .bgc-layer {
        padding-block: 110px 32px;
    }
    body.page-id-4956 .hero-wrapper h1 {
        font-size: clamp(30px, 4vw, 38px);
        line-height: 1.15;
    }
    body.page-id-4956 .hero-wrapper p {
        font-size: 16px;
        line-height: 1.5;
    }
    body.page-id-4956 .hero-wrapper .btn-block {
        margin-top: 24px;
    }
}

/* Taps must not leave informational tiles in the desktop hover state. */
@media (max-width: 1023px), (hover: none), (pointer: coarse) {
    body.page-id-4956 .wcw-grid .wcw-item:not(.bg-image):hover,
    body.page-id-4956 .cw-grid .cw-grid-item:not(.bg-image):hover {
        background-color: var(--white);
    }
    body.page-id-4956 .wcw-grid .wcw-item:not(.bg-image):hover .wcw-icon img,
    body.page-id-4956 .cw-grid .cw-grid-item:not(.bg-image):hover .cw-icon img {
        filter: none;
    }
    body.page-id-4956 .wcw-grid .wcw-item:not(.bg-image):hover :is(h3, p, li),
    body.page-id-4956 .cw-grid .cw-grid-item:not(.bg-image):hover :is(h3, p, li) {
        color: var(--raisin-black);
    }
}
body.page-id-4956 .wcw-grid .wcw-item:has(:focus-visible),
body.page-id-4956 .cw-grid .cw-grid-item:has(:focus-visible) {
    outline: 2px solid #231f20;
    outline-offset: 2px;
}

/* Phone landscape has tablet width but much less room for vertical spacing. */
@media (min-width: 560px) and (max-width: 1023px) and (max-height: 500px) and (orientation: landscape) {
    body.page-id-4956 .evaluate-wrapper,
    body.page-id-4956 section.pd-60,
    body.page-id-4956 section.lg-pd-100,
    body.page-id-4956 .cw-faq-editorial { padding-block: 44px; }

    body.page-id-4956 .section-title h2.text-1xl,
    body.page-id-4956 .tc-expertise__heading,
    body.page-id-4956 .scf-left-block h2.text-1xl,
    body.page-id-4956 .scf-form > h3,
    body.page-id-4956 .cw-faq-editorial-lead h2 {
        font-size: 36px;
        line-height: 1.2;
    }
    body.page-id-4956 .section-title { margin-bottom: 28px; }
    body.page-id-4956 .section-title .title-text p,
    body.page-id-4956 .scf-left-block .title-text p,
    body.page-id-4956 .evaluate-content-text p {
        font-size: 16px;
        line-height: 1.55;
    }
    body.page-id-4956 .evaluate-content h3 { font-size: 28px; line-height: 1.2; }
    body.page-id-4956 .wcw-grid .wcw-item:not(.wcw-image-block) {
        min-height: 0;
        padding: 24px;
    }
    body.page-id-4956 .wcw-grid .wcw-item h3 { font-size: 24px; }
    body.page-id-4956 .wcw-grid .wcw-item p { font-size: 16px; line-height: 1.55; }
    body.page-id-4956 .wcw-wrapper .mt-70 { margin-top: 32px; }
    body.page-id-4956 .cw-faq-editorial-lead { position: static; top: auto; }

    /* Decorative entrances must not leave a short viewport looking empty. */
    body.page-id-4956 #tophead .wow {
        visibility: visible !important;
        opacity: 1 !important;
        animation: none !important;
    }
}

/* These site-review tiles are informational and stay static on hover. */
body.page-id-4956 .wcw-wrapper .wcw-item:not(.bg-image):hover {
    background-color: var(--white);
}
body.page-id-4956 .wcw-wrapper .wcw-item:hover .wcw-icon img {
    filter: none;
}
body.page-id-4956 .wcw-wrapper .wcw-item:hover :is(h3, p, li) {
    color: var(--raisin-black);
}
body.page-id-4956 .wcw-wrapper .site-btn > .border-line {
    transform: scale(0);
    transition: none;
}

/* Separate the two statements in the aerial-background section. */
body.page-id-4956 .evaluate-content-text > h3 {
    margin-bottom: 24px;
    color: var(--raisin-black);
}
