:root {
    --primary: #00A859;
    --secondary: #00C853;
    --accent: #00E676;
    --dark: #1C1C1C;
    --darker: #0A0A0A;
    --light: #FFFFFF;
    --gray: #E8F5E9;
    --text-dark: #222222;
    --text-light: #FFFFFF;
    --text-gray: #666666;
    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
    --neon-glow: 0 0 20px rgba(0, 168, 89, 0.3);
    --shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 8px 25px rgba(0, 168, 89, 0.2);
    --hover-bg: rgba(0, 168, 89, 0.1);
    --border-color: rgba(0, 168, 89, 0.1);
    --input-bg: rgba(0, 0, 0, 0.5);

    /* PARCEIRO WING */
    --logo-min-width: 10mm;
    --logo-protection-area: 20%;
    --partner-logo-scale: 0.6;
    --logo-spacing: 1rem;
    --max-logo-height: 86px;
    --partner-offset: 271px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #082D1C;
}

/* =================================
   HEADER - MANTIDO ORIGINAL
   ================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.partner-logos {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: calc(var(--partner-offset) / 2);
}

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

.logo img {
    height: var(--max-logo-height);
    width: auto;
}

.partner-logo {
    height: calc(var(--max-logo-height) * var(--partner-logo-scale));
    width: auto;
    min-width: var(--logo-min-width);
    position: absolute;
    left: var(--partner-offset);
    top: 50%;
    transform: translateY(-50%);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: black;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-link:hover {
    color: var(--accent);
    background: var(--hover-bg);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: black;
}

/* =================================
   HERO SECTION - MELHORADA
   ================================= */
.solucoes-hero {
    padding-top: 100px;
    background: var(--gradient);
    position: relative;
    text-align: center;
    padding-bottom: 3rem;
    color: var(--light);
}

.solucoes-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    opacity: 0.7;
}

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

.solucoes-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.solucoes-hero p {
    font-size: 1.1rem;
    color: var(--accent);
    white-space: pre-line;
    word-wrap: break-word;
    line-height: 1.7;
}

/* =================================
   GRID DE SOLUÇÕES - NOVO DESIGN
   ================================= */
.solucoes-grid {
    padding: 3rem 1.5rem;
    background: #082D1C;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
    justify-content: center;
    gap: 2rem;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--light);
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading i {
    font-size: 2.2rem;
    color: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =================================
   CARDS - DESIGN MODERNO
   ================================= */
.solucao-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.solucao-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.solucao-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.solucao-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* IMAGEM - NOVO ESTILO */
.solucao-imagem {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.solucao-imagem::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,168,89,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.solucao-card:hover .solucao-imagem::after {
    opacity: 1;
}

.solucao-imagem img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.solucao-card:hover .solucao-imagem img {
    transform: scale(1.08);
}

/* TEXTO - LIMPO E ORGANIZADO */
.solucao-texto {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.solucao-texto h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* CATEGORIA BADGE */
.service-category {
    margin-bottom: 1.5rem;
}

.service-category span {
    background: rgba(0, 168, 89, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* DESCRIÇÃO SIMPLIFICADA */
.servico-descricao {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.descricao-completa {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.descricao-completa::-webkit-scrollbar {
    width: 3px;
}

.descricao-completa::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* FEATURES MINIMALISTA */
.solucao-features {
    list-style: none;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.solucao-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.solucao-features i {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* DIVISOR SUTIL */
.servico-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 1.5rem 0;
}

/* BOTÕES MODERNOS */
.service-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-leia-mais {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-leia-mais:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-leia-mais.expanded {
    background: var(--primary);
    color: white;
}

.button-primary {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 89, 0.3);
}

/* =================================
   FOOTER - MANTIDO ORIGINAL
   ================================= */
.footer {
    background: white;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: var(--max-logo-height, 160px);
    width: auto;
    min-width: var(--logo-min-width, 20mm);
    margin-bottom: 1rem;
}

.footer-tecpoint-logo {
    margin-bottom: 1rem;
}

.footer-tecpoint-logo img {
    height: var(--max-logo-height, 160px);
    width: auto;
    min-width: var(--logo-min-width, 20mm);
}

.footer-wings-logo {
    margin-bottom: 1rem;
    margin-left: 0;
}

.footer-wings-logo img {
    height: calc(var(--max-logo-height)*var(--partner-logo-scale));
    width: auto;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: black;
    margin-bottom: 1rem;
    white-space: pre-line;
    word-wrap: break-word;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: black;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: black;
    font-size: 1.5rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: black;
    font-size: 0.9rem;
}

/* =================================
   MAPA GPS - MANTIDO
   ================================= */
.mapa-section {
    width: 100%;
    background: var(--light);
    padding: 3rem 0;
}

.mapa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mapa-frame {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =================================
   MODAL - REDESENHADO
   ================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.modal-dialog {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 90%;
    max-width: 500px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    position: relative;
}

.modal-header h5 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary);
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.1);
    outline: none;
    background: white;
}

.form-control:hover {
    border-color: #c0c0c0;
}

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

/* Estilos para inputs com ícones */
.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.1rem;
    pointer-events: none;
}

.input-group .form-control {
    padding-left: 3rem;
}

/* Botão de enviar melhorado */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 89, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary i {
    font-size: 1.1rem;
}

/* Mensagem de sucesso/erro */
.form-message {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: none;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

.form-message.success {
    background: rgba(0, 168, 89, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 168, 89, 0.3);
}

.form-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkbox customizado */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 0.8rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-check-label {
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* =================================
   ESTADOS DE ERRO E VAZIO
   ================================= */
.no-services, .error-services {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--light);
}

.no-services h3, .error-services h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.no-services p, .error-services p {
    font-size: 1rem;
    opacity: 0.8;
}

/* =================================
   RESPONSIVIDADE
   ================================= */
@media(max-width: 768px) {
    .mobile-toggle {
        display: block;
        color: black;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .partner-logos {
        max-width: 70%;
    }

    .logo img {
        height: 60px;
    }

    .partner-logo {
        height: calc(60px * var(--partner-logo-scale));
        left: auto;
        position: relative;
        transform: none;
        margin-left: 0.5rem;
    }

    .solucoes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 1rem;
    }

    .solucao-imagem {
        height: 160px;
    }

    .footer-tecpoint-logo img {
        height: 70px !important;
        width: auto;
        max-width: 180px;
    }

    .footer-wings-logo img {
        height: 56px !important;
        width: auto;
        max-width: 110px;
        min-width: unset;
    }

    .mapa-frame {
        height: 350px;
    }
}

@media(max-width: 480px) {
    .partner-logos {
        padding-right: 0;
        max-width: 80%;
        gap: 0.5rem;
    }

    .partner-logo {
        position: static;
        transform: none;
        margin-left: var(--logo-spacing);
        height: calc(70px * var(--partner-logo-scale));
        min-width: auto;
    }

    .solucao-texto {
        padding: 1.5rem;
    }

    .solucao-texto h3 {
        font-size: 1.2rem;
    }

    .solucao-imagem {
        height: 140px;
    }

    .service-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-tecpoint-logo img {
        height: 55px;
        margin: 0 auto;
    }

    .footer-wings-logo img {
        height: 33px;
        margin: 1rem auto;
    }

    .mapa-frame {
        height: 300px;
    }

    .modal-dialog {
        width: 95%;
    }

    .modal-body {
        padding: 1.2rem;
    }
}