/* home */
/* ===== Hero: headline ===== */
.overlay-content .main-heading {
    margin: 6px 0 0;
}

.overlay-content .sub-heading {
    font-size: 18px;
    font-weight: 300;
    margin: 8px 0 30px;
}

/* ===== Hero: always-visible, vertically stacked buttons ===== */
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 640px;
    padding-inline: 16px;
    box-sizing: border-box;
}

.hero-actions .browse-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.hero-actions .browse-options .button-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: auto;
    min-height: 50px;
    margin: 0;
    padding: 14px 22px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease;
}

@media (hover: hover) {
    .hero-actions .browse-options .button-link:hover {
        background-color: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.85);
        color: #ffffff;
        transform: none;
        box-shadow: none;
    }
}

.hero-actions .browse-options .button-link:focus-visible {
    background-color: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.85);
    color: #ffffff;
    transform: none;
    box-shadow: none;
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Primary action */
.cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    height: 54px;
    margin-top: 28px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    background: rgba(63, 112, 139, 0.8);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transition:
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.cta-primary:hover,
.cta-primary:focus-visible {
    background: rgba(63, 112, 139, 0.9);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.cta-primary:active {
    transform: scale(0.98);
}

/* Contact link */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 10px;
    padding: 0 14px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.contact-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: #ffffff;
    background: transparent;
    text-decoration-thickness: 2px;
}

.cta-primary:focus-visible,
.contact-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Licensing */
.hero-license {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.75);
}

.overlay-content {
    padding-bottom: 44px;
}

/* Home Services */
.home-services {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 16px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.home-services::-webkit-scrollbar {
    display: none;
}

.home-services h1 {
    color: #000;
    text-align: center;
}

.home-services-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 50px;
    align-items: stretch;
    justify-content: center;
    box-sizing: border-box;
    margin: 10px auto 0;
    width: 100%;
    max-width: 1200px;
}

/* Service boxes */
.service-item {
    max-width: 800px;
    padding: 22px 24px;
    box-sizing: border-box;
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    margin: 0 auto 20px;
    white-space: normal;
    transition: box-shadow 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.service-item h1,
.service-item h2,
.service-item p {
    margin: 0;
    padding: 0;
}

.service-item h2 {
    font-size: 19px;
    text-align: center;
    margin: 10px auto;
    font-weight: 500;
}

.service-item p {
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0;
    font-weight: 300;
    text-align: center;
}

.service-item:nth-of-type(1) {
    background: linear-gradient(135deg, #2a6d9a, #225a80);
    color: white;
}

.service-item:nth-of-type(2) {
    background: linear-gradient(135deg, #efefef, #dedede);
    color: black;
}

.service-item:nth-of-type(3) {
    background: linear-gradient(135deg, #2596be, #1e7fa2);
    color: white;
}

.service-items-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 0;
    box-sizing: border-box;
    justify-content: center;
    align-items: stretch;
}

.image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Why Work With Us */
.why-us {
    background-color: #fff;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.why-us h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 400;
    text-align: center;
}

.why-us p.sub-heading {
    font-size: 16px;
    color: #333;
    margin: 10px auto 20px;
    max-width: 800px;
    font-weight: 300;
    text-align: center;
}

.why-us-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0 16px;
    width: 100%;
    scroll-behavior: smooth;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.why-us-container::-webkit-scrollbar {
    display: none;
}

.reason:first-child {
    margin-left: auto;
}

.reason:last-child {
    margin-right: auto;
}

.reason {
    flex: 0 0 300px;
    padding: 24px 20px;
    background-color: #e2e2e2;
    color: black;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

.reason:hover {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.reason:nth-of-type(2) {
    background-color: #f3f3f3;
}

.reason:nth-of-type(3) {
    background-color: #2596be;
    color: white;
}

.reason:nth-of-type(4) {
    background-color: #2a6d9a;
    color: white;
}

.reason h2 {
    font-size: 19px;
    text-align: center;
    margin: 10px auto;
    font-weight: 500;
}

.reason p {
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    margin: 10px auto;
    font-weight: 300;
}

/* Video layering and tint */
.image-header-container .video-background-wrapper {
    isolation: isolate;
}

.image-header-container .video-background-frame {
    z-index: 0;
}

.image-header-container .overlay-content {
    z-index: 2;
}

.image-header-container .video-background-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(9, 29, 43, 0.21),
        rgba(9, 29, 43, 0.135) 40%,
        rgba(9, 29, 43, 0.36)
    );
    -webkit-mask-image: radial-gradient(
        ellipse closest-side at center,
        #000 0%,
        #000 55%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse closest-side at center,
        #000 0%,
        #000 55%,
        transparent 100%
    );
}

/* Disclosure divider */
.footer .home-disclosure-divider {
    width: 80px;
    margin: 6px auto 10px;
    border: 0;
    border-top: 1px solid currentColor;
    opacity: 0.45;
}

/* Home page footer */
.footer.home-footer-strip {
    height: 3mm;
    padding: 0;
    margin: 0;
    background-color: #0b1f2b;
}

/* Base homepage logo */
.image-header-container #header-info-container .header-logo {
    width: 296px;
    height: auto;
}

/* Desktop homepage content sizing; shared scaling lives in main.css. */
@media screen and (min-width: 901px) {
    .image-header-container #header-info-container .header-logo {
        width: 326px;
    }

    .image-header-container .overlay-content .main-heading {
        font-size: 40px;
    }

    .image-header-container .overlay-content .sub-heading {
        font-size: 20px;
    }

    .image-header-container .header-text {
        font-size: 17.6px;
    }

    .hero-actions {
        max-width: 704px;
    }

    .hero-actions .browse-options {
        grid-template-columns: 1fr;
        max-width: 352px;
    }

    .hero-actions .browse-options .button-link {
        min-height: 55px;
        padding: 15px 24px;
        font-size: 13.2px;
    }

    .hero-actions .cta-primary {
        max-width: 352px;
        height: 59px;
        margin-top: 30px;
        font-size: 14.3px;
    }

    .hero-actions .contact-link {
        font-size: 13.2px;
    }
}

/* Mobile layout */
@media screen and (max-width: 768px) {
    .home-services-wrapper,
    .service-items-container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .why-us-container {
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .reason {
        flex: 0 0 80%;
        scroll-snap-align: center;
    }

    .image,
    .main-image {
        width: 100%;
        height: auto;
        margin-right: 0;
    }

    .main-heading {
        font-size: 28px;
    }

    .image-header-container #header-info-container .header-logo {
        width: 180px;
        max-width: 100%;
    }

    .image-header-container .overlay-content .main-heading {
        font-size: 26px;
    }

    .image-header-container .overlay-content .sub-heading {
        font-size: 14px;
        margin: 6px 0 20px;
    }

    .image-header-container #header-info-container {
        margin-bottom: 10px;
    }

    .hero-actions {
        max-width: 258px;
    }

    .hero-actions .browse-options {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .hero-actions .browse-options .button-link {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 11px;
        letter-spacing: 0.06em;
    }

    .hero-actions .cta-primary {
        height: 44px;
        min-height: 44px;
        margin-top: 14px;
        padding: 10px 14px;
        font-size: 11px;
        letter-spacing: 0.08em;
    }

    .hero-actions .contact-link {
        min-height: 44px;
        margin-top: 2px;
        font-size: 11px;
    }

    .hero-license {
        font-size: 10px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-actions .browse-options .button-link,
    .cta-primary,
    .service-item,
    .reason,
    .image img {
        transition: none;
    }

    .hero-actions .browse-options .button-link:hover,
    .hero-actions .browse-options .button-link:focus-visible {
        transform: none;
    }
}

/* shared final site-zoom */
/* Match the existing Home desktop sizing on every public website page.
   Keep Home's two existing breakpoints and leave mobile sizing unchanged. */
@media screen and (min-width: 1024px) and (pointer: fine) {
    body.website-page {
        zoom: 0.7;
        min-height: calc(100vh / 0.7);
    }
    body.website-page .image-header-container {
        height: calc(100vh / 0.7);
    }
}

@media screen and (min-width: 901px) {
    body.website-page .image-header-container .overlay-content {
        zoom: 1 !important;
        transform: scale(0.7) !important;
        transform-origin: center center;
    }
    body.website-page [class$="-page-menu"] .menu-bar {
        zoom: 1 !important;
        transform: scale(0.7) !important;
        transform-origin: top left;
        width: calc(142.857143% - 40px);
    }
}

/* shared final property_update_quiet */
/* Small update date centered on the count / clear-filters row. */
body.property-page .filter-panel .filter-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 16px;
}
body.property-page .filter-footer > span[id$="resultCount"] {
    grid-column: 1;
    min-width: 0;
    justify-self: start;
    text-align: left;
}
body.property-page .filter-footer .main-page-update {
    display: block;
    grid-column: 2;
    justify-self: center;
    min-width: 0;
    max-width: 230px;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #71808c;
    text-align: center;
    font: 400 11px/1.4 Arial, sans-serif;
}
body.property-page .filter-footer .main-page-update time { font: inherit; color: inherit; }
body.property-page .filter-footer .clear-filters {
    grid-column: 3;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    text-align: right;
    white-space: normal;
}
@media(max-width:767px) {
    body.property-page .filter-panel .filter-footer {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    body.property-page .filter-footer .main-page-update { max-width: 100%; font-size: 10px; }
}

#property-page-coverage { margin:24px auto; max-width:1100px; padding:0 16px; box-sizing:border-box; }
#property-page-coverage > .listing-scope-note { margin:0; padding:0; border:0; }
#property-page-coverage > .listing-scope-note[hidden] { display:none !important; }
#property-page-coverage > .listing-scope-note + .listing-scope-note { display:none; }
#property-page-coverage > .listing-scope-note[hidden] + .listing-scope-note:not([hidden]) { display:block; }

/* shared final footer_gallery_colors_v2 */
/* Darker than the active navigation buttons; includes the Home footer strip. */
body.website-page footer.footer,
body.website-page footer.footer.home-footer-strip { background:#0b1f2b; background-image:none; }
/* Neutral photo surround. Photograph sizing and gallery interactions are unchanged. */
body.property-page .ly-modal .ly-stage { background:#fff; }

/* Coverage belongs to the open filters, after the count/date/Clear filters row. */
body.property-page .property-filter-disclosure .filter-footer { margin:16px 0 0; padding:12px 0; border-radius:0; border-top:1px solid #e6edf1; background:transparent; }
body.property-page .property-filter-disclosure .listing-scope-note { margin:0; padding:10px 4px 14px; border:0; border-top:1px solid #e6edf1; border-radius:0; background:transparent; box-shadow:none; color:#657785; font:400 11px/1.6 Arial,sans-serif; text-align:center; }
body.property-page .property-filter-disclosure .listing-scope-note a { color:inherit; text-underline-offset:2px; }
