@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@500&display=swap');

/* ESTILOS GLOBAIS */
body {
    font-family: 'Kanit', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    background-image: url('../assets/fundo3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Mantém a imagem fixa durante a rolagem */
    opacity: 0.3;
    position: fixed;
    /* Alterado de absolute para fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Usa a altura total da viewport */
    z-index: -1;
}

/* CABEÇALHO - OTIMIZADO */
.cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #E5F5FF;
    height: auto;
    min-height: 110px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    width: 100%;
}

main {
    flex: 1 0 auto;
    position: relative;
    z-index: 1;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 80px;
    justify-content: center;
}

.logo img {
    height: auto;
    max-height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    pointer-events: none;
}

/* MENU PADRÃO (DESKTOP) */
.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
    gap: 15px;
}

.menu a {
    text-decoration: none;
    color: #233A5E;
    /* Mantém a cor original do texto */
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    /* Sombra sutil por padrão */
}

/* Efeito de destaque da sombra ao passar o mouse */
.menu a:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Sombra mais forte no hover */
    transform: translateY(-2px);
    /* Efeito de "levantar" */
}

/* Estilo para a página atual (sem hover) */
.menu a.active {
    background-color: #233A5E;
    /* Fundo sólido para destacar a página ativa */
    color: #fff;
    /* Texto branco */
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* MENU HAMBÚRGUER PARA MOBILE */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #233A5E;
    transition: 0.3s;
    border-radius: 2px;
}

/* ESTILOS DA PÁGINA DE ORÇAMENTO */
.orcamento-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    flex-shrink: 0;
}

.redes-sociais {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
    text-align: center;
}

.redes-sociais h2 {
    color: #233A5E;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.whatsapp-btn,
.instagram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.whatsapp-btn {
    background-color: #25D366;
}

.instagram-btn {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.whatsapp-btn:hover,
.instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.form-feedback {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-title {
    color: #233A5E;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.formulario-orcamento.hidden {
    display: none;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #233A5E;
}

/* Regras de estilo para todos os campos */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Kanit', sans-serif;
    transition: box-shadow 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* --- ESTILOS DE FOCO E VALIDAÇÃO --- */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ddd;
    box-shadow: 0 0 0 2px rgba(35, 58, 94, 0.15);
}

input:invalid,
textarea:invalid {
    border-color: initial !important;
    box-shadow: none !important;
}

.invalid {
    border-color: #e74c3c !important;
    box-shadow: none !important;
}

.invalid:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25) !important;
}

.submit-btn {
    background-color: #233A5E;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    width: 100%;
    font-family: 'Kanit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #1a252f;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.invalid+.error-message {
    display: block;
}

/* --- ESTILOS DAS MENSAGENS DE SUCESSO/ERRO --- */
.form-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.form-message.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.form-message.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RODAPÉ */
.rodape {
    text-align: center;
    padding: 20px;
    background-color: #E5F5FF;
    color: white;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.logos-rodape {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 200px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    box-sizing: border-box;
}

.logos-rodape img {
    height: 50px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logos-rodape p {
    margin: 0;
    color: #2c3e50;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 20px;
}

/* BOTÃO WHATSAPP */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}




/* ============ RESPONSIVIDADE DO CABEÇALHO - CORRIGIDA E COMPLETA ============ */
@media (max-width: 1024px) {
    .cabecalho {
        height: 100px;
        padding: 0 15px;
    }

    .logo img {
        height: 70px;
    }

    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #E5F5FF;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        margin: 10px 0;
        font-size: 16px;
        padding: 10px;
        text-align: center;
        border-bottom: 1px solid rgba(35, 58, 94, 0.1);
        width: 100%;
    }

    .menu a:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: flex;
    }

    .orcamento-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .logos-rodape {
        gap: 30px;
    }

    .logos-rodape img {
        height: 50px;
    }
}

/* Celulares (até 600px) */
@media (max-width: 600px) {
    .cabecalho {
        height: 80px;
        padding: 0 10px;
    }

    .logo img {
        height: 50px;
    }

    .social-buttons {
        flex-direction: column;
    }

    .form-feedback {
        padding: 1.5rem;
    }

    .logos-rodape {
        gap: 20px;
        justify-content: space-between;
        flex-wrap: nowrap;
        padding: 0 15px;
    }

    .logos-rodape img {
        height: 35px;
    }

    .logos-rodape p {
        font-size: 12px;
        padding-right: 0;
        white-space: normal; /* permite quebra de linha */
        text-align: right;   /* mantém alinhado sem cortar */
    }

    .whatsapp-float {
        bottom: 90px;
        /* sobe pra não cobrir o rodapé */
    }
}

/* Celulares Pequenos (até 480px) */
@media (max-width: 480px) {
    .cabecalho {
        height: 70px;
        padding: 0 8px;
    }

    .logo img {
        height: 45px;
    }

    .menu a {
        font-size: 14px;
    }

    .menu-toggle {
        width: 25px;
        height: 20px;
    }

    .menu-toggle span {
        height: 2.5px;
        margin: 2.5px 0;
    }

    .orcamento-container {
        padding: 0.5rem;
    }

    .redes-sociais,
    .form-feedback {
        padding: 1.5rem;
    }

    .logos-rodape {
        gap: 15px;
        justify-content: space-between;
        padding: 0 10px;
    }

    .logos-rodape img {
        height: 30px;
    }
}

/* Dispositivos Muito Pequenos (até 320px) */
@media (max-width: 320px) {
    .cabecalho {
        height: 60px;
    }

    .logo img {
        height: 40px;
    }

    /* Rodapé corrigido */
    .logos-rodape {
        gap: 10px;
        justify-content: space-between;
        padding: 0 8px;
    }

    .logos-rodape img {
        height: 25px;
    }

    .logos-rodape p {
        font-size: 10px;
        padding-right: 0;
    }

    .whatsapp-float {
        bottom: 70px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}