/* Estilos personalizados */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Ajuste para compensar o header fixo */
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* Animações */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Ajustes de responsividade */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    header img {
        height: 2.5rem; /* Logo menor em dispositivos móveis */
    }
}

/* Melhorias de acessibilidade */
:focus {
    outline: 2px solid #1a365d;
    outline-offset: 2px;
}

/* Logo ajustes */
@media (max-width: 768px) {
    header img {
        height: 2.5rem; /* Logo menor em dispositivos móveis */
    }
}

/* Efeito de hover na logo */
header img {
    transition: opacity 0.3s ease;
}

header img:hover {
    opacity: 0.9;
}

/* Animação de rotação lenta */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

/* Melhorias na responsividade do Hero */
@media (max-width: 768px) {
    .min-h-screen {
        min-height: calc(100vh - 4rem);
    }
}

/* Efeito de glassmorphism */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Animações para os cards de diferenciais */
.card-expand-enter {
    opacity: 0;
    transform: translateY(-1rem);
}

.card-expand-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 200ms ease-out, transform 200ms ease-out;
}

/* Melhorias na interatividade dos cards */
@media (min-width: 1024px) {
    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

/* Estilos específicos para cards de serviços */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animação de expansão dos cards de serviço */
.service-expand-enter {
    opacity: 0;
    max-height: 0;
}

.service-expand-enter-active {
    opacity: 1;
    max-height: 1000px;
    transition: all 0.5s ease-out;
}

/* Melhorias na responsividade dos cards de serviço */
@media (max-width: 768px) {
    .service-card.expanded {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
}

/* Estilização da barra de rolagem */
::-webkit-scrollbar {
    width: 8px; /* Largura da barra de rolagem */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* Cor do fundo da barra */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #1a365d; /* Cor primária do site */
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #2b4c7e; /* Cor primária mais clara no hover */
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #1a365d #f1f1f1;
}

/* Estilos para o carrossel de depoimentos */
.testimonial-container {
    min-height: 400px; /* Altura fixa mínima para todos os slides */
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Estilos do menu principal */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a365d;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #1a365d;
    font-weight: 500;
}

.nav-link.active::after {
    width: 100%;
}

/* Menu Mobile */
@media (max-width: 768px) {
    .nav-link::after {
        display: none;
    }
    
    .nav-link.active {
        background-color: #f3f4f6;
        border-radius: 0.5rem;
        padding: 0.5rem 1rem;
    }
}

/* Prevenção de overflow horizontal */
body {
    overflow-x: hidden;
    width: 100%;
}

/* Ajuste para imagens responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Ajuste para containers em mobile */
.container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Ajuste para textos longos */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ajuste para elementos que podem causar overflow */
.rounded-2xl {
    max-width: calc(100vw - 2rem);
}

/* Ajustes específicos para o formulário em mobile */
@media (max-width: 768px) {
    section#contato {
        width: 100vw;
        overflow-x: hidden;
    }

    section#contato .container {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
    }

    section#contato .grid {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    input, 
    textarea, 
    select {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .rounded-2xl {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .space-y-6 {
        width: 100%;
    }
    
    .space-y-6 > * {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
    
    form {
        padding-right: 0;
        padding-left: 0;
        width: 100%;
    }

    /* Ajuste para links de contato */
    .flex.items-center.space-x-4 {
        padding: 0.5rem;
        width: 100%;
    }
}

/* Utilitário para ocultar elementos com Alpine.js */
[x-cloak] {
    display: none !important;
}

/* Estilos específicos para a seção de depoimentos */
.testimonials-section {
    transition: opacity 0.3s ease-in-out;
}

.testimonials-section[x-cloak] {
    opacity: 0;
    visibility: hidden;
}

/* Adicione no início do arquivo, junto com os outros estilos principais */

/* Animações para os cards de diferenciais */
.card-expand-enter {
    opacity: 0;
    transform: translateY(-1rem);
}

.card-expand-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 200ms ease-out, transform 200ms ease-out;
}

/* Melhorias na interatividade dos cards */
@media (min-width: 1024px) {
    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

/* Estilos específicos para cards de serviços */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animação de expansão dos cards de serviço */
.service-expand-enter {
    opacity: 0;
    max-height: 0;
}

.service-expand-enter-active {
    opacity: 1;
    max-height: 1000px;
    transition: all 0.5s ease-out;
}

/* Melhorias na responsividade dos cards de serviço */
@media (max-width: 768px) {
    .service-card.expanded {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
}

/* Estilização da barra de rolagem */
::-webkit-scrollbar {
    width: 8px; /* Largura da barra de rolagem */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* Cor do fundo da barra */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #1a365d; /* Cor primária do site */
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #2b4c7e; /* Cor primária mais clara no hover */
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #1a365d #f1f1f1;
}

/* Estilos para o carrossel de depoimentos */
.testimonial-container {
    min-height: 400px; /* Altura fixa mínima para todos os slides */
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Estilos do menu principal */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a365d;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #1a365d;
    font-weight: 500;
}

.nav-link.active::after {
    width: 100%;
}

/* Menu Mobile */
@media (max-width: 768px) {
    .nav-link::after {
        display: none;
    }
    
    .nav-link.active {
        background-color: #f3f4f6;
        border-radius: 0.5rem;
        padding: 0.5rem 1rem;
    }
}

/* Prevenção de overflow horizontal */
body {
    overflow-x: hidden;
    width: 100%;
}

/* Ajuste para imagens responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Ajuste para containers em mobile */
.container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Ajuste para textos longos */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ajuste para elementos que podem causar overflow */
.rounded-2xl {
    max-width: calc(100vw - 2rem);
}

/* Ajustes específicos para o formulário em mobile */
@media (max-width: 768px) {
    section#contato {
        width: 100vw;
        overflow-x: hidden;
    }

    section#contato .container {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
    }

    section#contato .grid {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    input, 
    textarea, 
    select {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .rounded-2xl {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .space-y-6 {
        width: 100%;
    }
    
    .space-y-6 > * {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
    
    form {
        padding-right: 0;
        padding-left: 0;
        width: 100%;
    }

    /* Ajuste para links de contato */
    .flex.items-center.space-x-4 {
        padding: 0.5rem;
        width: 100%;
    }
} 