/* Importar fonte Poppins */
@font-face {
    font-family: 'Poppins';
    src: url('imagens/fontes/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('imagens/fontes/Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('imagens/fontes/Poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('imagens/fontes/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    overflow-x: hidden;
    width: 100%;
}
body {
    font-family: 'Poppins', Arial, sans-serif;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

header {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}
.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 85px;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}
.nav-menu a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}
.title-img-wrapper {
    text-align: center;
    margin-bottom: 25px;
}
.title-img {
    max-width: 900px;
    width: 100%;
    height: auto;
    display: inline-block;
}
.nav-menu a:hover {
    color: #D45A2A;
}

/* Hero */
.hero-section {
    position: relative;
    background-color: #ffffff;
    width: 100%;
    margin: 0;
    padding: 0;
}
.hero-full-img {
    width: 100%;
    height: auto;
    display: block;
}
.hero-text-overlay {
    position: absolute;
    bottom: 28%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1100px;
    text-align: center;
    z-index: 10;
}
.hero-text-overlay p {
    color: #FFF;
    font-size: 1.5rem;
    line-height: 1.65;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.green-text {
    color: #B8D961;
    font-weight: 900;
}

/* Onda topo adoção */
.wave-text-section {
    margin: 0;
    padding: 0;
}
.wave-bottom-divider {
    width: 100%;
    height: 100px;
    margin: 0;
}
.wave-bottom-divider svg {
    width: 100%;
    height: 100px;
    display: block;
}

/* Adoção */
.adoption-section {
    background: #ffffff;
    padding: 20px 0 0;
    margin-top: -40px;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.title {
    text-align: center;
    font-size: 3.8rem;
    color: #FF6B35;
    text-transform: lowercase;
    font-weight: 900;
    margin-bottom: 65px;
}
.adoption-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 200px;
    width: 100%;
}
.orange-background-box {
    position: absolute;
    top: 420px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: 800px;
    background: #FF6B35;
    border-radius: 0 0 50% 50%;
    z-index: 1;
}
.girl-container {
    position: relative;
    width: 600px;
    max-width: 90%;
    height: 550px;
    margin: 0 auto 60px;
    z-index: 10;
}
.girl-img {
    width: 100%;
    max-width: 585px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.dec {
    position: absolute;
    width: 55px;
    height: auto;
    z-index: 3;
    animation: twinkle 2.5s infinite ease-in-out;
}
.d1 { top: 34%; right: 23%; }
.d2 { bottom: 1%; left: 11%; animation-delay: 0.8s; }
@keyframes twinkle {
    0%, 100% { rotate: 0deg; }
    50% { transform: scale(0.85) rotate(180deg); }
}
.adoption-text-box {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 50px 0;
    text-align: center;
    z-index: 1;
}
.adoption-text-box p {
    color: #FFF;
    font-size: 1.6rem;
    line-height: 1.75;
    margin-bottom: 22px;
}
.adoption-text-box p:last-child {
    margin-bottom: 0;
}

/* ONGs */
.partners-section {
    background: transparent;
    padding: 0;
    position: relative;
    z-index: 15;
    margin-top: -180px;
    width: 100%;
    overflow: visible;
}
.partners-section .title-img-wrapper {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 70px;
    position: relative;
    z-index: 20;
}
.partners-section .title-img {
    max-width: 800px;
    width: 90%;
    position: relative;
    z-index: 20;
}
.arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s;
    z-index: 30;
    position: relative;
    flex-shrink: 0;
}
.arrow:hover {
    transform: scale(1.2);
}
.arrow svg {
    display: block;
    pointer-events: auto;
}
.ongs-container {
    overflow: visible;
    width: 600px;
    max-width: 100%;
    padding-bottom: 50px;
    z-index: 20;
    position: relative;
}
.ong-item {
    flex-shrink: 0;
    width: 145px;
    height: 145px;
    background: #E8F5E9;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.09);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    opacity: 0.6;
    z-index: 20;
}
.ong-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 8px;
}
.carousel {
    max-width: 950px;
    margin: 0 auto 70px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 45px;
    position: relative;
    z-index: 20;
    overflow: visible;
    width: 100%;
    padding: 0 20px;
}
.ongs-list {
    display: flex;
    gap: 40px;
    transition: transform 0.5s ease;
    align-items: center;
    padding-bottom: 60px;
}
.ong-item.center {
    width: 180px;
    height: 180px;
    transform: scale(1);
    opacity: 1;
}
.ong-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.ong-item img {
    max-width: 95%;
    max-height: 95%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ong-name {
    position: absolute;
    bottom: -35px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-align: center;
    white-space: nowrap;
}

/* Texto + Gato */
.info-wrapper {
    max-width: 1250px;
    margin: 0 auto;
    margin-top: -150px;
    padding-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    width: 100%;
}
.cat-img {
    width: 350px;
    max-width: 40%;
    height: auto;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}
.cat-img, .girl-img {
    transition: transform 0.3s ease-out;
}
.green-box {
    flex: 1;
    background: #8BC34A;
    border-radius: 0 32px 32px 0;
    padding: 42px 55px 42px 160px;
    margin-left: -150px;
    position: relative;
    z-index: 5;
    min-height: 180px;
    display: flex;
    align-items: center;
}
.green-box p {
    color: #FFF;
    font-size: 1.08rem;
    line-height: 1.8;
}

/* Onda antes do footer */
.wave-ongs-divider {
    width: 100%;
    height: 100px;
    overflow: hidden;
    display: block;
    line-height: 0;
    margin: 0;
    padding: 0;
}
.wave-ongs-divider svg {
    width: 100%;
    height: 100px;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
}

/* Footer/Contato */
.contact-section {
    background: #FF6B35;
    padding: 52px 60px;
    width: 100%;
    margin: 0;
    margin-top: -1px;
    position: relative; /* para o ::before em telas pequenas */
}
.contact-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* garante conteúdo acima da onda decorativa */
    z-index: 2;
}
.contact-right h3 {
    color: #FFF;
    font-size: 1.65rem;
    font-weight: 900;
    margin-bottom: 12px;
}
.contact-left h3 {
    color: #FFF;
    font-size: 1.88rem;
    font-weight: 900;
    margin-bottom: 12px;
}
.contact-left p {
    color: #FFF;
    font-size: 1.48rem;
}
.highlight-green {
    color: #B8D961;
    font-weight: 900;
    text-decoration: none;
    position: relative;
    display: inline-block;
}
.highlight-green::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 6'%3E%3Cpath d='M0 3 Q 6 0, 12 3 T 24 3 T 36 3 T 48 3 T 60 3 T 72 3 T 84 3 T 96 3 T 108 3 T 120 3' stroke='%23B8D961' stroke-width='4' fill='none'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 30px 10px;
}
.contact-right a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #FFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.18rem;
}
.contact-right img {
    width: 32px;
}

/* ===== Utilitário opcional full‑bleed ===== */
.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* ===== RESPONSIVIDADE TABLET GRANDE ===== */
@media (max-width: 1024px) {
    .hero-text-overlay { bottom: 22%; }
    .hero-text-overlay p { font-size: 1rem; line-height: 1.6; }
    .orange-background-box { top: 480px; }
    .adoption-text-box { padding: 5px 20px 40px; width: 100%; }
    .adoption-text-box p { font-size: 0.9rem; line-height: 1.55; margin-bottom: 16px; }


    .info-wrapper {
        flex-direction: column;
        align-items: center;
        margin-top: -80px;
    }
    .cat-img { max-width: 300px; margin-bottom: 20px; }
    .green-box {
        margin-left: 0;
        border-radius: 32px;
        padding: 35px 40px;
        width: 90%;
    }
    .contact-wrapper {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

/* ===== RESPONSIVIDADE TABLET ===== */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; width: 100%; position: relative; }
    body { font-size: 14px; }

    header { padding: 10px 0; }
    .navbar { flex-direction: column; padding: 10px 15px; gap: 10px; }
    .logo img { height: 50px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; gap: 15px; font-size: 0.85rem; }

    /* Hero */
    .hero-section { height: auto; min-height: 50vh; width: 100%; }
    .hero-text-overlay { bottom: 30%; width: 90%; padding: 0 10px; }
    .hero-text-overlay p { font-size: 0.95rem; line-height: 1.5; }

    /* Adoção */
    .adoption-section { padding: 20px 15px 0; margin-top: 0px; width: 100%; }
    .title-img-wrapper { margin-bottom: 30px; padding: 0 10px; }
    .title-img { max-width: 100%; }
    .adoption-wrapper { padding-bottom: 100px; padding-left: 15px; padding-right: 15px; width: 100%; }
    .girl-container { width: 90%; max-width: 280px; height: auto; margin: 0 auto 20px; }
    .girl-img { width: 100%; height: auto; }
    .dec { width: 35px; }

    .orange-background-box {
        top: 250px;
        left: 0;
        transform: none;
        width: 100%;
        height: auto;
        min-height: 550px;
        border-radius: 0 0 30% 30%;
    }
    .adoption-text-box { padding: 5px 20px 40px; width: 100%; }
    .adoption-text-box p { font-size: 0.9rem; line-height: 1.55; margin-bottom: 16px; }

    /* ONGs */
    .partners-section { padding: 0 15px; margin-top: -80px; width: 100%; z-index: 15; }
    .partners-section .title-img-wrapper { margin-bottom: 20px; margin-top: 50px; padding: 0 10px; z-index: 20; }
    .partners-section .title-img { width: 100%; max-width: 100%; z-index: 20; }
    .carousel { gap: 21px; margin-top: -1px; margin-bottom: 5px; padding: 0 10px; width: 100%; z-index: 20; }
    .arrow { padding: 8px; }
    .arrow svg { width: 32px; height: 32px; }
    .ongs-container { width: 220px; max-width: 60%; padding-bottom: 40px; z-index: 20; }
    .ongs-list { gap: 25px; }
    .ong-item { width: 95px; height: 95px; padding: 15px; z-index: 20; }
    .ong-item.center { width: 120px; height: 120px; }
    .ong-item img { max-width: 92%; max-height: 92%; }
    .ong-name { bottom: -30px; font-size: 0.75rem; }

    /* Gato + Caixa Verde */
    .info-wrapper {
        margin-top: -60px;
        padding-bottom: 30px;
        flex-direction: column;
        align-items: center;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
    }
    .cat-img { width: 200px; max-width: 50%; margin-bottom: 20px; }
    .green-box { width: 100%; margin-left: 0; border-radius: 25px; padding: 30px 25px; }
    .green-box p { font-size: 0.95rem; line-height: 1.6; }

    /* Ondas */
    .wave-ongs-divider { height: 70px; width: 130%; line-height: 0; }
    .wave-ongs-divider svg { height: 70px; width: 100%; vertical-align: bottom; }

    /* Contato/Footer */
    .contact-section { padding: 35px 20px; width: 100%; margin-top: -1px; }
    .contact-wrapper { flex-direction: column; gap: 25px; text-align: center; width: 100%; }
    .contact-left h3 { font-size: 1.3rem; margin-bottom: 10px; }
    .contact-right h3 { font-size: 1.3rem; margin-bottom: 10px; }
    .contact-left p { font-size: 1.1rem; }
    .contact-right a { font-size: 1rem; }
    .contact-right img { width: 28px; }
}

/* ===== MOBILE PEQUENO (iPhone 15, etc - 390-430px) ===== */
@media (max-width: 430px) {
    .hero-text-overlay { bottom: 42%; }
    .hero-text-overlay p { font-size: 0.68rem; line-height: 1; }
    .girl-container { max-width: 290px; margin-bottom: 5px; }
    .orange-background-box { top: 270px; min-height: 500px; }
    .adoption-text-box { padding: 1px 1px px; }
    .adoption-text-box p { font-size: 0.65rem; line-height: 1.5; }
    .partners-section .title-img-wrapper { margin-top: -3px; }
    .cat-img { width: 160px; margin-bottom: -25px; max-width: 45%; }
    
    .contact-left h3, .contact-right h3 { font-size: 1.1rem; }
    .contact-left p { font-size: 0.95rem; }
     /* ADICIONE ISTO */
    .wave-ongs-divider {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        margin-bottom: -1px;
        height: 70px;
        overflow: hidden;
        line-height: 0;
    }
    
    .wave-ongs-divider svg {
        width: 100%;
        height: 70px;
        display: block;
        vertical-align: bottom;
    }
}

/* ===== MOBILE PEQUENO (iPhone 15, etc - 390-430px) ===== */
@media (max-width: 400px) {
    .hero-text-overlay { bottom: 36%; }
    .hero-text-overlay p { font-size: 0.68rem; line-height: 1; }
    .girl-container { max-width: 290px; margin-bottom: 5px; }
    .orange-background-box { top: 270px; min-height: 500px; }
    .adoption-text-box { padding: 1px 1px px; }
    .adoption-text-box p { font-size: 0.65rem; line-height: 1.5; }
    .partners-section .title-img-wrapper { margin-top: -3px; }
    .cat-img { width: 160px; margin-bottom: -25px; max-width: 45%; }
    
    .contact-left h3, .contact-right h3 { font-size: 1.1rem; }
    .contact-left p { font-size: 0.95rem; }
     /* ADICIONE ISTO */
    .wave-ongs-divider {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        margin-bottom: -1px;
        height: 70px;
        overflow: hidden;
        line-height: 0;
    }
    
    .wave-ongs-divider svg {
        width: 100%;
        height: 70px;
        display: block;
        vertical-align: bottom;
    }
}

/* ===== MOBILE MUITO PEQUENO (320-375px) ===== */
@media (max-width: 375px) {
    .navbar { padding: 8px 10px; }
    .logo img { height: 40px; }
    .nav-menu { gap: 10px; font-size: 0.75rem; }

    .hero-text-overlay { bottom: 32%; }
    .hero-text-overlay p { font-size: 0.46rem; line-height: 1.4; } /* corrigido ponto decimal */

    .girl-container { max-width: 240px; margin-bottom: 2px; }
    .orange-background-box { top: 210px; min-height: 480px; }
    .adoption-text-box { padding: 5px 15px 30px; }
    .adoption-text-box p { font-size: 0.8rem; line-height: 0.95; margin-bottom: 14px; }

    .partners-section .title-img-wrapper { margin-top: 40px; }
    .ongs-container { width: 180px; max-width: 55%; }
    .ong-item { width: 75px; height: 75px; }
    .ong-item.center { width: 100px; height: 100px; }

    .cat-img { width: 160px; margin-bottom: -25px; max-width: 45%; }
    .green-box p { font-size: 0.85rem; }

    .contact-left h3, .contact-right h3 { font-size: 1.1rem; }
    .contact-left p { font-size: 0.95rem; }
}

/* ===== FIX: Onda colada no topo do footer em telas muito pequenas ===== */
@media (max-width: 380px) {
  /* Esconde a onda anterior somente nesse breakpoint */
  .wave-ongs-divider { display: none; }

  /* Gera uma onda no próprio footer, colada no topo */
  .contact-section::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(-1 * clamp(40px, 14vw, 70px)); /* sobe a onda exatamente a altura dela */
    width: 100vw;                  /* full‑bleed */
    height: clamp(40px, 14vw, 70px);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;

    /* mesmo desenho usado no divisor anterior, com fill do footer */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 Q72,10 144,50 T288,50 T432,50 T576,50 T720,50 T864,50 T1008,50 T1152,50 T1296,50 T1440,50 L1440,100 L0,100 Z' fill='%23FF6B35'/%3E%3C/svg%3E");
  }
}

/* Micro ajuste anti-fresta em telas ultrapequenas */
@media (max-width: 340px) {
  .contact-section::before { width: 101vw; }
}
