/* ✅ CORREÇÃO 1: Variáveis CSS definidas aqui no :root
   Antes estavam sendo USADAS (var(--primary-color)) mas nunca DEFINIDAS,
   por isso o site ficava sem cores (fundo branco, texto preto) */

:root {
    --primary-color: #f59e0b;       /* Amarelo/laranja - cor principal */
    --secondary-color: #d97706;     /* Laranja escuro - cor secundária */
    --escuro-color: #0f172a;        /* Fundo azul muito escuro */
    --claro-color: #e2e8f0;         /* Texto claro */
    --vidro: rgba(255, 255, 255, 0.1); /* Borda estilo vidro */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--escuro-color);
    color: var(--claro-color);
}

/* NAVBAR */
.navegacao {
    position: fixed;
    top: 0;
    background: rgba(15, 23, 42, 0.8);
    width: 100%;
    z-index: 100;
    padding: 1.5rem;
}

.menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 3rem;
}

.menu-link {
    text-decoration: none;
    color: var(--claro-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.menu-link::after {
    content: '';
    height: 2px;
    width: 0%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
}

.menu-link:hover::after {
    width: 100%;
}

/* HERO / CABEÇALHO */
.cabecalho {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-image: url('./assets/Casa\ do\ Construtor.png');
    background-size: cover;
    background-position: center 10%;
}

.conteudo-acessivel {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 20px;
    text-align: center;
}

.cabecalho-sub-titulo {
    font-size: 1.5rem;
    color: var(--claro-color);
    text-align: center;
}

/* SEÇÃO SOBRE / MISSÃO / SERVIÇOS */
.sobre {
    padding: 6rem 2rem;
}

.sobre-titulo {
    font-size: 3rem;
    color: var(--claro-color);
    text-align: center;
    margin-bottom: 20px;
}

.sobre-caixa {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--vidro);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

.sobre-paragrafo {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.7rem;
}

/* ✅ Estilo para a lista de serviços */
.lista-servicos {
    list-style: none;
    margin-top: 1.5rem;
}

.lista-servicos li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--vidro);
    font-size: 1.1rem;
    text-align: center;
}

.lista-servicos li:last-child {
    border-bottom: none;
}

/* SEÇÃO PROJETOS / EQUIPAMENTOS */
.projetos {
    padding: 6rem 2rem;
}

/* ✅ CORREÇÃO 4: classe "projetos-caixa" — agora o HTML usa o mesmo nome */
.projetos-caixa {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ✅ CORREÇÃO 4: classe "projeto-card" — agora o HTML usa o mesmo nome */
.projeto-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--vidro);
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
}

.projetos-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--claro-color);
}

/* ✅ CORREÇÃO 4: hover agora no nome certo "projeto-card" */
.projeto-card:hover {
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-10px) scale(1.03);
}

/* ✅ CORREÇÃO 7: todas as imagens dos cards usam esta classe agora */
.projetos-imagem {
    height: 220px;  /* ✅ Altura reduzida — antes estava 500px (muito grande!) */
    width: 100%;
    object-fit: contain;
    background-color: #ffffff;
    padding: 1rem;
}

.caixa-texto-projetos {
    padding: 1.5rem;
}

.paragrafo-projetos {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.5rem;
    margin-top: 5px;
}

.info-projeto {
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* SEÇÃO CONTATO */
.contato {
    padding: 6rem 2rem;
}

.contato-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--claro-color);
}

.formulario-contato {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(247, 242, 242, 0.05);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border: 1px solid var(--vidro);
    border-radius: 16px;
}

.campo-form {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--claro-color);
    border: 1px solid var(--vidro);
    outline: none;
    font-size: 1rem;
}

.campo-form::placeholder {
    color: rgba(226, 232, 240, 0.4);
}

.campo-form:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.grupo-form {
    margin-bottom: 1.5rem;
}

.botao-form {
    color: var(--escuro-color);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    width: 100%;
    transition: all 0.5s ease;
}

.botao-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    border-top: 1px solid var(--vidro);
}

.footer-top {
    text-align: center;
    padding: 1rem;
    background-color: rgba(15, 23, 42, 0.8);
    color: var(--claro-color);
    font-size: 16px;
}

.footer-bottom {
    text-align: center;
    padding: 0.5rem;
    background-color: rgba(15, 23, 42, 0.9);
    color: var(--claro-color);
    font-size: 0.7rem;
}

.footer-text {
    margin: 0;
    background-color: rgba(15, 23, 42, 0.8);
    color: var(--claro-color);
    font-size: 0.8rem;
}

.footer-text a {
    color: rgb(2, 228, 254);
    text-decoration: none;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        gap: 1rem;
    }

    .cabecalho {
        padding: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .sobre-titulo, .projetos-titulo, .contato-titulo {
        font-size: 2rem;
    }
}