/* =============================================
   A+ BOUTIQUE — header-novo.css
   Paleta:
     Creme:        #EFE3C9
     Azul Petróleo:#06465E
     Azul Marinho: #191F39
============================================= */

/* ---- RESET / BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* =============================================
   HERO SECTION
============================================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ---- Ken Burns Background ---- */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    inset: -10%;          /* extra space for Ken Burns movement */
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes kenBurns {
    from { transform: scale(1.0) translateX(0px); }
    to   { transform: scale(1.1) translateX(-20px); }
}

/* ---- Overlay gradiente ---- */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(25, 31, 57, 0.55) 0%,
        rgba(25, 31, 57, 0.20) 40%,
        rgba(25, 31, 57, 0.60) 100%
    );
}

/* =============================================
   HEADER / NAV
============================================= */
.header-novo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
    /* Glassmorphism padrão */
    background: rgba(25, 31, 57, 0.20);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Quando rola a página — background sólido */
.header-novo.header-scrolled {
    background: rgba(25, 31, 57, 0.97);
    box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 80px;
}

/* Logo */
.header-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
    transition: opacity 0.3s;
}
.header-logo img:hover { opacity: 0.85; }

/* Nav */
.header-nav ul {
    display: flex;
    list-style: none;
    gap: 36px;
}

.header-nav ul li a {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #EFE3C9;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}

.header-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #EFE3C9;
    transition: width 0.35s ease;
}

.header-nav ul li a:hover { color: #fff; }
.header-nav ul li a:hover::after { width: 100%; }

/* CTA Button */
.btn-anunciar {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #EFE3C9;
    text-decoration: none;
    border: 1px solid rgba(239, 227, 201, 0.6);
    padding: 10px 24px;
    border-radius: 40px;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    white-space: nowrap;
}

.btn-anunciar:hover {
    background: #EFE3C9;
    color: #191F39;
    border-color: #EFE3C9;
}

/* Mobile button */
.btn-menu-mobile {
    display: none;
    background: none;
    border: none;
    color: #EFE3C9;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* =============================================
   HERO CONTENT (texto central)
============================================= */
.hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 40px;
    padding-top: 80px; /* header height */
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    max-width: 560px;
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #EFE3C9;
    opacity: 0.8;
    margin-bottom: 16px;
}

.hero-titulo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 500;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-titulo em {
    font-style: italic;
    color: #EFE3C9;
}

.hero-subtitulo {
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    max-width: 400px;
}

/* =============================================
   FILTRO FLUTUANTE
============================================= */
.filtro-flutuante {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 40px;
    padding-bottom: 50px;
    /* Flutua na base do hero, sobrepondo a próxima seção */
    margin-bottom: 10px;
    animation: fadeInUp 1s ease 0.6s both;
}

.filtro-form-novo {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(25, 31, 57, 0.25);
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 0;
    min-height: 80px;
    overflow: hidden;
}

/* Campos individuais */
.filtro-campo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 24px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 12px;
}

.filtro-campo:hover { background: rgba(6, 70, 94, 0.05); }

.filtro-campo label {
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #191F39;
    margin-bottom: 4px;
}

/* Bairro — ocupa mais espaço */
.filtro-campo--bairro { flex: 2; }
.filtro-campo--tipo   { flex: 1.2; }
.filtro-campo--contador { flex: 0.9; }

/* Input de bairro */
.filtro-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filtro-input-wrapper i {
    color: #06465E;
    font-size: 16px;
    flex-shrink: 0;
}

.filtro-campo input[type="text"] {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #191F39;
}

.filtro-campo input[type="text"]::placeholder {
    color: #9a9a9a;
    font-weight: 300;
}

/* Select de tipo */
.filtro-campo select {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #191F39;
    cursor: pointer;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2306465E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 20px;
}

/* Contador +/- */
.filtro-contador {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-contador {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #191F39;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.btn-contador:hover {
    border-color: #06465E;
    color: #06465E;
    background: rgba(6, 70, 94, 0.08);
}

.contador-valor {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #191F39;
    min-width: 52px;
    text-align: center;
}

/* Divisor vertical */
.filtro-divider {
    width: 1px;
    height: 40px;
    background: rgba(0,0,0,0.12);
    flex-shrink: 0;
}

/* Botão Buscar */
.filtro-btn-buscar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #06465E;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0 28px;
    height: 60px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
    margin: 8px;
    flex-shrink: 0;
}

.filtro-btn-buscar:hover {
    background: #191F39;
    transform: translateY(-1px);
}

.filtro-btn-buscar i { font-size: 16px; }

/* =============================================
   WHATSAPP FLOAT
============================================= */
.chat-button {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s;
}

.chat-button:hover { transform: scale(1.1); }

/* =============================================
   RESPONSIVO — TABLET
============================================= */
@media (max-width: 1024px) {
    .header-nav { display: none; }
    .btn-menu-mobile { display: block; }
    .header-cta { display: none; }

    .filtro-form-novo {
        flex-wrap: wrap;
        padding: 16px;
        gap: 12px;
        border-radius: 16px;
        min-height: auto;
    }

    .filtro-campo {
        padding: 8px 12px;
        flex: 1 1 calc(50% - 12px);
    }

    .filtro-campo--bairro { flex: 1 1 100%; }
    .filtro-divider { display: none; }

    .filtro-btn-buscar {
        flex: 1 1 100%;
        justify-content: center;
        height: 52px;
        margin: 0;
        border-radius: 12px;
    }

    .filtro-flutuante {
        margin-bottom: -20px;
        padding: 0 16px;
    }
}

/* =============================================
   RESPONSIVO — MOBILE
============================================= */
@media (max-width: 600px) {
    .header-inner {
        padding: 0 20px;
        height: 68px;
    }

    .hero-content {
        padding: 0 20px;
        padding-top: 68px;
        align-items: flex-end;
        padding-bottom: 24px;
    }

    .hero-titulo { font-size: 38px; }

    .hero-subtitulo { font-size: 15px; }

    .filtro-flutuante {
        padding: 0 12px;
        margin-bottom: -16px;
    }

    .filtro-campo {
        flex: 1 1 100%;
    }

    .filtro-campo--tipo,
    .filtro-campo--contador {
        flex: 1 1 calc(50% - 8px);
    }
}
