/*
Theme Name: Tom Peterson Realty
Theme URI: https://dev.snworks.com/whatsnew/wp-content/themes/turnkeyrealty
Author: Synergy Web Design and Marketing - Lora Champion
Author URI: https://snwebdm.com/
Description: This theme works best with Elementor, although you can also use blocks with it (remove bottom section from functions.php to enable block editor). Recommended plugins: Elementor, Yoast, Contact7, woocommerce, ultimate member
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, block-styles, wide-blocks
Version: 1:012422
Requires at least: 5.0
Tested up to: 5.8.3
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whatsnew-raw
This theme, like WordPress, is licensed under the GPL.
Tested up to: 5.8
Requires PHP: 7.0
*/
    :root {
        --evergreen-deep: #1B4332;
        --terracotta-accent: #BC4749;
        --soft-border: #E5E1DC;
        --surface-header: rgba(247, 250, 248, 0.98);
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 50;
        background: rgba(247, 250, 248, 0.9);
        border-bottom: 1px solid var(--soft-border);
        box-shadow: 0 1px 3px rgba(27, 67, 50, 0.06);
    }

    .site-header__inner {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        max-width: 95%;
        margin: 0 auto;
        padding: 0 24px;
        height: 80px;
    }

    .site-header__logo a {
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    .site-header__logo-img {
        height: 75px;
        width: auto;
        object-fit: contain;
    }

    .site-header__logo-text {
        font-family: "Playfair Display", Georgia, serif;
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--evergreen-deep);
    }

    .site-header__logo {
        flex-shrink: 0;
    }

    .site-header__menu,
    .site-header__menu ul {
        display: flex;
        align-items: center;
        gap: 2rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .site-header__menu a {
        font-family: Inter, system-ui, sans-serif;
        font-size: 16px;
        font-weight: 600;
        line-height: 16px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        text-decoration: none;
        color: var(--evergreen-deep);
        padding-bottom: 4px;
        border-bottom: 2px solid transparent;
        transition: color 0.2s ease, border-color 0.2s ease;
    }

    .site-header__menu a:hover,
    .site-header__menu .current-menu-item > a,
    .site-header__menu .current_page_item > a {
        color: var(--terracotta-accent);
        border-bottom-color: var(--terracotta-accent);
    }

    .site-header__overlay {
        display: none;
    }

    .site-header__close {
        display: none;
    }

    .site-header__toggle {
        display: none;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid var(--soft-border);
        border-radius: 0.5rem;
        background: transparent;
        color: var(--evergreen-deep);
        cursor: pointer;
        margin-left: auto;
        position: relative;
        z-index: 80;
        flex-shrink: 0;
        -webkit-appearance: none;
        appearance: none;
    }

    .site-header__toggle-svg {
        display: block;
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        pointer-events: none;
    }

    .site-header__toggle-svg--close {
        display: none;
    }

    .site-header.is-open .site-header__toggle-svg--menu {
        display: none;
    }

    .site-header.is-open .site-header__toggle-svg--close {
        display: block;
    }

    /* Desktop */
    @media (min-width: 1316px) {
        .site-header__inner {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
        }

        .site-header__logo {
            grid-column: 1;
            justify-self: start;
        }

        .site-header__nav {
            grid-column: 2;
            justify-self: center;
            display: flex;
            justify-content: center;
        }

        .site-header__toggle {
            display: none !important;
        }
    }

    /* Mobile */
    @media (max-width: 1315px) {
        .site-header__inner {
            display: flex;
        }

        .site-header__inner > .site-header__nav {
            display: none;
        }

        .site-header__toggle {
            display: flex;
        }

        /* Nav & overlay teleported to <body> — see .site-header--mobile-ready below */
        body.site-header--mobile-ready .site-header__overlay {
            display: block;
            position: fixed;
            inset: 0;
            z-index: 9998;
            background: rgba(24, 28, 27, 0.35);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        body.site-header--mobile-ready.site-header--menu-open .site-header__overlay {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        body.site-header--mobile-ready .site-header__nav {
            position: fixed;
            top: 0;
            right: 0;
            width: min(320px, 85vw);
            height: 100vh;
            height: 100dvh;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: stretch;
            box-sizing: border-box;
            padding: 72px 32px 32px;
            margin: 0;
            background: var(--surface-header);
            border-left: 1px solid var(--soft-border);
            box-shadow: -8px 0 32px rgba(27, 67, 50, 0.12);
            transform: translateX(100%);
            transition: transform 0.3s ease;
            pointer-events: none;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        body.site-header--mobile-ready.site-header--menu-open .site-header__nav {
            transform: translateX(0);
            pointer-events: auto;
        }

        body.site-header--mobile-ready .site-header__menu,
        body.site-header--mobile-ready .site-header__menu ul {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.25rem;
            width: 100%;
        }

        body.site-header--mobile-ready .site-header__menu a {
            display: block;
            width: 100%;
            padding: 14px 0;
            font-size: 14px;
            color: var(--evergreen-deep);
            border-bottom: none;
        }

        body.site-header--mobile-ready .site-header__menu a:hover {
            color: var(--evergreen-deep);
            border-bottom-color: transparent;
        }

        body.site-header--mobile-ready .site-header__menu .current-menu-item > a,
        body.site-header--mobile-ready .site-header__menu .current_page_item > a,
        body.site-header--mobile-ready .site-header__menu .current-menu-ancestor > a,
        body.site-header--mobile-ready .site-header__menu li.current-menu-item a,
        body.site-header--mobile-ready .site-header__menu li.current_page_item a {
            color: var(--terracotta-accent) !important;
            border-bottom-color: transparent;
        }

        body.site-header--mobile-ready .site-header__close {
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 20px;
            right: 20px;
            width: 44px;
            height: 44px;
            padding: 0;
            border: 1px solid var(--soft-border);
            border-radius: 0.5rem;
            background: transparent;
            color: var(--evergreen-deep);
            font-size: 28px;
            line-height: 1;
            cursor: pointer;
            flex-shrink: 0;
            z-index: 1;
        }

        body.site-header--mobile-ready .site-header__close span {
            display: block;
            margin-top: -2px;
        }

        body.site-header--mobile-ready .site-header__close:hover {
            background: rgba(27, 67, 50, 0.06);
            color: var(--terracotta-accent);
        }
    }

    .site-footer {
        --evergreen-deep: #1B4332;
        --terracotta-accent: #BC4749;
        --sand-cream: #F8F5F2;

        background: var(--evergreen-deep);
        color: var(--sand-cream);
    }

    .site-footer__main {
        max-width: 1280px;
        margin: 0 auto;
        padding: 80px 24px 64px;
    }

    .site-footer__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .site-footer__title {
        font-family: "Playfair Display", Georgia, serif;
        font-size: 32px;
        font-weight: 600;
        line-height: 40px;
        color: var(--sand-cream);
        margin: 0 0 24px;
    }

    .site-footer__address {
        font-family: Inter, system-ui, sans-serif;
        font-size: 16px;
        line-height: 24px;
        font-style: normal;
        color: rgba(248, 245, 242, 0.6);
        margin: 0 0 24px;
    }

    .site-footer__phone {
        color: var(--terracotta-accent);
        text-decoration: none;
        transition: opacity 0.2s ease;
    }

    .site-footer__phone:hover {
        opacity: 0.85;
        color: var(--terracotta-accent);
    }

    .site-footer__social {
        display: flex;
        gap: 16px;
    }

    .site-footer__social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(248, 245, 242, 0.1);
        color: var(--sand-cream);
        text-decoration: none;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .site-footer__social-link:hover {
        background: var(--terracotta-accent);
        color: var(--sand-cream);
    }

    .site-footer__heading {
        font-family: Inter, system-ui, sans-serif;
        font-size: 12px;
        font-weight: 600;
        line-height: 16px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--sand-cream);
        margin: 0 0 16px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(248, 245, 242, 0.2);
    }

    .site-footer__nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .site-footer__nav a {
        font-family: Inter, system-ui, sans-serif;
        font-size: 16px;
        line-height: 24px;
        color: rgba(248, 245, 242, 0.8);
        text-decoration: none;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .site-footer__nav a:hover {
        color: var(--sand-cream);
        transform: translateX(4px);
    }

    .site-footer__badges {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .site-footer__badge-img {
        height: 32px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        display: block;
    }

    .site-footer__bottom {
        border-top: 1px solid rgba(248, 245, 242, 0.1);
        max-width: 1280px;
        margin: 0 auto;
        padding: 32px 24px 32px;
        text-align: center;
    }

    .site-footer__copyright {
        font-family: Inter, system-ui, sans-serif;
        font-size: 12px;
        line-height: 16px;
        color: rgba(248, 245, 242, 0.4);
        margin: 0;
    }

    @media (min-width: 768px) {
        .site-footer__grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 64px 48px;
        }

        .site-footer__brand {
            grid-column: span 2;
        }
    }

    @media (min-width: 1024px) {
        .site-footer__grid {
            grid-template-columns: repeat(4, 1fr);
            gap: 80px 48px;
        }

        .site-footer__brand {
            grid-column: auto;
        }
    }

/*Form*/
.cf7-bootstrap-form {
  width: 100%;
  max-width: 700px;
}

.cf7-bootstrap-form label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}

.cf7-bootstrap-form .form-control,
.cf7-bootstrap-form .form-select {
  width: 100%;
  min-height: 48px;
  border-radius: 0;
  border: 2px solid #000;
  padding: 10px 14px;
  font-size: 16px;
  color: #000;
  background-color: #fff;
}

.cf7-bootstrap-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.cf7-bootstrap-form .form-control:focus,
.cf7-bootstrap-form .form-select:focus {
  border-color: #000;
  box-shadow: none;
  outline: none;
}

.cf7-bootstrap-form .optional-text {
  font-weight: 400;
  color: #777;
}

.cf7-bootstrap-form .btn {
  min-height: 48px;
  font-weight: 600;
  border-radius: 0;
  border: 2px solid #000;
  background-color: #000;
  color: #fff;
  padding: 10px 24px;
}

.cf7-bootstrap-form .btn:hover,
.cf7-bootstrap-form .btn:focus {
  background-color: #1F5C42;
  border-color: #1F5C42;
  color: #fff;
  box-shadow: none;
}

.cf7-bootstrap-form .wpcf7-not-valid-tip {
  font-size: 14px;
  margin-top: 5px;
}

.cf7-bootstrap-form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 0;
}

/*
Theme Name: Tom Peterson Realtors
Description: Custom theme styles for Tom Peterson, Inc, Realtors
Version: 2.0
*/

:root {
    --tp-color-bg: #ffffff;
    --tp-color-text: #212529;
    --tp-color-dark: #0e0e0e;
    --tp-color-muted: #6c757d;
    --tp-color-cream: #f8f5f2;
    --tp-color-link: #EF4444;
    --tp-color-border: #0e0e0e;
    --tp-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

/* Listing grids (shortcodes, homepage, archives) */
.listing-property-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.listing-property-type-grid .listing-card,
.tom-peterson-inc-realtors-featured-listing .listing-card {
    border: 2px solid var(--tp-color-border);
    box-sizing: border-box;
    background: var(--tp-color-bg);
    margin: 0;
    min-width: 0;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.listing-property-type-grid .listing-card:hover,
.tom-peterson-inc-realtors-featured-listing .listing-card:hover {
    border-color: var(--tp-color-dark);
    box-shadow: 0 4px 16px rgba(14, 14, 14, 0.08);
}

.listing-property-type-grid .listing-card img,
.tom-peterson-inc-realtors-featured-listing .listing-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.listing-property-type-grid .listing-card h3,
.tom-peterson-inc-realtors-featured-listing .listing-card h3 {
    margin: 16px 16px 8px;
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.2;
    font-weight: 500;
    color: var(--tp-color-dark);
}

.listing-property-type-grid .listing-card h3 a,
.tom-peterson-inc-realtors-featured-listing .listing-card h3 a,
.listing-card > h3 > a {
    color: var(--tp-color-dark);
    text-decoration: none;
}

.listing-property-type-grid .listing-card h3 a:hover,
.tom-peterson-inc-realtors-featured-listing .listing-card h3 a:hover,
.listing-card > h3 > a:hover {
    color: var(--tp-color-link);
}

.listing-property-type-grid .listing-card p,
.tom-peterson-inc-realtors-featured-listing .listing-card p {
    margin: 0 16px 8px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--tp-color-muted);
}

.listing-property-type-grid .listing-card p strong,
.tom-peterson-inc-realtors-featured-listing .listing-card p strong {
    font-size: 20px;
    font-weight: 500;
    color: var(--tp-color-dark);
}

.listing-property-type-grid .listing-card p:last-child,
.tom-peterson-inc-realtors-featured-listing .listing-card p:last-child {
    margin-bottom: 16px;
}

/* Featured listing shortcode */
.tom-peterson-inc-realtors-featured-listing .listing-card {
    max-width: 400px;
    margin: 0 auto;
}

.featured-listing-updated {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--tp-color-muted);
}

@media (max-width: 1200px) {
    .listing-property-type-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .listing-property-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .listing-property-type-grid {
        grid-template-columns: 1fr;
    }

    .listing-property-type-grid .listing-card img,
    .tom-peterson-inc-realtors-featured-listing .listing-card img {
        height: 200px;
    }
}
