/*
Theme Name: Grupo RV
Description: Tema desenvolvido para Grupo RV.
Author: Antonio Netto
Version: 1.291
Text Domain: gruporv
*/
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');
/* ── O ARCO DE CONEXÃO ── */
.connection-arc {
    position: absolute;
    left: 10px;
    top: -20px;
    width: 220px;
    height: 190px;

    border-left: 1.5px dashed var(--highlight);
    border-top: 1.5px dashed var(--highlight);
    border-right: 1.5px dashed var(--highlight);
    border-bottom: none;
    border-radius: 55% 160px 0 0 / 70% 160px 0 0;

    clip-path: polygon(0% 0%, 100% 0%,
            100% 40%,
            50% 60%,
            50% 100%,
            0% 100%);

    pointer-events: none;
    z-index: 1;
}

.node-extra {
    top: -35px;
    left: 25px;
    z-index: 3;
}

.square-node img {
    width: 38px !important;
    /* Aumentado de 24px para 38px */
    height: 38px !important;
    object-fit: contain;
    filter: brightness(1.2);
    /* Dá um leve destaque no ícone */
    margin: 0 !important;
    /* Remove margens que podem desalinhá-lo */
}

/* ── ESTILO DO NÓ QUADRADO ── */
.square-node {
    border-radius: 8px !important;
    width: 70px !important;
    height: 70px !important;
    background: var(--offwhite);
    border: 1px solid rgba(232, 160, 32, 0.3) !important;
}

:root {
    /* Suas cores do conteúdo (vão mudar dependendo da página) */
    --bg: #24404A;
    --lightbg: #465c65;
    --darkbg: #172327;
    --purple: #54297B;
    --highlight: #DB8F2F;
    --lighterhighlight: #FDB777;
    --secondaryhighlight: #43519A;
    --white: #FFFFFF;
    --black: #000000;
    --offwhite: #FAF9F6;
    --transparentgray: #e9e9e910;
    --dimgray: #696969;
    --lightgray: #D3D3D3;
    --nav-bg: #24404A;
    --nav-destaque: #DB8F2F;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--white);
    overflow-x: hidden;
}

body.page-slug-rvtec {
    --bg: #54297B;
    --darkbg: #3e1f5c;
    --lightbg: #7d3eb8;
}

/* ── NOISE OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--white);
}

.logo span {
    color: var(--nav-destaque);
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
    margin-left: auto;
    margin-right: 40px;
}

nav a {
    color: var(--offwhite);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--highlight);
    color: var(--nav-bg) !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
    background: var(--nav-destaque);
    transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
    min-height: 50vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 60px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 70% 50%, var(--lightbg) 0%, transparent 70%),
        radial-gradient(ellipse 40% 80% at 0% 100%, var(--darkbg) 0%, transparent 90%),
        linear-gradient(135deg, var(--lightbg) 0%, var(--lightbg) 100%);
    z-index: 0;
}

/* Grid lines */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--transparentgray) 1px, transparent 1px),
        linear-gradient(90deg, var(--transparentgray) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 70% 50%, var(--black) 20%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white)
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--lightbg);
    color: var(--offwhite);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 32px;
    animation: fadeUp 0.6s ease both;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--offwhite);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    animation: fadeUp 0.6s 0.1s ease both;
}

h1 .highlight {
    color: transparent;
    -webkit-text-stroke: 2px var(--highlight);
    display: block;
}

h1 em {
    font-style: normal;
    color: var(--highlight);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--lightgray);
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: 48px;
    animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--highlight), var(--lighterhighlight));
    color: var(--bg);
    padding: 16px 36px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 32px var(--highlight);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--highlight);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero visual */
.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeUp 0.8s 0.2s ease both;
}

.hero-diagram {
    width: 420px;
    height: 420px;
    position: relative;
}

.diagram-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    animation: spin linear infinite;
}

.ring-1 {
    inset: 0;
    border-color: rgb(from var(--highlight) r g b / 0.6);
    animation-duration: 30s;
}

.ring-2 {
    inset: 40px;
    border-color: rgb(from var(--highlight) r g b / 0.4);
    animation-duration: 20s;
    animation-direction: reverse;
}

.ring-3 {
    inset: 80px;
    border-color: rgb(from var(--highlight) r g b / 0.2);
    animation-duration: 40s;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.diagram-center {
    position: absolute;
    inset: 120px;
    background: linear-gradient(135deg, rgba(232, 160, 32, 0.15), rgba(255, 107, 43, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(232, 160, 32, 0.3);
    overflow: hidden;
}

.diagram-center span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--highlight);
    text-align: center;
    line-height: 1.4;
}

.diagram-center img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

/* ── NODES PERIFÉRICOS (Ajuste de Glow para todos) ── */
.orbit-node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--offwhite);
    border: 1px solid var(--lightbg);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--dimgray);
    transition: all 0.3s ease;
    z-index: 2;
    text-decoration: none !important;
}

/* Pseudo-elemento de Glow - Aplicado a TODOS os .orbit-node */
.orbit-node::before {
    content: '';
    position: absolute;
    inset: -5px;
    /* Aumentei um pouco para o brilho ser mais visível */
    background: radial-gradient(circle, var(--offwhite) 0%, transparent 70%);
    border-radius: inherit;
    z-index: -1;
    opacity: 1;
    /* FORÇADO PARA 1: O brilho fica sempre visível em todos */
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Efeito ao passar o mouse em qualquer node */
.orbit-node:hover {
    border-color: var(--lightbg);
    color: var(--bg);
    transform: translateY(-3px);
    /* Leve elevação */
}

/* O node-1 precisa manter o translateX(-50%) para não sair do centro */
.node-1:hover {
    transform: translateX(-50%) translateY(-3px);
}

.node-2:hover {
    transform: translateY(-3px);
}

.node-3:hover {
    transform: translateY(-3px);
}

.node-4:hover {
    transform: translateY(-3px);
}

.node-5:hover {
    transform: translateY(-3px);
}

.orbit-node:hover::before {
    opacity: 1;
    transform: scale(1.1);
    /* O brilho cresce levemente no hover */
}

/* ── POSICIONAMENTO PENTAGONAL ── */
.node-1 {
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.node-2 {
    top: 110px;
    right: -35px;
}

.node-3 {
    bottom: 20px;
    right: 45px;
}

.node-4 {
    bottom: 20px;
    left: 45px;
}

.node-5 {
    top: 110px;
    left: -35px;
}

/* ── IMAGENS DOS NODES ── */
.orbit-node img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    object-fit: contain;
    margin-bottom: 4px;
}

.orbit-node:hover img {
    opacity: 1;
}

/* ── STATS ── */
.stats-bar {
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 36px 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    padding: 0 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.stat-item:first-child {
    border-left: none;
    padding-left: 0;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--highlight);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--lightgray);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── SECTIONS ── */
section {
    padding: 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--highlight);
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--highlight);
}

h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--highlight);
}

/* ── ABOUT ── */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    color: var(--dimgray);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
    color: black;
}

.about-text strong {
    color: var(--highlight);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
    color: var(--dimgray);
}

.feature-item::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(232, 160, 32, 0.15);
    border: 1px solid rgba(232, 160, 32, 0.4);
    flex-shrink: 0;
    position: relative;
}

.check {
    color: var(--highlight);
    font-weight: 700;
}

.about-roadmap {
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.about-roadmap::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 160, 32, 0.08), transparent 70%);
}

.roadmap-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--highlight);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.roadmap-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.roadmap-step {
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: 28px;
}

.roadmap-step:last-child {
    padding-bottom: 0;
}

.step-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--offwhite);
    border: 2px solid var(--highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--highlight);
    flex-shrink: 0;
    z-index: 1;
}

.step-connector {
    width: 1px;
    flex: 1;
    background: linear-gradient(to bottom, var(--highlight), rgba(232, 160, 32, 0.1));
    margin: 4px 0;
    min-height: 20px;
}

.step-content {
    padding-top: 6px;
}

.step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    margin-bottom: 4px;
}

.step-desc {
    font-size: 0.8rem;
    color: var(--lightgray);
    line-height: 1.6;
}

/* ── SOLUTIONS ── */
.solutions {
    background: rgba(255, 255, 255, 0.01);
}

.solutions-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.solutions-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tab-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--offwhite);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn.active {
    background: var(--highlight);
    color: var(--bg);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.solution-card {
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 32px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--highlight), var(--purple));
    opacity: 0;
    transition: opacity 0.3s;
}

.solution-card:hover {
    border-color: rgba(232, 160, 32, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.solution-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 44px;
    height: 44px;
    background: rgba(232, 160, 32, 0.1);
    border: 1px solid rgba(232, 160, 32, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.card-desc {
    font-size: 0.875rem;
    color: var(--lightgray);
    line-height: 1.7;
}

.card-desc ul {
    padding-left: 2rem;
}

/* Tech panel */
.tech-panel {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tech-panel.active,
.solutions-grid.active {
    display: grid;
}

.solutions-grid {
    display: none;
}

.tech-card {
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    gap: 20px;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--highlight));
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-card:hover {
    border-color: rgba(255, 107, 43, 0.3);
    transform: translateY(-4px);
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--highlight);
    min-width: 60px;
    line-height: 1;
    padding-top: 2px;
}

.tech-title {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

/* ── HOW ── */
.how-section {
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.how-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.how-intro p {
    color: var(--lightgray);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.how-intro strong {
    color: var(--white);
}

/* 1. O Grid Principal (Antiga .grid-tabela fundida com a sua .how-steps) */
.how-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    row-gap: 20px;
    align-items: stretch;
    /* REGRA DE OURO: Alturas iguais nas linhas */
}

/* 2. O Card Individual (Seu visual + Minha lógica de alinhamento) */
.how-step {
    /* Seu Design Original */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 28px;
    position: relative;
    transition: border-color 0.3s;

    /* Lógica para centralizar e preencher a altura */
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.how-step:hover {
    border-color: rgba(232, 160, 32, 0.25);
}

/* 3. Títulos e Textos */
.step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    /* Dica: Diminuí de 3rem para 1.5rem pois "VALOR GERADO" é longo */
    font-weight: 800;
    color: var(--highlight);
    line-height: 1;
    margin-bottom: 12px;
    display: block;
}

.how-step h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.how-step p {
    font-size: 0.825rem;
    color: var(--lightgray);
    line-height: 1.6;
    vertical-align: center;
    margin: 0;
}

/* Linha de Cabeçalho das Colunas */
.cabecalho-grid {
    display: flex;
    align-items: flex-end;
    /* Mantém os títulos alinhados por baixo */
}

/* ── CLIENTS ── */
.clients {
    text-align: center;
}

.clients-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--dimgray, #888);
    margin-bottom: 10px;
}

/* NOVO: Organiza as setas e a trilha de logos lado a lado */
.slider-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 100%;
    /* Limita a largura total. Ajuste como preferir */
    margin: 0 auto;
    /* Centraliza na tela */
}

/* Estilo das setinhas */
.slider-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--dimgray, #888);
    cursor: pointer;
    padding: 0 15px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.slider-btn:hover {
    color: #333;
    transform: scale(1.2);
}

.clients-logos {
    display: flex !important;
    flex-direction: row;
    gap: 60px;
    align-items: center;
    justify-content: flex-start;
    /* Mudamos de center para flex-start para o scroll funcionar */
    flex-wrap: nowrap !important;
    width: 100%;

    /* Configurações mágicas do slider */
    overflow-x: auto;
    scroll-behavior: smooth;
    /* Deixa o movimento suave */
    padding: 20px 0;
    /* Espaço para o "hover" do logo não ser cortado */

    /* Esconde a barra de rolagem no Firefox/IE */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Esconde a barra de rolagem no Chrome/Safari */
.clients-logos::-webkit-scrollbar {
    display: none;
}

.client-logo {
    flex: 0 0 200px !important;
    width: 200px !important;
    height: 200px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.client-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ── CONTACT ── */
.contact-section {
    background: linear-gradient(135deg, rgba(232, 160, 32, 0.06) 0%, rgba(255, 107, 43, 0.04) 100%);
    border-top: 1px solid rgba(232, 160, 32, 0.12);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    margin-bottom: 24px;
}

.contact-info p {
    color: var(--dimgray);
    line-height: 1.8;
    margin-bottom: 40px;
    color: black;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    background: rgba(232, 160, 32, 0.1);
    border: 1px solid rgba(232, 160, 32, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item-text {
    line-height: 1.6;
}

.contact-item-text strong {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--highlight);
    display: block;
    margin-bottom: 2px;
}

.contact-item-text span {
    font-size: 0.9rem;
    color: var(--dimgray);
}

.contact-form {
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 40px;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--offwhite);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--offwhite);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(232, 160, 32, 0.4);
    background: rgba(232, 160, 32, 0.03);
}

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

.form-group select option {
    background: var(--secondaryhighlight);
}

.form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--highlight), var(--lighterhighlight));
    color: var(--bg);
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 24px var(--highlight);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(232, 160, 32, 0.3);
}

/* ── FOOTER ── */
footer {
    background: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 80px 60px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand {
    border-right: 1px solid var(--lightgray);
    padding-right: 60px;
    height: 100%;
}

.footer-brand .logo {
    margin-bottom: 20px;
    color: var(--dimgray)
}

.footer-desc {
    color: var(--dimgray);
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 400px;
    margin-bottom: 24px;
}

.footer-address {
    font-size: 0.85rem;
    color: var(--dimgray);
    line-height: 1.6;
}

.footer-links h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--highlight);
    font-size: 1rem;
    margin-bottom: 24px;
}

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

.footer-links a {
    color: var(--dimgray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    background: #040812;
    padding: 24px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── SUCCESS STATE ── */
.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    /* Mantém a altura do form original */
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(232, 160, 32, 0.1);
    border: 1px solid rgba(232, 160, 32, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.success-message h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.success-message p {
    color: var(--lightgray);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 30px;
}

.success-footer {
    font-size: 0.75rem;
    color: var(--dimgray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    width: 100%;
}


/* =========================================
   ── RESPONSIVO & MENU HAMBÚRGUER ──
========================================= */

/* Forçar a ocultação do botão mobile no Desktop */
.mobile-cta {
    display: none !important;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* ── REGRAS PARA SMARTPHONES E TABLETS (até 900px) ── */
@media (max-width: 900px) {

    /* Forçar a ocultação do botão original do desktop */
    .desktop-cta {
        display: none !important;
    }

    /* Mostrar o botão dentro do menu hambúrguer */
    .mobile-cta {
        display: block !important;
        margin-top: 20px;
    }

    /* Configura o Menu Lateral */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Esconde o menu fora da tela */
        width: 280px;
        height: 100vh;
        background: rgba(6, 11, 24, 0.98);
        backdrop-filter: blur(15px);
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease-in-out;
        z-index: 999;
    }

    /* 1. Faz a grade virar uma coluna única */
    .how-steps {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .how-step.val-center::before {
        content: "VALOR GERADO";
        font-family: 'Space Grotesk', sans-serif;
        font-size: 0.65rem;
        font-weight: 800;
        color: var(--highlight);
        letter-spacing: 0.1em;
        margin-bottom: 10px;
        opacity: 0.8;
    }

    .how-step:not(.val-center)::before {
        content: "SOLUÇÃO";
        font-family: 'Space Grotesk', sans-serif;
        font-size: 0.65rem;
        font-weight: 800;
        color: var(--highlight);
        letter-spacing: 0.1em;
        margin-bottom: 10px;
        opacity: 0.8;
    }

    /* 2. Esconde os títulos "SOLUÇÃO" e "VALOR GERADO" que ficam soltos no topo */
    .cabecalho-grid {
        display: none;
    }

    .how-step {
        padding: 20px;
        text-align: center;
    }

    /* 3. "Gruda" visualmente o card de Solução no card de Valor abaixo dele */
    .how-step:not(.val-center) {
        border-bottom: none;
        border-radius: 12px 12px 0 0;
        /* Arredonda só em cima */
    }

    .how-step.val-center {
        background: rgba(232, 160, 32, 0.05);
        /* Leve destaque no valor */
        border-top: none;
        border-radius: 0 0 12px 12px;
        /* Arredonda só embaixo */
        margin-bottom: 20px;
        /* Espaço para o próximo par */
        padding-top: 0;
    }

    /* Quando a classe 'active' é adicionada pelo Javascript, o menu entra na tela */
    .nav-links.active {
        right: 0;
    }

    /* Mostra o botão CTA no menu e o Hambúrguer na barra */
    .hamburger {
        display: flex;
    }

    /* Animação do Hambúrguer para se transformar num 'X' */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Ajustes Gerais de Layout para Telas Menores */
    .hero,
    .about,
    .how-inner,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-desc {
        margin: 0 auto 40px;
    }

    .hero-badge {
        margin: 0 auto 32px;
    }

    .hero-visual {
        display: none;
        /* Oculta o diagrama complexo no telemóvel */
    }

    .stats-bar {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .stat-item {
        padding: 15px !important;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .stat-item:first-child {
        border-top: none;
        padding-top: 0;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    section {
        padding: 60px 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .solutions-grid,
    .tech-panel {
        grid-template-columns: 1fr;
    }

    .solutions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .solutions-tabs {
        width: 100%;
        display: flex;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 10px 5px;
        font-size: 0.75rem;
    }

    .slider-btn {
        padding: 0 5px;
        /* Diminui o espaço ao redor da seta para dar mais espaço aos logos */
        font-size: 1.5rem;
        /* Setas um pouco menores no celular */
    }

    .clients-logos {
        flex-direction: row !important;
        /* Mantém a lista na horizontal */
        gap: 20px !important;
        /* Diminui o espaço entre os logos para caber mais */
        align-items: center !important;
        justify-content: flex-start !important;
        /* Importante para o scroll funcionar */
        width: 100%;
    }

    .client-logo {
        /* Define a largura para cerca de 1/3 da tela (aprox 100px em telas comuns) */
        flex: 0 0 100px !important;
        width: 100px !important;
        height: 100px !important;
    }

    footer {
        grid-template-columns: 1fr;
        /* Uma coluna só */
        gap: 40px;
        padding: 60px 20px;
        text-align: left;
    }

    .footer-brand {
        /* No mobile, removemos a linha lateral e colocamos uma embaixo */
        border-right: none;
        border-bottom: 1px solid var(--lightgray);
        padding-right: 0;
        padding-bottom: 40px;
        /* Espaço para a linha não colar nos links */
    }

    .footer-links {
        /* Ajuste opcional para os links ficarem mais próximos no mobile */
        margin-bottom: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 30px 20px;
    }
}