/* ================================
    VARIÁVEIS DE TEMA (Foco no Texto Escuro Azulado e Destaques Sóbrios)
=================================== */
:root {
    --cor-primaria: #2f486f; /* NOVO AZUL SÓBRIO (CTA/Títulos - Destaque) */
    --cor-fundo: #eaebea;
    --cor-fundo-secundaria: #eaebea;
    --cor-header-footer: #FFFFFF;
    --cor-texto: #1B2E3C;    /* AZUL ACINZENTADO ESCURO (Texto principal para suavidade) */
    --cor-link: #2f486f;     /* Azul Sóbrio (Links) */
    --cor-botao-bg: #2f486f; /* Azul Sóbrio (Fundo de Botão CTA) */
    --cor-botao-texto: #fff;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* ================================
    MODO DARK (Ajuste de Cores para Contraste)
=================================== */
html[data-theme="dark"] {
    --cor-fundo: #0E1B29;     /* Azul Petróleo Escuro */
    --cor-fundo-secundaria: #1A2D40; /* Azul Escuro (Fundo das seções suaves) */
    --cor-texto: #F0F8FF;     /* Branco Azulado */
    --cor-header-footer: #1A2D40; /* Azul Escuro (Header/Footer/Cards) */
    --cor-link: #9CC3FF;      /* Azul Claro/Vibrante para links no Dark */
    --cor-botao-bg: #9CC3FF;  /* Azul Claro/Vibrante (Fundo de Botão) */
    --cor-botao-texto: #000;
    --cor-borda: #334C66;     /* Azul Acinzentado Escuro (Bordas) */
}

/* ================================
    RESET & BASE
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--cor-fundo);
    color: var(--cor-texto);
    font-size: 1rem;
    transition: 0.3s ease;
}

/* Acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

.skip-link {
    position: absolute;
    left: 0;
    top: 0;
    background: black;
    color: white;
    padding: 0.75rem;
    transform: translateY(-100%);
    transition: 0.2s;
    z-index: 1000;
}
.skip-link:focus {
    transform: translateY(0);
}

/* ================================
    HEADER
=================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--cor-header-footer);
    border-bottom: 1px solid var(--cor-borda);
    position: relative; 
}

.header-coluna {
    flex: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 40%;
    height: auto;
    max-width: 100%;
}

/* ================================
    NAV MENU
=================================== */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: var(--cor-link);
    text-decoration: none;
    font-weight: 600;
}

/* ================================
    DARK MODE BUTTON
=================================== */
.dark-toggle {
    background: var(--cor-botao-bg);
    color: var(--cor-botao-texto);
    padding: 0.625rem 0.875rem;
    border-radius: 0.375rem;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

/* ================================
    MENU SANDUÍCHE BASE
=================================== */
.menu-toggle {
    display: none; /* Esconde por padrão no desktop */
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--cor-texto);
    cursor: pointer;
    padding: 0.5rem;
}

/* ================================
    SEÇÃO 1 — LAYOUT PREMIUM
=================================== */

#secao-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    gap: var(--spacing-xl);
    /* LIGHT MODE: APENAS A IMAGEM ORIGINAL */
    background: url('images/background.png') center top / cover;     
    background-attachment: fixed;    
    border-bottom: 1px solid var(--cor-borda);
}

html[data-theme="dark"] #secao-1 {
    /* DARK MODE: Overlay escuro (necessário para o texto branco ser legível) */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%),
                url('images/background.png') center center / cover;
    
    background-attachment: fixed;
}

/* coluna da imagem */
.coluna-imagem img {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 25px 55px rgba(0,0,0,0.18);
    object-fit: cover;
}

/* coluna do texto */
.coluna-texto {
    max-width: 600px;
}

.coluna-texto h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--cor-primaria); 
}

html[data-theme="dark"] .coluna-texto h1 {
    color: #ffffff; 
}

.coluna-texto h3 {
    color: var(--cor-primaria); 
}

html[data-theme="dark"] .coluna-texto h3 {
    color: #ffffff; 
}

/* ================================
    ESTILOS DA LISTA DE ESPECIALIDADES
=================================== */
.especialidades-lista {
    list-style: none; 
    padding-left: 0;
    margin-bottom: 2rem; 
}

.especialidades-lista li {
    font-size: 1.15rem;
    opacity: 0.85;
    line-height: 1.7;
    padding-left: 1.5rem; 
    position: relative;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease, opacity 0.3s ease;
}

html[data-theme="dark"] #secao-1 .especialidades-lista li {
    color: #ffffff;
}

/* Criando um marcador de ícone personalizado (checkmark) */
.especialidades-lista li::before {
    content: "✔️"; 
    color: var(--cor-primaria); 
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* CTA */
.cta-btn {
    display: inline-block;
    padding: 14px 34px;
    background: var(--cor-botao-bg); 
    color: var(--cor-botao-texto);
    border-radius: 14px;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
    filter: brightness(1.1);
}

/* ================================
    ANIMAÇÕES
=================================== */

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    animation: fadeInLeft 1.1s cubic-bezier(.17,.67,.28,1) forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    animation: fadeInRight 1.1s cubic-bezier(.17,.67,.28,1) forwards;
    animation-delay: .2s;
}

.fade-in {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.9s ease forwards;
}

@keyframes fadeInLeft {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ================================
    SEÇÃO 2 — QUALIFICAÇÕES
=================================== */

#secao-2 {
    padding: 100px 40px;
    text-align: center;
    border-bottom: 1px solid var(--cor-borda);
    background: var(--cor-fundo-secundaria); 
}

.secao2-container {
    max-width: 1100px;
    margin: 0 auto;
}

.secao2-titulo {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--cor-primaria); 
}

.secao2-subtitulo {
    font-size: 1.15rem;
    opacity: 0.7;
    margin-bottom: 40px;
}

/* GRID DAS QUALIFICAÇÕES */
.qualificacoes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.qual-item {
    background: var(--cor-header-footer);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
    border: 1px solid var(--cor-borda);
    transition: 0.3s ease;
    text-align: left;
}

.qual-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 26px rgba(0,0,0,0.12);
}

.qual-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cor-primaria); 
}

.qual-item p {
    opacity: 0.8;
    line-height: 1.6;
}

/* ================================
    SEÇÃO 3 — VÍDEO DE FUNDO PREMIUM
=================================== */

#secao-3 {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* O HTML usa <video> diretamente */
#secao-3 video { 
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none; 
}

/* camada escura sobre o vídeo */
#secao-3 .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); 
    z-index: 2;
}

/* conteúdo por cima do vídeo */
.texto-video {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 700px;
    margin: auto;
    padding: 0 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.texto-video h2 {
    font-size: 2.6rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.texto-video p {
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0.9;
}


/* ================================
    SEÇÃO 4 — DEPOIMENTOS
=================================== */

#secao-4 {
    padding: 80px 40px;
    text-align: center;
    /* Reposicionamento e Overlay */
    background: 
        /* linear-gradient(rgba(255, 255, 255, 0.7), var(--cor-fundo-secundaria)), */
        url('images/friends.png') center center / cover; 
    
    background-attachment: fixed; 
    border-top: 1px solid var(--cor-borda);
}

html[data-theme="dark"] #secao-4 {
    /* Reposicionamento e Overlay escuro */
    background: 
        linear-gradient(rgba(0, 0, 0, 0.7), var(--cor-fundo-secundaria)),
        url('images/friends.png') center center / cover;
    
    background-attachment: fixed;
}

.depoimentos-container {
    max-width: 1100px;
    margin: 0 auto;
}

.secao5-titulo {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--cor-primaria); 
}

html[data-theme="dark"] .secao5-titulo {
    color: #ffffff; 
}

.secao5-subtitulo {
    font-size: 1.15rem;
    opacity: 0.7;
    margin-bottom: 50px;
}

/* GRID DOS DEPOIMENTOS */
.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.depoimento-card {
    background: var(--cor-header-footer); 
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--cor-borda);
    text-align: left;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .depoimento-card {
    background: var(--cor-fundo); 
    border-color: var(--cor-borda);
}

.depoimento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.depoimento-texto {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

/* Marcador de aspas como ícone */
.depoimento-texto::before {
    content: "❝";
    font-size: 2.5rem;
    color: var(--cor-primaria); 
    position: absolute;
    left: 0;
    top: -5px;
    opacity: 0.3;
}

.depoimento-autor {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--cor-primaria); 
}

.cta-secundario {
    display: inline-block;
    margin-top: 2rem; 
}


/* ================================
    SEÇÃO 6 — PERGUNTAS FREQUENTES (FAQ)
=================================== */

#secao-6 {
    padding: 80px 40px;
    text-align: center;
    background: var(--cor-fundo-secundaria); 
    border-top: 1px solid var(--cor-borda);
}

html[data-theme="dark"] #secao-6 {
    background: var(--cor-fundo); 
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

#faq-titulo {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--cor-primaria);
}

.faq-subtitulo {
    font-size: 1.15rem;
    opacity: 0.7;
    margin-bottom: 40px;
}

/* ESTILO DOS ITENS DE FAQ (DETAILS/SUMMARY) */
.faq-lista {
    margin-bottom: 40px;
}

.faq-item {
    background: var(--cor-header-footer); 
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--cor-borda);
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-pergunta {
    display: block; 
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cor-primaria);
    cursor: pointer;
    padding-right: 30px;
    position: relative;
    list-style: none;
}

/* Estiliza o marcador de abertura/fechamento */
.faq-pergunta::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
    transition: 0.2s transform;
}

.faq-item[open] .faq-pergunta::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg); 
}

/* Estilo da Resposta */
.faq-resposta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--cor-borda);
    line-height: 1.7;
    opacity: 0.85;
}


/* ================================
    SEÇÃO 7 — CONTATO & FORMULÁRIO
=================================== */

#secao-7 {
    /* background: linear-gradient(120deg, var(--cor-fundo-secundaria), var(--cor-fundo)); */
    background: url('images/talk.png') center center / cover;     
    background-attachment: fixed;   
    padding: 6rem 8%;
}

html[data-theme="dark"] #secao-7 {
     /* DARK MODE: Overlay escuro (necessário para o texto branco ser legível) */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%),
                url('images/talk.png') center center / cover;
    
    background-attachment: fixed;
}

.contato-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: flex-start;
}

/* COLUNA ESQUERDA - INFO */
.contato-info h2 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
    color: var(--cor-primaria); 
}

.info-desc {
    font-size: 1rem;
    max-width: 420px;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.info-bloco {
    margin-bottom: 1.5rem;
}

.info-bloco h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--cor-primaria); 
}

.info-bloco ul {
    list-style: none;
    line-height: 1.8;
}

/* Estilos adicionais para os links de telefone/social */
.contato-lista {
    list-style: none;
    padding: 0;
    line-height: 1.8;
}

.contato-lista a {
    color: var(--cor-link); 
    text-decoration: none;
}

.contato-lista a:hover {
    text-decoration: underline;
}

.atendimento-extra {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
}

/* FORMULÁRIO */
.contato-form {
    background: var(--cor-header-footer); 
    padding: 2.5rem;
    border-radius: 12px;
    display: grid;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.contato-form h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--cor-primaria); 
}

.contato-form input,
.contato-form textarea {
    padding: 0.85rem;
    border: 1px solid var(--cor-borda); 
    font-size: 1rem;
    color: var(--cor-texto); 
    background: var(--cor-fundo);
}

.contato-form textarea {
    height: 120px;
    resize: none;
}

.contato-form button {
    margin-top: 1rem;
    background: var(--cor-botao-bg); 
    color: var(--cor-botao-texto); 
    padding: 0.85rem;
    border: none;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

.contato-form button:hover {
    filter: brightness(0.9); 
}


/* ================================
    FOOTER
=================================== */

footer {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 2rem;
    background: var(--cor-header-footer);
    border-top: 1px solid var(--cor-borda);
    flex-wrap: wrap;
}

footer > div {
    flex: 1;
    min-width: 12.5rem;
}

/* ================================
    RESPONSIVIDADE GLOBAL
=================================== */

@media (max-width: 1024px) {
    
    /* === HEADER: FORÇA COLUNAS LADO A LADO E AJUSTA NAV === */
    
    .menu-toggle { /* Botão Sanduíche - Exibido no Mobile */
        display: block; 
    }
    
    header {
        justify-content: space-between;
        padding: 0.5rem 1rem;
        position: relative;
    }

    /* Estilo do Menu Fechado (Esconde os links no Mobile) */
    nav {
        display: block; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: var(--cor-header-footer);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 50;
        transition: max-height 0.4s ease-in-out; 
    }

    /* Lista de links */
    nav ul {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }

    nav ul li a {
        display: block;
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid var(--cor-borda);
    }
    
    /* Estado do Menu ABERTO (Controlado pelo JS) */
    .nav-aberta {
        max-height: 500px; 
    }


    /* === OUTRAS SEÇÕES === */

    #secao-1 {
        flex-direction: column;
        text-align: center;
    }

    .coluna-texto {
        max-width: 100%;
    }

    .coluna-imagem img {
        max-width: 100%;
    }
    
    .qualificacoes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    #secao-7 .contato-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .qualificacoes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 48rem) {
    /* Ajustes globais menores */
    .logo {
        width: 100px; /* Tamanho fixo menor para mobile */
    }

    footer {
        flex-direction: column;
    }
}