/* ==========================================
   1. CONFIGURAÇÕES GERAIS E VARIÁVEIS
   (base = style.css antigo do app de naturopatia)
   ========================================== */

:root {
    color-scheme: light only;

    /* COR PRINCIPAL */
    --cor-predominante: #1B3B22;

    --cor-branca: #FFFFFF;

    --cor-texto-escura: #1B3B22;

    --cor-sombra-escura: rgba(0, 0, 0, 0.30);

    /* DOURADO */
    --degrau-ouro-1: #c5a059;
    --degrau-ouro-2: #947436;
    --borda-ouro: #735926;

    --cor-texto-barra: #1a1a1a;

    /* BARRA */
    --barra-bg:
        linear-gradient(
            145deg,
            var(--degrau-ouro-1),
            var(--degrau-ouro-2)
        );

    --barra-border:
        1px solid var(--borda-ouro);

    --barra-shadow:
        inset 0px 1px 2px rgba(255,255,255,0.2),
        0px 4px 6px rgba(0,0,0,0.30);

    --barra-font-style: italic;
}

/* ==========================================
   2. TEMPLATES (opções de visual)
   Um único seletor: ou uma cor sólida (04/05/06)
   ou um fundo com foto (campo/praia). Escolhe-se
   SEMPRE só uma dessas classes no app-container.
   ========================================== */

.app-container.modelo04 {
    --cor-predominante: #1B3B22;
    --cor-texto-escura: #1B3B22;

    --cor-texto-barra: #1B3B22;

    --barra-font-style: normal;
}

.app-container.modelo05 {
    --cor-predominante: #809758;
    --cor-texto-escura: #809758;
}

.app-container.modelo06 {
    --cor-predominante: #4b8ddc;
    --cor-texto-escura: #4b8ddc;
}

.app-container.fundo-campo {
    --cor-predominante: #1B3B22;
    --cor-texto-escura: #1B3B22;
    background-image: url('../imagens/fundo-campo.jpg');
    background-size: cover;
    background-position: center;
}

.app-container.fundo-praia {
    --cor-predominante: #12586b;
    --cor-texto-escura: #12586b;
    background-image: url('../imagens/fundo-praia.jpg');
    background-size: cover;
    background-position: center;
}

/* ==========================================
   RESET
   ========================================== */

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

/* ==========================================
   BODY
   ========================================== */

body {
    background-color: #f0f2f5;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px;
}

/* ==========================================
   APP CONTAINER
   ========================================== */

.app-container {
    background-color: var(--cor-predominante);
    width: 100%;
    max-width: 380px;
    height: 870px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.40);
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    transition: background-color 0.3s ease;
}

/* ==========================================
   CABEÇALHO
   Logo + nome lado a lado, centralizados como
   grupo (igual ao layout antigo).
   ========================================== */

.app-header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 18px 0 20px 0;
}

.header-caixa {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 14px 18px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.20);
    display: flex;
    justify-content: center;
    width: 100%;
}

.header-centro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    margin: 0 auto;
}

.logo-container {
    width: 98px;
    height: 98px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 3px solid var(--degrau-ouro-1);
    background: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    overflow: hidden;
    padding: 3px;
}

.app-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 220px;
}

.header-text .nome-img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.nome-texto {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.linha-nome {
    display: block;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--cor-predominante);
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
}

.linha-nome-1 { font-size: 30px; }
.linha-nome-2 { font-size: 26px; }
.linha-nome-3 { font-size: 21px; }

.header-text h2 {
    margin-top: 6px;
    width: 100%;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(27, 59, 34, 0.9);
}

.header-text h2:empty {
    display: none;
}

/* ==========================================
   BARRA DOURADA
   ========================================== */

.destaque-bar {
    background: #FFFFFF;
    border: var(--barra-border);
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    box-shadow: var(--barra-shadow);
    margin-bottom: 20px;
}

.destaque-bar span {
    font-family: 'Playfair Display', serif;
    font-style: var(--barra-font-style);
    color: var(--cor-texto-barra);
    font-size: 15px;
    font-weight: 600;
}

.destaque-bar::after {
    content: "›";
    display: inline-block;
    margin-left: 6px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--cor-texto-barra);
    opacity: 0.55;
}

/* ==========================================
   CAIXA CENTRAL
   flex:1 preenche o espaço restante sozinho —
   não precisa de altura fixa em pixels.
   ========================================== */

.main-banner {
    background: var(--pagina-card-bg, #FFFFFF);
    width: 100%;
    flex: 1;
    min-height: 0;
    border-radius: 22px;
    box-shadow: inset 0px 2px 8px rgba(0,0,0,0.10);
    color: #333333;
    line-height: 1.6;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.conteudo-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px 26px;
    padding-bottom: 68px;
    display: flex;
    flex-direction: column;
}

.main-banner h3,
.conteudo-titulo {
    font-family: 'Playfair Display', serif;
    color: var(--pagina-titulo, #39553B);
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
}

.main-banner p,
.conteudo-texto {
    color: var(--pagina-texto, #444444);
    line-height: 1.7;
    white-space: pre-line;
}

/* Home (logo central sozinho, sem texto) */

.home-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-foto-circulo {
    width: 78%;
    aspect-ratio: 1 / 1;
    max-width: 300px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(145deg, var(--degrau-ouro-1), var(--degrau-ouro-2));
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.home-foto-circulo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.home-foto-circulo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-wifi {
    margin-top: 16px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--pagina-texto, #444444);
    line-height: 1.6;
}

.home-wifi b {
    color: var(--pagina-titulo, #39553B);
}

/* Listas (serviços / atividades) */

.lista-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.lista-item:last-child { border-bottom: none; }

.lista-item-linha {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.lista-item-nome {
    font-weight: 700;
    color: var(--pagina-texto, #333333);
    font-size: 14px;
}

.lista-item-preco {
    font-weight: 700;
    font-size: 13px;
    color: var(--degrau-ouro-2);
    white-space: nowrap;
}

.lista-item-descricao {
    font-size: 13px;
    color: #666666;
    margin-top: 3px;
}

/* Galeria */

.galeria-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.galeria-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

/* Contato */

.contato-linha {
    padding: 8px 0;
    font-size: 14px;
}

.contato-linha b { color: var(--pagina-titulo, #39553B); }

.link-mapa {
    color: var(--pagina-titulo, #39553B);
    font-weight: 700;
    text-decoration: underline;
}

/* Redes sociais (dentro do botão Sobre Nós) */

.redes-inline {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.rede-social {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.20);
}

.rede-social img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    max-height: none;
}

/* Botão voltar */

.btn-voltar-home {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: var(--pagina-card-bg, #FFFFFF);
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    border: 1.5px solid var(--pagina-titulo, #39553B);
    color: var(--pagina-titulo, #39553B);
    border-radius: 20px;
    padding: 6px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    z-index: 2;
}

/* ==========================================
   BOTÕES (grade 3x2)
   ========================================== */

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.btn-3d {
    background-color: #FFFFFF;
    color: var(--cor-texto-escura);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    padding: 6px 4px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.15;
    border: 1px solid #e2e2e2;
    border-bottom: 4px solid #cccccc;
    box-shadow: 0px 5px 6px rgba(0,0,0,0.25);
    transition: all 0.08s ease;
    min-width: 0; /* impede que uma palavra sem espaço force a coluna a crescer além da conta */
    width: 88%;
    margin: 0 auto;
}

.btn-3d:active {
    transform: translateY(3px);
    border-bottom: 1px solid #cccccc;
}
/* ==========================================
   BOTÃO AGENDAR (antigo WhatsApp)
   ========================================== */

.app-footer {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-agendar {
    width: 68%;
    display: block;
    text-align: center;
    text-decoration: none;
    background: #FFFFFF;                    /* fundo branco fixo */
    color: var(--cor-texto-escura);         /* AGORA USA A COR DO TEMPLATE (igual aos outros botões) */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.3px;
    padding: 14px;
    border-radius: 14px;
    border: none;                           /* removida a borda dourada */
    box-shadow: 0px 5px 6px rgba(0,0,0,0.25);
    transition: all 0.08s ease;
}

.btn-agendar:active {
    transform: translateY(3px);
}
/* ==========================================
   ROLAGEM
   ========================================== */

.main-banner::-webkit-scrollbar { width: 6px; }

.main-banner::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.20);
    border-radius: 10px;
}

/* ==========================================
   RESPONSIVO
   ========================================== */

@media (max-width: 480px) {

    body { padding: 0; }

    .app-container {
        width: 100vw;
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
    }

    .logo-container {
        width: 88px;
        height: 88px;
    }

    .header-text .nome-img {
        max-height: 66px;
    }

    .btn-3d {
        font-size: 15.5px;
        padding: 5px 3px;
        overflow-wrap: break-word;
word-break: break-word;
hyphens: auto;
    }
    
}

/* ==========================================
   BOTÃO FLUTUANTE - BAIXAR O APP
   ========================================== */

.btn-instalar-app {
    position: absolute;
    bottom: 22px;
    right: 18px;
    z-index: 9999;
    background-color: #e30613;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    padding: 14px 22px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-instalar-app:hover {
    transform: scale(1.04);
    box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.45);
}

.btn-instalar-app:active { transform: scale(0.97); }

.btn-instalar-app .icone-instalar {
    font-size: 18px;
    line-height: 1;
}

.btn-instalar-app[hidden] { display: none; }

@media (max-width: 380px) {
    .btn-instalar-app {
        padding: 12px 16px;
        font-size: 13px;
        bottom: 16px;
        right: 12px;
    }
}

/* ==========================================
   MODAL DE INSTRUÇÕES (iOS / navegadores sem suporte)
   ========================================== */

.overlay-instalar-app {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.overlay-instalar-app[hidden] { display: none; }

.caixa-instalar-app {
    background: #FFFFFF;
    border-radius: 14px;
    max-width: 340px;
    width: 100%;
    padding: 24px 22px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.4);
}

.caixa-instalar-app h3 {
    margin: 0 0 12px 0;
    font-size: 17px;
    color: #1B3B22;
}

.caixa-instalar-app p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
    text-align: left;
}

.caixa-instalar-app .fechar-instalar-app {
    margin-top: 16px;
    background-color: #e30613;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

/* ==========================================
   TEMAS DOS BLOCOS (conteúdo interno dos botões)
   ========================================== */

.app-container.temaClassic {
    --pagina-card-bg: #F0EBDA;
    --pagina-titulo: #39553B;
    --pagina-texto: #444444;
    --pagina-botao: #678D3C;
    --pagina-botao-texto: #FFFFFF;
}

.app-container.temaCeu {
    --pagina-card-bg: #e1ecf8;
    --pagina-titulo: #39553B;
    --pagina-texto: #3A421B;
    --pagina-botao: #678D3C;
    --pagina-botao-texto: #FFFFFF;
}

.app-container.temaClean {
    --pagina-card-bg: #FFFFFF;
    --pagina-titulo: #39553B;
    --pagina-texto: #3A421B;
    --pagina-botao: #678D3C;
    --pagina-botao-texto: #FFFFFF;
}


