/* Variáveis de Cores */
:root {
    --primary-color: #2E8B57; /* Verde Escuro */
    --primary-dark: #1a5632; /* Verde Escuro mais escuro para hover */
    --secondary-color: #1E90FF; /* Azul para tecnologia */
    --secondary-dark: #0066cc; /* Azul mais escuro para hover */
    --accent-color: #FFA500; /* Laranja para destaque/CTAs */
    --accent-dark: #FF8C00; /* Laranja mais escuro para hover */
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #333;
    --light-text: #FFF;
    --dark-text: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Ajuste para o header fixo */
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: var(--light-gray);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-header h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

/* Botões */
.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: var(--light-text);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Header */
header {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(46, 139, 87, 0.95);
    padding: 0.7rem 0;
}

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

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--light-text);
    font-weight: 700;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--light-text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    height: 100vh;
    background: url('../images/hero_background.jpg') no-repeat center center/cover;
    color: var(--light-text);
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

#hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

#hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Serviços */
#servicos {
    padding: 6rem 0;
    background: var(--light-text);
}

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

.service-item {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.service-item.animate {
    opacity: 1;
    transform: translateY(0);
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.2);
    color: var(--accent-color);
}

.service-item h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-item p {
    color: var(--dark-gray);
}

/* Adicionar delay para cada item aparecer sequencialmente */
.service-item:nth-child(1) { transition-delay: 0.1s; }
.service-item:nth-child(2) { transition-delay: 0.2s; }
.service-item:nth-child(3) { transition-delay: 0.3s; }
.service-item:nth-child(4) { transition-delay: 0.4s; }
.service-item:nth-child(5) { transition-delay: 0.5s; }
.service-item:nth-child(6) { transition-delay: 0.6s; }

/* Sobre Nós */
#sobre {
    padding: 6rem 0;
    background: var(--light-gray);
}

.sobre-content {
    display: flex;
    justify-content: center;
}

.sobre-text {
    max-width: 800px;
}

.sobre-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-text {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

/* Parceiros */
#parceiros {
    padding: 6rem 0;
    background: var(--light-text);
}

.partner-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-logo {
    max-width: 200px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo img {
    width: 100%;
    height: auto;
}

/* Contato */
#contato {
    padding: 6rem 0;
    background: var(--light-gray);
}

.contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contato-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.info-item:hover .info-icon {
    background: var(--accent-color);
}

.info-text h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: var(--light-text);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.footer-logo p {
    color: var(--medium-gray);
}

.footer-links h4,
.footer-social h4 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    bottom: -8px;
    left: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

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

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: var(--light-text);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease, transform 0.3s ease;
}

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

.whatsapp-float.pulse {
    animation: pulse 1s infinite;
}

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

/* Melhorias no formulário de contato */
button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsividade */
@media (max-width: 992px) {
    .contato-content {
        grid-template-columns: 1fr;
    }
    
    .contato-info {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 1rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }
    
    nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    #hero h2 {
        font-size: 2.5rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    .section-header h3 {
        font-size: 2rem;
    }
    
    #hero h2 {
        font-size: 2rem;
    }
    
    #hero p {
        font-size: 1.1rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-text {
        text-align: center;
    }
}

