/*
Theme Name: Real Estate Deals Child - Mike Pastor
Theme URI: https://mikepastor.agentspotlight.ai
Description: Child theme of Real Estate Deals customized for The Mike Pastor Group, Realty One Group Landmark, Pittsburgh PA. Brand: gold #C5A95F / black / white.
Author: AgentSpotlight
Template: real-estate-deals
Version: 1.5.1
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
Text Domain: real-estate-deals-child
*/

/* Header: solid black band instead of absolute overlay — prevents it
   covering the banner's welcome chip (the cut-off text bug). */
@media screen and (min-width:782px){
    .header-box{
        position: static !important;
        background: #000000 !important;
    }
}

/* Sticky header: nav stays visible after clicking a section link. */
header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #000000;
}

/* Mobile header: hamburger + Book a Call on ONE line. Selectors must
   outrank WP's mobile stacking rule
   (.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column
   { flex-basis:100% !important }). */
@media (max-width: 781px) {
    .header-box > .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column.nav-block {
        flex-basis: 30% !important;
        flex-grow: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    .header-box > .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column.icons-block {
        flex-basis: 62% !important;
        flex-grow: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    .header-box > .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column.logo-block {
        flex-basis: 100% !important;
    }
    .header-box .icons-block .wp-block-buttons,
    .header-box .icons-block .wp-block-group {
        margin: 0;
        justify-content: flex-end;
    }
    .header-box > .wp-block-columns {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}

/* Brand asset overrides — gold/black only, no orange, no dark blue */
.banner-image:before {
    background-image: url(images/banner-bg.png);
}
.latest-news .wp-block-read-more:before {
    background-image: url(images/arrow.png);
}
.about-li li:before {
    background-image: url(images/tick-circle.png);
}
.logodiv:after {
    background: #000000;
}
.logodiv:before {
    background: #C5A95F;
}

/* One-page anchor navigation */
html {
    scroll-behavior: smooth;
}
.mp-anchor {
    scroll-margin-top: 170px;
}

/* Header logo sizing */
.header-box .logodiv img {
    max-height: 58px;
    width: auto;
    max-width: none;
}
.header-box .logodiv {
    gap: 14px;
}

/* Hero readability */
.banner-image .wp-block-cover__inner-container h1 {
    text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

/* Footer community thumbs */
.property-box-img img {
    border-radius: 10px;
    object-fit: cover;
}

/* Review cards on home */
.mp-review-card {
    background: #ffffff;
    border: 1px solid #dfdfdf;
    border-radius: 13px;
    padding: 28px;
    height: 100%;
}
.mp-review-card p { font-size: 16px; }
.mp-review-name { color: #C5A95F; font-weight: 600; }

/* Service cards */
.mp-service-card {
    background: #ffffff;
    border: 1px solid #dfdfdf;
    border-radius: 13px;
    padding: 30px 26px;
    height: 100%;
}
.mp-service-card h3 { margin-top: 0; font-size: 24px; }

/* Team grid */
.mp-team-li li { margin-bottom: 6px; }

/* AgentSpot contact form width on contact page */
.agentspot-contact-form-wrap { max-width: 720px; }

/* Blog featured images: parent forces a 400x400 box on single posts,
   which cuts off wide images. Show natural ratio instead. */
.single-post .wp-block-post-featured-image img {
    width: 100%;
    height: auto;
    object-fit: unset;
    transform: none;
    border-radius: 13px;
}
/* Listing/home cards: uniform 16:9 crop instead of the squashed box */
.wp-block-post-template .wp-block-post-featured-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

/* Hero: black graphic panel must cover the taller banner */
.banner-image {
    min-height: 820px !important;
}
/* Stretch the graphic to the full hero box so the diagonal edge stays
   continuous top-to-bottom at any height (cover crops it; 100% leaves a gap). */
.banner-image:before {
    width: 72% !important;
    height: 100% !important;
    background-size: 100% 100% !important;
    background-position: left top !important;
    background-repeat: no-repeat !important;
}
/* Clear the sticky header so the "Welcome To" chip isn't cut off */
.banner-image .wp-block-cover__inner-container {
    padding-top: 34px;
    padding-bottom: 44px;
}

/* Branded MLS search form (submits to Real Geeks search) */
.mp-hero-search {
    margin-top: 24px;
    max-width: 840px;
    background: rgba(0,0,0,.55);
    padding: 22px;
    border-radius: 13px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(197,169,95,.35);
}
.mp-search-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.mp-f {
    flex: 1 1 0;
    min-width: 130px;
}
.mp-f label {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: .3px;
}
.mp-f select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 15px;
    font-family: inherit;
    color: #111;
}
.mp-search-types {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.mp-types-label {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.mp-search-types label {
    color: #fff;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.mp-search-types input[type="checkbox"] {
    accent-color: #C5A95F;
    width: 16px;
    height: 16px;
}
.mp-search-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.mp-search-btn {
    background: #C5A95F;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 13px 42px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s ease;
}
.mp-search-btn:hover {
    background: #b39852;
}
.mp-adv {
    color: #C5A95F !important;
    font-weight: 600;
    text-decoration: underline;
}
@media (max-width: 781px) {
    .banner-image {
        min-height: 0 !important;
    }
    .mp-hero-search {
        padding: 14px;
        margin-top: 20px;
    }
    .mp-search-row {
        gap: 10px;
    }
    .mp-f {
        min-width: 46%;
    }
    .mp-search-btn {
        width: 100%;
    }
}

/* Valuation widget button -> gold as well (belt and braces) */
.mp-valuation button,
.mp-valuation input[type="submit"],
.mp-valuation [class*="submit"] {
    background: #C5A95F !important;
    background-color: #C5A95F !important;
    border-color: #C5A95F !important;
    color: #ffffff !important;
}

/* Real Geeks home valuation widget */
.mp-valuation {
    max-width: 720px;
    margin: 26px 0 40px;
    padding: 22px;
    background: #FBFBFB;
    border: 1px solid #dfdfdf;
    border-radius: 13px;
}

/* Featured community card CTA */
.mp-card-cta {
    margin-top: 10px !important;
    font-weight: 700;
}
.mp-card-cta a {
    color: #C5A95F !important;
    text-decoration: none !important;
    border-bottom: 0 !important;
}
.mp-card-cta a:hover {
    color: #b39852 !important;
    text-decoration: underline !important;
}


/* Google Map embed */
.mp-map {
    margin-top: 34px;
}
.mp-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 13px;
    display: block;
}
.mp-map-side {
    margin-top: 0;
    height: 100%;
}
.mp-map-side iframe {
    height: 100%;
    min-height: 360px;
}

/* Footer social icon row (FA brands + Zillow mark) */
.mp-social-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0;
}
.mp-social-row a {
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    transition: color .2s ease;
}
.mp-social-row a:hover {
    color: #C5A95F;
}
.mp-social-row .mp-zillow span {
    font-weight: 800;
    font-size: 21px;
    font-family: Arial, sans-serif;
}

/* FAQ cards: strip wpautop artifacts that add empty space below questions */
.agentspot-faq-card p { margin: 0; }
.agentspot-faq-card br { display: none; }
.agentspot-faq-card p:empty { display: none; }
.agentspot-faq-answer p { margin: 0; padding: 0 0 20px; }

/* FAQ section: balance vertical space.
   The group wrapper already provides section padding, so remove the
   plugin's internal 64px; hide its duplicate inner heading; kill the
   empty <p> grid items and margin-carrying script wrapper below the
   last card. */
.agentspot-faq-section { padding: 0; }
.agentspot-faq-section > .agentspot-container > h2 { display: none; }
.agentspot-faq-section p:empty { display: none; }
.agentspot-faq-grid > p { display: none; }
#faq p:empty { display: none; }
#faq > p { margin: 0; padding: 0; }

/* Page hero image — balanced banner height (v1.4.1) */
.mp-page-hero img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
}
@media (max-width: 781px) {
    .mp-page-hero img { max-height: 260px; }
}

/* v1.4.2 — header brand text more pronounced (client request): larger, gold outline */
.logodiv .wp-block-site-title,
.logodiv .wp-block-site-title a {
    font-size: 30px !important;
    -webkit-text-stroke: 0.75px #C5A95F;
    letter-spacing: 0.5px;
}
@media (max-width: 781px) {
    .logodiv .wp-block-site-title,
    .logodiv .wp-block-site-title a { font-size: 24px !important; }
}

/* v1.4.2 — keep nav on one line at mid widths (Contact was wrapping) */
@media (max-width: 1700px) and (min-width: 782px) {
    .nav-block .wp-block-navigation { font-size: 16px; }
    .nav-block .wp-block-navigation .wp-block-navigation__container { gap: 18px !important; }
}

/* v1.5.0 — hero "search coming soon" card (replaces Real Geeks form) */
.mp-search-soon { text-align: left; }
.mp-search-soon .mp-soon-kicker { margin: 0 0 4px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #C5A95F; font-weight: 700; }
.mp-search-soon .mp-soon-title { margin: 0 0 8px; font-size: 26px; line-height: 1.2; color: #110E0C; }
.mp-search-soon .mp-soon-text { margin: 0 0 16px; font-size: 16px; color: #6B6B6B; }
.mp-search-soon .mp-search-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.mp-search-soon .mp-search-btn { text-decoration: none; display: inline-block; }

/* v1.5.1 — entity footer (NAP) legibility on dark footer: white text, gold links */
.agentspot-entity-footer { color: #FFFFFF !important; }
.agentspot-entity-footer a { color: #C5A95F !important; text-decoration: none; }
.agentspot-entity-footer a:hover { color: #FFFFFF !important; text-decoration: underline; }
