/*
  Folha de estilos principal para o site Qualitivity 2.0 - VERSÃO LIMPA
*/

/* --- Variáveis de cor --- */
:root {
    --bg-deep-blue: #0f172a;      /* Navy profundo para cabeçalhos e rodapés */
    --color-primary: #00b3e6;   /* Azul claro do logotipo */
    --color-secondary: #e0007a; /* Rosa intenso do logotipo */
    --color-accent: #00b3e6;    /* Cor de acentuação para botões */
    --color-light: #f9fafb;     /* Fundo claro neutro */
    --color-text: #021b2f;      /* Texto principal em seções claras */
    --color-muted: #475569;     /* Texto secundário */
    --max-width: 1200px;
}

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

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

img { max-width: 100%; display: block; }

/* --- Layout --- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section { padding: 4rem 0; }
.section.light { background: var(--color-light); }

.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    text-align: center;
}

.section-intro {
    max-width: 700px;
    margin: 0.5rem auto 2rem;
    text-align: center;
    color: var(--color-muted);
}

/* --- Navegação --- */
.site-header {
    background: var(--bg-deep-blue);
    color: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
}

.logo img { height: 32px; width: auto; }
.logo span { font-size: 1.5rem; font-weight: bold; line-height: 1; }

.main-nav ul { list-style: none; display: flex; gap: 1.5rem; }
.main-nav a { color: #ffffff; text-decoration: none; font-weight: 500; transition: color 0.2s; }
.main-nav a:hover, .main-nav .cta-link { color: var(--color-accent); }

/* --- Botões --- */
.btn-primary {
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-primary:hover { background: var(--color-secondary); }

/* --- Hero --- */
.hero {
    background: radial-gradient(circle at top left, #161922 0, #0b0d11 52%, #050609 100%);
    color: #ffffff;
    padding: 5rem 0 6rem;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text { flex: 1 1 500px; }
.hero-text h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1rem; }
.hero-text p { font-size: 1.125rem; margin-bottom: 1.5rem; max-width: 600px; }
.hero-subtext { font-size: 0.875rem; color: #e0e0e0; margin-top: 0.5rem; }

.hero-image { flex: 1 1 400px; text-align: center; }
.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* --- Seção Problema (Glassmorphism) --- */
.problem-section {
    background: radial-gradient(circle at top left, #161922 0, #0b0d11 52%, #050609 100%);
    color: #ffffff;
    padding: 8rem 0 6rem;
    position: relative;
    z-index: 2;
    margin-top: -2px;
}

.problem-title {
    font-size: 2.75rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-align: center;
}

.problem-subtitle {
    font-size: 1.25rem;
    text-align: center;
    max-width: 780px;
    margin: 0 auto 6rem auto; 
    color: #94a3b8;
    line-height: 1.6;
    font-weight: 300;
}

.problem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
    max-width: 1080px;
    margin: 0 auto 3rem auto;
}

.problem-card {
    position: relative;
    padding: 1.6rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.problem-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(0, 194, 255, 0.22), rgba(255, 42, 161, 0.16));
    opacity: 0.14;
    pointer-events: none;
}

.problem-card > * { position: relative; z-index: 1; }

.problem-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.problem-card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-primary); 
    fill: none;
    filter: drop-shadow(0 0 8px rgba(0, 194, 255, 0.4));
    transition: all 0.3s ease;
}

.problem-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; color: #f5f7fb; }
.problem-card p { font-size: 0.95rem; line-height: 1.5; color: #cdd3e3; }

.problem-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}
.problem-card:hover .problem-card-icon svg {
    stroke: var(--color-secondary);
    filter: drop-shadow(0 0 12px rgba(194, 0, 255, 0.6));
    transform: scale(1.1);
}

.problem-effect {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 14px;
    padding: 1.2rem 1.8rem;
    background: radial-gradient(circle at top left, rgba(0, 194, 255, 0.1), rgba(194, 0, 255, 0.1), rgba(8, 10, 16, 0.95));
    border: 1px solid rgba(194, 0, 255, 0.3);
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;
    color: #f5f7fb;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.problem-effect span { font-weight: 700; }

/* --- Seção Resultados Reais --- */
.results-section {
    background: #f5f7fb;
    color: #101216;
    padding: 5rem 0;
    display: flex;
    align-items: center;
}
.results-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary); 
}
.results-intro {
    font-size: 1.05rem;
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3rem auto;
    color: #4a5162;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
    max-width: 1080px;
    margin: 0 auto;
    align-items: stretch;
}
.result-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2.2rem;
    border: 1px solid rgba(9, 11, 19, 0.06);
    box-shadow: 0 14px 32px rgba(15, 17, 22, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    height: 100%; 
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(15, 17, 22, 0.14);
}
.result-header { margin-bottom: 0.9rem; }
.result-metric {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ff2aa1;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.result-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
    display: block;
}
.result-list { list-style: none; padding: 0; margin: 0; }
.result-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: #50576a;
    line-height: 1.4;
}
.result-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* --- Seção Soluções (Roadmap Style) --- */
.services.section {
    background: linear-gradient(to bottom, #f5f7fb 0%, #ffffff 100%);
    padding: 6rem 0;
    overflow: hidden;
}
.solutions-strip {
    position: relative;
    max-width: 1120px;
    margin: 4rem auto 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
    counter-reset: step-counter;
}
.solutions-strip::before {
    content: "";
    position: absolute;
    top: 0; left: 15px; right: 15px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    opacity: 0.2;
    z-index: 0;
}
.solution-step {
    position: relative;
    padding-top: 3.5rem;
    counter-increment: step-counter;
    display: flex;
    flex-direction: column; 
    height: 100%;
}
.solution-step::before {
    content: "0" counter(step-counter);
    position: absolute;
    top: -18px; left: 50%;
    transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: #ffffff;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    font-size: 0.9rem; font-weight: 700;
    color: var(--color-primary);
    box-shadow: 0 0 0 8px #f5f7fb;
    z-index: 1;
    transition: all 0.3s ease;
}
.solution-step:hover::before {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.4);
    transform: scale(1.1);
}
.solution-step h3 {
    font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem;
    color: #0f172a; letter-spacing: -0.02em;
    min-height: 3.6em; 
}
.solution-highlight {
    font-size: 1rem; font-weight: 600; margin-bottom: 0.8rem;
    color: var(--color-secondary); line-height: 1.4;
}
.solution-text {
    font-size: 0.95rem; line-height: 1.6; color: #475569; margin-bottom: 1.5rem;
}
.solution-meta {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: #94a3b8;
    padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: auto; 
    display: inline-block; width: 100%;
}

/* --- Metodologia --- */
.methodology-section { background: #ffffff; padding: 6rem 0; }
.methodology-header { text-align: center; max-width: 800px; margin: 0 auto 4rem auto; }
.methodology-header h2 { color: #0f172a; font-size: 2.2rem; margin-bottom: 1rem; }
.methodology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 3rem;
    max-width: 1000px; margin: 0 auto;
}
.method-item { display: flex; flex-direction: column; align-items: flex-start; }
.method-number {
    font-size: 3rem; font-weight: 800; color: rgba(0, 194, 255, 0.15);
    line-height: 1; margin-bottom: -1rem; z-index: 0;
}
.method-item h3 {
    font-size: 1.5rem; font-weight: 700; color: #0f172a;
    margin-bottom: 1rem; position: relative; z-index: 1; padding-left: 0.5rem;
}
.method-item p {
    color: #475569; line-height: 1.6; font-size: 1rem;
    padding-left: 0.5rem; border-left: 2px solid var(--color-primary);
}

/* --- Modelo Integrado (Dark Mode) --- */
.integrated-model {
    background-color: var(--bg-deep-blue);
    padding: 6rem 0;
    color: #ffffff;
}
.model-header { text-align: center; max-width: 700px; margin: 0 auto 4rem auto; }
.model-header h2 { font-size: 2.2rem; color: #ffffff; margin-bottom: 1rem; }
.model-header p { color: #94a3b8; font-size: 1.1rem; line-height: 1.6; }
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; max-width: 1120px; margin: 0 auto;
}
.model-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px; padding: 2.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative; overflow: hidden;
}
.model-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 4px; transition: height 0.3s ease;
}
.card-consulting::before { background: var(--color-primary); }
.card-tech::before { background: var(--color-secondary); }
.card-automation::before { background: #7c3aed; }

.model-icon {
    width: 56px; height: 56px; margin-bottom: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.05); border-radius: 12px;
}
.model-icon svg { width: 32px; height: 32px; color: #ffffff; }

.card-consulting:hover .model-icon svg { color: var(--color-primary); }
.card-tech:hover .model-icon svg { color: var(--color-secondary); }
.card-automation:hover .model-icon svg { color: #7c3aed; }

.model-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: #f8fafc; }
.model-card p { color: #cbd5e1; line-height: 1.6; font-size: 0.95rem; }
.model-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.06); }
.model-card:hover::before { height: 6px; }

/* --- Autoridade (Logos e Stats) --- */
.authority-section { background: #ffffff; padding: 5rem 0; text-align: center; }
.clients-label {
    font-size: 0.9rem; color: #94a3b8; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 2rem; font-weight: 600;
}
.logos-grid {
    display: flex; justify-content: center; align-items: center;
    flex-wrap: wrap; gap: 3rem; opacity: 0.7;
}
.client-logo {
    height: 60px; width: auto;
    filter: grayscale(100%); transition: all 0.3s ease; opacity: 0.8;
}
.client-logo:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

.divider-line {
    height: 1px; background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    margin: 4rem auto; max-width: 80%;
}
.stats-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem; align-items: start;
}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-number {
    font-size: 3.5rem; font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}
.stat-suffix {
    font-size: 1.5rem; font-weight: 700; color: var(--color-secondary);
    margin-top: -10px; margin-bottom: 10px;
}
.stat-label {
    font-size: 1rem; color: #475569; font-weight: 500;
    max-width: 200px; line-height: 1.4;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #ffffff;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(194, 0, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.cta-section h2 { color: #ffffff; font-size: 2.5rem; margin-bottom: 1.5rem; }
.cta-section p {
    color: #cbd5e1; font-size: 1.1rem; max-width: 700px; margin: 0 auto 3rem auto;
}

/* --- Formulários --- */
form { display: block; width: 100%; max-width: 700px; margin: 0 auto; }
.form-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.form-group { flex: 1 1 48%; display: flex; flex-direction: column; margin-bottom: 1rem; }
.form-group.full { flex-basis: 100%; }
label { margin-bottom: 0.25rem; font-weight: 600; color: var(--color-primary); }
input, textarea {
    padding: 0.75rem; border: 1px solid #ccd4e0; border-radius: 4px; font-size: 0.95rem; resize: vertical;
}
input:focus, textarea:focus {
    outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 2px rgba(29, 78, 137, 0.2);
}

/* --- Footer --- */
.site-footer { background: var(--bg-deep-blue); color: #ffffff; padding: 2rem 0; }
.footer-container {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
}
.footer-info p { font-size: 0.8rem; }
.footer-links a {
    color: #ffffff; margin-right: 1rem; font-size: 0.9rem; text-decoration: none;
}
.footer-links a:hover { color: var(--color-accent); }


/* --- MODAL (CORRIGIDO) --- */
.modal {
    display: none; /* AGORA SIM: Oculto por padrão */
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

/* Mostra o modal somente com esta classe */
.modal.show { display: flex; }

.modal-content {
    width: 100%; max-width: 900px;
    height: 90vh; max-height: 90vh;
    background-color: #fefefe;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    display: flex; flex-direction: column;
    box-sizing: border-box;
    margin: 0;
}

.modal-content h2 {
    text-align: center; color: #0f172a; margin-bottom: 1.5rem; font-size: 1.8rem;
}

.modal-iframe-wrapper {
    flex: 1 1 auto; /* Garante que ocupe o espaço restante */
    min-height: 0;  /* Correção para flexbox scrollar corretamente */
    width: 100%;
    overflow: auto;
}

.modal-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    border-radius: 4px;
}

/* --- Floating Widgets --- */
.floating-widgets {
    position: fixed; bottom: 2rem; right: 2rem;
    display: flex; flex-direction: column-reverse;
    gap: 1rem; z-index: 1000; align-items: center;
}
.widget-item {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; text-decoration: none;
}
.widget-item svg { width: 28px; height: 28px; fill: currentColor; }
.widget-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.15);
}
.whatsapp-btn { background: #25D366; }
.whatsapp-btn::after {
    content: ''; position: absolute; width: 100%; height: 100%;
    border-radius: 50%; border: 2px solid #25D366;
    animation: pulse-border 2s infinite; opacity: 0; z-index: -1;
}
.linkedin-btn { background: #0077B5; width: 48px; height: 48px; }
.linkedin-btn svg { width: 24px; height: 24px; }
.email-btn { background: #0f172a; width: 48px; height: 48px; }
.email-btn svg { width: 22px; height: 22px; stroke: #fff; fill: none; }
@keyframes pulse-border {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* --- Responsividade Geral --- */
@media (max-width: 768px) {
    .hero-content, .nav-container { flex-direction: column; text-align: center; }
    .nav-container { gap: 1rem; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; }
    .solutions-strip { grid-template-columns: 1fr; border-left: 2px solid rgba(0, 194, 255, 0.2); padding-left: 2rem; margin-left: 1.5rem; }
    .solutions-strip::before { display: none; }
    .solution-step::before { left: -49px; top: 0; }
    .modal { padding: 0; }
    .modal-content { max-width: 100%; height: 100vh; border-radius: 0; }
    .floating-widgets { bottom: 1.5rem; right: 1.5rem; }
}