/* =========================
   GLOBAL.CSS
========================= */

:root{
    /* CORES PRINCIPAIS */
    --primary:#174a97;
    --primary-dark:#123d7a;
    --accent:#b32626;

    /* TEXTO */
    --text-dark:#0f172a;
    --text-light:#475569;
    --text-soft:#64748b;

    /* NEUTROS */
    --white:#ffffff;
    --bg:#f4f7fb;
    --bg-soft:#eef3f9;
    --bg-lighter:#f8fafc;

    /* BORDAS */
    --border:#dbe2ea;
    --border-soft:rgba(15,23,42,0.08);
    --glass-bg:rgba(255,255,255,0.86);
    --glass-border:rgba(255,255,255,0.14);

    /* TIPOGRAFIA */
    --font-main:"Segoe UI", Arial, sans-serif;

    /* LAYOUT */
    --container-max:1600px;

    /* RADIUS */
    --radius-xs:4px;
    --radius-sm:8px;
    --radius-md:14px;
    --radius-lg:20px;

    /* SOMBRAS */
    --shadow-soft:0 8px 24px rgba(15,23,42,0.06);
    --shadow-medium:0 18px 40px rgba(15,23,42,0.10);
    --shadow-strong:0 24px 60px rgba(15,23,42,0.14);
    --shadow-hero:0 18px 45px rgba(0,0,0,0.18);
    --shadow-card:0 12px 28px rgba(15,23,42,0.08);

    /* TRANSIÇÃO */
    --transition-smooth:0.45s cubic-bezier(0.22,1,0.36,1);
    --transition-fast:0.25s ease;
}

html{
    scroll-behavior:smooth;
}

body{
    min-height:100vh;
    font-family:var(--font-main);
    background:var(--bg);
    color:var(--text-light);
    line-height:1.65;
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

/* CONTAINER */
.container{
    width:100%;
    max-width:var(--container-max);
    margin:0 auto;
    padding-left:32px;
    padding-right:32px;
}

/* TIPOGRAFIA */
h1,h2,h3,h4,h5,h6{
    color:var(--text-dark);
    font-weight:800;
    line-height:1.08;
    letter-spacing:-0.03em;
    margin:0;
}

p{
    color:var(--text-light);
    line-height:1.75;
    margin:0;
}

strong{
    font-weight:800;
    color:var(--text-dark);
}

small{
    color:var(--text-soft);
}

/* LINKS */
a{
    color:inherit;
    text-decoration:none;
    transition:var(--transition-fast);
}

/* SELEÇÃO */
::selection{
    background:rgba(23,74,151,0.16);
    color:var(--text-dark);
}

/* FOCO */
:focus-visible{
    outline:2px solid rgba(23,74,151,0.25);
    outline-offset:2px;
    border-radius:var(--radius-xs);
}

/* CABEÇALHO PADRÃO DE SEÇÃO */
.section-header,
.servicos-header{
    text-align:center;
    margin-bottom:42px;
}

.section-subtitulo,
.servicos-subtitulo{
    display:block;
    margin-bottom:0px;
    color:var(--accent);
    font-size:1.5rem;
    font-weight:800;
    letter-spacing:0.22em;
    text-transform:uppercase;
}

.section-header h2,
.servicos-header h2{
    font-size:clamp(2.2rem,4vw,3.8rem);
    line-height:1.02;
    letter-spacing:-0.04em;
    font-weight:900;
    text-wrap:balance;
}

.section-texto{
    max-width:760px;
    margin:14px auto 0;
    color:var(--text-soft);
    line-height:1.75;
}

/* BOTÕES */
.btn-servico,
.btn-secundario{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:0 20px;
    border-radius:var(--radius-sm);
    font-size:0.82rem;
    font-weight:800;
    letter-spacing:0.08em;
    text-transform:uppercase;
    transition:var(--transition-smooth);
    white-space:nowrap;
    cursor:pointer;
}

.btn-servico{
    background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);
    border:1px solid rgba(23,74,151,0.95);
    color:var(--white);
    box-shadow:0 12px 28px rgba(23,74,151,0.24);
}

.btn-servico:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 36px rgba(23,74,151,0.30);
}

.btn-secundario{
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.18);
    color:var(--white);
}

.btn-secundario:hover{
    transform:translateY(-2px);
    background:rgba(255,255,255,0.14);
    border-color:rgba(255,255,255,0.28);
}

/* CAMPOS DE FORMULÁRIO */
input,
textarea,
select{
    width:100%;
    padding:14px;
    border:1px solid var(--border);
    border-radius:var(--radius-sm);
    background:var(--white);
    color:var(--text-dark);
    font-size:0.96rem;
    line-height:1.5;
    transition:border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

input::placeholder,
textarea::placeholder{
    color:var(--text-soft);
}

input:focus,
textarea:focus,
select:focus{
    border-color:rgba(23,74,151,0.45);
    box-shadow:0 0 0 4px rgba(23,74,151,0.08);
    outline:none;
}

textarea{
    resize:vertical;
    min-height:150px;
}

/* UTILITÁRIOS */
.text-center{
    text-align:center;
}

.text-left{
    text-align:left;
}

.text-right{
    text-align:right;
}

.hidden{
    display:none !important;
}

.shadow-card{
    box-shadow:var(--shadow-card);
}

.bg-white{
    background:var(--white);
}

.rounded-md{
    border-radius:var(--radius-md);
}

.rounded-lg{
    border-radius:var(--radius-lg);
}

/* RESPONSIVO BASE */
@media (max-width:1200px){
    .container{
        padding-left:24px;
        padding-right:24px;
    }
}

@media (max-width:768px){
    .container{
        padding-left:20px;
        padding-right:20px;
    }

    .section-header h2,
    .servicos-header h2{
        font-size:clamp(1.9rem,7vw,2.8rem);
    }

    .section-subtitulo,
    .servicos-subtitulo{
        font-size:0.75rem;
        letter-spacing:0.18em;
    }

    .btn-servico,
    .btn-secundario{
        min-height:46px;
        padding:0 18px;
        font-size:0.78rem;
    }
}

@media (max-width:420px){
    .container{
        padding-left:16px;
        padding-right:16px;
    }
}

/* ===== LOGIN ===== */

.login-body{
    min-height:100vh;
    background:linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    font-family:Arial, Helvetica, sans-serif;
}

.login-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.login-box{
    width:100%;
    max-width:460px;
    background:#ffffff;
    border-radius:24px;
    padding:32px;
    box-shadow:0 20px 60px rgba(0,0,0,0.18);
    border:1px solid rgba(255,255,255,0.2);
}

.login-brand{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:26px;
    padding-bottom:18px;
    border-bottom:1px solid #e3e6ea;
}

.login-logo-box{
    width:70px;
    height:70px;
    border-radius:18px;
    background:#f8fafc;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border:1px solid #e3e6ea;
    box-shadow:0 8px 18px rgba(0,0,0,0.06);
    padding:4px;
    flex-shrink:0;
}

.login-logo{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

.login-brand-text{
    display:flex;
    flex-direction:column;
    line-height:1.15;
}

.login-brand-text strong{
    font-size:23px;
    color:#0f172a;
}

.login-brand-text span{
    font-size:14px;
    color:#6b6b6b;
}

.login-header{
    margin-bottom:22px;
}

.login-header h1{
    font-size:28px;
    color:#174A97;
    margin-bottom:6px;
}

.login-header p{
    font-size:14px;
    color:#6b6b6b;
    line-height:1.45;
}

.login-form{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.campo-form{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.campo-form label{
    font-size:14px;
    font-weight:700;
    color:#174A97;
}

.campo-form input{
    width:100%;
    min-height:48px;
    border:1px solid #dbe2ea;
    border-radius:14px;
    padding:0 14px;
    background:#fff;
    color:#1a1a1a;
    font-size:14px;
    outline:none;
    transition:0.25s ease;
    box-sizing:border-box;
}

.campo-form input:focus{
    border-color:#b9cae9;
    box-shadow:0 0 0 4px rgba(23,74,151,0.08);
}

.btn-login{
    width:100%;
    min-height:48px;
    border:none;
    border-radius:14px;
    background:#174A97;
    color:#ffffff;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:0.25s ease;
    margin-top:4px;
}

.btn-login:hover{
    background:#123d7a;
    transform:translateY(-1px);
}

.mensagem-login{
    min-height:22px;
    font-size:14px;
    font-weight:600;
    margin-top:2px;
}

.mensagem-login.erro{
    color:#B32626;
}

.mensagem-login.sucesso{
    color:#067647;
}

.login-info{
    margin-top:18px;
    padding-top:16px;
    border-top:1px solid #e3e6ea;
}

.login-info p{
    font-size:13px;
    color:#6b6b6b;
    line-height:1.45;
}