:root {
    --primary: #4a7c59;
    --secondary: #f4f7f5;
    --text: #2d3436;
    --white: #ffffff;
    --gap: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; } /* Scroll suave nativo */

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header Organizado */
header {
    height: 80px;
    display: flex;
    align-items: center;
    background: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 10px; /* Espaçamento entre os "botões" do menu */
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text); /* Cor original da fonte (escura) */
    font-weight: 600;
    font-size: 0.95rem;
    
    /* Cria o "botão transparente" */
    padding: 8px 16px;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid transparent; /* Reserva o espaço da borda */
    
    /* Transição suave para todas as propriedades */
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

/* Efeito Hover: Preenchimento Verde e Fonte Branca */
.nav-links li a:hover {
    background-color: var(--primary); /* Sua cor verde definida no :root */
    color: var(--white); /* Fonte muda para branco */
    transform: translateY(-2px); /* Leve levantamento visual */
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.2); /* Sombra suave */
}

/* Feedback Visual ao Clicar (Active) */
.nav-links li a:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    /* Ajuste da Logo */
    .logo { font-size: 1.1rem; }
    .logo span { font-size: 1.1rem; }
    .logo-container .nutri-icon { width: 22px; height: 22px; }

    /* Transformação do Botão */
    .btn-whatsapp-header {
        width: 44px !important; /* !important garante que nada sobrescreva */
        height: 44px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px; /* Impede que ele fique oval */
    }

    /* O TIRO DE MISERICÓRDIA NO TEXTO */
    .btn-whatsapp-header span {
        display: none !important; /* Aqui o texto morre de vez no mobile */
    }

    .btn-whatsapp-header svg {
        margin: 0 !important;
        width: 24px;
        height: 24px;
    }
	
	/* 1. Ajusta o container global para um padrão fixo */
    .container {
        padding: 0 20px !important; /* Define 20px de margem interna para o corpo */
    }

    /* 2. Nivela o header com o container do body */
    header nav.container {
        padding: 0 20px !important; /* Garante que o header use os mesmos 20px */
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* 3. Remove margens extras que podem estar empurrando a logo ou o botão */
    .logo-container, 
    .btn-whatsapp-header {
        margin-left: 0;
        margin-right: 0;
    }
	
	.hero-text {
		margin-top: 20px;
	}	
	
	
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

/* Seções Separadas */
section {
    padding: 100px 0; /* Garante o respiro entre seções */
}

/* HERO - Grid para evitar sobreposição */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    align-items: center;
}

.hero-img img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Localize a classe .hero-text e substitua/adicione: */

.hero-text {
    flex: 1;
    padding: 40px; /* Espaço entre o texto e o traçado verde */
    border: 2px solid var(--primary); /* O traçado verde */
    border-radius: 24px; /* Cantos arredondados profissionais */
    background-color: rgba(74, 124, 89, 0.03); /* Um fundo verde quase invisível para dar contraste */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Sombra leve para dar profundidade */
	
    
    /* Garante que a div não grude na imagem */
    margin-right: 20px; 
}

/* Ajuste para garantir que o título dentro da div fique alinhado */
.hero-text h1 {
    margin-top: 0;
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--text);
}

/* Ajuste Responsivo: No celular o traçado não deve ocupar muito espaço */
@media (max-width: 768px) {
    .hero-text {
        padding: 25px;
        margin-right: 0;
        margin-bottom: 30px; /* Espaço para a imagem que ficará embaixo */
        border-width: 1px; /* Traçado mais fino no mobile */
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }	
	
}

/* SOBRE - Flex para alinhamento */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: var(--gap);
    flex-wrap: wrap; /* Coloca imagem em cima no mobile */
}

.about-img, .about-text {
    flex: 1;
    min-width: 300px;
}

.about-img img {
    width: 100%;
    border-radius: 50%; /* Imagem circular opcional */
}

/* Configuração da Seção Método com Imagem de Fundo */
/* Seção Método com Overlay para consistência */
.method {
    padding: 100px 0;
    position: relative; /* Necessário para o overlay ::before */
    background-image: url('../img/fundo1.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Overlay escuro para a seção Método */
.method::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Mesma opacidade da seção contato */
    z-index: 1;
}

/* Garante que o conteúdo (título e cards) fique acima da película escura */
.method .container {
    position: relative;
    z-index: 2;
}

/* Ajuste da cor do título para branco total */
.method .section-title {
    color: var(--white);
    margin-bottom: 50px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Sombra leve para profundidade */
}

/* O estilo dos cards (glassmorphism) que já criamos 
   continuará funcionando perfeitamente sobre este novo fundo */

/* Título da seção (corrigindo cor para contraste) */
.method .section-title {
    color: var(--white);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Estilização dos Cards (Efeito de Vidro Verde) */
.method .card {
    background: rgba(74, 124, 89, 0.7); /* Verde da marca com 70% de transparência */
    backdrop-filter: blur(10px); /* Desfoque do fundo para legibilidade */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 20px;
    color: var(--white);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

/* Títulos e textos dentro do card para garantir contraste */
.method .card h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.method .card p {
    color: rgba(255, 255, 255, 0.9);
}

/* Efeito Hover nos Cards */
.method .card:hover {
    background: rgba(74, 124, 89, 0.85); /* Escurece um pouco mais no hover */
    transform: translateY(-10px); /* Sobe o card levemente */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent); /* Realça a borda com a cor de destaque */
}

/* GRID DE CARDS */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--secondary);
    padding: 30px;
    border-radius: 15px;
    transition: 0.3s;
}

/* Seção Serviços */
.services {
    padding: 100px 0;
    background-color: var(--light);
}

/* Container do cabeçalho da seção */
/* Garante que o cabeçalho ocupe a largura total e empurre o grid para baixo */
.section-header {
    width: 100%;
    display: block; 
    text-align: center;
    margin-bottom: 60px; /* Aumenta o respiro entre texto e cards */
}

/* Força o título a não aceitar nada ao lado dele */
.section-title {
    display: block;
    width: 100%;
	text-align: center;
    margin-bottom: 1px;
}

/* Força o subtítulo a ficar abaixo do título */
.section-subtitle {
    display: block;
    width: 100%;
    max-width: 700px; /* Limita a largura para melhor leitura */
    margin: 0 auto;   /* Centraliza o bloco */
	text-align: center;
	margin-bottom: 60px;
}

/* Garante que o grid comece apenas após o término do header */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Card em Destaque */
.service-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 1;
}

.badge-featured {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin: 25px 0;
    text-align: left;
    flex-grow: 1;
}

.service-features li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
}

/* Botões específicos da seção */
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Botões */
.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}

.btn-primary { background: var(--primary); color: white; margin-bottom: 5px; }
.btn-secondary { background: transparent; border: 2px solid var(--primary); color: var(--primary); }

/* Responsividade Mobile-First */
@media (max-width: 768px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .nav-links { display: none; } /* Oculta menu no mobile simples */
    header { height: 60px; }
    section { padding: 60px 0; }
}

/* Estilo do Botão WhatsApp no Header */
.btn-whatsapp-header {
    background-color: #25D366; /* Verde oficial do WhatsApp */
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    font-size: 0.9rem;
}

/* Efeito Hover: Aumenta levemente, muda a cor e aumenta a sombra */
.btn-whatsapp-header:hover {
    background-color: #128C7E; /* Verde mais escuro */
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Efeito de pulso sutil para chamar atenção sem ser irritante */
@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-whatsapp-header {
    animation: pulse-soft 2s infinite;
}

/* Ajuste para mobile: esconde o texto e deixa só o ícone se o espaço for curto */
@media (max-width: 480px) {
    .btn-whatsapp-header {
        padding: 10px;
    }
    /* Opcional: esconder o texto no mobile muito pequeno */
    /* .btn-whatsapp-header { font-size: 0; } */
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px; /* Espaço entre o ícone e o texto */
    text-decoration: none;
    font-size: 1.6rem;
    color: var(--text);
    font-family: 'Playfair Display', serif;
}

.logo span {
    color: var(--primary);
    font-weight: 400;
}

.logo strong {
    color: var(--primary);
    font-weight: 700;
}

/* Estilização do Ícone */
.nutri-icon {
    width: 32px;
    height: 32px;
    fill: var(--primary); /* O ícone assume a cor verde da sua paleta */
    transition: transform 0.3s ease;
}

/* Efeito sutil ao passar o mouse na logo */
.logo:hover .nutri-icon {
    transform: rotate(-10deg) scale(1.1);
}

/* Centralização da Seção de Contato */
/* Seção de Contato com o mesmo fundo da seção Método */
.cta-final {
    padding: 120px 0;
    text-align: center;
    position: relative;
    
    /* Mesmo Background da Section Método */
    background-image: url('../img/fundo1.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efeito Parallax */
    background-repeat: no-repeat;
    
    overflow: hidden;
}

/* Overlay escuro para destacar o texto e os botões */
.cta-final::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Película preta com 60% de opacidade */
    z-index: 1;
}

/* Garante que o conteúdo apareça acima do fundo e do overlay */
.cta-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Ajuste das cores dos textos para branco, visando contraste com o fundo novo */
.cta-final h2 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.cta-final p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 1px;
	text-align: center;
}

/* Mantendo o alinhamento dos botões */
.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Agrupamento dos botões */
.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 5px;
}

/* Estilo Base dos Botões de Contato */
.btn-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: white;
}

/* Estilo WhatsApp */
.btn-whatsapp {
    background-color: #25D366;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
}

/* Estilo Instagram (Degradê Oficial) */
.btn-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 10px 20px rgba(214, 36, 159, 0.2);
}

.btn-instagram:hover {
    filter: brightness(1.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(214, 36, 159, 0.4);
}

/* Responsividade Mobile */
@media (max-width: 600px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cta {
        width: 100%;
        justify-content: center;
    }
}

/* --- Footer Styling (Fundo Branco) --- */
.footer {
    background-color: var(--white); /* Fundo branco conforme solicitado */
    color: #333; /* Texto escuro para leitura sobre o branco */
    padding: 30px 0 20px;
    border-top: 1px solid #eee; /* Linha sutil para separar da seção anterior */
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    font-weight: 500;
    color: #777;
}

.dev-credits {
    font-size: 0.95rem;
    color: #444;
}

.designer-name {
    font-size: 0.85rem;
    color: #888;
}

/* Efeito de Hover no Link HRLM Sites */
.dev-link {
    color: var(--primary); /* Azul principal para o link */
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: var(--transition);
}

.dev-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary); /* Linha verde ao passar o mouse */
    transition: width 0.3s ease;
}

.dev-link:hover {
    color: var(--secondary); /* Muda para verde no hover */
}

.dev-link:hover::after {
    width: 100%;
}

/* Miniatura da Logo HRLM */
.miniature-logo {
    width: 50px; /* Miniatura discreta */
    height: auto;
    margin-top: 5px;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.miniature-logo:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Remove os pontos da lista na seção Sobre */
.check-list {
    list-style: none; /* Remove os marcadores/pontinhos */
    padding: 0;
    margin: 10px 0;
}

.check-list li {
    margin-bottom: 5px;
    font-size: 1.03rem;
    color: var(--text);
    display: flex; /* Alinha o check e o texto perfeitamente */
    align-items: center;
    gap: 10px;
}

/* Opcional: Deixar o símbolo de check verde para destacar */
.check-list li::before {
    /* Se você quiser remover o ✓ do HTML e colocar via CSS, 
       mas por enquanto, vamos apenas garantir que o texto esteja limpo */
}

.testimonials {
    padding: 100px 0;
    background-color: var(--secondary);
    overflow: hidden;
}

.testimonial-wrapper {
    width: 100%;
    margin-top: 40px;
    position: relative;
}

.testimonial-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    cursor: grab;
}

.testimonial-card {
    min-width: calc(33.333% - 14px); /* Mostra 3 cards por vez no desktop */
    background: var(--primary); /* Fundo verde conforme pedido */
    padding: 40px 30px;
    border-radius: 20px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.testimonial-card .quote-icon {
    font-size: 3rem;
    line-height: 1;
    opacity: 0.5;
    margin-bottom: 15px;
}

.testimonial-card .testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--white);
}

.testimonial-card .patient-name {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: #d1e7d8; /* Verde bem clarinho para o nome */
}

/* Controles */
.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.control-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}

.control-btn:hover {
    background: var(--text);
    transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 992px) {
    .testimonial-card {
        min-width: calc(50% - 10px); /* 2 cards no tablet */
    }
}

@media (max-width: 600px) {
    .testimonial-card {
        min-width: 100%; /* 1 card no mobile */
    }
}