/* Importar fontes do Google Fonts (opcional, mas recomendado para um bom visual) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap');


/* Reset básico para remover margens e preenchimentos padrão */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis CSS para Altura do Header */
:root {
    --header-height-desktop: 90px;
    --header-height-mobile: 115px;
    --primary-color: #b13c5a;
    /* Azul principal */
    --secondary-color: #0c5d9c;
    /* Azul secundário */
    --accent-color: #a7ffeb;
    /* Verde claro para destaque/hover */
    --text-color: #333;
    --light-bg: #f4f4f4;
    --dark-bg: #fff;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    scroll-behavior: smooth;
    /* Rolagem suave para âncoras */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.header {
    height: 115px !important;
    background: linear-gradient(to right, #ef3976, #ff466b, #fd4a67, #fe6965, #ff7268);
    /* background: linear-gradient(to right, var(--primary-color) 12%, var(--secondary-color)); */
    color: #fff;
    /* padding: 15px 0; */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height-desktop);
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header .logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1002;
}

.header .logo img {
    /* height: 70px; */
    /* Ajuste a escala ou remova se a imagem já tiver o tamanho correto */
    /* scale: 2.0; */
    /* margin-top: 10px; */
    /* Pode ser removido com display:flex no header */
}

.header .nav-menu ul {
    list-style: none;
    display: flex;
}

.header .nav-menu ul li {
    margin-left: 25px;
}

.header .nav-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header .nav-menu ul li a:hover {
    color: var(--accent-color);
}

.hamburger-menu {
    display: none;
    /* Escondido por padrão no desktop */
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    position: relative;
    /* Para o z-index funcionar */
    z-index: 1002;
    /* Garante que o hambúrguer fique acima do menu mobile */
}

/* --- Hero Section --- */
.hero-section {
    background: url('./img/assessoria-contabil.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 0px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #140408ce;
    /* Overlay escuro */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-section p {
    font-size: 1.5em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.btn {
    display: inline-block;
    background-color: #f9486c;
    /* background: linear-gradient(to right, #ef3976, #ff466b, #fd4a67, #fe6965, #ff7268); */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;

    i {
        margin-right: 4px;
    }
}

.btn-contact {
    background: linear-gradient(to right, #ef3976, #ff466b, #fd4a67, #fe6965, #ff7268);
    font-family: 'Montserrat', sans-serif;
    border-radius: 30px;
    will-change: animation;

}

.pulse-button {
    background: linear-gradient(to right, #ef3976, #ff466b, #fd4a67, #fe6965, #ff7268);
    font-family: 'Montserrat', sans-serif;
    background-color: #dc3545;
    /* Cor de fundo do botão (vermelho) */
    color: white;
    /* Cor do texto */
    padding: 15px 30px;
    /* Preenchimento interno */
    border: none;
    /* Remove a borda padrão */
    border-radius: 30px;
    /* Cantos arredondados */
    font-size: 1.2em;
    /* Tamanho da fonte */
    font-weight: bold;
    /* Negrito */
    cursor: pointer;
    /* Cursor de mão ao passar por cima */
    outline: none;
    /* Remove o contorno ao focar */
    transition: background-color 0.10s ease;
    /* Transição suave para a cor de fundo no hover */

    /* Adiciona uma sombra inicial sutil para que o botão tenha alguma profundidade */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    /* Garante que o elemento seja um bloco para box-shadow funcionar bem */
    display: inline-block;
}

.shadow-pulse {
    /* Aplica a animação: nome, duração, repetição e função de temporização */
    animation: shadowPulse 3.8s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Função de temporização customizada para um pulso mais orgânico */
}

@keyframes shadowPulse {
    0% {
        /* Início da animação: sombra invisível e sem espalhamento */
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
        /* Cor da sombra é a do botão, com alta opacidade */
    }

    50% {
        /* Meio da animação: sombra se espalha, mas sua opacidade diminui */
        /* O "15px" é o quanto a sombra se espalha para fora do botão */
        box-shadow: 0 0 0 15px rgba(220, 53, 69, 0);
        /* Opacidade final é 0 (transparente) */
    }

    100% {
        /* Fim da animação: sombra volta ao estado inicial para o próximo ciclo */
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.btn:hover {
    /* background-color: var(--secondary-color); */
    background: linear-gradient(to right, #ef3976, #ff466b, #fd4a67, #fe6965, #ff7268);
    transform: translateY(-2px);
}

/* --- Sections Gerais --- */
section {
    padding: 80px 0;
    text-align: center;
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* --- Services Section --- */
.services-section {
    background-color: var(--dark-bg);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.service-item .icon-large {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-item p {
    font-size: 1.1em;
    color: #555;
}

/* --- About Section --- */
.about-section {
    background: linear-gradient(to right, #ef3573f1 12%, #ff466bce, #fd4a68c5, #fe6a65d2, #ff7268b9);
    /* background-color: rgba(124, 173, 215, 0.5); */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);

    h2 {
        color: white;
    }
}

.about-section p {
    font-size: 1.15em;
    max-width: 800px;
    margin: 0 auto 20px auto;
    color: white;
}

/* --- Solutions Section (Novo) --- */
.solutions-section {
    background-color: var(--light-bg);
}

.solution-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.solution-card {
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    .titulo-topico {
        color: #b13c5a;        
    }
}

.solution-card1 {
    /* grid-template-columns: 1fr; */
    background-color: #ef3976de;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.solution-card i {
    font-size: 2.5em;
    color: white;
    margin-bottom: 15px;
}

.solution-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #b13c5a;
}

.solution-card p {
    font-size: 1em;
    color: #555;
}


/* --- Gallery/Carousel Section --- */
.gallery-section {
    background-color: var(--dark-bg);
    padding-bottom: 80px;
    /* Adiciona padding para o carrossel */
}

/* stats sections */

.stats-section {
    display: flex;
    flex-wrap: wrap;
    /* Permite que os itens quebrem linha em telas menores */
    justify-content: space-around;
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* max-width: 1000px; */
    /* width: 90%; */
}

.stat-item {
    text-align: center;
    margin: 20px;
    flex: 1;
    /* Permite que os itens ocupem espaço igual */
    min-width: 180px;
    /* Garante um tamanho mínimo para cada item */
}

.stat-item .count {
    font-size: 3.5em;
    font-weight: bold;
    /* color: #a02020; */
    /* display: block;  */
    margin-bottom: 5px;

    background-image: linear-gradient(to right, #ef3976, #ff466b, #fd4a67, #fe6965, #ff7268);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    display: inline-block;
}

.stat-item p {
    font-size: 1.1em;
    color: #555;
    margin: 0;
}

/* Swiper specific styles */
.swiper {
    width: 100%;
    max-width: 900px;
    /* Limita a largura do carrossel */
    height: 450px;
    /* Altura do carrossel no desktop */
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    /* Garante que as bordas da imagem sejam cortadas se overflow */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Faz a imagem cobrir o slide sem distorcer */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
}


/* --- Contact Section --- */
.contact-section {
    background-color: var(--dark-bg);
}

.contact-info {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.contact-info p,
.contact-info a {
    font-size: 1.2em;
    color: #555;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.contact-info a i,
.contact-info p i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.5em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    width: 100%;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: auto;
    align-self: flex-end;
}

/* --- Footer --- */
.footer {
    background: linear-gradient(to right, #ef3976, #ff466b, #fd4a67, #fe6965, #ff7268);
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer p {
    font-size: 0.9em;
    margin-bottom: 10px;
}

.footer .social-links a {
    color: #fff;
    font-size: 1.5em;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: var(--accent-color);
}

/* ICONE FLUTUANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1DA851;
}

/* --- Media Queries (Responsividade) --- */

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
        bottom: 15px;
        right: 15px;
    }

    .header {
        height: var(--header-height-mobile);
        padding: 10px 0;
    }

    .header .logo {
        /* margin-left: 98px !important; */
        padding-bottom: 0;
        position: relative;
        z-index: 1002;
    }

    .header .logo img {
        /* height: 40px; */
        /* scale: 1; */
        margin-top: 0;
    }

    /* O menu de navegação em mobile (quando está ativo) */
    .header .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        /* background: linear-gradient(to right, var(--primary-color) 12%, var(--secondary-color)); */
        background: linear-gradient(to right, #ef3976, #ff466b, #fd4c67, #fe5c66, #ff6c66, #fe6066);
        
        position: fixed;
        top: var(--header-height-mobile);
        left: 0;
        height: calc(80vh - var(--header-height-mobile));
        /* box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3); */
        box-shadow: 0 6px 8px -4px rgba(0, 0, 0, 0.4);
        
        transition: transform 0.3s ease-in-out;
        /* Animação de slide */
        transform: translateY(-100%);
        /* Esconde o menu para cima (fora da tela) */
        z-index: 999;
        /* Z-index para o menu mobile, menor que o logo e hambúrguer */
        overflow-y: auto;
        /* Permite rolagem se o conteúdo for maior que a tela */
    }

    .header .nav-menu.active {
        display: flex;
        /* Mostra o menu quando ativo */
        transform: translateY(0);
        /* Desliza para a posição visível */
    }

    .header .nav-menu ul {
        flex-direction: column;
        align-items: center;
        /* CENTRALIZA OS ITENS HORIZONTALMENTE */
        width: 100%;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .header .nav-menu ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
        margin-right: 49px;
    }

    .header .nav-menu ul li a {
        padding: 10px 0;
        display: block;
        color: #fff;
        font-size: 1.2em;
    }

    .hamburger-menu {
        display: block;
        /* Mostra o ícone do hambúrguer */
        margin-left: auto;
        /* Empurra o hambúrguer para a direita */
        position: relative;
        z-index: 1002;
        /* Garante que o hambúrguer fique acima do menu mobile */
    }

    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1.2em;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .solution-cards {
        grid-template-columns: 1fr;
    }

    .solution-card1 {
        /* grid-template-columns: 1fr; */
        background-color: #ef3976;
    }

    .swiper {
        height: 250px;
        /* Altura menor para o carrossel em mobile */
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

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

    .stat-item {
        margin: 15px 0;
    }

    .stat-item .count {
        font-size: 2.8em;
    }

    .footer .container {
        flex-direction: column;
        gap: 15px;
    }

    .footer .social-links {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    section {
        padding: 50px 0;
    }

    section h2 {
        font-size: 2em;
    }

    .service-item,
    .solution-card {
        padding: 20px;
    }
}