/*-----------------------------------*/
/* 1. VARIÁVEIS E ESTILOS GLOBAIS    */
/*-----------------------------------*/
:root {
    --cor-principal-verde: #4CAF50;
    --cor-principal-roxo: #9C27B0;
    --cor-texto: #333;
    --cor-fundo: #fdfaf7;
    --verde: #5A9A4A;
    --roxo: #8A4B9A;
    --roxo-escuro: #6d3a7a;
    --verde-claro: #f0f7ef;
    --cinza-texto: #555;
    --cinza-claro: #f4f4f4;
    --branco: #ffffff;
    --sombra: 0 3px 12px rgba(0, 0, 0, 0.06); /* Sombra menor */
    --fonte-titulo: 'Poppins', sans-serif;
    --fonte-corpo: 'Nunito', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { 
    scroll-behavior: smooth;
    font-size: 80%; /* Reduzido de 80% para 70% (~12.5% adicional para compactar) */
} 

body {
    font-family: var(--fonte-corpo);
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
    line-height: 1.6;
    font-size: 14px; /* Reduzido de 16px (~12.5%) */
}

/*-----------------------------------*/
/* 2. HEADER E NAVEGAÇÃO             */
/*-----------------------------------*/
header { position: relative; z-index: 100; }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.6rem; /* Reduzido de 1rem 2rem (~20%) */
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo img { max-height: 80px; transition: max-height 0.3s ease; } /* Reduzido de 100px (~20%) */

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.6rem; /* Reduzido de 2rem (~20%) */
    margin: 0;
}
.nav-links a {
    text-decoration: none;
    color: var(--cor-principal-roxo);
    font-weight: 700;
    font-family: var(--fonte-titulo);
    font-size: 1rem; /* Reduzido de 1.25rem (~20%) */
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}
.nav-links a:hover { color: var(--cor-principal-verde); }

.hamburger { display: none; cursor: pointer; }
.bar {
    display: block; width: 20px; height: 3px; margin: 4px auto; /* Reduzido de 25px e 5px */
    transition: all 0.3s ease-in-out; background-color: var(--roxo);
}

/*-----------------------------------*/
/* 3. SEÇÕES GERAIS E COMPONENTES    */
/*-----------------------------------*/
#hero { text-align: center; padding: 4rem 1.5rem; } /* Reduzido de 5rem */

.container { max-width: 880px; margin: 0 auto; padding: 0 1.2rem; } /* Reduzido de 1100px e 1.5rem (~20%) */

section { padding: 4rem 0; } /* Reduzido de 5rem (~20%) */

.btn-principal {
    display: inline-block;
    padding: 8px 16px; /* Reduzido de 10px 20px (~20%) */
    border-radius: 4px; /* Reduzido de 5px */
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background-color: var(--verde);
    color: var(--branco);
    font-family: 'Poppins', sans-serif;
}
.btn-principal:hover {
    background-color: #4a803d;
    transform: translateY(-2px); /* Reduzido de -3px */
    box-shadow: 0 3px 8px rgba(0,0,0,0.2); /* Sombra menor */
}

/*-----------------------------------*/
/* 4. PÁGINA DE ADOÇÃO               */
/*-----------------------------------*/
#adocao-hero {
    background-color: var(--verde-claro);
    text-align: center;
    padding: 3.2rem 0; /* Reduzido de 4rem (~20%) */
}

.adocao-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); /* Reduzido de 280px (~20%) */
    gap: 1.2rem; /* Reduzido de 1.5rem (~20%) */
    margin-top: 2.4rem; /* Reduzido de 3rem (~20%) */
}

.adocao-card {
    background: var(--branco);
    border-radius: 12px; /* Reduzido de 15px */
    box-shadow: var(--sombra);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; 
    display: flex;
    flex-direction: column;
}
.adocao-card:hover {
    transform: translateY(-8px); /* Reduzido de -10px */
    box-shadow: 0 6px 20px rgba(0,0,0,0.12); /* Sombra menor */
}

.adocao-card-info { padding: 0.8rem; flex-grow: 1; } /* Reduzido de 1rem */
.adocao-card-info h3 { font-size: 1.28rem; margin-bottom: 0.4rem; } /* Reduzido de 1.4rem e 0.5rem */
.adocao-card-info p { font-size: 0.72rem; margin-bottom: 0.2rem; color: #777; } /* Reduzido de 0.9rem e 0.25rem */
.adocao-card-info i { margin-right: 0.4rem; color: var(--verde); }
.adocao-card-info .card-divider { border: 0; height: 1px; background-color: #eee; margin: 0.6rem 0; } /* Reduzido de 0.75rem */
.adocao-card-info p strong { color: var(--cor-texto); font-weight: 700; }
.fab.fa-whatsapp { color: var(--verde); }

/* --- AJUSTES ADOÇÃO (BOTÕES E MODAL) --- */
/* Garante que o botão principal (Falar com Responsável) ocupe a largura total */
.adocao-card-info .btn-adocao-principal {
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 10px; /* Adiciona espaço abaixo dele */
}

/* Força a visualização quadrada (contain) no modal de adoção */
.modal-imagem-quadrada {
    height: auto !important; /* Remove qualquer altura fixa */
    aspect-ratio: 1 / 1; /* Força o container a ser quadrado */
    background-color: #f0f0f0; /* Fundo caso a imagem não preencha */
    border-radius: 8px;
}

.modal-imagem-quadrada .adocao-imagem {
    object-fit: contain !important; /* Mostra a imagem inteira, sem cortar */
    width: 100%;
    height: 100%;
}

/* Ajuste para o container dos 3 botões de share */
.adocao-card-info .servico-share-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee; /* Linha divisória */
}


/* --- ESTILOS PARA O MODAL DE DETALHE DA ADOÇÃO --- */
.modal-servico .adocao-detalhe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.modal-servico .adocao-detalhe-fotos .card-imagem-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.modal-servico .adocao-detalhe-info h3 {
    font-size: 1.8rem;
    margin-top: 0;
}

.modal-servico .adocao-detalhe-info p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.modal-servico .adocao-detalhe-info p i {
    margin-right: 8px;
    color: var(--roxo);
}

.modal-servico .status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    background-color: #28a745;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Ajuste para botões de compartilhar nos cards */
.servico-share-actions {
    display: flex;
    justify-content: center; /* Centraliza os botões */
    gap: 0.5rem;
    margin-top: auto;
}

.servico-share-actions .btn-copy-link,
.servico-share-actions .btn-whatsapp-share,
.servico-share-actions .btn-open-detalhe {
    flex: 1; /* Faz os botões ocuparem espaço igual */
    padding: 6px 10px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
    background: #eef2ff; /* Fundo roxo-claro */
    color: #4f46e5; /* Texto roxo */
}
.servico-share-actions .btn-whatsapp-share {
    background: #25d366;
    color: #fff;
}

.servico-share-actions .btn-copy-link:hover,
.servico-share-actions .btn-open-detalhe:hover {
    background-color: #e0e7ff;
}
.servico-share-actions .btn-whatsapp-share:hover {
    background-color: #1da851;
}

.btn-excluir {
    position: absolute; top: 8px; right: 8px; /* Reduzido de 10px */
    background: rgba(220, 53, 69, 0.8);
    color: white; border: none; border-radius: 50%;
    width: 24px; height: 24px; cursor: pointer; /* Reduzido de 30px */
    display: flex; justify-content: center; align-items: center;
    font-size: 0.72rem; transition: all 0.3s ease; /* Reduzido de 0.9rem */
    opacity: 0; transform: scale(0.8); z-index: 5;
}
.adocao-card:hover .btn-excluir { opacity: 1; transform: scale(1); }
.btn-excluir:hover { background: #dc3545; transform: scale(1.05); } /* Reduzido de 1.1 */

.anunciar-btn-container { text-align: center; margin-bottom: 2.4rem; } /* Reduzido de 3rem */

#formulario-adocao { background-color: var(--verde-claro); }
.form-adocao {
    max-width: 480px; margin: 0 auto; /* Reduzido de 600px */
    padding: 16px; background-color: #f9f9f9; /* Reduzido de 20px */
    border-radius: 10px; box-shadow: 0 0 8px rgba(0,0,0,0.1); /* Sombra menor */
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; } /* Reduzido de 1.5rem */
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-adocao .form-group label { margin-bottom: 6px; font-weight: bold; } /* Reduzido de 8px */
.form-adocao .form-group input, 
.form-adocao .form-group textarea {
    width: 100%; padding: 8px; border: 1px solid #ccc; /* Reduzido de 10px */
    border-radius: 5px; font-size: 0.9rem; /* Reduzido de 1rem */
}
.form-group textarea { resize: vertical; min-height: 96px; } /* Reduzido de 120px */
.char-counter { text-align: right; font-size: 0.72rem; color: #888; } /* Reduzido de 0.8rem */
.form-adocao button { width: 100%; margin-top: 1.2rem; font-size: 0.99rem; } /* Reduzido de 1.5rem e 1.1rem */

/* SLIDER DE IMAGENS NO CARD */
.card-imagem-container {
    position: relative;
    width: 100%; height: 200px; /* Reduzido de 250px (~20%) */
    overflow: hidden;
}
.card-imagem-container .adocao-imagem {
    display: none;
    width: 100%; height: 100%;
    object-fit: cover; position: absolute; top: 0; left: 0;
    cursor: pointer;
}
.card-imagem-container .adocao-imagem.active { display: block; }

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4); color: white;
    border: none; cursor: pointer; padding: 0.4rem; /* Reduzido de 0.5rem */
    z-index: 2; font-size: 1rem; line-height: 1; /* Reduzido de 1.2rem */
    transition: background-color 0.3s ease;
}
.slider-btn:hover { background-color: rgba(0, 0, 0, 0.7); }
.slider-btn.prev { left: 4px; border-radius: 0 3px 3px 0; } /* Reduzido de 5px */
.slider-btn.next { right: 4px; border-radius: 3px 0 0 3px; } /* Reduzido de 5px */

/*-----------------------------------*/
/* 5. PÁGINA DE AGENDAMENTO E CONTATO */
/*-----------------------------------*/
#agendamento-form, #contato { padding: 2.4rem 0; } /* Reduzido de 3rem */

#form-agendamento, .form-contato, #form-agendamento-publico {
  max-width: 100%; margin: 0 auto;
  padding: 2rem; background-color: #ffffff; /* Reduzido de 2.5rem */
  border-radius: 10px; box-shadow: var(--sombra); /* Sombra menor */
  display: grid; grid-template-columns: 1fr; gap: 0.8rem; /* Reduzido de 1rem */
}
#form-agendamento label, .form-contato label, #form-agendamento-publico label {
  margin-bottom: 6px; font-weight: bold; display: block; /* Reduzido de 8px */
}
#form-agendamento input, #form-agendamento select,
.form-contato input, .form-contato textarea,
#form-agendamento-publico input, #form-agendamento-publico select {
  width: 100%; padding: 8px; margin-bottom: 16px; /* Reduzido de 10px e 20px */
  border: 1px solid #ccc; border-radius: 5px; /* Reduzido de 6px */
  font-family: var(--fonte-corpo); font-size: 0.9rem; /* Reduzido de 1rem */
}

#contato-hero {
    background-color: var(--verde-claro);
    text-align: center; padding: 3.2rem 0; /* Reduzido de 4rem */
}
.contato-wrapper { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; } /* Reduzido de 40px */
.contato-form-container { flex: 1 1 400px; max-width: 480px; } /* Reduzido de 500px e 600px */
.contato-mapa-container { flex: 1 1 320px; max-width: 480px; } /* Reduzido de 400px e 600px */
.contato-info { margin-bottom: 1.6rem; } /* Reduzido de 2rem */
.contato-info h3 { margin-bottom: 0.8rem; } /* Reduzido de 1rem */
.social-links-contato { display: flex; gap: 12px; align-items: center; } /* Reduzido de 15px */
.social-icon { width: 120px; transition: transform 0.3s ease; } /* Reduzido de 150px */
.social-icon:hover { transform: scale(1.05); } /* Reduzido de 1.1 */
.mapa-wrapper { border-radius: 12px; overflow: hidden; box-shadow: var(--sombra); }
.mapa-wrapper iframe { border: 0; width: 100%; height: 400px; } /* Reduzido de 500px */

/*-----------------------------------*/
/* 6. ÁREA DE LOGIN (NOVO)           */
/*-----------------------------------*/
#login-section {
    padding: 4rem 1.5rem; /* Reduzido de 5rem */
    display: flex; justify-content: center; align-items: center;
    min-height: 48vh; /* Reduzido de 60vh (~20%) */
}
.login-container {
    max-width: 320px; width: 100%; /* Reduzido de 400px */
    padding: 2rem; background: var(--branco); /* Reduzido de 2.5rem */
    border-radius: 12px; box-shadow: var(--sombra);
    border-top: 4px solid var(--roxo);
}
.login-container h2 { margin-bottom: 1.6rem; font-size: 1.52rem; } /* Reduzido de 2rem e 1.8rem */
.login-container .form-group label {
    font-weight: bold; margin-bottom: 0.4rem; display: block; /* Reduzido de 0.5rem */
}
.login-container .form-group input {
    width: 100%; padding: 0.64rem; border: 1px solid #ccc; /* Reduzido de 0.8rem */
    border-radius: 5px; margin-bottom: 1.2rem; font-size: 0.9rem; /* Reduzido de 1rem e 1.5rem */
}
.login-container .btn-principal { width: 100%; font-size: 0.99rem; padding: 0.64rem; } /* Reduzido de 1.1rem e 0.8rem */

/*-----------------------------------*/
/* 7. COMPONENTES DIVERSOS           */
/*-----------------------------------*/
.modal {
    display: none; position: fixed; z-index: 2000; padding-top: 40px; /* Reduzido de 50px */
    left: 0; top: 0; width: 100%; height: 100%; overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.modal-content {
    margin: auto; display: block; width: 80%; max-width: 560px; /* Reduzido de 700px */
    animation-name: zoom; animation-duration: 0.6s;
}

.close-modal {
    position: absolute; top: 12px; right: 28px; color: #f1f1f1; /* Reduzido de 15px e 35px */
    font-size: 32px; font-weight: bold; cursor: pointer; transition: 0.3s; /* Reduzido de 40px */
}
.close-modal:hover, .close-modal:focus { color: #bbb; }

.modal-slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4); color: white;
    border: none; cursor: pointer; padding: 0.8rem; /* Reduzido de 1rem */
    z-index: 2001; font-size: 1.6rem; line-height: 1; /* Reduzido de 2rem */
    transition: background-color 0.3s ease; display: none;
}
.modal-slider-btn:hover { background-color: rgba(0, 0, 0, 0.7); }
.modal-slider-btn.prev { left: 8px; border-radius: 0 3px 3px 0; } /* Reduzido de 10px */
.modal-slider-btn.next { right: 8px; border-radius: 3px 0 0 3px; } /* Reduzido de 10px */

.whatsapp-float {
    position: fixed; width: 48px; height: 48px; bottom: 32px; right: 32px; /* Reduzido de 60px e 40px */
    background-color: #25d366; color: #FFF; border-radius: 50px;
    font-size: 24px; box-shadow: 2px 2px 8px rgba(0,0,0,0.3); /* Sombra menor */
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.05); } /* Reduzido de 1.1 */

footer {
    display: flex; flex-direction: column; align-items: center;        
    padding: 16px 0; margin-top: 32px; /* Reduzido de 20px e 40px */
}

/* --- ESTILO PARA O BANNER DE "ADOTADO" --- */
.adotado-banner {
    position: absolute; top: 16px; left: -36px; /* Reduzido de 20px e -45px */
    background-color: #e63946; color: white;
    padding: 6px 32px; font-weight: bold; font-size: 0.8rem; /* Reduzido de 8px 40px e 1rem */
    text-transform: uppercase; transform: rotate(-45deg);
    z-index: 10; box-shadow: 0 3px 8px rgba(0,0,0,0.3); /* Sombra menor */
    text-align: center;
}
.card-imagem-container { overflow: hidden; }

/* --- CADASTRO DE MÚLTIPLOS PETS --- */
.form-divider {
    border-top: 1px solid #e2e8f0;
    margin: 20px 0; grid-column: 1 / -1; /* Reduzido de 25px */
}
#pets-container { grid-column: 1 / -1; }

.pet-form-template {
    display: flex; flex-direction: column;
    border: 1px solid #cbd5e1; border-radius: 6px; /* Reduzido de 8px */
    padding: 16px; margin-bottom: 16px; gap: 16px; /* Reduzido de 20px */
    position: relative; background-color: #f8fafc;
}
.pet-form-template h4 {
    grid-column: 1 / -1; margin: 0 0 6px 0; /* Reduzido de 8px */
    font-family: 'Poppins', sans-serif; color: #334155;
    border-bottom: 1px solid #e2e8f0; padding-bottom: 6px; /* Reduzido de 8px */
}
.pet-form-template .full-width { grid-column: 1 / -1; }

.btn-remove-pet {
    position: absolute; top: 6px; right: 6px; /* Reduzido de 8px */
    background: #ef4444; color: white; border: none;
    border-radius: 50%; width: 20px; height: 20px; /* Reduzido de 24px */
    font-size: 12px; cursor: pointer; /* Reduzido de 14px */
    display: flex; align-items: center; justify-content: center; line-height: 0;
}
.btn-remove-pet:hover { background: #dc2626; }

.btn-secondary {
    background-color: #64748b; color: white; border: none;
    padding: 8px 16px; border-radius: 4px; cursor: pointer; /* Reduzido de 10px 20px e 5px */
    font-family: 'Poppins', sans-serif; font-weight: 500;
    transition: background-color 0.3s;
}
.btn-secondary:hover { background-color: #475569; }

.modal-lg { max-width: 640px; } /* Reduzido de 800px */
.pets-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); /* Reduzido de 220px */
    gap: 16px; margin-top: 16px; /* Reduzido de 20px */
}
.pet-card {
    background-color: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 6px; padding: 12px; text-align: center; /* Reduzido de 8px e 15px */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.pet-card img {
    width: 80px; height: 80px; border-radius: 50%; /* Reduzido de 96px */
    object-fit: cover; margin-bottom: 10px; /* Reduzido de 12px */
    border: 2px solid #e2e8f0;
}
.pet-card h4 {
    margin: 0 0 6px 0; font-family: 'Poppins', sans-serif; color: #1e293b; /* Reduzido de 8px */
}
.pet-card p { margin: 3px 0; font-size: 12px; color: #475569; } /* Mantido mas ajustado */
.pet-card p strong { color: #334155; }

.btn-view-pets {
    background: none; border: none; color: #3b82f6;
    cursor: pointer; font-size: 16px; padding: 4px; /* Reduzido de 20px e 5px */
}
.btn-view-pets:hover { color: #2563eb; }

/*-----------------------------------*/
/* 8. SERVIÇOS E STORY PERFIL        */
#servicos-hero {
    background-color: var(--verde-claro);
    text-align: center; padding: 3.2rem 0; /* Reduzido de 4rem (~20%) */
}

/* --- CÓDIGO CORRIGIDO PARA 3 SERVIÇOS POR LINHA --- */
.servicos-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* Sempre 3 colunas, independentemente da tela */
    gap: 0.8rem; /* Reduzido de 1rem */
    width: 100%;
    box-sizing: border-box;
}

.servico-card { 
    background: #fff;
    border-radius: 10px; /* Reduzido de 12px */
    padding: 0.8rem; /* Reduzido de 1rem */
    border: 1px solid #eee; 
    display: flex; 
    flex-direction: column;
    gap: 0.6rem; /* Reduzido de 0.75rem */
    min-height: 320px; /* Reduzido de 350px */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); /* Sombra menor */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.servico-card:hover {
    transform: translateY(-3px); /* Reduzido de -4px */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Sombra menor */
}

.card-imagem-container { 
    position:relative; 
    display:flex; 
    justify-content:center; 
}

.card-imagem-container img { 
    width: 100%; 
    aspect-ratio: 1; /* Foto sempre quadrada (1:1) */
    object-fit: cover; 
    border-radius:6px; /* Reduzido de 8px */
    transition: opacity 0.3s ease;
}

.servico-card-info { flex-grow:1; display:flex; flex-direction:column; gap:0.6rem; } /* Reduzido de 0.75rem */
.servico-card-info h3 { margin:0; font-size:1.1rem; color:#333; } /* Reduzido de 1.25rem */
.servico-preco { font-size:0.99rem; font-weight:bold; color:#10b981; } /* Reduzido de 1.1rem */
.servico-descricao { font-size:0.72rem; color:#666; line-height:1.4; } /* Reduzido de 0.9rem */
.servico-share-actions { display:flex; gap:0.4rem; justify-content:center; align-items:center; margin-top:auto; } /* Reduzido de 0.5rem */

/* --- AJUSTE PARA BOTÃO CENTRALIZADO E 85% LARGURA --- */
.servico-card-info > div:last-child {
    text-align: center; /* Centraliza o botão */
    margin-top: 10px;
}
.servico-card-info > div:last-child .btn-principal {
    width: 90%; /* Ocupa 90% da largura do card */
    display: block; /* Torna o link em bloco para ocupar largura */
    margin: 0 auto; /* Centraliza horizontalmente */
    padding: 8px 16px; /* Mantém padding padrão */
    text-align: center; /* Centraliza texto no botão */
}

.servicos-sidebar { 
    background:#fff;
    padding:1rem;
    border-radius:8px;
    border:1px solid #eee; 
}

.categorias-lista { 
    list-style:none;
    padding:0;
    margin:0; 
    display:flex;
    flex-direction:column; 
    gap: 0.3rem; /* Reduzido de 0.4rem para menos espaço entre botões */
}

.categoria-btn { 
    background:transparent;
    border:1px solid #e6e6e6;
    padding:.5rem .75rem;
    border-radius:6px;
    cursor:pointer;
    text-align:left; 
}

.categoria-btn.active { 
    background: #6d3a7a; /* De azul para roxo */
    color: #fff;
    border-color: #6d3a7a; 
}

/* --- MODAL DE DETALHES DO SERVIÇO --- */
.modal-servico {
    display: none; /* Mantém oculto por padrão */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Adicionado para centralização perfeita */
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content-servico {
    background-color: #fff;
    /* Removido margin: auto; pois o flex centraliza */
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 80%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Estilos para o conteúdo do modal */
.modal-content-servico h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: #333;
}

.modal-content-servico .servico-preco {
    font-size: 1.2rem;
    font-weight: bold;
    color: #10b981;
    margin-bottom: 1rem;
}

.modal-content-servico p {
    margin-bottom: 0.5rem;
}

.modal-content-servico .servico-descricao {
    margin-bottom: 1rem;
    line-height: 1.6;
    white-space: pre-wrap; /* Preserva quebras de linha */
    font-size: 0.9rem; /* Aumentado em 20% */
}

.modal-content-servico .btn-terciary {
    position: absolute;
    top: 10px;
    right: 10px;
}

.modal-content-servico .btn-principal,
.modal-content-servico .btn-secondary,
.modal-content-servico .btn-primary {
    width: 100%; /* Largura total para padronização */
    margin-bottom: 0.5rem; /* Espaçamento uniforme */
    min-height: 40px; /* Altura mínima consistente */
}

.categoria-btn, .btn-copy-link, .btn-whatsapp-share, .btn-open-detalhe, .btn-principal, .btn-terciary {
    min-height: 32px; /* Reduzido de 40px */
    padding: 6px 12px; /* Reduzido de 8px 16px */
    font-size: 12px; /* Reduzido de 14px */
    border: none;
    border-radius: 6px; /* Reduzido de 8px */
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease;
}

.categoria-btn {
    background: #e6e6e6;
    color: #333;
    width: 100%;
    margin-bottom: 6px; /* Reduzido de 8px */
}

.categoria-btn.active {
    background: #6d3a7a; /* De azul para roxo */
    color: #fff;
}

.btn-copy-link, .btn-whatsapp-share, .btn-open-detalhe, .btn-principal {
    background: #6d3a7a;
    color: #fff;
}

.btn-copy-link:hover, .btn-whatsapp-share:hover, .btn-open-detalhe:hover, .btn-principal:hover {
    background: #6d3a7a;
}

.btn-terciary {
    background: #f5f5f5;
    color: #333;
}

.btn-terciary:hover {
    background: #e0e0e0;
}

/* --- CARD DE PERFIL INSTAGRAM --- */
.profile-card-container {
    background-color: #ffffff; border: 1px solid #dbdbdb;
    border-radius: 10px; max-width: 260px; /* Reduzido de 400px */
    margin: -1.6rem auto 3.2rem auto; padding: 1.6rem; /* Reduzido de 2rem e 4rem */
    display: flex; flex-direction: column; align-items: center; text-align: center;
    box-shadow: var(--sombra); position: relative; z-index: 10;
}
.profile-name {
    font-family: var(--fonte-titulo); font-weight: bold;
    font-size: 1.12rem; color: var(--roxo); margin-top: 0.8rem; /* Reduzido de 1.4rem e 1rem */
}
.profile-username {
    font-family: var(--fonte-corpo); color: var(--cinza-texto); margin-bottom: 1.2rem; /* Reduzido de 1.5rem */
}
.profile-buttons { display: flex; flex-direction: column; gap: 0.8rem; width: 100%; } /* Reduzido de 1rem */
.btn-follow-instagram, .btn-follow-facebook {
    text-decoration: none; padding: 9px 12px; /* Reduzido de 12px 15px */
    border-radius: 6px; font-weight: bold; width: 100%; /* Reduzido de 8px */
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex; justify-content: center; align-items: center;
    gap: 8px; font-size: 0.9rem; /* Reduzido de 1rem e 5px */
}
.btn-follow-instagram:hover, .btn-follow-facebook:hover { transform: translateY(-1px); } /* Reduzido de -2px */
.btn-follow-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
    color: white;
}
.btn-follow-facebook { background-color: #1877f2; color: white; }

/* --- RING STORY --- */
#story-profile-ring {
    width: 120px; height: 120px; /* Reduzido de 150px */
    border-radius: 50%; padding: 3px; /* Reduzido de 4px */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex; justify-content: center; align-items: center;
    transition: transform 0.3s ease;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.8); /* Sombra menor */
    cursor: pointer; margin-bottom: 0.8rem; /* Reduzido de 1rem */
}
#story-profile-ring:hover { transform: scale(1.05); } /* Reduzido de 1.1 */
#story-profile-ring img {
    width: 100%; height: 100%; border-radius: 50%;
    border: 2px solid white; object-fit: cover; /* Reduzido de 3px */
}

/* --- STORY VIEWER --- */
.story-viewer-hidden { display: none !important; }
#story-viewer {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    opacity: 1; pointer-events: auto;
}
#story-image, #story-video {
    max-width: 80%; max-height: 75%; object-fit: contain; /* Reduzido de 90% e 85% */
    border-radius: 6px; position: relative; z-index: 1; /* Reduzido de 8px */
}
#story-close-btn {
    position: absolute; top: 16px; right: 16px; /* Reduzido de 20px */
    font-size: 2.4rem; color: white; /* Reduzido de 3rem */
    background: none; border: none; cursor: pointer; box-shadow: none;
}
#story-progress-bars {
    position: absolute; top: 8px; left: 1%; /* Reduzido de 2% */
    width: 98%; display: flex; gap: 3px; height: 3px; /* Reduzido de 4px */
}
.progress-bar {
    flex: 1; background-color: rgba(255, 255, 255, 0.4);
    border-radius: 2px; overflow: hidden;
}
.progress-bar-inner { height: 100%; width: 0; background-color: white; transition: width 0.1s linear; }
.story-nav { position: absolute; top: 0; height: 100%; width: 40%; cursor: pointer; } /* Reduzido de 50% */
#story-nav-prev { left: 0; }
#story-nav-next { right: 0; }

#story-profile-container {
    position: fixed; top: 96px; right: 24px; /* Reduzido de 120px e 30px */
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; z-index: 998;
}
#story-profile-container:hover #story-profile-ring { transform: scale(1.05); }
#story-profile-container span {
    margin-top: 6px; font-weight: bold; /* Reduzido de 8px */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333; font-size: 0.9rem; /* Reduzido de 1em */
}

.stories-grid-admin {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); /* Reduzido de 120px */
    gap: 12px; margin-top: 16px; /* Reduzido de 15px e 20px */
}
.story-card-admin {
    position: relative; border: 1px solid #ddd; border-radius: 6px; /* Reduzido de 8px */
    overflow: hidden; background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.story-card-admin img {
    width: 100%; height: 96px; object-fit: cover; display: block; /* Reduzido de 120px */
}
.story-card-admin .btn-delete-story {
    position: absolute; top: 4px; right: 4px; /* Reduzido de 5px */
    background-color: #dc3545; color: white;
    border: none; border-radius: 50%;
    width: 24px; height: 24px; display: flex; /* Reduzido de 30px */
    justify-content: center; align-items: center;
    font-size: 0.9rem; cursor: pointer; opacity: 0.8; transition: opacity 0.2s ease; /* Reduzido de 1rem */
}
.story-card-admin .btn-delete-story:hover { opacity: 1; }

#story-sound-btn {
    position: absolute; top: 16px; left: 16px; /* Reduzido de 20px */
    background: rgba(0, 0, 0, 0.5); color: white;
    border: none; border-radius: 50%; width: 32px; height: 32px; /* Reduzido de 40px */
    font-size: 1rem; cursor: pointer; /* Reduzido de 1.2rem */
    z-index: 10001; display: flex; justify-content: center; align-items: center;
}
.story-sound-btn-hidden { display: none !important; }

/*-----------------------------------*/
/* 9. PROFISSIONAIS E AGENDAMENTO    */
/*-----------------------------------*/
#profissionais { background-color: var(--verde-claro); }

.profissionais-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.6rem; align-items: start; /* Reduzido de 2rem */
}
.profissional-card {
    background-color: var(--branco); padding: 1.6rem; /* Reduzido de 2rem */
    border-radius: 12px; box-shadow: var(--sombra);
    text-align: center; transition: transform 0.3s ease;
}
.profissional-card:hover { transform: translateY(-6px); } /* Reduzido de -10px */
.profissional-card img {
    width: 120px; height: 120px; border-radius: 50%; object-fit: cover; /* Reduzido de 150px */
    margin-bottom: 1.2rem; border: 4px solid var(--branco); /* Reduzido de 5px */
    box-shadow: 0 3px 8px rgba(0,0,0,0.1); /* Sombra menor */
}
.profissional-card h3 {
    font-size: 1.2rem; margin-bottom: 0.4rem; color: var(--roxo); /* Reduzido de 1.5rem e 0.5rem */
}
.profissional-card h3 strong { font-weight: 700; }
.profissional-card p {
    font-size: 0.76rem; color: var(--cinza-texto); /* Reduzido de 0.95rem */
    text-align: justify; line-height: 1.6; /* Reduzido de 1.8 */
}

.profissionais-container {
    background-color: var(--branco); padding: 1.6rem; /* Reduzido de 2rem */
    border-radius: 12px; box-shadow: var(--sombra);
}
.profissionais-container .profissional-card {
    box-shadow: none; border: 1px solid #f0f0f0;
}

/* NOVA PÁGINA DE AGENDAMENTO */
#horarios-disponiveis-container {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); /* Reduzido de 90px */
    gap: 0.6rem; padding: 0.8rem; background-color: var(--verde-claro); /* Reduzido de 0.75rem e 1rem */
    border-radius: 6px; min-height: 80px; /* Reduzido de 100px */
}
.horario-btn {
    padding: 0.6rem; border: 1px solid var(--verde); /* Reduzido de 0.8rem */
    background-color: var(--branco); color: var(--verde);
    border-radius: 5px; cursor: pointer; text-align: center; /* Reduzido de 6px */
    font-weight: bold; transition: all 0.2s ease;
}
.horario-btn:hover {
    background-color: var(--roxo-escuro); color: var(--branco);
    border-color: var(--roxo-escuro);
}
.horario-btn.selected {
    background-color: var(--roxo); color: var(--branco);
    border-color: var(--roxo); transform: scale(1.02); /* Reduzido de 1.05 */
}
#horarios-disponiveis-container .placeholder-text,
#horarios-disponiveis-container .horario-indisponivel,
#horarios-disponiveis-container .horario-sucesso {
    grid-column: 1 / -1; text-align: center; margin: 0; align-self: center;
}
#horarios-disponiveis-container .horario-indisponivel { color: #dc3545; font-weight: bold; }
#horarios-disponiveis-container .horario-sucesso { color: var(--verde); font-weight: bold; }

.form-section-title {
    grid-column: 1 / -1; font-family: var(--fonte-titulo); color: var(--roxo);
    border-bottom: 2px solid #f0f0f0; padding-bottom: 0.4rem;
    margin-top: 0.8rem; margin-bottom: 0.4rem;
    font-size: 1.12rem; font-weight: 700; /* Reduzido de 1.4rem */
}
#form-agendamento-publico .form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.96rem 1.2rem; /* Reduzido de 1.2rem 1.5rem */
}
#form-agendamento-publico .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.96rem 1.2rem;
}
#form-agendamento-publico .form-group[style*="grid-column: 1 / span 2;"] {
    grid-column: 1 / -1;
}

/* --- ESTILOS PARA FORMULÁRIO DE MÚLTIPLOS PETS --- */

.pet-form-template .form-grid {
    gap: 0.8rem 1.2rem; /* Reduzido de 1rem 1.5rem */
}

#data-agendamento {
    max-width: 48%; /* Reduzido de 60% */
    font-size: 1.2rem; /* Reduzido de 1.5rem */
    grid-column: 1 / -1;
    text-align: center; 
    margin: 0; 
    align-self: center;
}

/* Caixa de informação da Tele-Busca */
#aviso-tele-busca {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.2rem; /* Reduzido de 1.5rem */
}

.info-box {
    margin: 1.2rem auto 0 auto; /* Reduzido de 1.5rem */
    width: fit-content;
    max-width: 80%; /* Reduzido de 95% */
    display: flex;
    gap: 12px; /* Reduzido de 15px */
    background-color: var(--verde-claro);
    border-left: 4px solid var(--verde); /* Reduzido de 5px */
    padding: 1.2rem; /* Reduzido de 1.5rem */
    border-radius: 6px; /* Reduzido de 8px */
}

.info-box i {
    font-size: 1.2rem; /* Reduzido de 1.5rem */
    color: var(--verde);
    margin-top: 4px; /* Reduzido de 5px */
}
.info-box p, .info-box ul {
    margin: 0;
}
.info-box ul {
    list-style-position: inside;
    padding-left: 4px; /* Reduzido de 5px */
    font-size: 0.72rem; /* Reduzido de 0.9rem */
}

/* Container para os checkboxes de serviços adicionais */
.adicionais-container {
    grid-column: 1 / -1;
    margin-top: 0.8rem; /* Reduzido de 1rem */
}
.adicionais-container label {
    font-weight: bold;
    margin-bottom: 0.4rem; /* Reduzido de 0.5rem */
    display: block;
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); /* Reduzido de 280px */
    gap: 8px; /* Reduzido de 10px */
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px; /* Reduzido de 8px */
    padding: 0.8rem; /* Reduzido de 1rem */
}
.checkbox-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.checkbox-item input[type="checkbox"] {
    margin: 0px 12px 0 0 !important; /* Reduzido de 15px */
    width: auto !important;
}

.checkbox-item label {
    margin-bottom: 0 !important;
    font-weight: normal;
}

/* ADICIONE ESTE BLOCO NO FINAL DO ARQUIVO style.css */

/* --- ESTILOS PARA PRÉ-VISUALIZAÇÃO DE UPLOAD --- */
.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.64rem; /* Reduzido de 0.8rem */
    margin-top: 0.64rem; /* Reduzido de 0.8rem */
    padding: 0.64rem; /* Reduzido de 0.8rem */
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px; /* Reduzido de 8px */
    min-height: 96px; /* Reduzido de 112px */
}

.preview-item {
    width: 80px; /* Reduzido de 96px */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.32rem; /* Reduzido de 0.4rem */
    position: relative;
}

.preview-item .preview-image-thumbnail {
    width: 64px; /* Reduzido de 80px */
    height: 64px; /* Reduzido de 80px */
    object-fit: cover;
    border-radius: 6px; /* Reduzido de 8px */
    border: 2px solid #e2e8f0;
}

.preview-item .preview-file-name {
    font-size: 0.48rem; /* Reduzido de 0.6rem */
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

.progress-container {
    width: 100%;
    height: 6px; /* Reduzido de 8px */
    background-color: #e2e8f0;
    border-radius: 3px; /* Reduzido de 4px */
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--verde);
    transition: width 0.3s ease;
}

.submenu {
    display: none;
}
.submenu.open {
    display: block;
}

.servico-descricao {
    white-space: pre-wrap;
}

.categoria-btn, .btn-copy-link, .btn-whatsapp-share, .btn-open-detalhe, .btn-principal, .btn-terciary {
min-height: 32px;
padding: 6px 12px;
font-size: 12px;
border: none;
border-radius: 6px;
cursor: pointer;
text-decoration: none;
display: inline-block;
text-align: center;
transition: background-color 0.3s ease;
}
      
.categoria-btn {
background: #e6e6e6;
color: #333;
width: 100%;
margin-bottom: 6px;
}

.categoria-btn.active {
background: #6d3a7a;
color: #fff;
}

.btn-copy-link, .btn-whatsapp-share, .btn-open-detalhe, .btn-principal {
background: #6d3a7a;
color: #fff;
}

.btn-copy-link:hover, .btn-whatsapp-share:hover, .btn-open-detalhe:hover, .btn-principal:hover {
background: #6d3a7a;
}

.btn-terciary {
background: #f5f5f5;
color: #333;
}

.btn-terciary:hover {
background: #e0e0e0;
}

/*
=================================================
--- LAYOUT GLOBAL SIDEBAR (ADOÇÃO E SERVIÇOS) ---
=================================================
*/

/* 1. Define o layout de grid (substitui o style inline) */
.adocao-layout-grid,
.servicos-layout-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

/* --- ESTILO PARA BOTÃO 'INFORMAR ADOÇÃO' --- */
.btn-informar-adocao {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    font-weight: bold;
    background-color: #f59e0b; /* Laranja/Amarelo */
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-informar-adocao:hover {
    background-color: #d97706; /* Laranja mais escuro */
}
.btn-informar-adocao:disabled {
    background-color: #6c757d;
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- NOTIFICAÇÃO DE ADOÇÃO INFORMADA (DASHBOARD) --- */
.notificacao-adocao {
    display: block;
    margin-top: 5px;
    padding: 3px 8px;
    background-color: #f59e0b; /* Laranja */
    color: #fff;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}
.notificacao-adocao .fas {
    margin-right: 4px;
}

/* Classe que aplica a animação */
.story-pulsing {
    animation: pulse-animation 2s infinite;
}

/* Classe para esconder o card */
.story-hidden {
    display: none !important;
}

/* --- NOVO: GRID DE ENDEREÇO (RUA/NUM/COMPL) --- */
.form-grid-address {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Rua (larga), Número (curto), Complemento (curto) */
    gap: 0 1.2rem; /* Remove o gap vertical, mantém o horizontal */
}

/* --- ANIMAÇÃO DE PULSAR STORY CARD (INDEX) --- */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }

@keyframes pulse-animation {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(140, 75, 154, 0.7); /* Cor roxa do seu site */
  }
  50% {
    transform: scale(1.03); /* Leve aumento */
    box-shadow: 0 0 0 10px rgba(140, 75, 154, 0); /* Sombra se expande e some */
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(140, 75, 154, 0);
  }
}


/*
=================================================
--- LAYOUT GLOBAL SIDEBAR (ADOÇÃO E SERVIÇOS) ---
=================================================
*/

/* 1. Define o layout de grid (substitui o style inline) */
.adocao-layout-grid,
.servicos-layout-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

/* 2. Alinha o layout à esquerda em telas grandes (O que você pediu) */
@media (min-width: 993px) { 
    #adocao-lista .container,
    #servicos-lista .container {
        /* Remove a centralização e largura máxima padrão do .container */
        max-width: none;
        margin: 0;
        
        /* Define a largura total (considerando as margens) e alinha à esquerda */
        width: calc(100% - 4rem); /* 100% - (2rem esquerda + 2rem direita) */
        margin-left: 2rem;  /* Sua "pequena margem" da esquerda */
        margin-right: 2rem; /* Uma margem na direita para simetria */
    }
}


/*
=================================================
--- 10. RESPONSIVIDADE (UNIFICADO) ---
=================================================
*/

/* --- TABLETS (992px) --- */
@media (max-width: 992px) {
    section { 
        padding: 3.2rem 0; 
    }
    .contato-wrapper { 
        flex-direction: column; 
    }
    .social-icon { 
        width: 96px; 
    }

    /* MELHORIA: Cards de Adoção e Serviços passam para 2 colunas */
    .adocao-grid,
    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* MELHORIA: Cards de Profissionais (index.html) passam para 1 coluna */
    .profissionais-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CELULARES (768px) --- */
@media (max-width: 768px) {
    /* CORREÇÃO: Unifica as regras de layout de grid (stack) */
    .adocao-layout-grid,
    .servicos-layout-grid {
        grid-template-columns: 1fr !important;
    }

    /* CORREÇÃO: Adiciona a lógica do menu Hamburger aqui */
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .nav-links {
        position: fixed;
        left: -100%;
        top: 104px; /* Altura do seu navbar */
        gap: 0;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .nav-links a {
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-links.active {
        left: 0;
    }

    /* CORREÇÃO: Cards de Adoção e Serviços passam para 1 coluna */
    .adocao-grid,
    .servicos-grid {
        grid-template-columns: 1fr;
    }
    
    /* Responsividade do modal de adoção */
    .modal-servico .adocao-detalhe-grid {
        grid-template-columns: 1fr;
    }
    .modal-servico .adocao-detalhe-fotos .card-imagem-container {
        height: 250px;
    }

    /* Ajustes gerais de espaçamento e fontes */
    h1 { font-size: 1.92rem; }
    h2 { font-size: 1.44rem; }
    #hero { padding: 2.4rem 1rem; }
    #adocao-hero, #contato-hero, #servicos-hero { padding: 2.4rem 0; }
    .form-adocao, .form-contato, #form-agendamento { padding: 1.2rem; }
    .whatsapp-float { bottom: 16px; right: 16px; width: 40px; height: 40px; }
    
    /* CORREÇÃO: Página de Login (acesso-restrito.html) */
    /* Usamos a classe .dashboard-section que está no HTML */
    #acesso-restrito .dashboard-section {
        max-width: 90% !important; /* Sobrescreve o inline-style */
        margin: 3rem auto !important;
        padding: 1.5rem;
    }
    
    .form-grid-address {
        grid-template-columns: 1fr !important; /* Empilha */
        gap: 0.8rem !important; /* Adiciona gap vertical no mobile */
    }

    .social-icon { 
        width: 64px; 
    }
    .profile-card-container {
        margin-left: 0.8rem; 
        margin-right: 0.8rem; 
        padding: 1.2rem;
    }
    
    /* Caixa de info do agendamento */
    .info-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Formulário de agendamento (form-grid) */
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem;
    }
    .form-group {
        grid-column: 1 / -1 !important;
    }
    #form-agendamento-publico h2,
    #form-agendamento-publico p,
    #form-agendamento-publico .form-section-title {
        text-align: left;
    }

    /* Botões em 100% */
    .btn-principal,
    .btn-secondary {
        width: 100%;
    }
}

/* --- CELULARES PEQUENOS (480px) --- */
@media (max-width: 480px) {
    h1 { font-size: 1.68rem; }
    h2 { font-size: 1.2rem; }
    #hero { padding: 2rem 0.8rem; }
    #adocao-hero, #contato-hero, #servicos-hero { padding: 2rem 0; }
    .form-adocao, .form-contato, #form-agendamento { padding: 1rem; }
    .whatsapp-float { bottom: 16px; right: 16px; width: 36px; height: 36px; }
    
    /* CORREÇÃO: Página de Login (acesso-restrito.html) */
    #acesso-restrito .dashboard-section {
        padding: 1rem;
    }

    .social-icon { 
        width: 56px; 
    }
    
    /* Ajusta o grid de horários no agendamento */
    #horarios-disponiveis-container {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.5rem;
    }
    .horario-btn {
        padding: 0.5rem;
    }
}
