@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800&display=swap');

:root {
    --black: #000;
    --grey-bg: #808080;
    --grey-light: #f4f4f4;
    --white: #ffffff;
}

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

.logo img {
    max-height: 60px;
    /* tamanho padrão de logo */
    width: auto;
    height: auto;
    object-fit: contain;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background: #fff;
    color: #333;
    overflow-x: hidden;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* Header */
.main-header {
    position: fixed;
    opacity: 80%;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    padding: 10px 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 40px;
    transition: all 0.4s ease;
}

/* Estado quando scrolla */
.main-header.scrolled {
    top: 10px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    align-items: center;
}

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

.menu a {
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.logo-menu {
    text-align: center;
}

.logo-menu img {
    max-height: 110px;
    width: 150px;
    height: auto;
    object-fit: contain;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Hero */
.hero {
    height: 100vh;
    background: url('../images/banners/banner.gif') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: #fff;
}

/* Efeito de brilho no texto do Hero (herdado do teste.html) */
.hero-content h1 {
    font-size: 3em;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    letter-spacing: -2px;
}

.s-card-back-hero {
    transform: skewY(2.1deg) skewX(1.5deg);
    position: absolute;
    top: -12px;
    left: -12px;
    width: 100%;
    height: 105%;
    background: #ccc;
    border-radius: 8px;
    z-index: -1;
}

/* Quem Somos */
.section {
    padding: 100px clamp(20px, 5vw, 60px);
}

.who-we-are {
    display: flex;
    gap: 80px;
    align-items: center;
}

.text-side {
    flex: 1.2;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.image-side {
    flex: 1;
    position: relative;
    margin-right: 10px;
}

/* Stacked Cards Effect */
.stacked-cards {
    position: relative;
    width: 100%;
    height: 150px;
}

.s-card {
    position: absolute;
    width: 80%;
    height: 80%;
    background: #ccc;
    border-radius: 10px;
    z-index: -1;
}

.c1 {
    top: -20px;
    left: -20px;
}

.c2 {
    top: -40px;
    left: -40px;
    opacity: 0.5;
}

/* Empresas Slider (3.5 itens) */
.section-grey {
    background: var(--grey-bg);
    padding: 80px 0;
    color: #fff;
}

.slider-container {
    overflow: hidden;
    padding: 0 5%;
    cursor: grab;
}

.slider-track {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
}

.slider-track.dragging {
    cursor: grabbing;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.business-card {
    width: 280px;
    /* Largura ajustada para caber 3.5 no layout */
    height: 400px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.business-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.business-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.card-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-label img {
    max-height: 20px;
    width: 80px;
    height: 20px;
}

/* Timeline */
.timeline-slider {
    position: relative;
    display: flex;
    gap: 50px;
    overflow-x: auto;
    padding: 100px 20px 40px 20px;
    scroll-snap-type: x mandatory;
}

/* Linha central atravessando as bolinhas */
.timeline-slider::before {
    content: "";
    position: absolute;
    top: 120px;
    left: 0;
    width: 193%;
    height: 3px;
    background: linear-gradient(90deg, #1e3a5f, #3f6fa1, #1e3a5f);
    z-index: 0;
}

/* ITEM */
.timeline-item {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
}

/* TOPO */
.timeline-top {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* BOLINHA */
.t-dot {
    width: 18px;
    height: 18px;
    background: #1e3a5f;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #1e3a5f;
    position: relative;
    z-index: 2;
}

/* CARD */
.timeline-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all .3s ease;
    /* display: flex;
    flex-direction: column;
    justify-content: space-between; */
    height: 250px;
}

/* HOVER */
.timeline-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* IMAGEM */
.stacked-cards img {
    width: 100%;
    border-radius: 8px;
}

.timeline-card .stacked-cards img {
    height: 150px;
}

/* ANO */
.t-year {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 5px;
}

/* TEXTO */
.timeline-card p {
    font-size: 0.9rem;
    color: #555;
}

.timeline-slider {
    scrollbar-width: thin;
}

.timeline-slider::-webkit-scrollbar {
    height: 6px;
}

.timeline-slider::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 10px;
}

/* Stats Section */
.stats-section {
    position: relative;
    background-color: #1a1e23;
    /* Cor escura base */
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19480c5?q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    overflow: hidden;
}

.stats-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgb(26, 30, 35, 0.9);
    /* Overlay escuro para destacar texto */
    z-index: 1;
}

.stats-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Título Esquerdo */
.stats-header {
    flex: 1;
    z-index: 80;
    text-align: justify;
}

.stats-header p {
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: 2px;
}

.stats-header h2 {
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
}

.stats-header h2 strong {
    font-weight: 800;
    text-transform: uppercase;
}

/* Wrapper dos Números e Marca d'água */
.stats-numbers-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 400px;
}

.stats-3d {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.stat-card {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    font-family: 'futura', sans-serif;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
}

.stat-card .number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card .label {
    font-size: 1.2rem;
    letter-spacing: 2px;
    opacity: 0.9;
    font-weight: 500;
}

/* Posicionamento dos Itens */
.stat-item {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Posições exatas conforme imagem */
.item-top {
    top: 10%;
    left: 20%;
}

.item-center {
    top: 25%;
    right: 5%;
}

.item-right {
    top: 60%;
    right: 5%;
}

.item-bottom {
    bottom: 5%;
    left: 15%;
}

/* Estilo para o +32 MIL */
.number-row {
    display: flex;
    align-items: baseline;
}

.plus {
    font-size: 3rem;
    margin-right: 5px;
    font-weight: 800;
}

.mil {
    font-size: 1.5rem;
    margin-left: 5px;
    font-weight: 800;
}

/* Responsivo */
@media (max-width: 992px) {
    .timeline-slider::before {
        width: 310%;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .stats-header {
        margin-bottom: 60px;
    }

    .stat-card {
        left: 20%;
    }

    .stats-numbers-wrapper {
        height: 350px;
    }
}

/* Video */
.video-section {
    padding: 60px 0;
    display: flex;
    justify-content: center;
    color: #fff;
    padding: 100px 0;
    position: relative;
}

.video-mockup {
    position: relative;
    max-width: 1100px;
    width: 90%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background: #000;
}

.video-mockup video {
    width: 100%;
    display: block;
    cursor: pointer;
}

/* Barra de Controles Inferior */
.video-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    padding: 20px 30px;
    gap: 20px;
    opacity: 0;
    /* Esconde quando não está com mouse em cima */
    transition: opacity 0.3s ease;
    z-index: 10;
}

.video-mockup:hover .video-controls-overlay {
    opacity: 1;
}

/* Botões de Comando */
.control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: #00bcd4;
    /* Azul ciano da marca */
    transform: scale(1.2);
}

/* Barra de Progresso Estilizada */
.progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #00bcd4;
    /* Cor de progresso */
    border-radius: 10px;
    transition: width 0.1s linear;
}

/* Ícones de Play Gigante no centro (opcional) */
.video-mockup::before {
    content: '\f04b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4rem;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s;
    display: var(--play-display, block);
}

.video-mockup.playing::before {
    display: none;
}

/* --- SECTION LOGO BAR (IGUAL IMAGEM) --- */
.logo-bar-section {
    margin-top: 20px;
    position: relative;
    padding-top: 60px;
    /* Espaço para a inclinação aparecer */
    background: #fff;
    overflow: hidden;
}

/* Faixa Cinza Inclinada */
.gray-slant-bg {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 120px;
    background: #a6a6a6;
    /* Cor cinza da imagem */
    transform: skewY(-2.5deg) skewX(1deg);
    border-radius: 20px 20px 0 0;
    /* Faz a inclinação subir da esquerda para a direita */
    transform-origin: top right;
    z-index: 1;
}

/* Card Branco Arredondado */
.logo-white-card {
    position: relative;
    z-index: 2;
    /* Fica acima do cinza */
    background: #ffffff;
    border: 1px solid #d1d1d1;
    /* Borda fina cinza */
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    /* Bordas arredondadas apenas no topo */
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    /* Centraliza o card na página */
}

/* Estilização da Logo (Tamanho Único e Centralizada) */
.footer-brand-logo {
    max-width: 280px;
    /* Define o tamanho reduzido da logo */
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.footer-brand-logo:hover {
    transform: scale(1.05);
    /* Efeito sutil ao passar o mouse */
}

/* Footer */
.home-footer {
    background: #333;
    color: #ccc;
    padding: 80px 10% 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
}

.footer-col nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.icons {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
}

/* Animação */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease-out;
}

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

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* =========================
   MENU MOBILE (HAMBURGER)
========================= */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1100;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    display: block;
    transition: 0.3s;
}

/* MOBILE */
@media (max-width: 768px) {
    .timeline-slider {
        gap: 25px;
        padding: 60px 10px 30px 10px;
    }

    .timeline-item {
        flex: 0 0 240px;
    }

    .timeline-slider::before {
        top: 80px;
        width: 650%;
    }

    .timeline-card {
        padding: 20px;
        height: 280px;
    }

    .stacked-cards {
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #000;
        flex-direction: column;
        padding: 80px 20px;
        gap: 24px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .menu.active {
        right: 0;
    }

    .menu a {
        font-size: 1rem;
    }

    .logo-white-card {
        margin: 0;
        padding: 40px 15px;
    }

    .footer-brand-logo {
        max-width: 200px;
    }

    .gray-slant-bg {
        height: 80px;
    }

    .who-we-are {
        flex-direction: column;
        gap: 40px;
    }


    .stacked-cards {
        position: relative;
        width: 280px;
        height: 180px;
    }

    .main-img img {
        height: auto;
        max-height: 260px;
    }

    /* Evita vazamento */
    .section {
        overflow: hidden;
    }

    .stats-container {
        flex-direction: column;
        text-align: center;
    }

    .stats-section {
        padding: 100px 0;
    }

    .stats-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .stats-numbers-wrapper {
        height: 320px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 40px;
        position: relative;
    }

    .stats-3d {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 20px;
        max-width: 500px;
        margin: 0 auto;
    }

    .stat-card {
        width: 180px;
        height: 180px;
    }

    .stat-card:nth-child(1),
    .stat-card:nth-child(2) {
        margin-bottom: 15px;
    }

    .stat-card:nth-child(3) {
        margin-left: auto;
        margin-right: auto;
        flex-basis: 100%;
        max-width: 180px;
    }

    .stat-card .number {
        font-size: 3rem;
    }

    .stat-card .label {
        font-size: 1rem;
    }

    .s-card {
        position: absolute;
        width: 80%;
        height: 80%;
        background: #ccc;
        border-radius: 10px;
        z-index: -1;
    }

    .c1 {
        top: -20px;
        left: -20px;
    }

    .c2 {
        top: -40px;
        left: -40px;
        opacity: 0.5;
    }
}

body.menu-open {
    overflow: hidden;
}

.logo-footer img {
    width: 100px;
}

/* faixa */
.badge-construcao {
    position: absolute;
    top: 10px;
    left: -40px;

    background: #00639d;
    color: #fff;

    font-size: 11px;
    font-weight: 600;

    padding: 4px 45px;
    transform: rotate(-25deg);

    letter-spacing: 0.5px;
    z-index: 2;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1150px) {
    .image-side .stacked-cards img {
        height: 300px;
    }
}