@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 ;
}

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

/* Cabeçalho - navegaçã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%;
}

/* Parte inicial do site */

.about {
    display: flex;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.welcome{
    flex: 1;
    height: auto;
    padding: 40px;
    flex-direction: column;
    justify-content: center;
}

.welcome p{
    text-align: justify;
}

.imagem_png {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.imagem_png img{
    max-width: 100%;
    height: auto;
    filter: drop-shadow(5px 5px 8px rgba(0, 0, 0, 0.5));
}

.home {
    display: flex;
    align-content: center;
    min-height: auto;
    background: #ffdb5862;
    overflow: hidden;
}

.home .welcome h1{
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #6A1B9A;
    font-family: var(--font-adotado);
}

.home .welcome p{
    color: #333333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.home .welcome p span {
    text-decoration: underline;
    text-decoration-color: #6A1B9A;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

/* Divisória*/

.rectangle {
    background: #6A1B9A;
    padding: 16px;
}

/* Segunda parte - Quem somos */

.whoweare {
    min-height: auto;
    overflow: hidden;
}

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

.whoweare .textabout p{
    max-width: 65ch;
    margin: 0 auto 40px;
    line-height: 1.8;
    text-align: justify;
}

.whoweare a {
    display: block; 
    margin: 30px auto 0; 
    width: fit-content; 
    padding: 12px 25px;
    background-color: #F8A836;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.whoweare a:hover {
    background-color: #6A1B9A;
}

/* Terceira-Quarta parte - Cachorros e gatos */

.pawas_dogs, .pawas_cats {
    min-height: auto;
    overflow: hidden;
    text-align: center;
}
  
.pawas_dogs h1 {
    font-size: 2.5rem;
    margin: 80px 0 10px;
    color: #6A1B9A;
    font-family: var(--font-adotado);
}
  
.pawas_dogs h3 {
    font-size: 2.2em;
    margin: 30px 0 25px;
}
  
.pawas_cats h3 {
    font-size: 2.2em;
    margin: 0px 0 10px;
}

.pawas_cats p {
    margin-bottom: 20px;
}

.pawas_cats p span {
    text-decoration: underline;
    text-decoration-color: #F8A836;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-right: 8px;
}

.image-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}
  
.image-card {
    position: relative;
    width: 250px;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}
  
.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
    display: block;
}
  
.image-card:hover {
    transform: translateY(1.03);
}
  
.image-card:hover img {
    transform: scale(1.05);
}
  
.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8a736bb;
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s;
    text-align: center;
}
  
.image-card:hover .caption {
    transform: translateY(0);
}
  
.caption h3 {
    margin: 0;
    font-size: 2em;
}

/* Quinta parte - Por que Adotar - construção de cards explicativos */

.title_cards h1 {
    font-size: 2.5rem;
    text-align: center;
    color: #6A1B9A;
    margin: 50px 0 40px 0;
}

.card-section {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 100px;
}

.card h3 {
    color: #333333;
    font-size: 17px;
    line-height: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.card p {
    font-size: 14px;
    line-height: 20px;
    color: #666666;
}

.card {
    position: relative;
    max-width: 262px;
    background-color: #e1f0f3;
    border-radius: 4px;
    padding: 32px 24px;
    margin: 12px;
    z-index: 0;
    overflow: hidden;
  
    &:before {
      content: "";
      position: absolute;
      z-index: -1;
      top: -16px;
      right: -16px;
      background: #F8A836;
      height: 32px;
      width: 32px;
      border-radius: 32px;
      transform: scale(1);
      transition: transform 0.3s ease-out;
    }
  
    &:hover:before {
      transform: scale(21);
    }
}
  
.card:hover {
    p {
      transition: all 0.3s ease-out;
      color: rgba(255, 255, 255, 0.8);
    }
    
    h3 {
      transition: all 0.3s ease-out;
      color: #ffffff;
    }
}

/* Rodapá do site */

.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;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .whoweare .textabout p {
        padding: 0 1rem; /* ou 16px */
    }

    .welcome {
        padding-top: 100px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .textabout {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-section {
        flex-direction: column;
        align-items: center;
    }

    .pawas_dogs h1, 
    .pawas_dogs h3, 
    .pawas_cats h3 {
        font-size: 1.8rem;
    }

    .pawas_cats p {
        padding: 0 1rem;
        margin-bottom: 20px;
        text-align: center;
    }

    .caption {
        transform: translateY(0);
        transition: none;
    }

    .image-card {
        width: 100%;
        height: auto;
    }

    .image-card:hover .caption {
        transform: translateY(0);
    }

    .title_cards h1 {
        font-size: 2rem;
    }

    .footer {
        display: none;
    }

    .footer-mobile {
        display: block;
    }
}