:root {
    --h2k-ink: #102a31;
    --h2k-teal: #174d57;
    --h2k-teal-dark: #0f3740;
    --h2k-gold: #d9aa62;
    --h2k-cream: #f7f4ee;
    --h2k-soft: #edf3f2;
    --h2k-line: #d9e2df;
    --h2k-white: #ffffff;
}

body {
    color: var(--h2k-ink);
    background: var(--h2k-white);
}

.home2key-preview-notice {
    position: relative;
    z-index: 1100;
    padding: 9px 24px;
    color: #fff8e9;
    background: var(--h2k-teal-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
    letter-spacing: 0.015em;
}

.site-header {
    border-bottom: 1px solid rgba(16, 42, 49, 0.09);
    box-shadow: none;
}

.header-container {
    min-height: 82px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-title {
    font-size: 0;
}

.site-title a::before {
    content: "HOME2KEY";
    display: block;
    color: var(--h2k-teal-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.site-title a::after {
    content: "HOME SEARCH & MOVE PLANNING";
    display: block;
    margin-top: 2px;
    color: #6f7f7c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.31em;
}

.main-navigation a {
    color: #29464c;
    font-size: 14px;
    font-weight: 650;
}

.main-navigation a::after {
    background: var(--h2k-gold);
}

.home2key-front-page > p:empty,
.home2key-front-page > br {
    display: none;
}

.h2k-hero {
    position: relative;
    display: grid;
    min-height: 680px;
    place-items: center;
    padding: 95px 28px;
    overflow: hidden;
    color: #fff;
    background-image:
        linear-gradient(90deg, rgba(6, 29, 34, 0.79) 0%, rgba(9, 38, 44, 0.61) 48%, rgba(9, 38, 44, 0.26) 100%),
        var(--h2k-hero-image);
    background-position: center;
    background-size: cover;
}

.h2k-hero-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.h2k-eyebrow {
    margin: 0 0 18px;
    color: #f2d6a9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.site-branding .site-description {
    display: none;
}

.h2k-hero h1 {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 6vw, 78px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.25);
}

.h2k-hero-copy {
    max-width: 650px;
    margin: 24px 0 32px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.65;
}

.h2k-hero .reh-search-form-modern {
    max-width: 1070px;
    margin-top: 38px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.h2k-hero .reh-search-form {
    margin: 0;
    padding: 0;
}

.h2k-hero .search-main-filters {
    display: grid;
    grid-template-columns: 1.55fr 1fr 1fr 0.75fr auto;
    gap: 9px;
}

.h2k-hero .filter-item:nth-of-type(2),
.h2k-hero .filter-item:nth-of-type(3),
.h2k-hero .filter-item:nth-of-type(4),
.h2k-hero .filter-item:nth-of-type(8),
.h2k-hero .filter-item:nth-of-type(9) {
    display: none;
}

.h2k-hero .filter-item {
    position: relative;
    margin: 0;
}

.h2k-hero .filter-item i {
    display: none;
}

.h2k-hero input,
.h2k-hero select {
    min-height: 52px;
    margin: 0;
    border: 1px solid #dce4e2;
    border-radius: 7px;
    color: var(--h2k-ink);
    background: #fff;
}

.h2k-hero .reh-search-form .btn-search:not(.btn-secondary) {
    min-height: 52px;
    padding: 0 27px;
    border-radius: 7px;
    color: #fff !important;
    background: var(--h2k-teal) !important;
    box-shadow: none;
}

.h2k-hero .reh-search-form .btn-search:not(.btn-secondary):hover,
.h2k-hero .reh-search-form .btn-search:not(.btn-secondary):focus-visible {
    color: #fff !important;
    background: var(--h2k-teal-dark) !important;
}

.h2k-section {
    padding: 90px 28px;
}

.h2k-section--soft {
    background: var(--h2k-cream);
}

.h2k-section--teal {
    color: #fff;
    background: var(--h2k-teal-dark);
}

.h2k-container {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.h2k-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.h2k-section-head > div {
    max-width: 740px;
}

.h2k-section-kicker {
    margin: 0 0 12px;
    color: #a8732c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.h2k-section--teal .h2k-section-kicker {
    color: #f1cf9e;
}

.h2k-section h2,
.h2k-section-head h2 {
    margin: 0;
    color: var(--h2k-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.h2k-section--teal h2 {
    color: #fff;
}

.h2k-lead {
    max-width: 720px;
    margin: 16px 0 0;
    color: #667772;
    font-size: 17px;
}

.h2k-section--teal .h2k-lead {
    color: rgba(255, 255, 255, 0.72);
}

.h2k-text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--h2k-teal);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.h2k-text-link::after {
    content: "\2192";
}

.h2k-section .reh-homepage-about {
    padding: 0;
    background: transparent;
}

.h2k-section .reh-homepage-about-container {
    max-width: none;
}

.reh-homepage-about-photo-frame {
    border-radius: 4px 70px 4px 4px;
    box-shadow: 22px 24px 0 var(--h2k-soft);
    overflow: hidden;
}

.reh-homepage-about-photo-frame img {
    filter: saturate(0.82) contrast(1.02);
}

.reh-homepage-about-label,
.reh-label-text {
    color: #a8732c !important;
}

.reh-homepage-about-name {
    color: var(--h2k-ink) !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 58px) !important;
    font-weight: 500 !important;
}

.reh-homepage-about-cta,
.h2k-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 25px;
    border: 1px solid var(--h2k-teal);
    border-radius: 3px;
    color: #fff !important;
    background: var(--h2k-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.h2k-button--light {
    border-color: #fff;
    color: var(--h2k-teal-dark) !important;
    background: #fff;
}

.reh-featured-carousel {
    overflow: visible;
}

.reh-carousel-track {
    gap: 24px !important;
}

.reh-featured-card,
.reh-property-card {
    border: 1px solid var(--h2k-line) !important;
    border-radius: 5px !important;
    background: #fff;
    box-shadow: 0 10px 35px rgba(18, 49, 55, 0.08) !important;
    overflow: hidden;
}

.reh-featured-card-image,
.reh-property-card .property-image {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.reh-featured-card-image img,
.reh-property-card .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.reh-featured-card:hover img,
.reh-property-card:hover .property-image img {
    transform: scale(1.035);
}

.home2key-demo-active .reh-featured-card-image::after,
.home2key-demo-active .reh-property-card .property-image::after {
    content: "SAMPLE LISTING";
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border-radius: 2px;
    color: #fff;
    background: rgba(15, 55, 64, 0.93);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.13em;
}

.reh-featured-badge {
    background: var(--h2k-gold) !important;
}

.reh-featured-card-content,
.reh-property-card .property-details {
    padding: 24px !important;
}

.reh-featured-price,
.property-price {
    color: var(--h2k-teal-dark) !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px !important;
}

.reh-featured-address a,
.reh-property-card h3 a {
    color: var(--h2k-ink) !important;
}

.reh-carousel-arrow {
    border-color: var(--h2k-line) !important;
    color: var(--h2k-teal) !important;
    background: #fff !important;
}

.h2k-place-grid,
.h2k-stat-grid,
.h2k-quote-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.h2k-place-card,
.h2k-stat-card,
.h2k-quote-card {
    padding: 34px;
    border: 1px solid var(--h2k-line);
    border-radius: 5px;
    background: #fff;
}

.h2k-place-card span,
.h2k-stat-card span {
    display: block;
    margin-bottom: 12px;
    color: #a8732c;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.h2k-place-card h3,
.h2k-stat-card strong {
    display: block;
    margin: 0 0 10px;
    color: var(--h2k-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1.2;
}

.h2k-place-card p,
.h2k-quote-card p {
    margin: 0;
}

.h2k-stat-card strong {
    font-size: 39px;
}

.h2k-stat-note {
    margin-top: 20px;
    color: #73827f;
    font-size: 12px;
}

.h2k-quote-card blockquote {
    margin: 0 0 25px;
    color: var(--h2k-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.55;
}

.h2k-quote-card cite {
    color: #72817e;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.h2k-map-frame {
    border: 1px solid var(--h2k-line);
    background: #fff;
    box-shadow: 0 14px 40px rgba(18, 49, 55, 0.08);
}

.h2k-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.h2k-cta h2 {
    max-width: 720px;
}

.entry-header .entry-title {
    color: var(--h2k-ink);
    font-family: Georgia, "Times New Roman", serif;
}

.content-area {
    gap: 40px;
    padding-top: 58px;
}

.site-main {
    min-width: 0;
}

.reh-property-grid {
    gap: 25px !important;
}

.reh-archive-hero {
    background: linear-gradient(135deg, var(--h2k-teal) 0%, var(--h2k-teal-dark) 100%) !important;
}

.reh-archive-hero .reh-archive-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.reh-filter-bar .btn-search,
.view-btn.active,
.btn-view-details {
    border-color: var(--h2k-teal) !important;
    background: var(--h2k-teal) !important;
}

.results-count i,
.reh-property-card-modern .property-location i {
    color: var(--h2k-gold) !important;
}

.reh-property-card-modern .badge-status.status-active {
    background: var(--h2k-teal) !important;
}

.home2key-demo-active .reh-property-card-modern .property-image::after {
    content: "SAMPLE LISTING";
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    padding: 7px 10px;
    border-radius: 2px;
    color: #fff;
    background: rgba(15, 55, 64, 0.93);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.13em;
}

.site-footer {
    margin-top: 0;
    background: #0b272e;
}

.reh-footer-disclaimer-band {
    margin-top: 32px;
    border-top: 1px solid var(--h2k-line);
    background: #f7faf9;
}

.reh-footer-disclaimer-inner,
.reh-footer-disclaimer-inner p {
    color: #29464c !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

.reh-footer-disclaimer-inner .reh-disclaimer-broker {
    color: var(--h2k-ink) !important;
    font-size: 15px !important;
}

.reh-footer-disclaimer-inner .reh-disclaimer-broker strong,
.reh-footer-disclaimer-inner .reh-ddf-terms-link a {
    color: var(--h2k-teal-dark) !important;
}

.reh-footer-disclaimer-inner .reh-ddf-terms-link a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Match the interior pages to Home2Key's serif headings and teal palette. */
.page .entry-header .entry-title {
    color: var(--h2k-teal-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 54px);
    font-weight: 500;
}

.page .entry-content h2 {
    color: var(--h2k-teal-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(29px, 3.5vw, 37px);
    font-weight: 500;
}

.page .entry-content .h2k-place-card h2 {
    font-size: clamp(25px, 2.7vw, 30px);
    line-height: 1.25;
}

.page .entry-content > p {
    color: #334b4f;
    font-size: 17px;
    line-height: 1.8;
}

.page-id-13 .entry-content {
    max-width: 850px;
}

.page-id-13 .entry-content h2 {
    margin-top: 1.7em;
    font-size: clamp(29px, 3.5vw, 37px);
}

.page-id-13 .entry-content > p:last-child a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin-top: 10px;
    padding: 10px 22px;
    border-radius: 4px;
    color: #fff;
    background: var(--h2k-teal);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.page-id-13 .entry-content > p:last-child a:hover,
.page-id-13 .entry-content > p:last-child a:focus-visible {
    color: #fff;
    background: var(--h2k-teal-dark);
}

.page-id-15 .reh-contact-hero {
    background: linear-gradient(135deg, var(--h2k-teal-dark), var(--h2k-teal));
    box-shadow: 0 20px 50px rgba(16, 42, 49, 0.18);
}

.page-id-15 .reh-contact-profile {
    background: var(--h2k-cream);
}

.page-id-15 .reh-contact-meta h2,
.page-id-15 .reh-contact-form-header h3,
.page-id-15 .reh-contact-hours h3 {
    color: var(--h2k-teal-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.page-id-15 .reh-contact-form-header .eyebrow {
    color: var(--h2k-teal);
}

.page-id-15 .reh-contact-channels .channel--static {
    color: var(--h2k-ink);
    background: var(--h2k-soft);
}

.page-id-15 .reh-contact-form--styled .form-actions .btn {
    border: 1px solid var(--h2k-teal) !important;
    color: #fff !important;
    background: var(--h2k-teal) !important;
    box-shadow: 0 4px 12px rgba(23, 77, 87, 0.18);
}

.page-id-15 .reh-contact-form--styled .form-actions .btn:hover,
.page-id-15 .reh-contact-form--styled .form-actions .btn:focus-visible {
    border-color: var(--h2k-teal-dark) !important;
    color: #fff !important;
    background: var(--h2k-teal-dark) !important;
}

.page-id-15 .reh-contact-form--styled input:focus,
.page-id-15 .reh-contact-form--styled textarea:focus {
    border-color: var(--h2k-teal);
    box-shadow: 0 0 0 3px rgba(23, 77, 87, 0.17);
}

@media (max-width: 980px) {
    .h2k-hero {
        min-height: 620px;
    }

    .h2k-hero .search-main-filters {
        grid-template-columns: 1fr 1fr;
    }

    .h2k-hero .filter-keyword,
    .h2k-hero .btn-search {
        grid-column: 1 / -1;
    }

    .h2k-place-grid,
    .h2k-stat-grid,
    .h2k-quote-grid {
        grid-template-columns: 1fr 1fr;
    }

    .h2k-section-head,
    .h2k-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .home2key-preview-notice {
        padding: 8px 15px;
        font-size: 10px;
    }

    .header-container {
        min-height: 68px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-title a::before {
        font-size: 23px;
    }

    .h2k-hero {
        min-height: 680px;
        padding: 70px 18px;
        background-position: 58% center;
    }

    .h2k-hero h1 {
        font-size: 44px;
    }

    .h2k-hero-copy {
        font-size: 16px;
    }

    .h2k-hero .search-main-filters {
        grid-template-columns: 1fr;
    }

    .h2k-hero .filter-item,
    .h2k-hero .btn-search {
        grid-column: auto;
    }

    .h2k-hero .filter-item:nth-of-type(7) {
        display: none;
    }

    .h2k-section {
        padding: 68px 18px;
    }

    .h2k-place-grid,
    .h2k-stat-grid,
    .h2k-quote-grid {
        grid-template-columns: 1fr;
    }

    .h2k-place-card,
    .h2k-stat-card,
    .h2k-quote-card {
        padding: 27px;
    }
}
