/* ARQUIVO: style.css
   PROJETO: ReabLar - Fisioterapia Domiciliar v1.1
   PALETA: Verdes Terrosos e Tons de Areia
*/

:root {
    /* Tons de Verde extraídos das referências */
    --verde-profundo: #2A3923;  /* Cor principal / Títulos */
    --verde-medio: #535945;     /* Destaques secundários */
    --verde-folha: #6F7863;     /* Detalhes e Cards */
    
    /* Tons de Areia e Bege */
    --bege-areia: #C8AF8F;      /* Contrastes e Checkmarks */
    --bege-escuro: #C1A88A;     /* Estados de Hover */
    
    /* Cores de Apoio */
    --off-white: #ECE7E2;       /* Fundo de seções */
    --branco: #ffffff;
    --texto-corpo: #333333;
    --transicao: all 0.3s ease;
}

/* 1. RESET E CONFIGURAÇÕES GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif; /* Fonte limpa para leitura */
    color: var(--texto-corpo);
    background-color: var(--branco);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Títulos com estilo inspirado na Marigold Magic */
h1, h2, h3, .nome-principal {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--verde-profundo);
}

/* 2. HEADER E LOGO */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: var(--branco);
    box-shadow: 0 2px 15px rgba(42, 57, 35, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-texto {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nome-principal {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.nome-principal span {
    color: var(--verde-folha);
}

.subtitulo {
    font-size: 0.8rem;
    color: var(--verde-medio);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--verde-profundo);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transicao);
}

.nav-links a:hover {
    color: var(--verde-folha);
}

/* 3. HERO SECTION (BANNER) */
.hero {
    height: 85vh;
    background: linear-gradient(135deg, rgba(42, 57, 35, 0.9) 0%, rgba(111, 120, 99, 0.5) 100%), 
                url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 8%;
    color: var(--off-white);
}

.hero h1 {
    font-size: 3.5rem;
    max-width: 700px;
    margin-bottom: 20px;
    color: var(--branco);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
}

.btn-cta {
    background-color: var(--bege-areia);
    color: var(--verde-profundo);
    padding: 18px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: var(--transicao);
    display: inline-block;
}

.btn-cta:hover {
    background-color: var(--bege-escuro);
    transform: translateY(-3px);
}

/* 4. SEÇÃO MISSÃO */
.missao-section {
    padding: 100px 8%;
    background-color: var(--off-white);
    text-align: center;
}

.tagline {
    color: var(--verde-folha);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.missao-section h2 {
    font-size: 2.5rem;
    margin: 15px 0 30px;
}

.missao-conteudo p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--verde-medio);
}

/* 5. SEÇÃO SERVIÇOS */
.servicos {
    padding: 100px 8%;
}

.servicos-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.grid-servicos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--branco);
    padding: 40px 30px;
    border-radius: 12px;
    border-top: 6px solid var(--verde-folha);
    box-shadow: 0 10px 30px rgba(42, 57, 35, 0.05);
    transition: var(--transicao);
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.card ul {
    list-style: none;
}

.card ul li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.card ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--bege-areia);
    font-weight: bold;
}

/* 6. FOOTER */
footer {
    background: var(--verde-profundo);
    color: var(--off-white);
    padding: 60px 8% 30px;
    text-align: center;
}

.footer-info p {
    margin-bottom: 10px;
}

.copyright {
    margin-top: 40px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Pode ser substituído por menu hambúrguer */
    header { padding: 15px 5%; }
}

/* SEÇÃO VANTAGENS */
.vantagens-section {
    padding: 80px 8%;
    background-color: var(--branco);
}

.container-vantagens {
    max-width: 1000px;
    margin: 0 auto;
}

.vantagens-header {
    text-align: center;
    margin-bottom: 50px;
}

.vantagens-grid {
    display: flex;
    justify-content: center;
}

.vantagem-item {
    display: flex;
    gap: 20px;
    background: var(--off-white);
    padding: 40px;
    border-radius: 15px;
    border-left: 8px solid var(--bege-areia);
    box-shadow: 0 10px 25px rgba(42, 57, 35, 0.05);
}

.icon-box {
    background: var(--verde-profundo);
    color: var(--off-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.vantagem-texto h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: var(--verde-profundo);
}

.vantagem-texto p {
    color: var(--texto-corpo);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Ajuste para Mobile */
@media (max-width: 768px) {
    .vantagem-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* Ajuste específico para os parágrafos dentro dos cards de vantagens */
.container-vantagens .card p {
    font-size: 1rem;
    color: var(--verde-medio);
    line-height: 1.6;
    margin-top: 10px;
}

.container-vantagens .card h3 {
    font-size: 1.3rem;
    color: var(--verde-profundo);
    border-bottom: 2px solid var(--bege-areia); /* Linha sutil em tom de areia */
    display: inline-block;
    padding-bottom: 5px;
}

/* AJUSTE HERO PARA DOIS COLUNAS */
.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 50px;
}

/* ESTILO DO FORMULÁRIO (Baseado na imagem enviada) */
.hero-form {
    background-color: var(--verde-profundo); /* Cor #2A3923 da sua paleta */
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 450px;
    color: var(--branco);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.hero-form h3 {
    color: var(--branco);
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
}

.hero-form p {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-form input, .hero-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 10px;
}

.btn-enviar {
    width: 100%;
    background-color: var(--bege-areia); /* Cor #C8AF8F para o botão */
    color: var(--verde-profundo);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transicao);
}

.btn-enviar:hover {
    background-color: var(--bege-escuro);
}

/* BOTÃO WHATSAPP FLUTUANTE */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicao);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
}

/* Ajuste mobile para o formulário */
@media (max-width: 968px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-form { max-width: 100%; }
}	

/* ESTILO DOS BOTÕES DE CONTATO NA HERO */
.hero-contact-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.btn-whatsapp-hero {
    background-color: #25D366; /* Verde vibrante para ação imediata */
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    transition: var(--transicao);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-hero img {
    width: 25px;
}

.btn-whatsapp-hero:hover {
    transform: translateY(-3px);
    background-color: #128C7E;
}

.phone-display {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--branco);
}

.atendimento-nota {
    font-size: 0.85rem;
    color: var(--off-white);
    font-style: italic;
    opacity: 0.9;
}

/* Ajuste mobile para os botões */
@media (max-width: 768px) {
    .hero-contact-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* --- AJUSTES PARA TELAS MOBILE E TABLETS --- */

@media (max-width: 968px) {
    /* Faz o texto e o formulário ficarem um embaixo do outro */
    .hero-container {
        flex-direction: column;
        padding-top: 40px;
        gap: 30px;
        text-align: center;
    }

    .hero-content {
        align-items: center; /* Centraliza o texto no mobile */
    }

    .hero h1 {
        font-size: 2.4rem; /* Diminui o título para não quebrar a tela */
    }

    .hero-form {
        max-width: 100%; /* Formulário ocupa a largura total disponível */
    }

    .hero-contact-actions {
        flex-direction: column; /* Botão e telefone empilhados */
        width: 100%;
    }

    .btn-whatsapp-hero {
        width: 100%; /* Botão largo no celular facilita o clique com o polegar */
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Ajustes finos para celulares pequenos */
    header {
        padding: 10px 5%;
    }

    .logo-texto {
        display: none; /* Esconde o texto da logo se a tela for minúscula para dar espaço ao menu */
    }

    .grid-servicos {
        grid-template-columns: 1fr; /* Força uma coluna única nos serviços */
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

.hero {
    position: relative;
    overflow: hidden;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Fica atrás do texto e formulário */
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Transição suave entre fotos */
}

.slide.active {
    opacity: 1;
}

/* Overlay para garantir que o texto continue legível */
.carousel-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 57, 35, 0.6); /* Verde profundo semi-transparente */
}

.hero-container {
    position: relative;
    z-index: 2; /* Garante que o conteúdo fique na frente das fotos */
}

/* SEÇÃO GALERIA */
.galeria-section {
    padding: 80px 8%;
    background-color: var(--off-white); /* Tom de areia suave conforme a paleta */
}

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.foto-item {
    overflow: hidden;
    border-radius: 12px;
    height: 300px;
    box-shadow: 0 8px 20px rgba(42, 57, 35, 0.1);
}

.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a foto preencha o espaço sem distorcer */
    transition: transform 0.5s ease;
}

/* Efeito de destaque ao passar o mouse */
.foto-item:hover img {
    transform: scale(1.1);
}

/* Ajuste para mobile */
@media (max-width: 480px) {
    .grid-galeria {
        grid-template-columns: 1fr;
    }
}

/* CTA ABAIXO DA GALERIA */
.galeria-cta {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
}

.galeria-cta p {
    font-size: 1.2rem;
    color: var(--verde-profundo); /* Cor #2A3923 */
    margin-bottom: 20px;
    font-weight: 600;
}

.btn-whatsapp-galeria {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 50px; /* Estilo arredondado para diferenciar do topo */
    font-weight: 800;
    font-size: 1rem;
    transition: var(--transicao); /* */
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-galeria img {
    width: 25px;
}

.btn-whatsapp-galeria:hover {
    transform: translateY(-5px);
    background-color: #128C7E;
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.3);
}

/* Estilo do Lightbox */
.lightbox {
    display: none; /* Escondido inicialmente */
    position: fixed;
    z-index: 2000; /* Acima de tudo */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 57, 35, 0.95); /* Verde profundo da ReabLar com opacidade */
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--bege-areia);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.foto-item img {
    cursor: pointer; /* Indica que a imagem é clicável */
}

/* Impede o tom azul de seleção nas imagens */
.foto-item img, .lightbox-content {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE 10 e 11 */
    user-select: none;         /* Padrão */
    -webkit-tap-highlight-color: transparent; /* Remove o brilho azul no mobile */
}

/* Garante que a imagem no lightbox não tenha filtros */
.lightbox-content {
    background-color: transparent;
    border: none;
    outline: none;
}

/* Classe para travar o scroll da página ao fundo */
.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Garante que o lightbox ocupe toda a tela e seja rolável apenas internamente se necessário */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 57, 35, 0.95);
    overflow-y: auto; /* Permite rolar apenas dentro do lightbox em telas pequenas */
}xx

/* SETAS DO LIGHTBOX */
.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bege-areia);
    font-size: 40px;
    font-weight: bold;
    padding: 16px;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    z-index: 2100;
}

.prev-slide { left: 20px; }
.next-slide { right: 20px; }

.prev-slide:hover, .next-slide:hover {
    color: #FFF;
    background-color: rgba(0,0,0,0.2);
    border-radius: 5px;
}

/* Estilo comum para as duas setas */
.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bege-areia);
    font-size: 50px; /* Aumentei um pouco para facilitar o clique */
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    z-index: 2200; /* Garante que fiquem na frente da imagem */
    transition: 0.3s;
    user-select: none;
}

/* POSICIONAMENTO ESPECÍFICO */
.prev-slide { 
    left: 30px; /* Fixa na esquerda */
}

.next-slide { 
    right: 30px; /* Fixa na direita */
}

.prev-slide:hover, .next-slide:hover {
    color: #FFF;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
@media (max-width: 600px) {
    .prev-slide { left: 5px; }
    .next-slide { right: 5px; }
    .prev-slide, .next-slide { font-size: 35px; }
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
}

.nota-convenio {
    font-size: 0.85rem;
    color: var(--bege-areia); /* Ou uma cor suave da sua paleta */
    opacity: 0.8;
    margin-bottom: 10px;
    font-style: italic;
}

@media (max-width: 480px) {
    header {
        padding: 10px 5%;
        justify-content: flex-start; /* Alinha o conjunto à esquerda */
    }

    .logo-link {
        gap: 10px; /* Espaço entre o ícone e o texto */
    }

    .logo-texto {
        display: flex !important; /* Garante que o texto apareça */
        flex-direction: column;
    }

    .nome-principal {
        font-size: 1.1rem; /* Tamanho equilibrado para celular */
    }

    .subtitulo {
        font-size: 0.65rem; /* Subtítulo bem discreto abaixo do nome */
        letter-spacing: 0.5px;
    }

    .logo-img {
        height: 40px; /* Redução leve para não ocupar muito espaço vertical */
    }
}

@media (max-width: 768px) {
    .grid-servicos {
        gap: 20px;
        padding: 0 10px;
    }

    .card {
        padding: 25px 20px;
        box-shadow: 0 4px 15px rgba(42, 57, 35, 0.1); /* Sombra para dar profundidade */
    }
    
    .hero h1 {
        font-size: 2rem; /* Título legível sem ocupar a tela toda */
        line-height: 1.2;
    }
}

@media (max-width: 968px) {
    .hero {
        height: auto; /* Permite que a seção cresça conforme o conteúdo */
        min-height: 100vh;
        padding-top: 60px; /* Dá espaço para o cabeçalho */
        padding-bottom: 60px;
        display: block; /* Muda de flex para block para evitar compressão */
    }

    .hero-container {
        flex-direction: column; /* Empilha o texto e o formulário */
        gap: 40px;
    }

    .hero-form {
        position: relative;
        z-index: 10; /* Garante que o formulário não seja coberto */
        margin-top: 20px;
    }
}

.missao-section {
    clear: both; /* Limpa qualquer flutuação anterior */
    position: relative;
    z-index: 5;
    padding: 80px 8%; /* Mantém o respiro entre as seções */
}