﻿/* ======================== GERAL & RESET ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --header-height: 100px;
    --header-height-scrolled: 70px;
    --primary-blue: #1E88E5;
    --dark-blue: #021f5b;
    --gradient-blue: linear-gradient(90deg, #021f5b 0%, #0A4FB3 100%);
    --bg-light: #f5f5f5;
    --bg-blue-light: #dcf1fc;
    --text-main: #333;
    --text-gray: #858383;
}

html {
    scroll-behavior: smooth;
}

body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #F5F7FA;
    overflow-x: hidden;
}

/* Helper para centralização */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* ======================== HEADER ======================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    background-color: #F5F7FA;
}

    header.shrink {
        height: var(--header-height-scrolled);
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    header a{
        text-decoration:none;
    }
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header h2 {
        font-size: 20px;
        color: var(--dark-blue);
        font-weight: 700;
    }
/* Navegação */
.navbar {
    display: flex;
    gap: 25px;
}

    .navbar a {
        color: var(--text-main);
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        transition: 0.3s;
        position: relative;
    }

        .navbar a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: var(--primary-blue);
            transition: 0.3s;
        }

        .navbar a:hover {
            color: var(--primary-blue);
        }

            .navbar a:hover::after {
                width: 100%;
            }


/* Seletor de Idiomas */
.language-selector {
    display: flex;
    gap: 8px;
}

    .language-selector button {
        background: none;
        border: 1px solid transparent;
        cursor: pointer;
        border-radius: 5px;
        padding: 2px;
        transition: 0.3s;
    }

        .language-selector button:hover {
            border-color: #ddd;
            background: #f9f9f9;
        }

    .language-selector img {
        width: 42px;
        display: block;
    }
        .language-selector img.active {
            border: 1px solid darkblue;
            box-shadow: 0 2px 5px rgba(0,0,0,0.15), 0 0 5px rgba(30,136,229,0.5);
        }

/* ======================== HOME ======================== */
.home {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
}

.home-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    margin: 0px 100px 0px 100px;
}

.textHome {
    flex: 1;
}

    .textHome h1 {
        font-size: clamp(32px, 5vw, 55px); /* Fonte responsiva */
        line-height: 1.2;
        margin-bottom: 20px;
        background: var(--gradient-blue);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .textHome h2 {
        font-size: clamp(18px, 2vw, 24px);
        color: var(--text-gray);
        margin-bottom: 35px;
        max-width: 550px;
    }

.Orcamento {
    display: inline-block;
    padding: 16px 40px;
    background-color: #001f54;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
    transition: 0.3s;
}

    .Orcamento:hover {
        transform: translateY(-3px);
        background-color: #00338d;
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }

.imagemhome {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

    .imagemhome img {
        max-width: 90%;
        height: auto;
        border-radius: 30px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

/* ======================== SERVICES ======================== */
.services {
    padding: 200px 60px 0px 60px;
    display: flex;
    justify-content: center;
}

.services-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}
.textServices {
    text-align: center;
    max-width: 800px;
}

    .textServices h2 {
        color: #001f54;
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .textServices h4 {
        color: #555;
        font-weight: 400;
    }

/* Container de Cards Responsivo */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    width: 100%;
}

/* Estilização Individual do Card */
.card {
    background: #ffffff;
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    border-top: 8px solid #001f54;
    box-shadow: 0 10px 30px rgba(0, 31, 84, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 31, 84, 0.15);
    }

    /* Títulos dos Cards */
    .card h3 {
        color: #001f54;
        font-size: 1.4rem;
        margin-bottom: 15px;
        font-weight: 700;
    }

    /* Parágrafos dos Cards */
    .card p {
        color: #666;
        font-size: 0.95rem;
        line-height: 1.6;
    }

/* Botão de Contato */
.ButtonServ {
    display: inline-block;
    background-color: #001f54;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-top: 20px;
}

    .ButtonServ:hover {
        background-color: #00338d;
    }

/* Ajustes para Dispositivos Móveis (Mobile) */
@media (max-width: 768px) {
    .card {
        min-width: 90%; /* Card ocupa quase toda a largura no celular */
        max-width: 100%;
    }

    .textServices h1 {
        font-size: 1.8rem;
    }
}

/* ======================== SOBRE ======================== */
.about {
    padding: 250px 0px 0px 0px;
    text-align: center;
}

    .about h2 {
        font-size: 36px;
        margin-bottom: 25px;
    }

    .about p {
        max-width: 100%;
        margin: 0px 200px 0px 200px;
        font-size: 18px;
        color: #555;
    }


.aboutvalor {
    color: #0A4FB3;
    font-weight: 700;
    text-decoration: none;
    font-size: 20px;
}

/* ======================== MVV (Missão, Visão, Valores) ======================== */
.mvv {
    padding: 250px 90px 80px 90px;
}

.mvv-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.mvv-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

    .mvv-card h2 {
        color: var(--dark-blue);
        margin-bottom: 15px;
    }

/* ======================== CONTATO ======================== */
.contact {
    padding: 200px 100px 120px 200px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.left-contact h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.left-contact h3 {
    color: var(--text-gray);
    margin-bottom: 30px;
}

#imageforms {
    width: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-box {
    background: white;
    padding: 40px;
    max-width:500px;
    border-radius: 25px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

    .form-box h2 {
        margin-bottom: 25px;
        color: var(--dark-blue);
    }

.field {
    margin-bottom: 20px;
}

    .field label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
        margin-left: 5px;
    }

.form-box textarea {
    height:125px;
}

.form-box input,
.form-box textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fdfdfd;
    transition: 0.3s;
}

    .form-box input:focus,
    .form-box textarea:focus {
        outline: none;
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.1);
    }

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-box button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background-color: #001f54;
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

    .form-box button:hover {
        background-color: #00338d;
        transform: translateY(-2px);
    }

/* ======================== FOOTER ======================== */
footer {
    background: var(--dark-blue);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.social {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

    .social img {
        width: 35px;
        transition: 0.3s;
    }

        .social img:hover {
            transform: scale(1.2);
            filter: brightness(1.2);
        }

@media (max-width: 1280px) {
    .imagemhome {
        display: none;
    }
    .contact {
        padding: 120px 150px 120px 150px;
    }
    .form-box {
        max-width: 100%;
    }
    .about p {
        margin: 0px 50px 0px 50px;
    }
    .home-container {
        justify-content: center;
        text-align: center;
        margin: 0 auto; 
        padding: 0 20px;
    }

    .textHome {
        flex: none;
        width: 100%;
        max-width: 800px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .textHome h3 {
        margin-left: auto;
        margin-right: auto;
    }
    .contact .left-contact {
        display: none;
    }
    .contact{
        margin: 0px 120px 0px 120px;
    }
    .home-container, .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .textHome h3 {
        margin: 0 auto 35px;
    }

    .imagemhome {
        justify-content: center;
        order: -1; /* Imagem aparece antes do texto no mobile */
    }

    .row2 {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 980px) {
    .contact {
        margin: 0px 20px 0px 20px;
    }
}
@media (max-width: 480px) {
    :root {
        --header-height: 80px;
    }

    .form-box {
        padding: 25px 20px;
    }

    .textServices h4 {
        padding: 0;
    }
}

