/* ===========================
   CSS Variables - Color Palette
   =========================== */
:root {
    --azul-escuro: #132C4B;
    --verde-escuro: #126D64;
    --verde: #167362;
    --verde-claro: #7BA63C;
    --verde-pastel: #C1D98F;
    --branco: #FFFFFF;
    --off-white: #F2F2F2;
    --texto-escuro: #2C3E50;
    --texto-claro: #FFFFFF;
    --sombra: rgba(0, 0, 0, 0.1);
    --sombra-hover: rgba(0, 0, 0, 0.2);
}

/* ===========================
   Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--texto-escuro);
    background-color: var(--branco);
}

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

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

ul {
    list-style: none;
}

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

/* ===========================
   Header / Navbar
   =========================== */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: transparent;
}

#header.scrolled {
    background-color: var(--azul-escuro);
    box-shadow: 0 2px 10px var(--sombra);
}

.navbar {
    padding: 1rem 0;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--texto-claro);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--verde-pastel);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--verde-pastel);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--texto-claro);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--azul-escuro) 0%, #1a3a5e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--texto-claro);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    z-index: 0;
    width: 80%;
    max-width: 550px;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: clamp(0.8rem, 3.8vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 920px) {
    .hero-title {
        white-space: normal;
        font-size: clamp(0.8rem, 6vw, 1.5rem);
    }
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--verde-pastel);
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--verde-claro);
    color: var(--texto-claro);
    border-color: var(--verde-claro);
}

.btn-primary:hover {
    background-color: var(--verde);
    border-color: var(--verde);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 166, 60, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--texto-claro);
    border-color: var(--texto-claro);
}

.btn-outline:hover {
    background-color: var(--texto-claro);
    color: var(--azul-escuro);
}

/* ===========================
   Sections
   =========================== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--azul-escuro);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--texto-escuro);
    opacity: 0.8;
}

/* ===========================
   Sobre Nós
   =========================== */
.sobre {
    background-color: var(--off-white);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

.sobre-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.diferencial-card {
    background: var(--branco);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--sombra);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.diferencial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--sombra-hover);
}

.diferencial-icon {
    font-size: 2.5rem;
    color: var(--verde-claro);
    margin-bottom: 1rem;
}

.diferencial-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--azul-escuro);
}

.diferencial-card p {
    font-size: 0.95rem;
    color: var(--texto-escuro);
    opacity: 0.8;
}

/* ===========================
   Serviços
   =========================== */
.servicos {
    background: linear-gradient(135deg, var(--verde-escuro) 0%, var(--verde) 100%);
    color: var(--texto-claro);
}

.servicos .section-title,
.servicos .section-subtitle {
    color: var(--texto-claro);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.servico-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--texto-escuro);
}

.servico-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: var(--branco);
}

.servico-icon {
    font-size: 2.5rem;
    color: var(--verde-claro);
    margin-bottom: 1rem;
}

.servico-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--azul-escuro);
}

.servico-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--texto-escuro);
    opacity: 0.8;
}

/* ===========================
   Como Funciona
   =========================== */
.como-funciona {
    background-color: var(--branco);
}

.passos-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.passo {
    flex: 1;
    text-align: center;
    position: relative;
}

.passo-numero {
    width: 60px;
    height: 60px;
    background: var(--verde-claro);
    color: var(--texto-claro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(123, 166, 60, 0.3);
}

.passo-icon {
    font-size: 2rem;
    color: var(--azul-escuro);
    margin-bottom: 1rem;
}

.passo h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--azul-escuro);
}

.passo p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--texto-escuro);
    opacity: 0.8;
}

.passo-linha {
    flex: 0.5;
    height: 3px;
    background: linear-gradient(to right, var(--verde-claro), var(--verde-pastel));
    margin: 0 -1rem;
    align-self: flex-start;
    margin-top: 30px;
}

.como-funciona-cta {
    text-align: center;
    margin-top: 3rem;
}

.como-funciona-cta p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--texto-escuro);
}

/* ===========================
   Clientes
   =========================== */
.clientes {
    background-color: var(--off-white);
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.cliente-card {
    background: var(--branco);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--sombra);
    text-align: center;
    transition: all 0.3s ease;
}

.cliente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--sombra-hover);
}

.cliente-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--azul-escuro);
}

.cliente-segmento {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--verde-pastel);
    color: var(--azul-escuro);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===========================
   Tecnologias
   =========================== */
.tecnologias {
    background: linear-gradient(135deg, var(--azul-escuro) 0%, #1a3a5e 100%);
    color: var(--texto-claro);
}

.tecnologias .section-title {
    color: var(--texto-claro);
}

.tecnologias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--verde-pastel);
}

.tech-badge i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--verde-pastel);
}

.tech-badge span {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ===========================
   Equipe
   =========================== */
.equipe {
    background-color: var(--branco);
}

.equipe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.equipe-card {
    background: var(--off-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--sombra);
    text-align: center;
    transition: all 0.3s ease;
}

.equipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--sombra-hover);
}

.equipe-foto {
    margin-bottom: 1.5rem;
}

.foto-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--verde-claro), var(--verde));
    color: var(--texto-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto;
    box-shadow: 0 4px 15px var(--sombra);
}

.equipe-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--azul-escuro);
}

.equipe-cargo {
    font-size: 1.1rem;
    color: var(--verde-claro);
    font-weight: 600;
    margin-bottom: 1rem;
}

.equipe-bio {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--texto-escuro);
    opacity: 0.8;
}

.equipe-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--azul-escuro);
    font-weight: 600;
    transition: color 0.3s ease;
}

.equipe-linkedin:hover {
    color: var(--verde-claro);
}

.foto-perfil {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 15px var(--sombra);
}

/* ===========================
   Contato
   =========================== */
.contato {
    background-color: var(--off-white);
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contato-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    background: var(--branco);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--sombra);
}

.contato-item i {
    font-size: 2rem;
    color: var(--verde-claro);
}

.contato-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--azul-escuro);
}

.contato-item a {
    color: var(--verde);
    font-weight: 500;
    transition: color 0.3s ease;
}

.contato-item a:hover {
    color: var(--verde-claro);
}

.btn-whatsapp-large {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
}

.contato-form {
    background: var(--branco);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--sombra);
}

.contato-form input,
.contato-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--off-white);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contato-form input:focus,
.contato-form textarea:focus {
    outline: none;
    border-color: var(--verde-claro);
}

.contato-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contato-form button {
    width: 100%;
    justify-content: center;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: linear-gradient(135deg, var(--azul-escuro) 0%, #1a3a5e 100%);
    color: var(--texto-claro);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--verde-pastel);
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contact a {
    color: var(--texto-claro);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    opacity: 1;
    color: var(--verde-pastel);
    padding-left: 5px;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: var(--verde-pastel);
}

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

.footer-bottom p {
    opacity: 0.8;
}

/* ===========================
   WhatsApp Floating Button
   =========================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: var(--texto-claro);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* ===========================
   Animations
   =========================== */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }
.fade-in:nth-child(4) { animation-delay: 0.8s; }

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablet */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .servicos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .clientes-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contato-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .passos-container {
        flex-wrap: wrap;
    }

    .passo {
        flex: 1 1 45%;
    }

    .passo-linha {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--azul-escuro);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    section {
        padding: 60px 0;
    }

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

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

    .passos-container {
        flex-direction: column;
    }

    .passo {
        flex: 1 1 100%;
        margin-bottom: 2rem;
    }

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

    .tecnologias-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .logo img {
        height: 40px;
    }

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