@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,300&display=swap');

:root {
    --primary-color: #0aafee;
    --secondary-color: #99ff02;
    --background-color: #f4f4f4;
    --vermelho-color: #ff0100;
    --text-color: #333;
    --font-poppins: "Poppins", sans-serif;
    --font-size-base: 16px;
    --border-radius: 4px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --padding: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-poppins);
}

body {
    font-size: var(--font-size-base);
    color: var(--text-color);
    background-color: var(--primary-color);
}

header .logo {
    width: 90px;
}

header {
    width: 100%;
    z-index: 0;
}

header nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--background-color);
    color: var(--text-color);
    padding: .5rem;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav ul li {
    padding: 5px 10px;
}

header nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

header nav a:hover {
    color: var(--primary-color);
}

header nav .active {
    color: var(--primary-color);
    font-weight: 600;
}

.slideshow {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    z-index: 1;
}

.slideshow .slide {
    font-weight: 600;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* animation: opacity 1s ease-in-out forwards; */
    transition: opacity 1s ease-in-out;
}

.slideshow .slide.active {
    opacity: 1;
}

.slideshow img {
    width: 100%;
    height: auto;
    display: block;
}

.slide-caption {
    position: absolute;
    left: 20%;
    top: 20%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    transition: opacity 1s ease-in-out;
}

.slide-title {
    font-family: "Oswald", sans-serif;
    font-size: 3.2rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 8px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-subtitle {
    font-family: "Poppins", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.search-form {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 400px;
    gap: 10px;
    background: rgba(10, 175, 238, 0.5);
    padding: 18px 22px;
    /* border-radius: 8px; */
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.search-form select,
.search-form input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: none;
    /* border-radius: 4px; */
    font-size: 1rem;
    outline: none;
}

.search-form button {
    background: var(--secondary-color);
    color: var(--text-color);
    width: 100%;
    border: none;
    /* border-radius: 4px; */
    padding: 8px 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background 0.2s;
}

.search-form button:hover {
    background: #bfff4d;
}

.container__main {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to top, var(--background-color), var(--primary-color));
}

.sobre {
    width: 100%;
    padding: 2rem;
    /* background-color: var(--primary-color); */
    color: var(--background-color);
    z-index: 4;
}

footer {
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

@keyframes slide {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    20% {
        opacity: 1;
        transform: translateX(0);
    }

    80% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes background {
    0% {
        background-color: rgba(10, 175, 238, 0.5);
    }

    50% {
        background-color: rgba(10, 175, 238, 0.7);
    }

    100% {
        background-color: rgba(10, 175, 238, 0.5);
    }

}

@keyframes opacity {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
/*---------------------- até aqui herdado de danilo ---------------------*/
/* Animações básicas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animação no scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Estatísticas */
.stat-card {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(10, 175, 238, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #0aafee;
    transition: all 0.3s ease;
}

.stat-text {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Seção de benefícios */
.benefit-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

/* Botões */
.btn-primary {
    background-color: #0aafee;
    border-color: #0aafee;
    border-radius: 25px;
    padding: 0.7rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0891c7;
    border-color: #0891c7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 175, 238, 0.3);
}

/* Cards de imóveis - estilo imoveis.php */
.imovel-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(10, 175, 238, 0.08);
    transition: transform .2s;
    background: #fff;
    cursor: pointer;
}

.imovel-card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Rodapé */
.main-footer {
    background: #2c3e50;
    color: white;
}

.footer-content {
    padding: 3rem 0 2rem;
}

.footer-title {
    color: #0aafee;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0aafee;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.contact-info i {
    color: #0aafee;
    margin-right: 0.5rem;
    width: 20px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.social-link:hover {
    color: #0aafee;
    transform: translateX(5px);
}

.social-link i {
    margin-right: 0.5rem;
    width: 20px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: #bdc3c7;
}

.footer-bottom a {
    color: #0aafee;
    text-decoration: none;
}

/* Efeito de digitação no carrossel */
.slide-title, .slide-subtitle {
    opacity: 1;
}

/* Efeito de máquina de escrever - cursor piscante */
.slide-title, .slide-subtitle {
    position: relative;
}

.slide-title.typing::after,
.slide-subtitle.typing::after {
    content: '|';
    font-weight: normal;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { 
        opacity: 1; 
    }
    51%, 100% { 
        opacity: 0; 
    }
}

/* Garantir que o texto dos slides começa invisível */
.slide:not(.active) .slide-title,
.slide:not(.active) .slide-subtitle {
    opacity: 0;
}

.slide.active .slide-title,
.slide.active .slide-subtitle {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Melhorar transição entre slides */
.slide {
    transition: all 0.5s ease-in-out;
}

.slide.active {
    z-index: 2;
}

/* Efeito suave para aparecer o texto */
.slide-title, .slide-subtitle {
    min-height: 1.2em; /* Evita pulos de layout */
}

/* Animação suave para cards no scroll 
.property-card-wrapper {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.property-card-wrapper.animate {
    opacity: 1;
    transform: translateY(0);
}*/
.estatisticas {
    width: 100%;
    padding: 2rem;
    background-color: var(--background-color);
    color: var(--text-color);
}
.financiamento {
    width: 100%;
    padding: 2rem;
    background-color: linear-gradient(var(--primary-color), var(--background-color));
    color: var(--text-color);
}
.empreendimentos {
    width: 100%;
    padding: 2rem;
    background-color: var(--background-color);
    color: var(--text-color);
    z-index: 4;
}
/* Animação suave para empreendimentos no scroll */
.empreendimento-wrapper {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.empreendimento-wrapper.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Melhorar transição dos cards de empreendimentos */
.empreendimento-card {
    transition: all 0.3s ease;
}

.empreendimento-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Responsivo */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 800px) {
    .search-form {
        flex-direction: column;
        top: 10px;
        right: 10px;
        padding: 12px 10px;
        gap: 8px;
    }

    .slide-caption {
        left: 30%;
        top: 15%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 600px) {
    .slide-caption {
        left: 22%;
        top: 12%;
        transform: translate(-50%, -50%);
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .slide-subtitle {
        font-size: 1rem;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        padding: 10px 0;
    }
}