/* GERAL E TIPOGRAFIA */
body {
    font-family: 'Poppins', sans-serif;
    color: #333; /* Cor de texto padrão */
    background-color: #f7f9fc; /* Fundo suave */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800; /* Extra Bold */
    color: #4CAF50; /* Verde Principal */
}

.page-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden; /* Importante para o efeito de ondas/formas */
}

/* CORES PERSONALIZADAS */
:root {
    --primary-color: #FF7043; /* Laranja/Coral Forte (para ação) */
    --secondary-color: #4CAF50; /* Verde Vida (para missao/fundo) */
    --accent-color: #FFC107; /* Amarelo Vibrante (para destaque) */
    --bg-light: #f7f9fc;
    --text-dark: #333;
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 50px; /* Botões arredondados */
}
.btn-primary:hover {
    background-color: #e64a19; 
    border-color: #e64a19;
    transform: translateY(-2px); /* Efeito de elevação */
}
.btn-secondary {
    background-color: var(--secondary-color); 
    border-color: var(--secondary-color);
    border-radius: 50px;
}
.btn-secondary:hover {
    background-color: #388e3c;
    border-color: #388e3c;
}


/* NAV BAR - Estilo com transparência e cor de destaque */
#mainNav {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#mainNav .navbar-brand {
    color: var(--secondary-color);
    font-weight: 800;
}
#mainNav .nav-link {
    color: var(--text-dark);
    font-weight: 600;
}
.btn-doacao {
    background-color: var(--accent-color);
    color: var(--text-dark) !important;
    border-radius: 50px;
    padding: 8px 20px !important;
    margin-left: 10px;
}


/* SEÇÃO HERO/HOME (MASTHEAD) - Movimento e Textura */
.masthead {
    padding-top: calc(8rem + 100px); /* Espaço para a navbar */
    padding-bottom: 12rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #66BB6A 100%);
    position: relative;
    z-index: 1;
}

.masthead-heading {
    font-size: 4rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.masthead-subheading {
    font-size: 1.5rem;
    color: #e0e0e0;
}

/* EFEITO DE ONDA ORGÂNICA (TEXTURE/FORMA) */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Altura da onda */
    background: #f7f9fc; /* Cor do fundo da próxima seção */
    border-top-left-radius: 100% 100px; /* Forma orgânica e curva */
    border-top-right-radius: 100% 100px;
    transform: translateY(50%); /* Empurra para baixo para cobrir a transição */
    z-index: 2;
}


/* ÍCONES ORGÂNICOS */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 2.5rem;
    margin: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: rotate(3deg); /* Leve inclinação para movimento */
    animation: pulse-color 5s infinite alternate; /* Animação leve de cor */
}
.icon-secondary {
    background-color: var(--accent-color);
    color: var(--text-dark);
    transform: rotate(-5deg);
}

@keyframes pulse-color {
    0% { box-shadow: 0 0 0 0 rgba(255, 112, 67, 0.4); }
    100% { box-shadow: 0 0 0 15px rgba(255, 112, 67, 0); }
}


/* CARDS DE ADOÇÃO (MOVIMENTO E TEXTURA) */
.pet-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}
.pet-card img {
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    filter: brightness(0.9); /* Leve escurecimento para cor viva */
}
.pet-card:hover {
    transform: translateY(-5px) scale(1.02); /* Efeito de elevação e zoom */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}
.pet-card .badge {
    border-radius: 50px;
    padding: 0.5em 1em;
}


/* GALERIA (FOTOS) */
.gallery-item {
    height: 300px;
    border-radius: 20px; /* Bordas bem arredondadas */
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
    overflow: hidden;
    filter: saturate(1.2); /* Cores mais vivas */
}
.gallery-item:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}


/* EVENTOS */
.event-item {
    border-radius: 15px;
    border-left: 8px solid var(--primary-color); /* Linha de destaque */
    transition: all 0.4s ease;
}
.event-item:hover {
    border-left-color: var(--secondary-color);
    background-color: #fff !important;
    transform: translateX(5px);
}
.date-time {
    font-weight: 600;
    color: var(--primary-color);
}


/* DOAÇÃO E PARCERIAS (TEXTURA DE FUNDO) */
.doacao {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF9800 100%);
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0% 100%); /* Forma poligonal (movimento) */
    color: white;
    padding: 10rem 0;
}

.doacao h2, .doacao h4 {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.doacao-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    color: var(--text-dark);
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.doacao-card:hover {
    transform: rotate(-1deg); /* Efeito de inclinação */
}

/* ANIMAÇÕES (para movimento e vida) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.anim-fade-in-up {
    opacity: 0; /* Começa invisível */
    animation: fadeInUp 0.8s ease forwards;
}

.anim-scale-up {
    opacity: 0;
    animation: scaleUp 0.6s ease forwards;
    transform: scale(0.9);
}
@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.anim-slide-left {
    opacity: 0;
    animation: slideLeft 0.7s ease forwards;
}
@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
.anim-slide-right {
    opacity: 0;
    animation: slideRight 0.7s ease forwards;
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Aplica atraso na animação para dar mais vida (apenas exemplo) */
.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
/* ... (você pode aplicar mais delays para outros elementos) */


/* RODAPÉ */
.footer {
    background-color: #e0e0e0;
}
.btn-social {
    color: white;
    background-color: #555;
    border-radius: 50%;
}