@charset "UTF-8";

@font-face {
    font-family: 'Adotados';
    src: url(../Fontes/Richat-rvpjL.otf) format('opentype');
    font-weight: normal;
}
:root {
    --font-adotado:'Adotados', cursive;
}

body {
    background-color: #F5F5F5;
    box-sizing: border-box ;
}

body.machos .animal-card {
    background-color: #e1f0f3;
}

body.filhotes .animal-card {
    background-color: #dec9f0;
}

body.fêmeas .animal-card {
    background-color: #fbc4d8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Cabeçalho padrão */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 4rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    height: 80px;
}

.logo img {
    height: 100px;
    width: auto; 
    transition: transform 0.3s ease;
    object-fit: contain; /* Garante que a imagem não distorça */
}

.logo img:hover {
    transform: scale(1.05);
}

.navbar {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    height: 100%;
}

.navbar a {
    text-decoration: none;
    color: #6A1B9A;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar a:hover {
    color: #F8A836;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #F8A836;
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

/* Bradcrumb */

.breadcrumb {
    font-size: 15px;
    color: #333333;
    margin: 40px 50px;
    padding: 10px 20px;
}

.breadcrumb a {
    text-decoration: none;
    color: #333333;
}

.breadcrumb a:hover {
    text-decoration: underline;
    text-decoration-color: #F8A836;
}

.breadcrumb span {
    color: #F8A836;
    font-weight: 700;
}

/* Título e uma espécie de subtítulo */

.text h1 {
    text-align: center;
    margin: 60px 0 20px 0;
    font-size: 2.5rem;
    font-family: var(--font-adotado);
    color: #6A1B9A;
}

.text p {
    font-family: var(--font-adotado);
    color: #F8A836;
    font-size: 20px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: center;
    border-bottom: 2px solid #333333;
    padding-bottom: 60px;
    max-width: 1000px;
}

/* Estrutura da adoção dos cachorros machos */

.animal-adoption {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    padding-bottom: 50px;
    padding-left: 50px;
    padding-right: 50px;
    justify-items: center;
    margin-top: 60px;
}
  
.animal-card {
    width: 100%;
    max-width: 250px;
    background-color: #e1f0f3;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}
  
.animal-card:hover {
    transform: scale(1.05);
}
  
.animal-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
.animal-card h3 {
    font-size: 18px;
    margin-top: 10px;
    color: #6A1B9A;
    font-weight: 700;
}
  
.animal-card p {
    font-size: 14px;
    color: #666;
}

/* Modal para informações dos cachorros */
  
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px 20px;
}
  
.modal-content {
    background-color: white;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    position: relative;
}
  
.modal img {
    width: 250px;
    max-width: 100%;
    border-radius: 8px;
}

.modal-info {
    flex: 1;
    min-width: 250px;
}

.modal h5 {
    color: #F8A836;
    padding-top: 20px;
}
  
.modal h2 {
    margin-top: 10px;
    font-size: 24px;
    color: #6A1B9A;
}
  
.modal p {
    margin-top: 10px;
    font-size: 16px;
    color: #1a1818;
}

/* CSS do X que fica em cima (para fechar o modal) */
  
.close {
    position: absolute;
    top: 5px;
    right: 20px;
    font-size: 40px;
    color: #6A1B9A;
    cursor: pointer;
}
  
.close:hover {
    color: #f8a836;
}

/* Botão dentro do modal */

.adopt-button {
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 16px;
    background-color: #6A1B9A;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
  
.adopt-button:hover {
    background-color: #F8A836;
}

/* Botão fora do modal (página inicial) */

.button {
    text-align: center;
    margin: 20px 0 100px;
}

.button button {
    background-color: #6A1B9A;
    color: white;
    border: none;
    padding: 25px 50px;
    font-size: 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button button:hover {
    background-color: #F8A836;
}

/* Rodapé padrão */

.footer {
    background-color: #6A1B9A;
    color: #fff;
    padding: 40px 20px;
}

.footer-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1 1 300px;
    margin: 20px;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid #F8A836;
    padding-bottom: 5px;
}

.footer-column p {
    line-height: 1.6;
    text-align: justify;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu li a:hover {
    color: #F8A836;
}

.social-icons {
    margin-top: 15px;
}

.social-icon {
    display: inline-block;
    color: #fff;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #F8A836;
}

.social-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-contact-item {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.social-contact-item:hover {
    color: #F8A836;
}

.footer-bottom {
    text-align: center;
    margin-top: 10px;
    padding-top: 20px;
    color: #ddd;
}

.footer .footer-bottom img{
    max-width: 90px;
}

.footer-mobile {
    display: none;
    background-color: #6A1B9A;
    color: #fff;
    padding: 20px;
    padding-top: 10px;
    text-align: center;
}

.footer-mobile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.footer-mobile-content img {
    max-width: 80px;
    margin: 0;
    position: relative;
    top: 12px;
}

.footer-mobile-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-mobile-social a {
    font-size: 24px;
    color: #fff;
    transition: color 0.3s;
}

.footer-mobile-social a:hover {
    color: #F8A836;
}

.footer-mobile p {
    margin-top: 15px;
    font-size: 14px;
    color: #ddd;
}

.menu-toggle {
    display: none;
}


@media (max-width: 768px) {
    header {
        position: fixed; 
        width: 100%;
        z-index: 1000;
        background: white;
        padding: 15px 20px;
    }

    .logo {
        margin-left: 10px; 
    }

    .menu-toggle {
        display: block;
        font-size: 40px;
        background: none;
        border: none;
        color: #6A1B9A;
        cursor: pointer;
        z-index: 1001;
        margin-right: 20px;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: rgba(255, 255, 255, 0.849);
        overflow: hidden;
        height: 0;
        opacity: 0;
        transition: height 0.4s ease-in-out, opacity 0.4s ease-in-out;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        padding-right: 1.5rem;
    }

    .navbar.open {
        height: auto;
        opacity: 1;
        pointer-events: auto;
    }

    .navbar a {
        display: block;
        padding: 8px 0;
        color: #F8A836;
        font-weight: 600;
        font-size: 1rem;
        text-align: right;
    }

    .animal-adoption {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    
    .animal-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        height: 100%;
        min-height: 250px;
    }
    
    .animal-card h3 {
        text-align: center;
        width: 100%;
        min-height: 2em;
        margin: 10px 0 0 0;
    }

    .text h1 {
        font-size: 2rem;
        margin-top: 40px;
    }

    .text p {
        font-size: 18px;
    }

    body {
        padding-top: 80px;
    }

    .breadcrumb {
        font-size: 14px;
        margin: 20px 20px 0 20px;
        padding: 5px 15px;
    }

    .modal {
        z-index: 9999;
    }

    .close {
        right: 10px;
        font-size: 36px;
    }

    .modal-content {
        max-width: 90%;
        width: 450px;
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .modal img {
        width: 80%;
        max-width: 300px;
    }

    .modal-info {
        text-align: center;
        width: 100%;
    }

    .modal h2 {
        font-size: 20px;
    }

    .modal p {
        font-size: 14px;
    }

    .adopt-button {
        font-size: 14px;
        padding: 10px 18px;
    }

    .footer {
        display: none;
    }

    .footer-mobile {
        display: block;
    }
}