/* Variáveis e Reset */
:root {
    --primary: #03A9F4;
    --primary-dark: #0288D1;
    --black: #000;
    --white: #fff;
    --gray-light: #c8e5f3;
    --gray: #d0d0d0;
    --gray-dark: #555;
    --bg-dark: #2d2d2d;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--black);
    line-height: 1.5;
    overflow-x: hidden;
    background-color: var(--white);
}

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

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-family: Montserrat, Poppins, ui-sans-serif;
    font-size: 3rem;
    color: var(--primary-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h2 {
    font-family: Montserrat, Poppins, ui-sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 15px;
}

h3 {
    font-size: 1.5rem;
	font-family: Montserrat, Poppins, sans-serif;
    color: var(--primary-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
    font-weight: 500;
}

a:hover {
    color: var(--primary-dark);
}

/* Botões */
.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    font-family: 'Poppins';
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

/* Header e Navegação */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #002247;
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.2));
}

.menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.menu-link {
    color: #fff;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.menu-link:hover {
    color: #ffd165;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.menu-link:hover::after {
    width: 100%;
}

.menu-mobile {
    display: none;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-dark);
    transition: var(--transition);
}

/* Seções */
.section {
    padding: 100px 0;
}

/* Hero Section */
.hero {
    padding-top: 60px;
    background-color: var(--white);
    position: relative;
}

.politicas {
    font-size: 11px;
    font-weight: 100 !important;
    padding: 10px;
    color: #878787;
}

@media (min-width: 769px) {
    .hero {
        padding-top: 150px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 0 !important;
        margin-top: 0 !important;
        position: relative;
    }
    
    .hero h1 {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 10px 15px;
        background-color: var(--white);
        z-index: 10;
    }
    
    .hero .container {
        padding-top: 50px;
        flex-direction: column-reverse;
    }
    
    .hero-content {
        margin-top: 0;
        padding-top: 0;
    }
    
    .hero-image {
        display: none;
    }

	.address {
	    max-width: 90%;
	    margin: auto;
	}

    .illustration {
        margin: 0px auto;
        height: 20vh !important;
	}

	.carousel-button.prev {
	    left: 0px;
	}
	.carousel-button.next {
        left: 10px;
		margin-top: 60px;
    }
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

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

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--gray-dark);
    font-weight: 500;
}

.features {
    margin: 2rem 0;
}

.feature-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.4rem;
    color: var(--gray-dark);
	text-align: justify;
}

.feature-item::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.cta {
    margin-top: 2rem;
}

/* Company Section */
.company {
    background-color: var(--gray-light);
    position: relative;
}

.company-content {
    display: flex;
    gap: 50px;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.company-text {
    flex: 1;
	text-align: justify;
}

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

.values-container {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.value-box {
    flex: 1;
    background-color: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 3px solid var(--primary);
    max-width: 360px;
    margin: 0 auto;
}

.value-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-box h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Resources Section */
.resources {
    background-color: #C8E5F3;
    position: relative;
}

.resources-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.resource-tab {
    background-color: var(--white);
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.resource-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.resource-tab.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary-dark);
}

.resource-tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-tab-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.resource-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    min-height: 300px;
    border-top: 3px solid var(--primary);
}

.resource-content-item {
    display: none;
}

.resource-content-item.active {
    display: block;
}

.resource-content-item h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray);
    display: flex;
    align-items: center;
    gap: 15px;
}

.resource-content-icon {
    width: 40px;
    height: 40px;
}

.resource-content-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.integration-section {
    margin-top: 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.logos-grid {
    display: flex;
    gap: 20px;
    max-width: 840px;
    justify-content: center;
    margin: 2rem auto;
    flex-wrap: wrap;
    align-content: flex-start;
}

.logo-item {
    background-color: var(--white);
    height: 5rem;
    width: 11rem;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    padding: 8px;
    transition: var(--transition);
}

.logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.logo-item img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

.resources-illustration, .creditors-illustration {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Creditors Section */
.creditors {
    background-color: var(--white);
    position: relative;
}

/* Contact Section */
.contact {
    background-color: #E5F6FE;
    position: relative;
}

.contact-container {
    display: flex;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-dark);
	margin: auto 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(3, 169, 244, 0.2);
}

.address {
    margin-bottom: 2rem;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.address h3 {
    margin-bottom: 10px;
}

.contact-illustration {
    margin-top: 2rem;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.footer-logo img {
    height: 30px;
    width: auto;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--gray);
    transition: var(--transition);
}

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--gray);
}

/* Ilustrações */
.illustration {
    width: 100%;
    height: 250px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

#company-illustration {
    background-image: url('../images/nossaHistoria.jpg');
}

#contact-illustration {
    background-image: url('../images/contato.jpg');
}

/* Responsividade */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .container,
    .company-content,
    .contact-container {
        flex-direction: column;
    }
    
    .hero-image,
    .company-image {
        order: -1;
    }
    
    .values-container {
        flex-direction: column;
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }
    
    .menu-mobile {
        display: block;
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
    }
    
    .menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--white);
        transition: var(--transition);
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .menu-mobile ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 250px;
        background-color: var(--primary-dark);
        flex-direction: column;
        padding: 10px 0;
        z-index: 1000;
        list-style: none;
        border-radius: 0 0 4px 4px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .menu-mobile.active ul {
        display: flex;
    }
    
    .menu-mobile ul li {
        margin: 0;
        width: 100%;
    }
    
    .menu-mobile ul li a {
        color: var(--white);
        font-size: 1rem;
        text-decoration: none;
        padding: 12px 20px;
        display: block;
        transition: background-color 0.3s;
    }
    
    .menu-mobile ul li a:hover {
        background-color: rgba(255,255,255,0.1);
    }
    
    .menu-mobile ul li:last-child {
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 5px;
        padding-top: 5px;
    }
    
    .section {
        padding-top: 80px; /* Ajuste para mobile */
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .footer-links ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 30px 0;
        padding-top: 80px; /* 30px de espaçamento + 50px do header */
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-item {
        background-color: var(--white);
        height: 5rem;
        width: 9rem;
    }

    .value-icon {
       display: flex;
       justify-content: center;
       margin-bottom: 5px;
    }

    .value-icon img {
       width: 80px;
       height: 80px;
       object-fit: contain;
    }
}


#inicio .container {
    display: flex;
    align-items: stretch; /* Faz os filhos esticarem verticalmente */
    gap: 40px;
}

.hero-content {
    flex: 0 0 65%; /* Ocupa 65% da largura */
    max-width: 65%;
}

.template-container {
    flex: 0 0 35%; /* Ocupa 35% da largura */
    max-width: 35%;
    position: relative;
    overflow: hidden;
    align-self: stretch; /* Garante que o container estique */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    margin: 2px auto;
}

.template-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
}

.template-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.template-slide img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Garante que a imagem inteira seja visível */
}

/* Botões de Navegação para Template Carousel */
.template-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background-color: rgb(0 117 255 / 36%);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.template-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.template-button.prev {
    left: 15px;
}

.template-button.next {
    right: 15px;
}

/* Navegação por Dots para Template Carousel */
.template-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.template-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.template-dot.active {
    background-color: var(--primary);
    border-color: var(--primary-dark);
}

/* --- Ajustes de Responsividade para Seção Início --- */
@media (max-width: 992px) {
    #inicio .container {
        /* Mantém flex em telas médias, mas ajusta gap */
        gap: 20px;
    }
    .hero-content {
        flex-basis: 60%;
        max-width: 60%;
    }
    .template-container {
        flex-basis: 40%;
        max-width: 40%;
    }
}

@media (max-width: 768px) {
    #splash {
        background-size: 40vh;    
	}

    .feature-item::before {
        color: var(--primary);
	}

    .hero-content {
        flex-basis: 100%;
        max-width: 100%;
        order: 2; /* Texto vem depois do carrossel no mobile */
        text-align: center;
    }

    .template-container {
        flex-basis: auto; /* Altura automática */
        order: 1; /* Carrossel vem antes do texto */
        width: 90%;
        max-width: 400px;
        height: 500px; 
        margin-bottom: 20px;
    }
    
    #inicio .container {
        flex-direction: column; /* Empilha os elementos */
        align-items: center; /* Centraliza */
        gap: 30px;
        padding-top: 50px; /* Mantém o padding do H1 */
    }

    /* Ajuste de ordem para mobile */
    #inicio .hero-content h1 {
        order: 1; /* Título primeiro */
        width: 100%;
		font-weight: 600;
        text-align: center;
        margin-bottom: 20px;
        position: static; /* Remove posicionamento absoluto do H1 no mobile */
        background: none;
        padding: 0;
    }

    #inicio .template-container {
        order: 2; /* Carrossel em segundo */
        flex-basis: auto; /* Altura automática */
        width: 90%;
        max-width: 400px;
        height: 560px;
        margin-bottom: 20px;
    }

    #inicio .hero-content .hero-main-content {
        order: 3; /* Conteúdo principal (texto) em terceiro */
        width: 100%;
        text-align: center;
    }
    
    #inicio .hero-content {
        flex-basis: 100%;
        max-width: 100%;
        order: initial; /* Reset order do container do conteúdo */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Esconde a ilustração original no mobile se o carrossel estiver ativo */
    .hero-image {
        display: none; 
    }

	.cta {
        font-size: 0.8rem;
	}
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    animation: none;
}

@keyframes pulse {
	0% {transform: scale(1);box-shadow: 0 0 0 0 rgba(0, 255, 51, 0.7);}
	70% {transform: scale(1);box-shadow: 0 0 0 10px rgba(0, 255, 51, 0);}
	100% {transform: scale(1);box-shadow: 0 0 0 0 rgba(0, 255, 51, 0);}
}


/* Ajuste para dispositivos móveis */
@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 15px;
        right: 15px;
    }
}