/* Fonte global Poppins */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Carousel Styles (seção Hero) */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-inner {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.carousel-inner a {
    flex: 0 0 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Indicadores do Carousel */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
}

.carousel-dots button.active {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Vídeos: iframe responsivo */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .video-scroll-container {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .video-scroll-container .video-card {
        scroll-snap-align: start;
        flex-shrink: 0;
        width: 80vw;
    }
}

@media (min-width: 769px) {
    .video-scroll-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        justify-items: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .btn {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }
    body {
        font-size: 1rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    form input.input {
        margin-bottom: 1rem;
    }
    .carousel-dots button {
        width: 16px;
        height: 16px;
    }
    header.navbar {
        padding: 0.5rem 1rem;
    }
    header.navbar img {
        height: 3.5rem;
        margin-left: 0;
    }
    .container.relative.z-10 h2,
    .container.relative.z-10 p {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }
    .card-container-desktop {
        display: none;
    }
    .card-container-mobile {
        display: block;
    }
    .card-row-mobile {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-left: calc((100vw - 80vw) / 2);
        padding-right: calc((100vw - 80vw) / 2);
    }
    .card-row-mobile .card {
        flex: 0 0 80vw;
        scroll-snap-align: center;
    }
    .card-row-mobile::-webkit-scrollbar {
        display: none;
    }
    .card-row-mobile {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

@media (min-width: 769px) {
    .card-container-mobile {
        display: none;
    }
    #home {
        height: 80vh;
    }
    .carousel-container {
        height: 100%;
    }
    .carousel-inner a {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .carousel-inner picture {
        display: block;
        height: 100%;
    }
    .carousel-inner picture img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        margin: 0 auto;
    }
}

/* WhatsApp fixo */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    text-decoration: none;
}

/* ========= Validação ========= */
.input.border-red-500 {
    border: 2px solid #dc2626 !important;
}

#formError {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 10px 15px;
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeSlideIn 0.3s ease-in-out;
}

/* Fade com slide para mensagens */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shake para inputs inválidos */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.input.shake {
  animation: shake 0.3s ease;
}
