/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS, RESETS E VARIÁVEIS DE IDENTIDADE
   ========================================================================== */
:root {
    --primary-color: #0E2A47;   /* Azul Escuro Corporativo (Confiança e Solidez) */
    --secondary-color: #B8893E; /* Dourado Imperial (Premium e Engenharia) */
    --bg-light: #F9F5F0;        /* Cinza Gelo / Creme Claro (Fundo Confortável) */
    --text-color: #333333;      /* Grafite Escuro (Excelente Leitura) */
    --text-muted: #666666;     /* Cinza Médio para descrições */
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Arial', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* CONTAINER PADRÃO DE DESIGN SYSTEM INTERFACE */
.interface-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.clear { clear: both; }

/* COMPONENTES COMPARTILHADOS (BADGES E SEÇÕES) */
.section-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    background-color: rgba(184, 137, 62, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-header-center h2 {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==========================================================================
   2. BOTÕES DO SISTEMA
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #966f2f;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #2e7d32;
    color: var(--white);
    font-size: 16px;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1b5e20;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
    transform: translateY(-3px);
}

/* ==========================================================================
   3. TOPO E MENU DE NAVEGACAO (HEADER)
   ========================================================================== */
.site-header {
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 80px;
}

.site-navigation ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-navigation a {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
}

.site-navigation a:hover {
    color: var(--secondary-color);
}

.site-navigation .nav-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 4px;
}

.site-navigation .nav-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* ==========================================================================
   4. BANNER HERO
   ========================================================================== */
.hero-section {
    background: linear-gradient(rgba(14, 42, 71, 0.85), rgba(14, 42, 71, 0.95)), url('../img/hero-bg.jpg') no-repeat center center / cover;
    padding: 140px 0;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: #e2ded9;
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   5. SEÇÃO QUEM SOMOS (ABOUT)
   ========================================================================== */
.about-section {
    padding: 80px 0;
}

.grid-two-columns {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Dá sutilmente mais espaço para o texto */
    gap: 40px; /* Cria um vão confortável entre o texto e a imagem */
    align-items: center;
}

/* ⚡ FIX CORREÇÃO DA BORDA: Garante que o contêiner de imagem respeite 
   o grid interno e nunca encoste na lateral esquerda ou direita do monitor */
.about-image-container {
    width: 100%;
    height: 340px; /* Reduzida a altura para não ocupar a tela inteira */
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.about-text p {
    margin-bottom: 18px;
    color: var(--text-color);
    text-align: justify;
}

/* ==========================================================================
   6. SEÇÃO SERVIÇOS (ALINHAMENTO EM COLUNAS GARANTIDO)
   ========================================================================== */
/* ===== Seção ===== */
.services-section {
    background-color: var(--bg-light);
    padding: 80px 0;
    width: 100%;
}

/* ===== Grid (agora só 1 card) ===== */
.services-grid {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ===== Card ===== */
.service-card {
    width: 100%;
    max-width: 900px; /* controla o tamanho do card */
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform .3s, box-shadow .3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* ===== Imagem ===== */
.service-img {
    width: 100%;
    height: 550px; /* aumentei a altura */
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}



.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* mantém paisagem sem distorcer */
    display: block;
}


/* ==========================================================================
   7. SEÇÃO PORTFÓLIO / OBRAS (CORRIGIDA: IMAGENS MAIS COMPACTAS E SIMÉTRICAS)
   ========================================================================== */

.portfolio-section {
    padding: 80px 0;
}

/* Mudamos de 2 para 3 colunas para que as fotos dos prédios fiquem 
   menores, mais elegantes e caibam mais obras lado a lado na mesma linha */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.portfolio-item {
    background-color: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #eee; /* Linha sutil de acabamento */
}

/* ⚡ FIX ALTURA DAS OBRAS: Encurtamos de 260px para 190px para que a foto do edifício 
   fique compacta, moderna e não exija que o síndico role muito a tela */
.portfolio-img-container {
    width: 100%;
    height: 190px; 
    overflow: hidden;
    background-color: var(--bg-light);
}

.portfolio-info {
    padding: 15px;
}

.portfolio-info h4 {
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 4px;
    line-height: 1.3;
}

.portfolio-info p {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ==========================================================================
   8. SEÇÃO CONTATO E CONVERSÃO
   ========================================================================== */
.contact-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 100px 0;
}

.contact-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.contact-section p {
    font-size: 18px;
    color: #e2ded9;
    margin-bottom: 40px;
}

/* ==========================================================================
   9. RODAPÉ DO SITE (FOOTER)
   ========================================================================== */
.site-footer {
    background-color: #081b30;
    color: #e2ded9;
    padding: 40px 0;
    font-size: 13px;
}

/* ==========================================================================
   10. DISPOSITIVOS MÓVEIS (RESPONSIVIDADE COMPLETA - CHAVES CORRIGIDAS)
   ========================================================================== */
@media (max-width: 992px) {
    .grid-two-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-image-placeholder .image-box {
        border-radius: 8px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .services-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .contact-section h2 {
        font-size: 28px;
    }
} /* ⚡ CHAVE DE FECHAMENTO CORRIGIDA AQUI: Isola o ambiente móvel com segurança */

/* ==========================================================================
   11. CALIBRAÇÃO DE IMAGENS (FOTOS DOS EDIFÍCIOS RETRATO INTEIRAS)
   ========================================================================== */
.about-image-container,
.portfolio-img-container {
    width: 100%;
    overflow: hidden;
    background-color: #06152B; /* Fundo institucional escuro para as abas verticais */
}

/* 11.1 Imagem institucional da Esquerda (Mantém cover para preenchimento simétrico) */
.about-image-container {
    height: 340px;
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
}
.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta as laterais mantendo a altura simétrica com o texto */
}

/* 11.2 Imagens do Portfólio das Obras (Ajustadas para exibir o Prédio INTEIRO) */
.portfolio-img-container {
    height: 340px;
}

/* ⚡ FIX DO CORTE: Fora do @media query, o contain funcionará em computadores e celulares.
   O prédio encolhe proporcionalmente e aparece completo do chão ao topo sem nenhuma perda. */
.portfolio-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    transition: var(--transition);
}

/* Efeito sutil de aproximação mantido ao passar o mouse */
.portfolio-item:hover .portfolio-img-container img {
    transform: scale(1.04);
}

.extra-contact-section {
    
    padding: 35px 0;
    color: #fff;
    margin-top: 35px;
    border-radius: 10px;
}

.contact-title {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-items {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.contact-icon {
    font-size: 22px;
}

}
