/* ================================================= */
/* 1. ESTILOS GERAIS E TIPOGRAFIA                    */
/* ================================================= */
:root {
    /* Cores (Ajustes Sutis) */
    --cor-principal: #113F67; /* Azul Escuro (Cabeçalho/Rodapé) */
    --cor-secundaria: #D4EDF7; /* Azul Claro/Céu (Fundo Hero/Links) */
    --cor-destaque: #2A7CBA; /* Azul Profundo (Títulos) */
    --cor-cta: #C3E8AA; /* Verde Calmante (Botão CTA) */
    --cor-fundo-claro: #F0F8FF; /* Azul Neva (Fundo Geral das Seções) */
    --cor-texto: #444; /* Cinza Suave */
}

body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    background-color: #ffffff;
    color: var(--cor-texto);
    line-height: 1.6;
    /* A propriedade 'position: sticky' é mais adequada para o header, não para o body */
}

/* Base para todas as seções */
section {
    padding: 3rem 1.5rem; /* Padding base para todas as seções */
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2rem;
    color: var(--cor-destaque);
    margin-bottom: 2rem;
    text-align: center; /* Centraliza títulos para harmonia */
    font-weight: 700;
}

p {
    margin-bottom: 1.25rem; /* Espaçamento entre parágrafos melhorado */
}

/* ================================================= */
/* 2. CABEÇALHO (HEADER) - Responsivo com Flexbox    */
/* ================================================= */
.top-header {
    position: sticky;
    top: 0;
    z-index: 1000; /* Garante que fique acima de outros elementos */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--cor-principal);
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-bf {
    width: 60px; /* Reduzido para harmonia no header */
    height: 60px;
    background-color: var(--cor-secundaria);
    border-radius: 50%;
    object-fit: cover; /* Garante que a imagem preencha sem distorção */
}

.header-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.header-title p {
    font-size: 0.9rem;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link img {
    width: 45px; /* Reduzido para harmonia e mobile */
    height: 45px;
    transition: opacity 0.3s;
}

.social-link img:hover {
    opacity: 0.8;
}

.phone-number {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 10px;
    display: none; /* Escondido por padrão para telas pequenas, reexibir em desktop */
}

/* ================================================= */
/* 3. LINKS INTERNOS (NAVEGAÇÃO) - Refinamento       */
/* ================================================= */
.internal-links-section {
    background-color: var(--cor-secundaria); 
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.internal-nav {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem; /* Reduzido o gap para caber melhor em tablets */
}

.internal-nav a {
    text-decoration: none;
    color: var(--cor-principal);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: border-bottom 0.3s, color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.internal-nav a:hover {
    color: var(--cor-principal);
    border-bottom: 2px solid var(--cor-principal);
}


/* ================================================= */
/* 4. SEÇÃO HERO - Otimizado para Responsividade     */
/* ================================================= */
.hero {
    display: flex;
    flex-direction: row-reverse; 
    align-items: center;
    justify-content: space-between;
    padding: 3rem 1.5rem;
    background-color: #F5F5F5;
    gap: 1rem;
    max-width: none;
    margin: 0;
}

.hero-left {
    flex: 1; /* Permite que o texto se estenda */
    padding-right: 0; /* Remove padding desnecessário */
    max-width: 600px; /* Limita o tamanho do conteúdo interno para legibilidade */
    margin: 0 auto;
  }

.hero-text h2 {
    font-size: 2.2rem;
    color: var(--cor-principal); /* Cor principal para títulos grandes */
    margin: 0 0 1rem 0;
    font-weight: 700;
    text-align: left; /* Títulos do Hero devem ser alinhados à esquerda em desktop */
}

.hero-text p {
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--cor-cta); 
    color: var(--cor-principal);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px; /* Arredondamento maior para suavidade */
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #B2D898; /* Tom mais escuro no hover */
    transform: translateY(-2px);
}

.hero-right {
    flex: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px; /* Garante espaço mínimo */
    max-width: 450px; /* Limita o tamanho do conteúdo interno para legibilidade */
    margin: 0 auto;
}

.hero-img {
    width: 100%;
    max-width: 300px;
    height: auto; /* Altura automática para manter proporção */
    aspect-ratio: 1/1; /* Garante que a imagem seja um quadrado perfeito */
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* ================================================= */
/* 5. SEÇÕES PRINCIPAIS (SOBRE, PSICOTERAPIA, SERVIÇOS) */
/* ================================================= */
.principal {
    background-color: var(--cor-fundo-claro);
}

.sobre, .psicoterapia, .servicos {
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
}

/* Melhoria na apresentação de listas (se o HTML for atualizado) */
.lista-ajuda {
    list-style: none;
    padding: 0;
}

.lista-ajuda li {
    margin-bottom: 1.5rem;
    padding-left: 20px;
    position: relative;
}

.lista-ajuda li::before {
    content: '🦋 '; /* Ícone de borboleta ou outro símbolo acolhedor */
    position: absolute;
    left: -0.7rem;
    color: var(--cor-destaque);
    font-size: 1.2rem;
    top: -2px;
}


/* ================================================= */
/* 6. SEÇÃO CONTATO (Formulário e Mapa) - GRID/FLEXBOX */
/* ================================================= */

.contato {
    padding-bottom: 3rem; 
}

.contato-int {
    display: grid; /* CORRIGIDO: Usa GRID para layout de colunas */
    grid-template-columns: 1fr 1fr; /* Duas colunas iguais */
    gap: 5rem;
    align-items: start; /* Alinha o conteúdo ao topo do contêiner */
    padding: 2rem 0;
    /* As propriedades 'align-items: center;' e 'justify-content: space-between;' de flexbox são removidas */
}

.formulario {
    width: 100%;
    height: 100%;
    padding: 1rem 1rem;
    gap: 3rem;
    border: none; /* Remove a borda padrão */
    background-color: #F5F5F5;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.formulario p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.field {
    width: 100%;
    margin: 1rem 0;
}

.field label {
    padding-left: 0;
    font-size: 1em;
    display: block;
    width: 100%;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type=text],
input[type=email],
textarea {
    width: 100%;
    padding: 10px 15px;
    height: auto;
    line-height: normal;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box; /* Inclui padding e borda na largura total */
    outline-color: var(--cor-destaque);
}

textarea {
    height: 120px;
    resize: vertical;
}

input[type=submit] {
    background-color: var(--cor-cta);
    color: var(--cor-principal);
    height: 45px;
    width: 150px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

input[type=submit]:hover {
    background-color: #B2D898;
}

.mapa {
    width: 100%;
}

.mapa iframe {
    width: 100%;
    height: 80vh;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ================================================= */
/* 7. RODAPÉ (FOOTER)                                */
/* ================================================= */
footer {
    text-align: center;
    align-items: center;
    padding: 1.2rem 10px;
    background-color: var(--cor-principal);
    color: whitesmoke;
    font-size: 0.9rem;
    max-height: 150px;
}

.rodape {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    max-height: 150px;
    gap: 500px; 
}

.grutalab {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

.logo-gruta {
    height: 85px;
    width: 105px;
}

/* ================================================= */
/* 8. MEDIA QUERIES (RESPONSIVIDADE) - Reestruturado */
/* ================================================= */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    /* Header (Oculta número e aumenta a área de links) */
    .top-header {
        /* AJUSTE AQUI: Redução do padding horizontal para 1rem */
        padding: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .phone-number {
        display: none; /* Mantém o número escondido em tablets/mobile */
    }

    /* Hero Section - Empilha a Imagem e o Texto */
    .hero {
        flex-direction: column; 
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-text h2 {
        font-size: 1.8rem;
        text-align: center; /* Centraliza o título no mobile */
    }

    .hero-right {
        order: -1; /* Coloca a imagem acima do texto no mobile */
        margin-bottom: 2rem;
    }

    .hero-left {
        max-width: 100%;
    }

    /* Navegação Interna - Opcional: esconde ou reduz o gap */
    .internal-nav {
        gap: 1rem;
        flex-wrap: wrap;
        padding: 0 1rem;
    }
    
    .internal-nav a {
        font-size: 0.9rem;
    }

    /* Contato - Form e Mapa em Colunas (Um abaixo do outro) */

    .contato {
    padding-bottom: 3rem; 
    }

    .contato-int {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .formulario {
    width: 95%;
    height: 95%;
    }

    .mapa iframe {
        height: 300px;
    }

    footer {
      font-size: 0.75rem;
    }

    .rodape {
      gap: 13.5rem; 
    }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
    
    section {
        padding: 2rem 1rem; /* Diminui o padding em telas muito pequenas */
    }

    .top-header {
        /* AJUSTE AQUI: Redução do padding vertical e horizontal para mobile */
        padding: 0.75rem 0.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .header-left {
        margin-bottom: 10px;
    }

    .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .hero-text h2 {
        font-size: 1.6rem;
    }
    
    /* Oculta Navegação para ganhar espaço vertical */
    .internal-links-section {
        display: none; 
    }
    
    .contato {
    padding-bottom: 3rem; 
    }

    .contato-int {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .formulario {
      padding: 1rem;  
      width: 95%;
      height: 95%;
    }

    .formulario p {
      font-size: 1em;
    }
    
    footer {
      font-size: 0.75rem;
    }

    .rodape {
      gap: 3.5rem; 
    }
    
    /* Títulos e corpo de texto menores para melhor leitura */
    section h2 {
      font-size: 1.5rem;
    }
    
    body {
      font-size: 0.95rem;
    }
}