/* Declaração da fonte Poppins localmente */
@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


:root {
    --azul-marinho: #0a2342;
    --amarelo-forte: #ffd700;
    --preto: #000;
    --cinza-escuro: #333;
    --cinza-claro: #f0f0f0;
    --branco: #fff;
    --cor-destaque: #e63946;
    --cor-texto-principal: #1d3557;
    --verde-whatsapp: #25D366;
}

/* Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}



/* --- Estilos para a Página da Construtora --- */
body {
    background-color: var(--branco);
}


.header {
    position: fixed;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 2rem;
    background: transparent;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-radius: 50px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 65px;
    width: auto;
}

.navbar {
    display: flex;
    gap: 1rem;
}

.navbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: var(--preto);
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.navbar a i {
    font-size: 1.2rem;
}

.navbar a span {
    font-size: 0.8rem;
}

.navbar a:hover {
    color: var(--amarelo-forte);
    transform: translateY(-2px);
}

.header-right .btn-favoritos {
    background-color: var(--azul-marinho);
    color: var(--branco);
    padding: clamp(0.4rem, 1.5vw, 0.6rem) clamp(0.8rem, 2.5vw, 1.2rem);
    border-radius: 10px;
    font-weight: 600;
    font-size: clamp(0.8rem, 2vw, 1rem);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
}

.header-right .btn-favoritos:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(10, 35, 66, 0.2);
    background-color: var(--amarelo-forte);
    color: var(--preto);
}

.mobile-menu-icon {
    display: none;
    /* Oculto em desktop */
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--amarelo-forte);
}


/* =================================
   NOVO MENU DROPDOWN (HAMBÚRGUER)
   ================================= */
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Container principal do menu dropdown */
.mobile-dropdown-menu {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(233, 231, 231, 0.95);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.98);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

/* Estado ativo do menu */
.mobile-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Cabeçalho do menu (logo e botão de fechar) */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-logo {
    height: 80px;
    width: auto;
}

.close-menu-icon {
    font-size: 1.8rem;
    color: var(--cinza-escuro);
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}

.close-menu-icon:hover {
    color: var(--cor-destaque);
    transform: rotate(90deg);
}

/* Navegação dentro do menu */
.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--cor-texto-principal);
    /* Adicionado 'color' para uma transição suave */
    transition: background-color 0.3s, padding-left 0.3s, color 0.3s;
}

.menu-nav a:hover {
    background-color: var(--azul-marinho);
    /* Fundo azul escuro */
    color: var(--amarelo-forte);
    /* Texto fica amarelo */
    padding-left: 1.5rem;
}

.menu-nav a:hover i {
    color: var(--amarelo-forte);
    /* Ícone também fica amarelo */
}

.menu-nav a i {
    font-size: 1.2rem;
    color: var(--azul-marinho);
    width: 20px;
    text-align: center;
    /* Adicionado para uma transição suave */
    transition: color 0.3s;
}

@media (max-width: 990px) {

    .navbar,
    .header-right {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    .sidebar {
        width: 70%;
        height: 80vh;
    }
}

@media (max-width: 405px) {
    .menu-footer {
        flex-direction: column; /* Empilha os itens verticalmente */
        align-items: center;    /* Centraliza tudo */
        gap: 1.5rem;            /* Adiciona um bom espaço entre o botão e os ícones */
    }

    .social-links-menu a {
        margin-left: 0.8rem; /* Aumenta o espaço entre os ícones sociais */
    }
}


/* Rodapé do menu (localização e redes sociais) */
.menu-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.mobile-dropdown-menu .menu-footer .btn-agendar-reuniao-mobile {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--azul-marinho);
    /* Cor de texto escura */
    border-radius: 10px;
    border: 2px solid var(--azul-marinho);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.mobile-dropdown-menu .menu-footer .btn-agendar-reuniao-mobile:hover {
    background-color: var(--azul-marinho);
    color: var(--branco);
    /* Muda a cor do texto para branco ao passar o mouse */
}

.mobile-dropdown-menu .menu-footer .btn-agendar-reuniao-mobile i {
    margin-right: 8px;
    font-size: 1.2rem;
    color: #25D366;
    /* Cor do WhatsApp */
}



.social-links-menu a {
    font-size: 1.5rem;
    color: var(--cor-texto-principal);
    background-color: #e9ecef;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--cor-texto-principal);
    margin: 0 0.3rem;
    box-shadow: 0 4px 0 #adb5bd;
    position: relative;
    top: 0;
    transition: top 0.15s ease, box-shadow 0.15s ease, background-color 0.3s, color 0.3s;
}

.social-links-menu {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.social-links-menu a:hover {
    color: var(--amarelo-forte);
    background-color: var(--azul-marinho);
    top: 2px;
    box-shadow: 0 2px 0 #adb5bd;
    border: 2px solid var(--amarelo-forte);
}


/* --- Seção Hero --- */
#construtora-hero {
    position: relative;
    height: 100vh; /* Ocupa a tela inteira */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.construtora-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra tudo sem distorcer */
    z-index: -1;
    filter: brightness(0.9); /* Escurece a imagem para o texto ficar legível */
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 6rem); /* Fonte fluida */
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.hero-content p {
    font-size: clamp(1.1rem, 3vw, 1.4rem); /* Fonte fluida */
    line-height: 1.6;
    font-weight: bold;
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: 2px solid #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-instagram:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.btn-instagram i {
    font-size: 1.5rem;
    margin-right: 12px;
}

/* --- Seção de Projetos --- */
#projetos-construtora {
    padding: 100px 4%;
    background-color: var(--branco);
}

.projetos-titulo {
    text-align: center;
    margin-bottom: 60px;
}

.projetos-titulo h2 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--azul-marinho);
    font-weight: 700;
}

.projetos-titulo p {
    font-size: 1.3rem;
    color: var(--azul-marinho);
    margin-top: 10px;
}

.projetos-grid {
    display: grid;
    /* Grid fluido: cria colunas de no mínimo 300px e no máximo 1fr */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.projeto-card {
    position: relative;
    aspect-ratio: 4 / 3; /* Proporção retangular (4:3) */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.7);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
}

.projeto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.2);
}

.projeto-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.projeto-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Alinha o botão na parte de baixo */
    padding-bottom: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.projeto-card:hover .card-overlay {
    opacity: 1;
}

.btn-card-saiba-mais {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid #fff;
    font-weight: 600;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
}

.btn-card-saiba-mais:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.btn-card-saiba-mais i {
    margin-right: 8px;
}

/* Animação de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
=================================
    FOOTER INSTITUCIONAL
=================================
*/
.footer-main {
    background: linear-gradient(135deg, #0a2342, #0d2c54);
    color: var(--cinza-claro);
    padding: 3rem 0;
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

.footer-col .logo-footer-img {
    max-width: 100px;
}

.footer-col .tagline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--branco);
    margin-top: 0;
    margin-bottom: 1.5rem;
    cursor: default;
}

.footer-col-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    max-width: 180px;
    /* Ajuste o tamanho conforme necessário */
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    font-size: 1.3rem;
    color: var(--branco);
    margin-bottom: 1.5rem;
    position: relative;
    font-weight: 600;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--amarelo-forte);
}

.footer-col p,
.footer-col ul li {
    color: #ccc;
    line-height: 1.8;
    font-size: 0.95rem;
    cursor: pointer;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-col ul li a:hover {
    color: var(--amarelo-forte);
    padding-left: 5px;
}

.footer-col ul li i {
    margin-right: 10px;
    width: 15px;
    text-align: center;
    color: var(--amarelo-forte);
}

.footer-col .contact-info li {
    transition: color 0.3s, padding-left 0.3s;
}

/* Aplica o efeito ao passar o mouse */
.footer-col .contact-info li:hover {
    color: var(--amarelo-forte);
    padding-left: 5px;
}


.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--branco);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s;
}

.social-links a:hover {
    background-color: var(--amarelo-forte);
    color: var(--azul-marinho);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    /* Aumenta um pouco o padding superior */
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: #aaa;
    font-size: 0.9rem;
}