/* layout.css: Estrutura de grid, containers, cabeçalho, rodapé */
/*
=================================================================
Mapa de seções
- Base de layout (body)
- Cabeçalho (header, logo, navegação, links)
- Alternância de textos do menu (desktop/mobile)
- Área principal (main)
- Rodapé (footer, footer-normal, conteúdo, social, textos)
- Botões (btn-alerta, btn-alerta1, btn-send)
- Ícone WhatsApp fixo
- Responsividade (≤768px, ≤480px)
=================================================================
*/

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* evita coluna branca no mobile */
}

/* ============================= Header (cabeçalho fixo) ============================= */
header {
    background: var(--color-background-blue);
    padding: 5px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #404040;
    font-size: 14px;
}

/* Logo do header */
header img {
    height: 22px;
}

/* Navegação do header */
nav pages {
    list-style: none;
    display: flex;
    gap: 50px;
    margin-inline-end: 50px;
}

/* Links do menu */
nav a {
    color: var(--color-light3);
    text-decoration: none;
    font-weight: 500;
}

/* Alternância de textos do menu por breakpoint */
.texto-desktop { display: inline; }
.texto-mobile { display: none; }

/* Área principal */
main {
    padding: 0 20px;
    max-width: 1200px;
    margin: auto;
}

/* ============================= Rodapé (não fixo) ============================= */
footer {
    background: #404040;
    padding: 1px 0;
    text-align: center;
    font-size: 13px;
    color: #ccc;
}

/* Rodapé normal (não fixo) */
.footer-normal {
    background: var(--color-background-blue);
    color: var(--color-light3);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.07);
    padding: 20px 0;
    margin-top: 40px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 8px 24px;
}
.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.footer-logo {
    height: 46px;
    margin-bottom: 4px;
}
.footer-social {
    display: flex;
    gap: 10px;
    margin-left: 2px;
}
.footer-social-icon {
    height: 32px;
    width: 32px;
    transition: filter 0.2s;
}
.footer-social-icon:hover {
    filter: brightness(0) invert(1) grayscale(1) contrast(100);
}
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 4px;
    margin-top: 4px;
    padding-right: 28px; /* mais espaço da margem direita */
}
.footer-textos span {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

/* Botão de alerta "Saiba mais" */
.btn-alerta {
    /* background-color: #b3330d; */
    background-color: #71716f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.2s;
    text-decoration: none;
}
.btn-alerta:hover {
    background-color: #66CFDC;
}

/* Botão de alerta "Entre em Contato" */
.btn-alerta1 {
    background-color: #1d6bb9;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.2s;
    text-decoration: none;
}
.btn-alerta1:hover {
    background-color: #3e89d4;
}

/* Botão de alerta "Entre em Contato" */
.btn-send {
    background-color: #1db954;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.2s;
    text-decoration: none;
    width:90px;
    align-self:flex-end;
}
.btn-send:hover {
    background-color: #5dc682;
}

/* Ícone WhatsApp fixo (layout) */
.whatsapp-fixo {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    transition: transform 0.2s;
}
.whatsapp-fixo:hover { transform: scale(1.0); }

/* ============================= Responsividade geral ============================= */
@media (max-width: 768px) {
    header { padding: 8px 12px; }
    header .logo { height: 48px !important; }
    nav pages { gap: 12px; margin-inline-end: 0; padding: 0; }
    nav a { font-size: 12px; }
    .texto-desktop { display: none; }
    .texto-mobile { display: inline; }
    main { padding: 0; }
    .footer-content { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
    .footer-left, .footer-right { flex: 1 1 auto; }
    .footer-right { align-items: flex-end; padding-right: 16px; }
    .footer-textos span { text-align: right; font-size: 13px; }
    .btn-alerta { padding: 8px 14px; font-size: 12px; }
    .footer-social-icon { height: 26px; width: 26px; }
    .whatsapp-fixo img { width: 36px !important; height: 36px !important; }
}

@media (max-width: 480px) {
    html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
    header { overflow-x: clip; }
    header .logo { height: 40px !important; }
    nav pages { flex-wrap: wrap; justify-content: center; gap: 8px; }
    nav a { font-size: 11px; }
    .footer-logo { height: 40px; }
    .footer-textos span { font-size: 12px; }
    .footer-right { padding-right: 12px; }
    .btn-alerta { padding: 7px 12px; font-size: 11px; }
    .footer-social-icon { height: 22px; width: 22px; }
    .whatsapp-fixo img { width: 32px !important; height: 32px !important; }
}
