/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    overflow-x: hidden;
}

/* Container dentro do header precisa permitir overflow vertical */
.header .container {
    overflow: visible;
}

/* Header */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #334155;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: visible; /* Permite dropdown aparecer */
    will-change: transform; /* Otimiza performance do fixed */
    transform: translateZ(0); /* Força aceleração de hardware */
    -webkit-backface-visibility: hidden; /* Evita flickering no Safari */
    backface-visibility: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    overflow: visible; /* Permite dropdown aparecer */
}

.logo-img {
    height: 2.5rem;
}

.nav-desktop {
    display: none;
    gap: 2rem;
    align-items: center;
    overflow: visible; /* Permite dropdown aparecer */
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: #0ea5e9;
}

/* Dropdown Menu - VERSÃO CORRIGIDA COM PONTE INVISÍVEL */
.dropdown {
    position: relative;
    overflow: visible; /* Garante que o dropdown não seja cortado */
}

.dropbtn {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.dropbtn:hover {
    color: #0ea5e9;
}

.dropbtn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Remove o espaço - cola no botão */
    left: 50%;
    transform: translateX(-50%); /* Centraliza o dropdown */
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid #334155;
    border-radius: 12px;
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    padding: 8px 0;
    margin-top: 8px; /* Pequeno espaço visual */
    animation: fadeInDropdown 0.3s ease;
    overflow: visible;
}

/* Ponte invisível para manter o hover */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px; /* Cobre o espaço até o botão */
    left: 0;
    right: 0;
    height: 8px; /* Altura da ponte */
    background: transparent; /* Invisível */
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-content a {
    color: #e2e8f0;
    padding: 14px 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none;
    border-left: 3px solid transparent;
}

.dropdown-content a:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-content a:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-content a i {
    color: #0ea5e9;
    width: 22px;
    text-align: center;
    font-size: 1.1rem;
}

.dropdown-content a:hover {
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
    border-left-color: #0ea5e9;
    padding-left: 28px;
}

/* Show dropdown on hover - mantém aberto ao passar mouse */
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
}

/* Venda de Empresas Destaque */
.nav-link-destaque {
    color: #f59e0b !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link-destaque:hover {
    color: #d97706 !important;
}

.search-container {
    display: none;
}

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.875rem;
}

.search-input {
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 0.375rem;
    color: #ffffff;
    width: 200px;
}

.search-input::placeholder {
    color: #9ca3af;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #334155;
}

.mobile-menu.active {
    display: block;
}

.nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-link-mobile {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-link-mobile:hover {
    color: #0ea5e9;
}

.search-box-mobile {
    position: relative;
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    padding: 8rem 1rem 5rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-highlight {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #0ea5e9;
    color: #0ea5e9;
    background: transparent;
}

.btn-outline:hover {
    background: #0ea5e9;
    color: #ffffff;
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
}

.btn-whatsapp:hover {
    background: #128c7e;
}

.btn-full {
    width: 100%;
}

/* Estatísticas */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0ea5e9;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #d1d5db;
    font-size: 0.875rem;
}

/* Seções */
.services, .about, .contact {
    padding: 5rem 1rem;
}

.services {
    background: rgba(30, 41, 59, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
    max-width: 32rem;
    margin: 0 auto;
}

/* Serviços */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #0ea5e9;
    transform: translateY(-4px);
}

.service-icon {
    color: #0ea5e9;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-description {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    background: #0ea5e9;
    border-radius: 50%;
}

.cta-section {
    text-align: center;
}

.cta-card {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #334155;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cta-description {
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

/* Galeria */
.gallery {
    padding: 5rem 1rem;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #0ea5e9;
    background: transparent;
    color: #0ea5e9;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #0ea5e9;
    color: #ffffff;
}

.properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.property-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #334155;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.property-card:hover {
    border-color: #0ea5e9;
    transform: translateY(-4px);
}

.property-image {
    height: 12rem;
    background: linear-gradient(135deg, #334155, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.property-image i {
    font-size: 4rem;
    color: #0ea5e9;
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #0ea5e9;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.property-content {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0ea5e9;
    margin-bottom: 0.5rem;
}

.property-location {
    color: #9ca3af;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.property-description {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.property-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.property-buttons {
    display: flex;
    gap: 0.5rem;
}

.property-buttons .btn {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Sobre */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    text-align: center;
}

.about-item {
    margin-bottom: 2rem;
    text-align: center;
}

.about-item-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.about-item-text {
    color: #d1d5db;
    text-align: center;
}

.values-list {
    list-style: none;
}

.values-list li {
    color: #d1d5db;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.values-list i {
    color: #0ea5e9;
}

.team {
    margin-top: 4rem;
}

.team-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.team-member {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

.team-avatar {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.team-avatar i {
    font-size: 2.5rem;
    color: #ffffff;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-role {
    color: #0ea5e9;
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-description {
    color: #d1d5db;
}

/* Contato */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.contact-info-description {
    color: #d1d5db;
    margin-bottom: 2rem;
}

.contact-items {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    background: #0ea5e9;
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: #ffffff;
    font-size: 1.25rem;
}

.contact-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: #0ea5e9;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-note {
    color: #9ca3af;
    font-size: 0.875rem;
}

.quick-actions-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.quick-actions-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.contact-form-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 0.375rem;
    color: #ffffff;
    font-size: 1rem;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #0f172a;
    border-top: 1px solid #334155;
    padding: 2rem 1rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #0ea5e9;
}

.footer-copyright {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsividade para tablets e desktop */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .search-container {
        display: block;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters {
        flex-direction: row;
        justify-content: center;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.property-card,
.team-member {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: forwards; /* Mantém o estado final */
    will-change: opacity, transform; /* Otimiza performance */
}

/* Desabilita animação após primeira execução para evitar piscamento */
.service-card.animated,
.property-card.animated,
.team-member.animated {
    animation: none;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Estados de hover melhorados */
.service-card:hover,
.property-card:hover,
.team-member:hover {
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.1);
}

/* Utilitários */
.hidden {
    display: none !important;
}

/* ============================================
   ESTILOS DO SLIDER DE BANNERS
   ============================================ */

.hero-slider {
    position: relative;
    padding-top: 70px;
    overflow: hidden;
    height: 670px; /* 600px de conteúdo + 70px de padding-top */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #f1f5f9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.slider-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-control.prev {
    left: 2rem;
}

.slider-control.next {
    right: 2rem;
}

.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* Estatísticas após o slider */
.hero-slider .stats {
    margin-top: 3rem;
    padding: 2rem 1rem;
}

/* Responsivo para o slider */
@media (max-width: 768px) {
    .slider-container {
        height: 500px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .slider-control {
        font-size: 1.5rem;
        padding: 0.75rem 1rem;
    }
    
    .slider-control.prev {
        left: 1rem;
    }
    
    .slider-control.next {
        right: 1rem;
    }
    
    .slide-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 400px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-subtitle {
        font-size: 0.9rem;
    }
    
    .slider-control {
        font-size: 1.2rem;
        padding: 0.5rem 0.75rem;
    }
    
    .slider-control.prev {
        left: 0.5rem;
    }
    
    .slider-control.next {
        right: 0.5rem;
    }
}

/* Galeria de Imóveis - Grid Layout */
.imoveis-section {
    padding: 100px 20px 60px;
    min-height: 100vh;
    background: #0f172a;
}

.imoveis-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: #1e293b;
    color: white;
    border: 2px solid #334155;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #334155;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
}

.imoveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.imovel-card {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid #334155;
    position: relative;
}

.imovel-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.imovel-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #0ea5e9 0%, #d97706 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
}

.imovel-tipo {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.imovel-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #0f172a;
}

.imovel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.imovel-card:hover .imovel-image img {
    transform: scale(1.1);
}

.imovel-content {
    padding: 20px;
}

.imovel-titulo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
    line-height: 1.3;
    min-height: 52px;
}

.imovel-preco {
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 12px;
}

.imovel-localizacao {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 12px;
}

.imovel-localizacao i {
    color: #3b82f6;
}

.imovel-descricao {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    min-height: 65px;
}

.imovel-fotos-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0f172a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.imovel-fotos-count i {
    color: #3b82f6;
}

.imovel-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.imovel-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.imovel-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.imovel-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.4);
}

.imovel-btn-secondary {
    background: #334155;
    color: white;
}

.imovel-btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
}

/* Responsivo */
@media (max-width: 768px) {
    .imoveis-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .imovel-titulo {
        font-size: 18px;
        min-height: auto;
    }
    
    .imovel-preco {
        font-size: 20px;
    }
    
    .imovel-buttons {
        flex-direction: column;
    }
}

/* Ajustes responsivos para seção Sobre */
@media (max-width: 768px) {
    .about-content {
        padding: 20px !important;
        max-width: 100% !important;
    }
    
    .about-item {
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .about-content {
        padding: 15px !important;
    }
    
    .about-item {
        padding: 15px !important;
    }
}


/* Correções de Layout Mobile - Valores e Geral */
@media (max-width: 768px) {
    /* Grid de Valores - Forçar 1 coluna */
    .valores-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Container da seção Missão e Valores - Reduzir padding drasticamente */
    div[style*="padding: 60px 80px"] {
        padding: 30px 15px !important;
    }
    
    /* Ajustar padding lateral geral - Remover completamente no mobile */
    div[style*="padding: 0 10%"] {
        padding: 0 15px !important;
    }
}

@media (max-width: 480px) {
    /* Grid de Valores - Mobile pequeno */
    .valores-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Reduzir padding em telas muito pequenas */
    div[style*="padding: 60px 80px"] {
        padding: 20px 10px !important;
    }
    
    /* Ajustar tamanho de fonte dos títulos */
    h3[style*="font-size: 2.2rem"] {
        font-size: 1.6rem !important;
    }
    
    /* Ajustar padding lateral para mobile */
    div[style*="padding: 0 10%"] {
        padding: 0 10px !important;
    }
    
    /* Cards de valores - garantir que não ultrapassem */
    .valores-grid > div {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Garantir que nada cause overflow horizontal */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Correção para todos os grids com auto-fit */
@media (max-width: 768px) {
    div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
}

/* Garantir que body não tenha scroll horizontal */
body, html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}
