/*
Theme Name: Real Estate Lite Child
Theme URI: https://realestateforcheap.com/
Description: Professional child theme polish for RealEstateForCheap.com.
Author: Real Estate For Cheap
Template: real-estate-lite
Version: 1.0.0
Text Domain: real-estate-lite-child
*/

:root {
    --refc-primary: #0d1b2a;
    --refc-primary-soft: #17304a;
    --refc-accent: #1b6b3a;
    --refc-accent-hover: #14512c;
    --refc-bg-light: #f5f7f2;
    --refc-bg-warm: #fbfaf7;
    --refc-text: #1a1a2e;
    --refc-text-muted: #5a6474;
    --refc-border: #e2e8e0;
    --refc-shadow: 0 10px 30px rgba(13, 27, 42, 0.10);
}

.refc-breadcrumbs {
    color: #5d6b78;
    font-size: 0.92rem;
    margin: 0 auto 18px;
    max-width: 1120px;
    padding: 12px 0 0;
}

.refc-breadcrumbs ol {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.refc-breadcrumbs li {
    margin: 0;
}

.refc-breadcrumbs li:not(:last-child)::after {
    color: #95a0aa;
    content: "/";
    margin-left: 8px;
}

.refc-breadcrumbs a {
    color: #1b6b3a;
    font-weight: 700;
    text-decoration: none;
}

.refc-post-byline {
    align-items: center;
    color: #607080;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.94rem;
    gap: 10px 18px;
    margin: 0 0 22px;
}

.refc-blog-cta,
.refc-about-seller,
.refc-legal-note,
.refc-page-cta {
    background: #f4f8f2;
    border: 1px solid #dce8d8;
    border-radius: 8px;
    margin: 28px 0;
    padding: 24px;
}

.refc-blog-cta h2,
.refc-about-seller h2,
.refc-page-cta h2 {
    margin-top: 0;
}

.refc-button,
.entry-content .refc-button {
    background: #1b6b3a;
    border: 2px solid #1b6b3a;
    border-radius: 6px;
    color: #fff !important;
    display: inline-block;
    font-weight: 800;
    margin: 6px 8px 6px 0;
    padding: 12px 18px;
    text-decoration: none;
}

.refc-button:hover,
.entry-content .refc-button:hover {
    background: #14512c;
    border-color: #14512c;
    color: #fff !important;
}

.refc-button-secondary,
.entry-content .refc-button-secondary {
    background: #fff;
    color: #1b6b3a !important;
}

.refc-comparison-table {
    border-collapse: collapse;
    margin: 24px 0;
    width: 100%;
}

.refc-comparison-table th,
.refc-comparison-table td {
    border: 1px solid #d9e2dc;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.refc-comparison-table th {
    background: #123825;
    color: #fff;
}

.refc-lead-form {
    background: #fff;
    border: 1px solid #dce8d8;
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(13, 27, 42, 0.08);
    margin: 24px 0;
    padding: 24px;
}

.refc-lead-form label {
    color: #152233;
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
}

.refc-lead-form input {
    border: 1px solid #cfd8d2;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.refc-form-success {
    background: #e8f5ea;
    border: 1px solid #b7dfbf;
    border-radius: 6px;
    color: #14512c;
    font-weight: 800;
    margin-bottom: 18px;
    padding: 12px;
}

.refc-map-placeholder {
    background: #edf4ef;
    border: 1px dashed #98b9a2;
    border-radius: 8px;
    color: #2c4837;
    font-weight: 800;
    margin: 22px 0;
    padding: 28px;
    text-align: center;
}

.refc-sitewide-hub {
    background: #f7faf7;
    border-top: 1px solid #dfe8e1;
    padding: 34px 0;
}

.refc-sitewide-hub h2 {
    color: #0d1b2a;
    font-size: 1.35rem;
    margin: 0 0 18px;
}

.refc-sitewide-hub__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.refc-sitewide-hub__col h3 {
    color: #123825;
    font-size: 1rem;
    margin: 0 0 10px;
}

.refc-sitewide-hub__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.refc-sitewide-hub__col li {
    margin: 0 0 7px;
}

.refc-sitewide-hub__col a {
    color: #1b6b3a;
    font-weight: 750;
    text-decoration: none;
}

.refc-link-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 20px 0;
}

.refc-link-card {
    background: #fff;
    border: 1px solid #dce8d8;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(13, 27, 42, 0.06);
    color: #152233 !important;
    display: block;
    padding: 18px;
    text-decoration: none;
}

.refc-link-card strong {
    color: #1b6b3a;
    display: block;
    font-size: 1.02rem;
    margin-bottom: 6px;
}

.refc-link-card span {
    color: #5d6b78;
    display: block;
    font-size: 0.93rem;
    line-height: 1.45;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    color: var(--refc-text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: var(--refc-accent);
}

a:hover,
a:focus {
    color: var(--refc-accent-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--refc-primary);
    font-family: "Inter", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
}

p {
    margin-bottom: 1.25rem;
}

.grid,
.grid-wide {
    max-width: 1180px;
}

#masthead {
    background: #fff;
    border-bottom: 2px solid var(--refc-accent);
    box-shadow: 0 2px 12px rgba(13, 27, 42, 0.08);
    padding: 12px 0;
    position: relative;
    z-index: 20;
}

.site-branding {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 54px;
}

.site-title {
    margin: 0;
}

.site-title a {
    color: var(--refc-primary);
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
}

.site-description {
    color: var(--refc-text-muted);
    font-size: 0.85rem;
    margin: 2px 0 0;
}

.main-nav {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    min-height: 54px;
}

#cssmenu,
#cssmenu ul,
#cssmenu li {
    letter-spacing: 0;
}

#cssmenu > ul > li > a,
#cssmenu ul li a {
    color: var(--refc-primary);
    font-size: 0.9rem;
    font-weight: 650;
    padding: 10px 10px;
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

#cssmenu ul ul {
    background: #fff;
    border: 1px solid rgba(13, 27, 42, 0.1);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(13, 27, 42, 0.14);
    min-width: 230px;
    padding: 8px 0;
    z-index: 1000;
}

#cssmenu ul ul li a {
    border-bottom: 0 !important;
    color: var(--refc-primary);
    display: block;
    font-size: 0.88rem;
    line-height: 1.3;
    padding: 10px 14px;
    white-space: normal;
}

#cssmenu ul li a:hover,
#cssmenu ul li a:focus,
#cssmenu ul li.current_page_item > a,
#cssmenu ul li.current-menu-item > a {
    color: var(--refc-accent);
}

#cssmenu ul li.current_page_item > a,
#cssmenu ul li.current-menu-item > a {
    border-bottom: 2px solid var(--refc-accent);
}

.home-image {
    min-height: 430px;
    overflow: hidden;
    position: relative;
}

.home-image img {
    display: block;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    width: 100%;
}

.home-image::after {
    background: linear-gradient(90deg, rgba(13, 27, 42, 0.76) 0%, rgba(13, 27, 42, 0.54) 48%, rgba(13, 27, 42, 0.20) 100%);
    content: "";
    inset: 0;
    position: absolute;
}

.home-image .absolute {
    align-items: center;
    display: flex;
    inset: 0;
    position: absolute;
    z-index: 2;
}

.intro-header {
    padding: 32px 0;
}

.header-intro {
    color: #fff;
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 24px;
    max-width: 620px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.30);
}

.button-a,
.button-b,
.read_more,
.wp-block-button__link,
button,
input[type="button"],
input[type="submit"] {
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 11px 22px;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.button-a,
.wp-block-button__link,
button,
input[type="button"],
input[type="submit"] {
    background: var(--refc-accent);
    border: 1px solid var(--refc-accent);
    color: #fff;
}

.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.entry-content .wp-block-button:not(.is-style-outline) .wp-element-button {
    background: var(--refc-accent) !important;
    border-color: var(--refc-accent) !important;
    color: #fff !important;
}

.button-a:hover,
.button-a:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
button:hover,
button:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
    background: var(--refc-accent-hover);
    border-color: var(--refc-accent-hover);
    color: #fff;
    box-shadow: 0 8px 18px rgba(27, 107, 58, 0.20);
}

.button-b {
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid #fff;
    color: #fff;
    margin-left: 12px;
}

.button-b:hover,
.button-b:focus {
    background: #fff;
    border-color: #fff;
    color: var(--refc-primary);
}

.read_more {
    background: transparent;
    border: 1px solid var(--refc-accent);
    color: var(--refc-accent);
    font-size: 0.9rem;
    padding: 8px 16px;
}

.read_more:hover,
.read_more:focus {
    background: var(--refc-accent);
    color: #fff;
}

.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
.entry-content .wp-block-button:not(.is-style-outline) .wp-element-button:hover,
.entry-content .wp-block-button:not(.is-style-outline) .wp-element-button:focus {
    background: var(--refc-accent-hover) !important;
    border-color: var(--refc-accent-hover) !important;
    color: #fff !important;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link,
.entry-content .wp-block-button.is-style-outline .wp-element-button {
    background: transparent !important;
    border: 2px solid var(--refc-accent) !important;
    color: var(--refc-accent) !important;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:focus,
.entry-content .wp-block-button.is-style-outline .wp-element-button:hover,
.entry-content .wp-block-button.is-style-outline .wp-element-button:focus {
    background: var(--refc-accent) !important;
    border-color: var(--refc-accent) !important;
    color: #fff !important;
}

.section {
    padding: 62px 0;
}

.section.grey {
    background: var(--refc-bg-light);
}

.section-title {
    color: var(--refc-primary);
    font-size: 1.85rem;
    margin: 0 0 8px;
    text-align: center;
}

.section-sub-title {
    color: var(--refc-text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 auto 34px;
    max-width: 740px;
    text-align: center;
}

.service .col-4-12,
.blog .post-item,
.wpl_property_listing_container .wpl_prp_cont,
.wpl-listing-item,
.property-item {
    background: #fff;
    border: 1px solid var(--refc-border);
    border-radius: 6px;
    box-shadow: 0 2px 14px rgba(13, 27, 42, 0.05);
    margin-bottom: 26px;
    overflow: hidden;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.service .col-4-12:hover,
.blog .post-item:hover,
.wpl_property_listing_container .wpl_prp_cont:hover,
.wpl-listing-item:hover,
.property-item:hover {
    box-shadow: var(--refc-shadow);
    transform: translateY(-2px);
}

.service .col-4-12 .entry-title,
.service .col-4-12 h2,
.blog .entry-title {
    font-size: 1.15rem;
    margin: 18px 18px 8px;
}

.service .col-4-12 p,
.blog .entry-content {
    color: var(--refc-text-muted);
    margin: 0 18px 18px;
}

.service .read_more {
    margin: 0 18px 20px;
}

.post-thumb img,
.page-thumb img,
.blog .post-thumb img,
.service .post-thumb img,
.wpl_property_listing_container img,
.wpl-listing-item img,
.property-item img {
    display: block;
    height: 210px;
    object-fit: cover;
    width: 100%;
}

.about {
    background: #fff;
}

.about .grid {
    align-items: center;
    display: flex;
}

.about .section-title,
.about .section-sub-title {
    text-align: left;
}

.about-content {
    color: var(--refc-text);
    padding-left: 34px;
}

.about-excerpt {
    color: var(--refc-text);
    font-size: 1rem;
}

.site-main,
.entry-content,
.page .entry-content {
    color: var(--refc-text);
}

.page .entry-content p,
.single .entry-content p {
    color: var(--refc-text);
}

.page .entry-content a,
.single .entry-content a {
    color: var(--refc-accent);
}

.page .entry-content a:hover,
.page .entry-content a:focus,
.single .entry-content a:hover,
.single .entry-content a:focus {
    color: var(--refc-accent-hover);
}

.page .entry-header .entry-title,
.single .entry-header .entry-title,
.archive .page-title {
    font-size: 2rem;
    margin-top: 30px;
}

.page-id-23 .entry-header,
.page-id-27 .entry-header,
.page-id-21 .entry-header,
.page-id-1170 .entry-header,
.page-id-1348 .entry-header,
.page-id-1687 .entry-header {
    display: none;
}

.page-id-23 #main,
.page-id-27 #main,
.page-id-21 #main,
.page-id-1170 #main,
.page-id-1348 #main,
.page-id-1687 #main {
    float: none !important;
    width: 100% !important;
}

.page-id-23 #secondary,
.page-id-27 #secondary,
.page-id-21 #secondary,
.page-id-1170 #secondary,
.page-id-1348 #secondary,
.page-id-1687 #secondary {
    display: none;
}

.page-id-23 #primary,
.page-id-27 #primary,
.page-id-21 #primary,
.page-id-1170 #primary,
.page-id-1348 #primary,
.page-id-1687 #primary {
    padding-bottom: 54px;
    padding-top: 44px;
}

.entry-content > h2,
.entry-content > h3,
.wp-block-heading {
    margin-top: 1.7rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.35rem;
}

.entry-content li {
    margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea,
select,
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container textarea,
.wpforms-container select {
    background: #fff;
    border: 1px solid var(--refc-border);
    border-radius: 4px;
    color: var(--refc-text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.96rem;
    line-height: 1.4;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

textarea,
.wpforms-container textarea {
    min-height: 140px;
}

input:focus,
textarea:focus,
select:focus,
.wpforms-container input:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus {
    border-color: var(--refc-accent);
    box-shadow: 0 0 0 3px rgba(27, 107, 58, 0.13);
    outline: none;
}

.wpforms-container {
    background: var(--refc-bg-warm);
    border: 1px solid var(--refc-border);
    border-radius: 6px;
    margin: 28px 0;
    padding: 24px;
}

.wpforms-container .wpforms-field-label {
    color: var(--refc-primary);
    font-weight: 700;
}

.wpforms-field .gt_selector,
.wpforms-field .gt-lang-code,
.wpforms-field select[name="gl-lang"],
.wpforms-field .gt_switcher,
.wpforms-field .gt_switcher_wrapper,
.wpforms-field .gtranslate_wrapper {
    display: none !important;
}

.wpforms-submit-container {
    margin-top: 8px;
}

.address {
    background: var(--refc-primary);
    color: rgba(255, 255, 255, 0.86);
}

.address h2,
.address h3,
.address .address-title {
    color: #fff;
}

.address a {
    color: #fff;
}

.site-footer {
    background: var(--refc-primary);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    padding: 42px 0 24px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #fff;
    text-decoration: underline;
}

.site-footer .site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 22px;
    padding-top: 20px;
    text-align: center;
}

.refc-intro,
.refc-cta,
.refc-buyer-appreciates {
    background: var(--refc-bg-light);
    border: 1px solid var(--refc-border);
    border-radius: 6px;
    margin: 0 0 28px;
    padding: 24px;
}

.refc-cta,
.refc-buyer-appreciates {
    margin-top: 32px;
}

.refc-cta h2,
.refc-intro h2,
.refc-buyer-appreciates h2 {
    margin-top: 0;
}

.refc-home-trust-hero {
    background: linear-gradient(135deg, #f5f7f2 0%, #fff 100%);
    box-shadow: 0 8px 26px rgba(13, 27, 42, 0.07);
}

.refc-home-trust-hero h2 {
    max-width: 760px;
}

.refc-trust-strip {
    margin: 24px 0 30px;
}

.refc-trust-strip > .wp-block-group__inner-container {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.refc-trust-strip > .wp-block-group__inner-container > .wp-block-group {
    background: #fff;
    border: 1px solid var(--refc-border);
    border-radius: 6px;
    box-shadow: 0 2px 14px rgba(13, 27, 42, 0.05);
    padding: 18px;
}

.refc-trust-strip h3 {
    font-size: 1rem;
    margin: 0 0 6px;
}

.refc-trust-strip p {
    color: var(--refc-text-muted);
    font-size: 0.94rem;
    line-height: 1.45;
    margin: 0;
}

.refc-blog-archive .refc-blog-intro {
    margin: 44px auto 30px;
}

.refc-blog-intro h1,
.refc-blog-intro h2 {
    margin-top: 0;
}

.refc-checklist {
    background: #fff;
    border: 1px solid var(--refc-border);
    border-radius: 6px;
    padding: 20px 24px;
}

.refc-home-columns {
    margin-bottom: 30px;
}

.refc-home-columns .wp-block-column {
    background: #fff;
    border: 1px solid var(--refc-border);
    border-radius: 6px;
    box-shadow: 0 2px 14px rgba(13, 27, 42, 0.05);
    padding: 22px;
}

.refc-home-columns h3 {
    margin-top: 0;
}

.refc-buyer-appreciates {
    background: #fff;
}

.refc-buyer-appreciates > p {
    color: var(--refc-text-muted);
    max-width: 760px;
}

.refc-appreciation-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.refc-appreciation-card {
    background: var(--refc-bg-warm);
    border: 1px solid var(--refc-border);
    border-radius: 6px;
    box-shadow: 0 2px 14px rgba(13, 27, 42, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 18px;
}

.refc-appreciation-card h3 {
    color: var(--refc-accent);
    font-weight: 750;
    margin: 0 0 8px;
}

.refc-appreciation-card p {
    color: var(--refc-text);
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
}

.refc-calculator {
    margin: 32px auto;
    max-width: 520px;
    text-align: center;
}

.refc-calculator__toggle {
    width: 100%;
}

.refc-calculator__panel {
    background: var(--refc-bg-warm);
    border: 1px solid var(--refc-border);
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(13, 27, 42, 0.08);
    display: none;
    margin-top: 12px;
    padding: 20px;
    text-align: left;
}

.refc-calculator__panel.is-open {
    display: block;
}

.refc-calculator__panel label {
    color: var(--refc-primary);
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.refc-calculator__result {
    color: var(--refc-accent);
    font-weight: 800;
    margin: 12px 0 0;
}

@media (max-width: 900px) {
    .site-branding,
    .main-nav {
        float: none !important;
        width: 100% !important;
    }

    .main-nav {
        justify-content: flex-start;
        margin-top: 8px;
    }

    .about .grid {
        display: block;
    }

    .about-content {
        padding-left: 0;
    }

    .refc-trust-strip > .wp-block-group__inner-container,
    .refc-appreciation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .grid,
    .grid-wide {
        padding-left: 18px;
        padding-right: 18px;
    }

    .home-image,
    .home-image img {
        min-height: 330px;
    }

    .header-intro {
        font-size: 1.65rem;
        max-width: 100%;
    }

    .button-a,
    .button-b {
        margin: 0 8px 10px 0;
        width: 100%;
    }

    .home-image .intro-header {
        box-sizing: border-box;
        padding-right: 18px;
        width: calc(100% - 36px) !important;
    }

    .home-image .intro-header a.button-a,
    .home-image .intro-header a.button-b {
        box-sizing: border-box;
        float: none !important;
        margin: 0 0 10px !important;
        padding: 11px 22px !important;
        width: 100%;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.45rem;
    }

    .col-3-12,
    .col-4-12,
    .col-6-12,
    .col-8-12 {
        float: none !important;
        width: 100% !important;
    }

    #cssmenu ul li a {
        min-height: 44px;
    }

    .wpforms-container,
    .refc-intro,
    .refc-cta,
    .refc-buyer-appreciates,
    .refc-checklist {
        padding: 18px;
    }

    .refc-trust-strip > .wp-block-group__inner-container,
    .refc-appreciation-grid {
        grid-template-columns: 1fr;
    }

    .refc-appreciation-card {
        min-height: auto;
    }

    .refc-sitewide-hub__grid,
    .refc-link-grid {
        grid-template-columns: 1fr;
    }
}
