/*
 * CSS Base - Estilos compartilhados entre todas as páginas
 * Fraldas ZOO - Clean Care
 */

/* Fonte padrão - Fredoka */
body {
    font-family: 'Fredoka', sans-serif;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
}

.w-md-50 {
    max-width: 50%
}

.fw-bold {
    font-weight: 600 !important;
}

.navbar-brand {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
}

.navbar-toggler,
.navbar-toggler:focus {
    border: 0;
    box-shadow: none;
}

.bg-animais {
    background-image: url(../images/fundo-azul-animais.png);
    background-repeat: repeat;
}

.btn {
    border-radius: 0.85rem !important;
}

/* Navegação */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
}

.navbar-nav .nav-link:hover {
    color: #f0f0f0 !important;
}

.navbar-nav .nav-link.active {
    font-weight: 600 !important;
}

.navbar-brand img {
    height: 50px;
}

/* Seção Apresentação */
#apresentacao {
    height: 100vh;
    max-height: 700px;
    background-image: url(../images/nuvens.svg);
    background-position: bottom;
    background-repeat: repeat-x;
    background-size: 120vw auto;
    animation: moveClouds 30s linear infinite;
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
}

@keyframes moveClouds {
    0% {
        background-position: 100vw bottom;
    }

    50% {
        background-position: 120vw bottom;
    }

    100% {
        background-position: 100vw bottom;
    }
}

#apresentacao .hero-image {
    height: 90vh;
    max-height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

#apresentacao .hero-image img {
    max-width: 80%;
}

#apresentacao h1 {
    color: #ffffff;
}

#apresentacao .lead {
    color: #f8f9fa;
}

/* Seção Produto */
#produto .product-image {
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#produto .product-image img {
    max-width: 80%
}

/* Ícones de features do produto */
.product-feature-icon {
    min-width: 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: transform 0.3s ease;
}

.product-feature-icon:hover {
    transform: scale(1.1);
}

/* Cards de Tamanhos */
.sizes-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.sizes-container::-webkit-scrollbar {
    display: none;
}

.sizes-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.size-item {
    flex: 0 0 auto;
    width: 200px;
    scroll-snap-align: center;
    cursor: pointer;
}

.size-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.size-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.size-item.active .size-card {
    border-width: 2px;
    border-style: solid;
}

/* Tooltip de Tamanhos */
.size-tooltip {
    margin: 2rem auto 0;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    text-align: center;
}

.size-tooltip.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.size-tooltip p {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
}

/* Benefícios - Ícones circulares */
.benefit-icon {
    color: white;
    min-width: 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

.benefit-icon::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: -10px;
    left: -10px;
    border: 3px dashed var(--benefit-icon-color);
}

/* Imagem central dos benefícios */
.benefit-center-image img {
    max-width: 300px;
    width: 100%;
    height: 300px;
    object-fit: cover;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
    border: 8px solid transparent;
    transition: border-color 0.3s ease;
}

.benefit-item {
    transition: transform 0.3s ease;
    cursor: pointer;
    justify-content: center;
}

/* Depoimentos */
.testimonials-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.testimonials-container::-webkit-scrollbar {
    display: none;
}

.testimonials-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonial-item {
    flex: 0 0 auto;
    width: 350px;
    scroll-snap-align: center;
}

.testimonial-card {
    transition: transform 0.3s ease;
    font-weight: 300;
    border: 0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card .footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    font-weight: 400;
}

.testimonial-card .footer span:nth-child(1) {
    background-color: var(--tesimonial-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-card .footer span:nth-child(2) {
    font-size: 1.1rem;
}

.testimonial-card .footer cite {
    display: block;
    font-size: 0.8rem;
}

.testimonial-stars {
    color: #ffc107;
    font-size: 1.6rem;
}

/* FAQ Accordion */
.accordion-item {
    margin-bottom: 1rem;
}

.accordion-body {
    font-size: 1rem;
    font-weight: 300;
}

.accordion-item,
.accordion-button,
.accordion-button:not(.collapsed) {
    font-size: 1.2rem;
    color: #464646;
    background-color: var(--accordion-color);
}

.accordion-button.collapsed::after,
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23464646'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-item,
.accordion-button,
.accordion-item:first-of-type,
.accordion-item:last-of-type,
.accordion-item:first-of-type>.accordion-header .accordion-button,
.accordion-item:last-of-type>.accordion-header .accordion-button,
.accordion-item:last-of-type>.accordion-header .accordion-button.collapsed {
    border: 0;
    border-radius: 1rem;
}

/* Formulário de Contato */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--primary-shadow);
}

/* Ícones de Contato - Círculos coloridos */
.contact-icon-circle {
    min-width: 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-icon-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Ícones de Redes Sociais */
.social-icon-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    color: white;
}

/* Cores específicas para cada rede social (cores oficiais) */
.social-icon-facebook {
    background-color: #1877F2;
}

.social-icon-instagram {
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
}

.social-icon-twitter {
    background-color: #1DA1F2;
}

.social-icon-youtube {
    background-color: #FF0000;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
}

footer a {
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.7;
}

/* Animações */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividade */
@media (max-width: 768px) {

    .w-md-50 {
        max-width: 100%
    }

    #apresentacao {
        padding-top: 80px;
        max-height: none;
        background-size: auto 40vh;
    }

    #apresentacao .hero-image {
        height: auto;
        padding-bottom: 30px;
    }

    #apresentacao .hero-image img {
        height: 250px;
    }

    #produto .product-image {
        height: 300px;
    }

    .product-feature-icon {
        min-width: 45px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .sizes-container {
        justify-content: flex-start;
        padding-left: calc(50vw - 100px);
        padding-right: calc(50vw - 100px);
    }

    .testimonials-container {
        justify-content: flex-start;
        padding-left: calc(50vw - 175px);
        padding-right: calc(50vw - 175px);
    }

    .testimonial-item {
        width: 300px;
    }
}

/* Prevenir overflow horizontal */
body {
    overflow-x: hidden;
}

body, html {
    max-width: 100%;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Navbar scroll effect */
.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
