/* Importação da Fonte e Estilos Globais */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

:root {
    /* NOVA PALETA DE CORES HARMONIOSA */
    --color-primary: #1D3557;
    /* Azul Marinho Profundo: Seriedade e Confiança */
    --color-secondary: #457B9D;
    /* Azul Ciano/Aqua Suave: Limpeza e Frescor */
    --color-cta: #E63946;
    /* Vermelho Alerta/Urgência: Foco no 24h/Ação Imediata */
    --color-light: #F8F8F8;
    --color-dark: #333333;
    --font-family: 'Montserrat', sans-serif;
    --header-h: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: white;
}

h1,
h2,
h3 {
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--color-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* --- Botão CTA Flutuante (WhatsApp) --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-cta);
    /* Usando o vermelho de urgência */
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    transition: background-color 0.3s, transform 0.3s;
}

.whatsapp-float:hover {
    background-color: #CC2936;
    /* Tom mais escuro */
    transform: scale(1.05);
}

.icon-whatsapp {
    margin-right: 10px;
}

/* --- Botões Gerais --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary {
    background-color: var(--color-cta);
    color: white;
    font-size: 18px;
    border: none;
}

.btn-primary:hover {
    background-color: #CC2936;
}

.btn-secondary {
    background-color: var(--color-light);
    color: var(--color-primary);
    border: 2px solid var(--color-secondary);
    /* Borda em ciano suave */
    margin-top: 30px;
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: white;
}

.btn.large {
    font-size: 20px;
    padding: 20px 40px;
    margin-top: 20px;
}

/* --- 1. CABEÇALHO --- */
header {
    background-color: var(--color-primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    margin-right: 20px;
}

.logo p {
    color: white;
    font-weight: 800;
    font-size: 20px;
}

nav a {
    color: white;
    margin-left: 25px;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 1;
}

.cta-header {
    background-color: var(--color-secondary);
    /* Botão de destaque no menu com o ciano */
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    color: white;
}

.cta-header:hover {
    background-color: #3B6C8C;
}

/* --- 2. HERO SECTION --- */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.placeholder-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Escurecimento mantido */
}

.placeholder-img-equipe {
    position: absolute;
    inset: 0;
    background: url('imagens/equipe.jpg') center/cover no-repeat;
}

.placeholder-img-equipe::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-content small {
    display: block;
    margin-top: 15px;
    font-size: 1em;
    font-style: italic;
    opacity: 0.8;
}

#servicos,
#diferenciais {
    scroll-margin-top: calc(var(--header-h) + 16px);
    /* um respiro extra */
}

/* --- 3. SERVIÇOS ESSENCIAIS --- */
.services {
    text-align: center;
    background-color: var(--color-light);
}

.services h2 {
    margin-bottom: 50px;
    font-size: 2.2em;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.icon-service {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
    /* Ícones de serviço usarão a cor CTA para maior destaque, como na sugestão acima */
}

.service-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* --- 4. NOSSOS DIFERENCIAIS --- */
.features {
    padding: 60px 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-item {
    padding: 20px;
    border-left: 3px solid var(--color-secondary);
    /* Linha divisória em ciano suave */
    text-align: left;
}

.feature-item h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--color-primary);
}

/* --- 5. ATENDIMENTO RJ (Localização) --- */
.location {
    background-color: var(--color-primary);
    color: white;
}

.location-content {
    display: flex;
    align-items: center;
    gap: 150px;


}

.location-text {
    flex: 1;
}

.location-text h2 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.location-text p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.location-map {
    flex: 1;
    min-height: 350px;
    position: relative;
    width: 100%;
}

/* --- 6. PERGUNTAS FREQUENTES --- */
.faq {
    background-color: var(--color-light);
}

.faq h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.faq-question {
    cursor: pointer;
    font-size: 1.2em;
    color: var(--color-primary);
    position: relative;
    padding-right: 30px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    transition: transform 0.3s;
}

.faq-question.active::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    display: none;
    padding-top: 10px;
    color: var(--color-dark);
}

/* --- 7. RODAPÉ/CONTATO FINAL --- */
footer {
    background-color: var(--color-dark);
    color: white;
    padding: 60px 0 20px;
    text-align: center;
}

.footer-content {
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.footer-cta {
    margin-bottom: 40px;
}

.footer-cta h3 {
    color: white;
    font-size: 2em;
    margin-bottom: 10px;
}

.footer-cta p {
    margin-bottom: 20px;
}

.footer-info p {
    margin: 5px 0;
    font-size: 0.9em;
}

/* Links do bloco de informações do rodapé */
.footer-info a,
.footer-info a:visited {
    color: #fff;
    /* mantém branco */
    text-decoration: none;
    /* sem sublinhado por padrão */
}

.footer-info a:hover,
.footer-info a:focus {
    text-decoration: underline;
    /* acessível no hover/focus */
    opacity: 0.95;
}

/* --- RESPONSIVIDADE (Mantida) --- */
@media (max-width: 992px) {

    .service-grid,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-content {
        flex-direction: column;
        text-align: center;
    }

    .location-map {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
  header {
        /* Removemos o 'position: static;' para que ele herde o 'position: sticky;' global */
        position: sticky; /* ou pode ser 'position: fixed;' para maior compatibilidade */
        top: 0;
    }

    .header-content {
        flex-direction: row; /* Volta a ser row para o logo e o menu-toggle ficarem lado a lado */
        justify-content: space-between;
        align-items: center;
    }

    nav {
        margin-top: 10px;
    }

    nav a {
        margin: 0 10px;
    }

    .whatsapp-float {
        font-size: 16px;
        padding: 12px 18px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .service-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        margin-top: 15px;
    }

    .btn.large {
        font-size: 18px;
        padding: 15px 30px;
    }
}

/* === MENU MOBILE === */

/* Estilos para o botão sanduíche (visível apenas no mobile) */
.menu-toggle {
    display: none;
    /* Escondido por padrão no desktop */
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 1000;
    /* Garante que fique acima de outros elementos, se for fixed/sticky */
}

/* Estilos para o botão de fechar (visível apenas no menu aberto no mobile) */
.close-menu {
    display: none;
    /* Escondido por padrão, e no desktop */
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    /* Alinha o "X" */
}

/* Estilos de Desktop (acima de 768px) */
@media (min-width: 769px) {

    /* Garante que o menu de links esteja sempre visível no desktop */
    nav.menu {
        display: flex !important;
        flex-direction: row;
        position: static;
        width: auto;
        padding: 0;
        transition: none;
        transform: translateX(0);
    }
}

/* Estilos de Mobile (768px ou menos) */
@media (max-width: 768px) {

    /* Faz o logo e o botão sanduíche ficarem na mesma linha no mobile */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* O botão sanduíche deve aparecer */
    .menu-toggle {
        display: block;
    }

    /* O botão de fechar deve aparecer dentro do menu mobile */
    .close-menu {
        display: block;
    }
    
    .logo img {
        height: 50px; /* Reduz o tamanho do logo no mobile para liberar espaço */
    }

    /* O menu principal (NAV) deve se comportar como uma barra lateral (off-canvas) */
    nav.menu {
        /* Desativa as margens/paddings que empurravam o conteúdo */
        margin-top: 0;

        /* Posicionamento Off-Canvas */
        display: flex;
        /* Garante que os itens fiquem na coluna */
        flex-direction: column;

        /* Garante que o menu comece a aparecer ABAIXO do cabeçalho */
        padding: 100px 20px 20px;

        /* Ocupa a altura da tela, mas permite rolagem se o conteúdo for grande */
        height: 100vh;

        /* Fixo e sobreposto ao conteúdo */
        position: fixed;
        top: 0;
        left: 0;

        /* Largura do menu (ex: 80% da tela) */
        width: 80%;
        max-width: 300px;

        background-color: var(--color-primary);
        z-index: 999;

        /* Inicia ESCONDIDO (deslocado para a esquerda) */
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
        /* Adiciona a animação de deslizar */

        /* Estilos de Conteúdo do Menu */
        padding: 60px 20px 20px;
        /* Mais espaço no topo para o botão de fechar */
        text-align: left;
    }

    /* Estado Aberto (Exibindo o menu) */
    nav.menu.active {
        transform: translateX(0);
        /* Desliza para a posição visível */
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
    }

    /* Estilos dos links no menu mobile */
    nav.menu a {
        display: block;
        margin: 20px 0;
        /* Mais espaçamento vertical */
        font-size: 20px;
        color: white;
    }

    /* O CTA (botão Fale Conosco) dentro do menu */
    .cta-header {
        margin-top: 30px;
        /* Mais destaque */
        text-align: left;
    }
}