:root {
    /* Cores ajustadas para o padrão Dourado/Bronze/Marrom */
    --main-dark-bg: #443c33; /* Fundo escuro/marrom */
    --main-gold: #c39a67; /* Dourado/Bronze principal (acentos) */
    --text-color-light-gold: #f8f0e8; /* Texto claro usado em fundos escuros */
    --text-color-dark: #333333; /* Texto escuro padrão */

    --max-content-width: 450px; 
}

body {
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif; 
    background-color: #d8c2aa94; 
    background-image: url('img/fundo\ \(5\).png'); 
    background-size: cover;
    background-position: center; 
    background-attachment: fixed; 
    background-repeat: no-repeat;
    
    margin: 0;
    padding: 20px 0; 
    
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--max-content-width); 
    box-sizing: border-box;
    text-align: center; 
    padding: 0 20px; 
}

.profile-info {
    margin-bottom: 30px;
    color: var(--text-color-light-gold); 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4); 
}

.profile-pic {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
    box-shadow: 0 0 5px #f0f0f0;
    margin-top: 20px;
}

.profile-nome {
    width: 90%; 
    max-width: 350px; 
    height: auto;
    margin-top: 5px;
    margin-bottom: -10px;
}

.links-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; 
}

/* ------------------------------------- */
/* ESTILOS DOS BOTÕES DE LINK (IMAGEM DE FUNDO) */
/* ------------------------------------- */

.link-item {
    display: block;
    width: 100%; 
    max-width: 450px;
    height: 120px; 
    border-radius: 10px; 
    overflow: hidden;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none; 
}

.whatsapp-link {
    background-image: url('img/botton01.png'); 
}

.localizacao-link {
    background-image: url('img/localizacao1.png'); 
}

.servicos-link {
    background-image: url('img/servico.png'); 
}

.link-item:hover, .link-item:active {
    transform: scale(0.99);
    opacity: 0.95;
}

.link-content {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: transparent; 
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


/* ------------------------------------- */
/* FOOTER E MODAL (Geral e Desktop) */
/* ------------------------------------- */

.footer {
    margin-top: 30px; 
    padding: 20px 0;
    color: #f0f0f0; 
    font-size: 0.8em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer a {
    color: #f0f0f0; 
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); 
    overflow-y: auto; 
    padding: 20px 0; /* Padding usado em Desktop/Tablet */
}
    
.modal.is-active {
    display: block; 
}

.modal-content {
    background-color: #ffffff; 
    margin: 5% auto; /* Margem superior/inferior em Desktop */
    padding: 30px;
    border-radius: 8px; 
    width: 90%; 
    max-width: 500px; 
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s; 
}

.close-button {
    color: #888;
    float: right;
    font-size: 32px;
    font-weight: 300; 
    cursor: pointer;
    transition: color 0.2s;
    line-height: 20px;
    padding: 0 5px;
}

.close-button:hover, .close-button:focus {
    color: #333;
}

.modal-title {
    color: var(--main-dark-bg); 
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.modal-subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 25px;
    font-size: 1em;
}

.doctor-panel-title {
    color: var(--main-dark-bg); 
    font-size: 1.4em;
    margin: 15px 0 15px;
    text-align: center;
    border-bottom: none; 
    padding-bottom: 0;
}

/* ------------------------------------- */
/* BOTÕES DE SELEÇÃO DE DOUTORAS (ESTILO DOURADO/BRONZE REFINADO) */
/* ------------------------------------- */
.doctor-buttons-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px; 
    gap: 15px; 
}

.doctor-button {
    flex: 1;
    padding: 12px 15px; 
    border: 1px solid var(--main-gold); 
    background-color: #fcfcfc; 
    color: var(--main-dark-bg); 
    cursor: pointer;
    border-radius: 8px; 
    font-weight: bold;
    transition: all 0.2s ease;
    font-size: 1em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); 
}

.doctor-button:hover:not(.active) {
    background-color: #f5f5f5;
}

.doctor-button.active {
    background-color: var(--main-gold); 
    color: white; 
    border-color: var(--main-gold);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}

/* ------------------------------------- */
/* ACORDEÃO (Ohana e Pietra) */
/* ------------------------------------- */
.accordion-panel {
    display: none; 
    animation: slideIn 0.5s ease-out;
}

.accordion-panel.active {
    display: block; 
}

@keyframes slideIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    overflow: hidden; 
}

.accordion-header {
    background-color: #fdfdfd; 
    color: var(--text-color-dark);
    cursor: pointer;
    padding: 15px 20px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 1.1em;
    font-weight: 600; 
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.accordion-header.active {
    background-color: var(--main-gold); 
    color: white;
}

.accordion-body {
    padding: 0 20px;
    background-color: #fff;
    max-height: 0; 
    overflow: hidden;
    transition: max-height 0.4s ease-out; 
    text-align: left; 
}

.accordion-body p { 
    padding: 15px 0;
    margin: 0;
    color: #444;
}

.accordion-body ul {
    list-style: none; 
    padding-left: 0;
    margin: 15px 0 15px 0; 
    text-align: left; 
}

.accordion-body ul li {
    padding: 7px 0;
    border-bottom: 1px dashed #eee;
    color: #444;
    position: relative;
    padding-left: 20px;
}

.accordion-body ul li:before {
    content: '•';
    color: var(--main-gold); 
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

.accordion-body ul li:last-child {
    border-bottom: none;
}

/* ------------------------------------- */
/* RESPONSIVIDADE (CORREÇÃO DE MODAL MOBILE) */
/* ------------------------------------- */
@media (max-width: 600px) { 
    
    .modal.is-active {
        /* Garante que o container do modal use Flexbox para centralizar */
        display: flex; 
        align-items: center;
        justify-content: center;
        overflow-y: auto; /* Permite rolagem no fundo preto se a tela for pequena */
        padding: 0; 
    }

    .modal-content {
        /* Esta é a chave para o visual "encaixotado" */
        width: 80%; 
        max-width: 450px; /* Garante que não ultrapasse a largura do linktree */
        margin: 20px auto; /* Adiciona margem acima/abaixo e centraliza horizontalmente */
        padding: 20px; /* Reduz o padding interno em mobile */
        /* Removido margin: 5% auto; de desktop para não interferir */
    }
    
    /* Outros ajustes de tamanho */
    .modal-title {
        font-size: 1.4em; 
    }
    
    .doctor-button {
        padding: 10px 10px;
        font-size: 0.9em;
    }
    
    .accordion-header {
        font-size: 1em;
    }
}