:root {
    --verde-infracom: #6DFF33;
    --verde-hover: #8DFF45;
    --preto: #111111;
    --cinza-escuro: #161616;
    --cinza-medio: #242424;
    --cinza-claro: #F5F7FA;
    --texto-suave: #D5D5D5;
    --branco: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: #0D0D0D;
    color: var(--branco);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--cinza-claro);
    box-shadow: 0 2px 15px rgba(0, 0, 0, .08);
    z-index: 999;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 86px;
    padding: 10px 0;
}

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

.logo {
    width: 220px;
    height: auto;
}

nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
}

nav a {
    color: var(--preto);
    text-decoration: none;
    font-weight: 700;
    transition: color .2s ease;
}

nav a:hover,
nav a:focus-visible {
    color: #42B812;
}

.menu-mobile {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--preto);
    color: var(--verde-infracom);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 86px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(13, 13, 13, .98) 0%, rgba(13, 13, 13, .88) 52%, rgba(13, 13, 13, .72) 100%),
        #0D0D0D;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/logo.png") no-repeat right 7% center;
    background-size: 520px auto;
    opacity: .16;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 760px;
}

.badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 18px;
    border: 1px solid rgba(109, 255, 51, .3);
    border-radius: 999px;
    background: rgba(109, 255, 51, .15);
    color: var(--verde-infracom);
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 24px;
    font-size: 3.2rem;
    line-height: 1.1;
}

.hero p {
    max-width: 700px;
    margin-bottom: 34px;
    color: var(--texto-suave);
    font-size: 1.08rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.btn-primary {
    background: var(--verde-infracom);
    color: #000000;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--verde-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid var(--verde-infracom);
    color: var(--verde-infracom);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: var(--verde-infracom);
    color: #000000;
}

section {
    padding: 96px 0;
    scroll-margin-top: 96px;
}

section h2 {
    margin-bottom: 28px;
    color: var(--verde-infracom);
    font-size: 2.35rem;
    line-height: 1.2;
    text-align: center;
}

.section-intro {
    max-width: 900px;
    margin: 0 auto 38px;
    color: var(--texto-suave);
    text-align: center;
}

.numeros {
    padding: 48px 0;
    background: #111111;
}

.numeros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.numeros-grid > div {
    padding: 20px;
    border: 1px solid #202020;
    border-radius: 8px;
    background: #151515;
}

.numeros h3 {
    color: var(--verde-infracom);
    font-size: 2.7rem;
    line-height: 1;
}

.numeros p {
    margin-top: 8px;
    color: var(--texto-suave);
    font-weight: 600;
}

.sobre,
.diferenciais {
    background: #0D0D0D;
}

.servicos,
.galeria {
    background: #111111;
}

.about-grid,
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-block,
.card {
    min-height: 100%;
    padding: 28px;
    border: 1px solid var(--cinza-medio);
    border-radius: 8px;
    background: var(--cinza-escuro);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.about-block:hover,
.card:hover {
    border-color: var(--verde-infracom);
    box-shadow: 0 0 20px rgba(109, 255, 51, .15);
    transform: translateY(-4px);
}

.about-block h3,
.card h3 {
    margin-bottom: 12px;
    color: var(--verde-infracom);
    font-size: 1.2rem;
    line-height: 1.3;
}

.about-block p,
.card p {
    color: var(--texto-suave);
}

.projetos-carousel {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
}

.carousel-viewport {
    overflow: hidden;
    border: 1px solid var(--cinza-medio);
    border-radius: 8px;
    background: var(--cinza-escuro);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.carousel-track {
    display: flex;
    transition: transform .45s ease;
}

.carousel-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    aspect-ratio: 16 / 9;
    background: #0A0A0A;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.carousel-slide figcaption {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    z-index: 1;
    color: var(--branco);
}

.carousel-slide strong,
.carousel-slide span {
    display: block;
}

.carousel-slide strong {
    margin-bottom: 6px;
    color: var(--verde-infracom);
    font-size: 1.4rem;
}

.carousel-slide span {
    max-width: 620px;
    color: #EFEFEF;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(0, 0, 0, .65);
    color: var(--verde-infracom);
    font-size: 2.1rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
    background: var(--verde-infracom);
    color: #000000;
    transform: translateY(-50%) scale(1.04);
}

.carousel-prev {
    left: 18px;
}

.carousel-next {
    right: 18px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: #5A5A5A;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, width .2s ease;
}

.carousel-dots button.active {
    width: 34px;
    background: var(--verde-infracom);
}

.carousel-dots button:focus-visible {
    outline: 2px solid var(--verde-infracom);
    outline-offset: 4px;
}

.contato {
    background: var(--verde-infracom);
    color: #000000;
}

.contato h2 {
    margin-bottom: 12px;
    color: #000000;
    text-align: left;
}

.contato p {
    max-width: 620px;
    font-weight: 600;
}

.contato-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.contato-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contato .btn-primary {
    background: #000000;
    color: var(--verde-infracom);
}

.contato .btn-secondary {
    border-color: #000000;
    color: #000000;
}

.contato .btn-primary:hover,
.contato .btn-primary:focus-visible {
    background: #1A1A1A;
}

.contato .btn-secondary:hover,
.contato .btn-secondary:focus-visible {
    background: #000000;
    color: var(--verde-infracom);
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    padding: 13px 18px;
    border-radius: 999px;
    background: #25D366;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

footer {
    padding: 24px 0;
    background: #080808;
    color: #BEBEBE;
    text-align: center;
    font-size: .9rem;
}

@media (max-width: 980px) {
    .logo {
        width: 190px;
    }

    nav ul {
        gap: 18px;
    }

    .hero h1 {
        font-size: 2.55rem;
    }

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

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

    .contato-box {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .nav {
        min-height: 78px;
    }

    .logo {
        width: 170px;
    }

    .menu-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    nav {
        display: none;
    }

    nav.active {
        position: fixed;
        top: 78px;
        left: 0;
        display: block;
        width: 100%;
        padding: 22px 5%;
        background: var(--cinza-claro);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .16);
    }

    nav.active ul {
        flex-direction: column;
        gap: 16px;
    }

    nav.active a {
        display: block;
        padding: 10px 0;
    }

    .hero {
        min-height: auto;
        padding: 148px 0 82px;
    }

    .hero::after {
        background-position: center 58%;
        background-size: 320px auto;
        opacity: .11;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

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

    section {
        padding: 72px 0;
    }

    section h2 {
        font-size: 1.9rem;
    }

    .about-grid,
    .cards,
    .numeros-grid {
        grid-template-columns: 1fr;
    }

    .about-block,
    .card {
        padding: 24px;
    }

    .carousel-slide {
        aspect-ratio: 4 / 3;
    }

    .carousel-slide figcaption {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .carousel-slide strong {
        font-size: 1.1rem;
    }

    .carousel-slide span {
        font-size: .9rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .contato-actions,
    .contato-actions a {
        width: 100%;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        padding: 12px 15px;
        font-size: .9rem;
    }
}
