/* ===========================
   FONTE GLOBAL
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* ===========================
   NAVBAR
=========================== */
.navbar-gradient {
    background: linear-gradient(90deg, #4364F7, #6FB1FC);
    height: 90px;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo-destaque {
    height: 130px;
    max-width: 100%;
    position: absolute;
    left: 50%;
    top: 80%;
    transform: translate(-50%, -50%);
}

/* Hamburger menu direito */
.hamburger-menu {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
}

.hamburger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: rgba(255,255,255,0.8);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-options {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: #ffffffdd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 140px;
    flex-direction: column;
    z-index: 20;
}

.hamburger-options a {
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background 0.3s;
}

.hamburger-options a:hover {
    background-color: #f0f0f0;
}

/* Responsividade */
@media (max-width: 768px) {
    .logo-destaque {
        height: 100px;
    }
}

/* ===========================
   BANNER
=========================== */
.banner-gradient-inverted {
    background: linear-gradient(135deg, #4364F7, #6FB1FC);
    color: #000;
    border-radius: 1rem;
    height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease-in-out;
}

.banner-gradient-inverted h2,
.banner-gradient-inverted p {
    color: #000;
    margin: 0;
}

@media (max-width: 768px) {
    .banner-gradient-inverted {
        height: auto;
        padding: 1.5rem 1rem;
    }

    .banner-gradient-inverted h2 {
        font-size: 1.8rem;
    }

    .banner-gradient-inverted p {
        font-size: 1rem;
    }
}

/* ===========================
   ANIMAÇÕES
=========================== */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade.delay-1 { animation-delay: 0.2s; }
.animate-fade.delay-2 { animation-delay: 0.4s; }
.animate-fade.delay-3 { animation-delay: 0.6s; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.pulse-btn {
    animation: pulse 2s infinite;
}

/* ===========================
   CARDS DE IMÓVEIS
=========================== */
.card-hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
}

.card-hover img {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    object-fit: cover;
    height: 300px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.card-hover img:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.price-hover:hover {
    transform: scale(1.05);
    color: #ff6f61;
    transition: all 0.3s ease;
}

/* ===========================
   BOTÕES
=========================== */
.btn-primary {
    background: linear-gradient(90deg, #4364F7, #6FB1FC);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.btn-success {
    background: linear-gradient(90deg, #28a745, #71d88b);
    border: none;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* ===========================
   RODAPÉ
=========================== */
.footer-gradient img {
    height: 130px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .footer-gradient img {
        height: 90px;
    }
}

.footer-gradient {
    background: linear-gradient(90deg, #4364F7, #6FB1FC);
}

footer a {
    color: #fff;
    transition: all 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
}

/* ===========================
   ÍCONES SOCIAIS
=========================== */
#socialTicker a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 50%;
}

#socialTicker a img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
}

/* ===========================
   VÍDEO CARD
=========================== */
.video-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===========================
   ALERTS
=========================== */
.alert {
    border-radius: 1rem;
    font-weight: 500;
}

/* ===========================
   FORMULÁRIOS
=========================== */
input.form-control, textarea.form-control {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

input.form-control:focus, textarea.form-control:focus {
    border-color: #4364F7;
    box-shadow: 0 0 8px rgba(67,100,247,0.3);
}

/* ===========================
   OUTROS AJUSTES
=========================== */
h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.card-body h5 {
    font-weight: 600;
}

.text-success {
    font-weight: 700;
}

.carousel-item img {
    max-height: 600px;
    object-fit: contain;
}

/* ===========================
   RESPONSIVIDADE
=========================== */
@media (max-width: 768px) {
    .card-hover img {
        height: 270px;
    }

    .welcome-banner h1,
    .banner-gradient-inverted h1 {
        font-size: 2rem;
    }

    .welcome-banner p,
    .banner-gradient-inverted p {
        font-size: 1rem;
    }

    .logo-central {
        height: 100px;
    }

    .footer-gradient img {
        height: 60px;
    }
}

/* 🔧 Corrige desalinhamento entre cards de imóveis */
.card-title {
    min-height: 48px; /* define altura mínima do título */
    display: flex;
    align-items: center;
}

/* Mantém o botão e destaque sempre alinhados */
.property-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Numeração de fotos no carrossel */
.carousel-counter {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* Efeito de borda vermelha em formulários inválidos */
.is-invalid {
    border: 2px solid #dc3545 !important;
    box-shadow: 0 0 6px rgba(220, 53, 69, 0.4);
}

.vibrate {
    animation: vibrar 0.2s linear 2;
}

@keyframes vibrar {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
