* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

section[id] {
    scroll-margin-top: 70px;
}

.nav-item a {
    color: black;
    font-size: 14px
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: #3B3B3B !important;
    background-color: whitesmoke !important;
}

h1, h2, h3, .navbar, .btn {
    font-family: 'Poppins', sans-serif;
}

#nossos-servicos,
#profissionais,
#fundo-patinhas {
    min-height: 80vh;
    align-content: center;
}

/* HERO */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.logo-hero {
    max-width: 220px;
    height: auto;
}

.hero-section .btn-primary {
    background-color: #5bc6d0;
    color: white;
    border-radius: 999px;
    padding: 1rem;
    border: none;
    font-size: 1rem;
}

    .hero-section .btn-primary:hover {
        background-color: #48b3bd;
    }

/*<!-- QUEM SOMOS --> */
.card-servico {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card-servico:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    }

    .card-servico i {
        font-size: 2.5rem;
        color: #5bc6d0;
        margin-bottom: 1rem;
    }

    .card-servico h5 {
        font-weight: 600;
        margin-bottom: 0.75rem;
        color: #222;
    }

    .card-servico p {
        color: #555;
        font-size: 0.9rem;
        line-height: 1.6;
    }

/* PROFISSIONAIS */
#profissionais img {
    transition: transform 0.3s ease;
}

    #profissionais img:hover {
        transform: scale(1.03);
    }

.btn-principal {
    background-color: #5bc6d0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 999px;
    border: none;
    transition: background-color 0.2s ease;
}

    .btn-principal:hover {
        background-color: #48b3bd;
    }

/* CONTATO */
.contato-section {
    background-color: #eaf9fa;
    color: #2b4d50;
    padding: 3rem 1rem;
}

.contato-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.contato-info {
    flex: 1 1 320px;
    max-width: 45%;
}

    .contato-info article {
        margin-bottom: 1.5rem;
    }

.contato-subtitle {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contato-address,
.contato-link {
    font-size: 1rem;
    color: #2b4d50;
    text-decoration: none;
    display: block;
}

    .contato-link:hover,
    .contato-link:focus {
        text-decoration: underline;
        color: #3ca3aa;
    }

.contato-icon {
    font-size: 1rem;
    color: #3ca3aa;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.contato-info p,
.contato-info a {
    vertical-align: middle;
}

.contato-mapa {
    flex: 1 1 480px;
    max-width: 50%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    border-radius: 0.5rem;
    overflow: hidden;
    height: 220px; /* altura fixa para deixar compacto */
}

    .contato-mapa iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

/* Redes sociais alinhadas abaixo e centralizadas */
.contato-redes {
    width: 100%;
    margin-top: 2rem;
    text-align: center;
}

    .contato-redes h3 {
        font-weight: 700;
        margin-bottom: 0.75rem;
    }

.social-icon {
    font-size: 1.8rem;
    color: #3ca3aa;
    margin: 0 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

    .social-icon:hover,
    .social-icon:focus {
        color: #2b4d50;
        transform: scale(1.15);
        outline: none;
        text-decoration: none;
    }

/* Responsividade */
@media (max-width: 768px) {
    .contato-container {
        flex-direction: column;
        max-width: 100%;
    }

    .contato-info, .contato-mapa {
        max-width: 100%;
        flex: none;
        height: 280px;
    }
}

/* BOTÃO VOLTAR AO TOPO */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: #5bc6d0;
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 10px 14px;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: none;
    transition: background-color 0.2s ease;
}

    #backToTop:hover {
        background-color: #48b3bd;
    }

/* RESPONSIVO */
@media (max-width: 768px) {
    .hero-section .btn-primary {
        font-size: 1rem;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .icon-circle {
        width: 70px;
        height: 70px;
    }

    #contato .map-embed {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .hero-section .btn-primary {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }

    #sobre-nos .text-start {
        text-align: center;
    }

    #contato .map-embed {
        height: 220px;
    }
}

.sobre-nos-full {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    background-color: #e8f9fa;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.text-pet-primary {
    color: #2b4d50;
}

.text-pet-secondary {
    color: #2e5f63;
}

.divider-pet {
    border-top: 1px dashed #cfe9ec;
}

.quote-pet {
    font-size: 30px;
    font-weight: bold
}

.photo-polaroid {
    position: relative;
    width: 180px;
    max-height: 300px;
    padding: 12px;
    background-size: cover;
    background-position: center;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

    /* fundo blur sobreposto */
    .photo-polaroid::before {
        content: "";
        position: absolute;
        inset: 0;
        backdrop-filter: blur(14px);
        background-color: rgba(255, 255, 255, 0.45);
        z-index: 0;
    }

/* imagem principal */
.photo-polaroid-img {
    position: relative;
    z-index: 1;
    border: 6px solid white;
    border-radius: 10px;
    max-height: 240px;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* efeito de inclinação do bloco inteiro */
.photo-polaroid:nth-child(2n) {
    transform: rotate(3deg);
}

.photo-polaroid:nth-child(3n) {
    transform: rotate(-3deg);
}

.photo-polaroid:nth-child(5n) {
    transform: rotate(2deg);
}

/* fitinha decorativa */
.photo-polaroid::after {
    content: "";
    position: absolute;
    top: 0;
    left: 40%;
    width: 40px;
    height: 20px;
    background: repeating-linear-gradient( 45deg, #fce3e3, #fce3e3 4px, #f9cccc 4px, #f9cccc 8px );
    border-radius: 3px;
    transform: rotate(-10deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* responsivo */
@media (max-width: 768px) {
    .photo-polaroid {
        width: 140px;
    }

    .photo-polaroid-img {
        max-height: 180px;
    }
}

#imagemExpandida {
    max-height: 90vh;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* galerias */
#midias-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 576px) {
    #midias-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    #midias-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    #midias-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1200px) {
    #midias-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #333;
    height: 250px;
}

    .gallery-item:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    }

/* Aspect ratio fixo para os vídeos */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

    .video-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Background desfocado nas imagens */
.background-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    z-index: 0;
    transform: scale(1.1);
    opacity: 0.6;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
}

    .image-wrapper img {
        position: relative;
        z-index: 1;
        max-height: 100%;
        max-width: 100%;
        object-fit: cover;
    }

/* Estilo do Gallery Info */
.gallery-info {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.4rem;
    font-size: 0.8rem;
    text-align: center;
    z-index: 3;
}

.gallery-item:hover .gallery-info {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.4rem;
    font-size: 0.8rem;
    text-align: center;
    z-index: 3;
}

/* Estilo do Gallery Caption */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    text-align: center;
    z-index: 2;
}

/* Popover de reações */
.reacoes-popover {
    position: absolute;
    top: 10px;
    right: 0.6rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 2px 8px;
    border-radius: 16px;
    font-size: 14px;
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 4;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: auto;
}

    .reacoes-popover .emoji {
        font-size: 16px;
        line-height: 1;
    }

    .reacoes-popover .count {
        font-size: 12px;
        font-weight: bold;
        margin-left: -4px;
        color: #222;
    }

.gallery-item:hover .reacoes-popover {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.reacoes-popover:hover {
    opacity: 1 !important;
    transition: opacity 0.2s ease;
}

.reacoes-popover {
    pointer-events: auto;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #fadf25 !important;
    color: #000 !important;
    border-color: #d9bc00;
}

.nav-pills .nav-link {
    background-color: #2c2c2c !important;
    color: #ffffff !important;
    border-radius: 8px;
    margin: 2px;
    border: 1px solid #444;
}

#btn-carregar-mais {
    background-color: #6cc4cf;
    border: none;
    color: #232323;
    font-weight: bold;
    transition: background-color 0.3s;
}

    #btn-carregar-mais:hover {
        background-color: #6cc4cf;
    }

.fundo-patinha-outline::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/paw-outline.svg');
    background-repeat: repeat;
    background-size: 70px;
    background-position: 0 0, 50px 100px, 100px 200px;
    filter: brightness(0) opacity(0.04);
    z-index: 0;
    pointer-events: none;
}

.fundo-patinha-outline {
    position: relative;
    z-index: 1;
}

.fundo-patinha-full::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/paw-full.svg');
    background-repeat: repeat;
    background-size: 70px;
    background-position: 0 0, 50px 100px, 100px 200px;
    filter: brightness(0) opacity(0.04);
    z-index: 0;
    pointer-events: none;
}

.fundo-patinha-full {
    position: relative;
    z-index: 1;
}

.fundo-patinhas-full-y::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/paws-full.svg');
    background-repeat: repeat-y;
    background-size: 70px;
    background-position: 0 0, 50px 100px, 100px 200px;
    filter: brightness(0) opacity(0.04);
    z-index: 0;
    pointer-events: none;
}

.fundo-patinhas-full-y {
    position: relative;
    z-index: 1;
}

.faixa-info {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000;
    z-index: 0;
}

.bg-linha-horizontal {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 1;
    opacity: 0.4;
    overflow: hidden;
}

.bg-horizontal-img {
    width: 25vw;
    min-width: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .bg-horizontal-img {
        width: 50vw;
    }
}

.faixa-info::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    z-index: 2;
}

.faixa-info .container {
    position: relative;
    z-index: 3;
    color: white;
}

.faixa-info h2,
.faixa-info p {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: #000;
    border-color: #ffffff;
}

.a-person {
    color: black !important;
    font-weight: bold;
    text-decoration: none;
}