/* =======================================================
   HOME LANÇAMENTOS INVEXO — Page Template
   Mobile first | BEM | Prefixo invhome-
   Identidade dourada/preta + Cinzel/Montserrat
   ======================================================= */

:root {
    --accent: #d4af37;
    --accent-hover: #c19b26;
    --whatsapp: #25d366;
    --whatsapp-hover: #20bd5a;
    --black: #000;
    --dark: #1a1a1a;
    --gray-900: #222;
    --gray-700: #444;
    --gray-500: #777;
    --gray-300: #ccc;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --gray-50: #fafafa;
    --white: #fff;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --radius: 6px;
    --radius-lg: 10px;
}

/* ===== RESET KADENCE ===== */
body.invhome-page {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
    background: var(--gray-50);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-900);
}
body.invhome-page *,
body.invhome-page *::before,
body.invhome-page *::after { box-sizing: border-box; }
body.invhome-page img { max-width: 100%; height: auto; display: block; }
body.invhome-page a { text-decoration: none; color: inherit; }

/* Esconde Kadence header/footer */
body.invhome-page #masthead,
body.invhome-page .site-header:not(.invhome-header),
body.invhome-page header.banner,
body.invhome-page .entry-header,
body.invhome-page .entry-hero,
body.invhome-page .entry-meta,
body.invhome-page .entry-footer,
body.invhome-page .comments-area,
body.invhome-page .sidebar,
body.invhome-page .site-footer,
body.invhome-page footer.site-footer,
body.invhome-page .site-above-footer-wrap,
body.invhome-page .site-below-footer-wrap {
    display: none !important;
}
body.invhome-page .site-container .site-inner-wrap,
body.invhome-page .entry-content-wrap,
body.invhome-page .content-wrap,
body.invhome-page .site-main,
body.invhome-page .content-area {
    max-width: 100%; width: 100%; float: none; padding: 0; margin: 0;
}

/* ===== HEADER STICKY ===== */
.invhome-header {
    background: var(--black);
    border-bottom: 1px solid #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 100;
}
.invhome-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.invhome-header__logo img {
    height: 44px;
    width: auto;
    display: block;
}
.invhome-header__nav-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
}
/* RESET AGRESSIVO — combate qualquer interferência do Kadence/wp_nav_menu */
body.invhome-page .invhome-header__nav,
body.invhome-page ul.invhome-header__nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 26px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
body.invhome-page .invhome-header__nav li,
body.invhome-page .invhome-header__nav .menu-item {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    position: relative;
    line-height: 1 !important;
}
body.invhome-page .invhome-header__nav li::before,
body.invhome-page .invhome-header__nav li::marker {
    content: none !important;
    display: none !important;
}
body.invhome-page .invhome-header__nav a {
    color: var(--white) !important;
    background: transparent !important;
    font-family: var(--font-body) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    border: 0 !important;
    box-shadow: none !important;
    line-height: 1.2 !important;
}
body.invhome-page .invhome-header__nav a:hover,
body.invhome-page .invhome-header__nav .current-menu-item > a,
body.invhome-page .invhome-header__nav .current_page_item > a,
body.invhome-page .invhome-header__nav .current-menu-ancestor > a {
    color: var(--accent) !important;
    background: transparent !important;
}
/* Submenus do wp_nav_menu (depth 2) */
body.invhome-page .invhome-header__nav .sub-menu,
body.invhome-page .invhome-header__nav .children {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: var(--dark) !important;
    padding: 8px 0 !important;
    min-width: 220px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4) !important;
    border-top: 2px solid var(--accent) !important;
    list-style: none !important;
    margin: 0 !important;
    flex-direction: column !important;
    gap: 0 !important;
    z-index: 110;
}
body.invhome-page .invhome-header__nav li:hover > .sub-menu,
body.invhome-page .invhome-header__nav li:hover > .children,
body.invhome-page .invhome-header__nav li:focus-within > .sub-menu,
body.invhome-page .invhome-header__nav li:focus-within > .children {
    display: flex !important;
}
body.invhome-page .invhome-header__nav .sub-menu li,
body.invhome-page .invhome-header__nav .children li {
    width: 100%;
}
body.invhome-page .invhome-header__nav .sub-menu a,
body.invhome-page .invhome-header__nav .children a {
    display: block !important;
    padding: 10px 18px !important;
    font-size: 0.74rem !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    width: 100%;
}
body.invhome-page .invhome-header__nav .sub-menu a:hover,
body.invhome-page .invhome-header__nav .children a:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    color: var(--accent) !important;
}

@media (max-width: 900px) {
    body.invhome-page .invhome-header__nav,
    body.invhome-page ul.invhome-header__nav { display: none !important; }
    .invhome-header__nav-wrap { display: none; }
    .invhome-header__inner { justify-content: flex-start; }
}

/* ===== HERO ===== */
.invhome-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 80px 24px 70px;
}
.invhome-hero__inner {
    max-width: 1100px;
    width: 100%;
}
.invhome-hero__tagline {
    font-size: 0.78rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 18px;
    font-weight: 500;
}
body.invhome-page .invhome-hero__title {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin: 0 0 24px;
    line-height: 1.25;
    color: var(--white);
    text-shadow: 0 2px 18px rgba(0,0,0,0.7);
    background: transparent !important;
}
.invhome-hero__title strong {
    color: var(--accent);
    font-weight: 600;
}
.invhome-hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.88);
    max-width: 820px;
    margin: 0 auto 38px;
    font-weight: 300;
    text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}
.invhome-hero__highlight {
    color: var(--accent);
    font-weight: 500;
}

/* Stats bar */
.invhome-hero__stats {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 720px;
    margin: 0 auto 38px;
    border-top: 1px solid rgba(255,255,255,0.18);
    border-bottom: 1px solid rgba(255,255,255,0.18);
    padding: 22px 0;
}
.invhome-stat {
    flex: 1 1 180px;
    text-align: center;
    padding: 6px 18px;
    position: relative;
    min-width: 140px;
}
.invhome-stat + .invhome-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255,255,255,0.18);
}
.invhome-stat__value {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--accent);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.invhome-stat__label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

/* CTAs hero */
.invhome-hero__cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.invhome-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 2px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    transition: all 0.25s;
}
.invhome-btn:hover {
    background: var(--accent);
    color: var(--black);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.32);
}
.invhome-btn--primary {
    background: var(--accent);
    color: var(--black);
    border-color: var(--accent);
}
.invhome-btn--primary:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
}

/* ===== LISTINGS SECTION ===== */
.invhome-listings {
    padding: 70px 0;
    background: var(--gray-50);
}
.invhome-listings--sc { background: var(--white); }
.invhome-listings--go { background: var(--gray-50); }

.invhome-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.invhome-section-header {
    text-align: center;
    margin: 0 auto 50px;
    max-width: 760px;
}
body.invhome-page .invhome-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gray-900);
    background: transparent !important;
    margin: 0 0 14px;
    position: relative;
    padding: 0 0 16px;
    line-height: 1.25;
    display: inline-block;
}
.invhome-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent);
}
.invhome-section-subtitle {
    font-size: 1rem;
    color: var(--gray-700);
    margin: 0;
    line-height: 1.7;
    font-weight: 400;
}

/* ===== GRID ===== */
.invhome-properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}
@media (min-width: 600px)  { .invhome-properties-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .invhome-properties-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .invhome-properties-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== CARD ===== */
.invhome-property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
}
.invhome-property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
    border-color: rgba(212,175,55,0.4);
}
.invhome-property-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gray-100);
    display: block;
}
body.invhome-page .invhome-property-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transition: transform 0.45s ease !important;
}
.invhome-property-card:hover .invhome-property-image img { transform: scale(1.06); }

.invhome-property-image__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--dark), var(--black));
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 4px;
}

.invhome-property-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--black);
    padding: 4px 11px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.invhome-property-info {
    padding: 18px 18px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.invhome-property-location {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin: 0 0 6px;
    font-weight: 500;
}
.invhome-property-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 8px;
    line-height: 1.3;
}
.invhome-property-description {
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.55;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.invhome-property-details {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--gray-700);
}
.invhome-property-details span {
    background: var(--gray-100);
    padding: 3px 8px;
    border-radius: 4px;
}

/* CTA "Ver todos os lançamentos" */
.invhome-section-cta {
    text-align: center;
    margin-top: 16px;
}
body.invhome-page .invhome-section-cta__btn,
body.invhome-page a.invhome-section-cta__btn {
    display: inline-block !important;
    padding: 14px 32px !important;
    background: var(--accent) !important;
    background-color: var(--accent) !important;
    color: var(--black) !important;
    border: 0 !important;
    border-radius: 50px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(212,175,55,0.25) !important;
}
body.invhome-page .invhome-section-cta__btn:hover,
body.invhome-page a.invhome-section-cta__btn:hover {
    background: var(--black) !important;
    background-color: var(--black) !important;
    color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.35) !important;
}

/* ===== CTA WHATSAPP ===== */
.invhome-cta {
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.invhome-cta__inner {
    max-width: 800px;
    margin: 0 auto;
}
body.invhome-page .invhome-cta__title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin: 0 0 16px;
    line-height: 1.3;
    color: #fff !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
body.invhome-page .invhome-cta__title mark,
body.invhome-page .invhome-cta__title span,
body.invhome-page .invhome-cta__title strong {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
}
.invhome-cta__text {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    max-width: 640px;
    margin: 0 auto 30px;
    line-height: 1.7;
}
.invhome-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--whatsapp);
    color: var(--white);
    padding: 16px 38px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.2s;
}
.invhome-cta__btn:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-2px);
    color: var(--white);
}

/* ===== FOOTER ===== */
.invhome-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    padding: 40px 20px;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid var(--accent);
}
.invhome-footer p {
    margin: 0 auto 8px;
    max-width: 1000px;
    line-height: 1.5;
}
.invhome-footer a {
    color: var(--accent) !important;
    text-decoration: underline !important;
}
.invhome-footer a:hover { color: var(--accent-hover) !important; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .invhome-header__inner { padding: 12px 16px; gap: 12px; }
    .invhome-header__logo img { height: 38px; }

    .invhome-hero { min-height: auto; padding: 60px 20px 50px; }
    .invhome-hero__title { letter-spacing: 2px; }
    .invhome-hero__cta { gap: 10px; }
    .invhome-btn { padding: 12px 24px; font-size: 0.74rem; }

    .invhome-listings { padding: 50px 0; }
    .invhome-section-header { margin-bottom: 36px; }

    .invhome-stat { flex: 1 1 100%; }
    .invhome-stat + .invhome-stat::before { display: none; }
}
