/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   VARIÁVEIS — IDENTIDADE VISUAL RM
========================================================= */

:root {

    /* =====================================================
       VERDES DA LOGO
    ===================================================== */

    /* Verde principal da marca */
    --primary: #429B65;

    /* Verde escuro */
    --primary-dark: #244A38;

    /* Verde intermediário */
    --primary-light: #577D69;

    /* Verde sálvia */
    --accent: #9EB291;

    /* Verde muito claro */
    --accent-light: #D2DBBA;


    /* =====================================================
       TEXTOS
    ===================================================== */

    --dark: #1F2B25;

    --text: #26352D;

    --text-light: #69766E;


    /* =====================================================
       FUNDOS
    ===================================================== */

    --white: #FFFFFF;

    --lighter: #F8FAF6;

    --light: #F1F4EE;


    /* =====================================================
       BORDAS
    ===================================================== */

    --border: #DDE4DA;


    /* =====================================================
       OUTROS
    ===================================================== */

    --container: 1180px;

    --header-height: 82px;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: #ffff;
    border-bottom: 1px solid transparent;
    transition:
        background .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;

        box-shadow: 0 8px 30px rgba(36, 74, 56, .08);
}

.header.scrolled {
    border-color: var(--border);

    box-shadow:
        0 8px 30px rgba(36, 74, 56, .08);
}

.header-container {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 145px;
    height: auto;
}


/* =========================================================
   NAVEGAÇÃO
========================================================= */

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;

    font-size: 13px;
    font-weight: 600;

    color: var(--text);

    transition:
        color .25s ease;
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--accent);

    transition:
        width .25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* =========================================================
   BOTÃO DO MENU
========================================================= */

.menu-button {
    display: flex;

    width: 45px;
    height: 45px;

    padding: 0;

    border: none;
    background: transparent;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;
}

.menu-button span {
    display: block;

    width: 25px;
    height: 2px;

    background: var(--primary-dark);

    transition: all .3s ease;
}


/* =========================================================
   MENU LATERAL
========================================================= */

.side-menu {
    position: fixed;

    top: 0;
    right: 0;

    width: 360px;
    max-width: 90%;

    height: 100vh;

    padding: 30px;

    background: var(--white);

    z-index: 2000;

    overflow-y: auto;

    transform: translateX(100%);

    transition: transform .35s ease;

    box-shadow:
        -10px 0 30px rgba(0, 0, 0, .10);
}


/* MENU ABERTO */

.side-menu.active {
    transform: translateX(0);
}


/* =========================================================
   FUNDO ESCURO
========================================================= */

.menu-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .35);

    z-index: 1999;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   CABEÇALHO DO MENU
========================================================= */

.side-menu-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding-bottom: 25px;

    border-bottom: 1px solid var(--border);
}

.side-menu-title {
    color: var(--primary-dark);

    font-family: "Manrope", sans-serif;

    font-size: 24px;
    font-weight: 700;
}

.menu-close {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: none;

    background: transparent;

    color: var(--primary-dark);

    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    transition: color .2s ease;
}

.menu-close:hover {
    color: var(--primary);
}


/* =========================================================
   LINKS DO MENU
========================================================= */

.side-menu-nav {
    display: flex;

    flex-direction: column;

    margin-top: 20px;
}

.side-menu-link {
    display: block;

    padding: 15px 0;

    border-bottom: 1px solid var(--border);

    color: var(--text);

    font-size: 14px;
    font-weight: 600;

    transition:
        color .2s ease,
        padding-left .2s ease;
}

.side-menu-link:hover {
    color: var(--primary);

    padding-left: 7px;
}


/* =========================================================
   BOTÃO CONTATO
========================================================= */

.side-menu-contact {
    margin-top: 20px;

    padding: 13px 18px;

    border: 1px solid var(--primary);

    border-radius: 3px;

    color: var(--primary);

    text-align: center;
}

.side-menu-contact:hover {
    padding-left: 18px;

    background: var(--primary);

    color: var(--white);
}


/* =========================================================
   ÁREA DO COLABORADOR
========================================================= */

.side-menu-collaborator {
    margin-top: 10px;

    padding: 13px 18px;

    border-radius: 3px;

    background: var(--primary-dark);

    color: var(--white);

    text-align: center;
}

.side-menu-collaborator:hover {
    padding-left: 18px;

    background: var(--primary);

    color: var(--white);
}


/* =========================================================
   BOTÃO DO MENU
========================================================= */

.nav-link-outline {
    padding: 11px 17px;

    border: 1px solid var(--primary);

    border-radius: 3px;

    color: var(--primary);
}

.nav-link-outline::after {
    display: none;
}

.nav-link-outline:hover {
    background: var(--primary);
    color: var(--white);
}



/* =========================================================
   HERO
========================================================= */

.hero {

    position: relative;

    width: 100%;

    min-height: 720px;

    overflow: hidden;

    background: var(--primary-dark);

}


/* =========================================================
   IMAGEM DO HERO
========================================================= */

.hero-image {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    z-index: 1;
}


.hero-image img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center center;
}


/* =========================================================
   ESCURECIMENTO DA IMAGEM
========================================================= */

.hero-overlay {

    position: absolute;

    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            90deg,
            rgba(20, 45, 34, 0.20) 0%,
            rgba(20, 45, 34, 0.05) 100%
        );
}


/* =========================================================
   CONTAINER
========================================================= */

.hero-container {

    position: relative;

    z-index: 3;

    min-height: 720px;

    display: flex;

    align-items: flex-end;
}


/* =========================================================
   CONTEÚDO
========================================================= */

.hero-content {

    width: 100%;

    max-width: 700px;

    padding:

        0

        0

        135px

        0;
}


/* =========================================================
   BOTÕES
========================================================= */

.hero-buttons {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}


/* =========================================================
   BOTÃO
========================================================= */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    min-height: 50px;

    padding: 0 23px;

    border: 1px solid transparent;

    border-radius: 3px;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform .25s ease,
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
}


.btn span {

    font-size: 18px;

    transition:
        transform .25s ease;
}


.btn:hover span {

    transform: translateX(4px);
}


.btn:hover {

    transform: translateY(-2px);
}


/* =========================================================
   BOTÃO PRINCIPAL
========================================================= */

.btn-primary {

    background: var(--accent);

    color: var(--primary-dark);
}


.btn-primary:hover {

    background: var(--accent-light);

    color: var(--primary-dark);
}


/* =========================================================
   BOTÃO TRANSPARENTE
========================================================= */

.btn-light {

    background: rgba(255, 255, 255, .08);

    border-color:
        rgba(255, 255, 255, .35);

    color: var(--white);
}


.btn-light:hover {

    background: var(--white);

    color: var(--primary-dark);
}

/* =========================================================
   SEÇÕES
========================================================= */

.section {
    padding: 115px 0;
}

.section-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;

    margin-bottom: 55px;
}

.section-header h2,
.about-content h2,
.contact-info h2 {

    max-width: 700px;

    color: var(--primary-dark);

    font-family: "Manrope", sans-serif;

    font-size: clamp(32px, 4vw, 46px);

    line-height: 1.15;

    letter-spacing: -1.5px;
}

.section-header h2 span,
.about-content h2 span {
    color: var(--primary);
}

.section-header > p {
    max-width: 430px;

    color: var(--text-light);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   SOBRE
========================================================= */

.about {
    background: var(--white);
}

.about-grid {
    display: grid;

    grid-template-columns: .9fr 1.1fr;

    align-items: center;

    gap: 100px;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;

    overflow: hidden;

    height: 550px;
}

.image-frame::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 60%,
            rgba(36, 74, 56, .25)
        );
}

.image-frame img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.about-badge {
    position: absolute;

    right: -35px;
    bottom: 35px;

    z-index: 2;

    width: 150px;
    height: 150px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    background: var(--primary);

    color: var(--white);
}

.about-badge strong {
    font-size: 13px;

    font-weight: 500;
}

.about-badge span {
    font-family: "Manrope", sans-serif;

    font-size: 35px;

    font-weight: 800;
}

.about-content > p {
    max-width: 650px;

    margin-bottom: 18px;

    color: var(--text-light);

    font-size: 15px;
}

.about-features {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;

    margin: 35px 0;
}

.feature {
    display: flex;

    gap: 14px;
}

.feature-icon {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--light);

    color: var(--primary);

    font-weight: 800;
}

.feature strong {
    display: block;

    margin-bottom: 3px;

    color: var(--primary-dark);

    font-size: 13px;
}

.feature span {
    display: block;

    color: var(--text-light);

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   LINKS
========================================================= */

.text-link {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    color: var(--primary);

    font-size: 13px;

    font-weight: 800;
}

.text-link span {
    color: var(--primary-light);

    font-size: 18px;

    transition:
        transform .25s;
}

.text-link:hover span {
    transform: translateX(5px);
}


/* =====================================================
   SERVIÇOS - PAINEL PRINCIPAL
====================================================== */

.services-feature {
    width: 100%;
    min-height: 535px;

    display: grid;
    grid-template-columns: minmax(0, 1.95fr) minmax(400px, 0.97fr);
    background: #103a35;
    position: relative;
    overflow: hidden;
}


/* =====================================================
   ÁREA VERDE
====================================================== */

.services-feature-content {
    background: #103a35;

    display: flex;
    justify-content: center;

    position: relative;
    z-index: 2;
}


.services-feature-inner {
    width: 100%;
    max-width: 820px;

    padding: 30px 60px 70px 40px;

    display: flex;
    flex-direction: column;
}


/* =====================================================
   TAG
====================================================== */

.services-feature .section-tag {
    display: inline-block;

    color: #39d98a;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 4px;

    margin-bottom: 68px;
}


/* =====================================================
   CONTEÚDO
====================================================== */

.services-feature-text {
    max-width: 610px;
}


.services-feature-text h2 {
    margin: 0 0 42px;

    color: #ffffff;

    font-size: clamp(40px, 3.2vw, 52px);

    line-height: 1.08;

    font-weight: 700;

    letter-spacing: -1.5px;
}


.services-feature-text p {
    max-width: 590px;

    margin: 0 0 24px;

    color: #ffffff;

    font-size: 20px;

    line-height: 1.55;

    font-weight: 400;
}


/* =====================================================
   BOTÃO
====================================================== */

.services-feature-button {
    width: 200px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #ffffff;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 3px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.services-feature-button:hover {
    background: #ffffff;
    color: #103a35;

    transform: translateY(-2px);
}


/* =====================================================
   IMAGEM
====================================================== */

.services-feature-image {
    min-height: 535px;

    position: relative;

    overflow: hidden;
}


.services-feature-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;
}


/* =====================================================
   LINHA SUPERIOR
====================================================== */

.services-feature::before {
    content: "";

    position: absolute;

    top: 72px;
    left: 0;
    right: 0;

    height: 1px;

    background: rgba(255, 255, 255, 0.28);

    z-index: 5;
}


/* =====================================================
   TABLET
====================================================== */

@media (max-width: 1000px) {

    .services-feature {
        grid-template-columns: 1fr 0.8fr;
    }

    .services-feature-inner {
        padding-left: 35px;
        padding-right: 35px;
    }

    .services-feature .section-tag {
        margin-bottom: 55px;
    }

    .services-feature-text h2 {
        font-size: 40px;
    }

    .services-feature-text p {
        font-size: 18px;
    }

}


/* =====================================================
   MOBILE
====================================================== */

@media (max-width: 650px) {

    .services-feature {
        display: flex;
        flex-direction: column;

        min-height: auto;

        background: #103a35;
    }


    /* -----------------------------
       ÁREA VERDE
    ----------------------------- */

    .services-feature-content {
        width: 100%;

        display: block;
    }


    .services-feature-inner {
        width: 100%;

        padding: 32px 25px 35px;

        box-sizing: border-box;
    }


    .services-feature .section-tag {
        margin-bottom: 42px;

        font-size: 13px;

        letter-spacing: 3px;
    }


    /* -----------------------------
       TEXTO
    ----------------------------- */

    .services-feature-text {
        max-width: none;
    }


    .services-feature-text h2 {
        margin-bottom: 28px;

        font-size: 34px;

        line-height: 1.1;

        letter-spacing: -0.8px;
    }


    .services-feature-text p {
        margin-bottom: 28px;

        font-size: 17px;

        line-height: 1.5;
    }


    /* -----------------------------
       BOTÃO
    ----------------------------- */

    .services-feature-button {
        width: 180px;
        height: 55px;

        font-size: 12px;
    }


    /* -----------------------------
       IMAGEM
    ----------------------------- */

    .services-feature-image {
        width: 100%;

        height: 330px;

        min-height: 330px;
    }


    .services-feature-image img {
        object-position: center;
    }


    /* -----------------------------
       LINHA
    ----------------------------- */

    .services-feature::before {
        top: 72px;
    }

}

/* =========================================================
   DIFERENCIAL
========================================================= */

.differential {
    padding: 105px 0;

    background: var(--primary-dark);

    color: var(--white);
}

.differential-grid {
    display: grid;

    grid-template-columns: .9fr 1.1fr;

    gap: 110px;
}

.section-tag-light {
    color: var(--accent-light);
}

.differential-content h2 {
    margin-bottom: 25px;

    font-family: "Manrope", sans-serif;

    font-size: clamp(34px, 4vw, 50px);

    line-height: 1.15;

    letter-spacing: -1.5px;
}

.differential-content p {
    max-width: 500px;

    margin-bottom: 35px;

    color: rgba(255, 255, 255, .68);

    font-size: 14px;

    line-height: 1.8;
}

.differential-list {
    border-top:
        1px solid rgba(255, 255, 255, .14);
}

.differential-item {
    display: grid;

    grid-template-columns: 70px 1fr;

    gap: 25px;

    padding: 28px 0;

    border-bottom:
        1px solid rgba(255, 255, 255, .14);
}

.differential-number {
    color: var(--accent-light);

    font-family: "Manrope", sans-serif;

    font-size: 14px;

    font-weight: 800;
}

.differential-item h3 {
    margin-bottom: 6px;

    font-family: "Manrope", sans-serif;

    font-size: 20px;
}

.differential-item p {
    max-width: 500px;

    color: rgba(255, 255, 255, .60);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   PORTAL
========================================================= */

.portal {
    padding: 100px 0;

    background: var(--white);
}

.portal-box {
    position: relative;

    min-height: 390px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background: var(--lighter);
}

.portal-content {
    position: relative;

    z-index: 5;

    width: 55%;

    padding: 70px;
}

.portal-content h2 {
    max-width: 600px;

    margin-bottom: 18px;

    color: var(--primary-dark);

    font-family: "Manrope", sans-serif;

    font-size: 40px;

    line-height: 1.15;
}

.portal-content p {
    max-width: 500px;

    margin-bottom: 28px;

    color: var(--text-light);

    font-size: 14px;
}

.portal-decoration {
    position: absolute;

    right: 0;
    top: 0;

    width: 45%;
    height: 100%;

    overflow: hidden;

    background: var(--primary);
}

.portal-circle {
    position: absolute;

    border-radius: 50%;

    border:
        1px solid rgba(255, 255, 255, .12);
}

.circle-one {
    width: 500px;
    height: 500px;

    right: -200px;
    top: -100px;
}

.circle-two {
    width: 320px;
    height: 320px;

    right: -80px;
    top: 30px;
}

.portal-card {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 240px;
    height: 150px;

    padding: 25px;

    transform:
        translate(-50%, -50%)
        rotate(-5deg);

    background:
        rgba(255, 255, 255, .10);

    border:
        1px solid rgba(255, 255, 255, .20);

    backdrop-filter: blur(15px);
}

.portal-card-top {
    display: flex;

    justify-content: space-between;

    color: var(--white);

    font-family: "Manrope", sans-serif;

    font-size: 14px;

    font-weight: 800;
}

.portal-card-line {
    width: 80%;

    height: 7px;

    margin-top: 35px;

    background:
        rgba(255, 255, 255, .25);
}

.portal-card-line.small {
    width: 50%;

    margin-top: 12px;
}


/* =========================================================
   CLIENTES
========================================================= */

.clients {
    background: var(--light);
}

.clients-header {
    margin-bottom: 45px;
}

.clients-placeholder {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    border-top:
        1px solid var(--border);

    border-left:
        1px solid var(--border);
}

.client-placeholder-item {
    min-height: 110px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-right:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);

    color: var(--primary-light);

    font-family: "Manrope", sans-serif;

    font-size: 13px;

    font-weight: 700;

    opacity: .7;
}


/* =========================================================
   CARREIRAS
========================================================= */

.careers {
    padding: 75px 0;

    background: var(--primary);
}

.careers-box {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;
}

.careers h2 {
    color: var(--white);

    font-family: "Manrope", sans-serif;

    font-size: clamp(30px, 4vw, 45px);

    line-height: 1.1;
}


/* =========================================================
   CONTATO
========================================================= */

.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;

    grid-template-columns: .8fr 1.2fr;

    gap: 100px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info > p {
    max-width: 500px;

    margin-bottom: 40px;

    color: var(--text-light);

    font-size: 14px;
}

.contact-items {
    display: flex;

    flex-direction: column;

    gap: 24px;
}

.contact-item {
    display: flex;

    align-items: center;

    gap: 15px;
}

.contact-icon {
    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--light);

    color: var(--primary);

    font-weight: 800;
}

.contact-item span {
    display: block;

    margin-bottom: 2px;

    color: var(--text-light);

    font-size: 11px;
}

.contact-item strong {
    display: block;

    color: var(--primary-dark);

    font-size: 13px;
}


/* =========================================================
   FORMULÁRIO
========================================================= */

.contact-form-wrapper {
    padding: 45px;

    background: var(--light);
}

.contact-form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.form-group label {
    color: var(--primary-dark);

    font-size: 11px;

    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border:
        1px solid var(--border);

    border-radius: 2px;

    outline: none;

    background: var(--white);

    color: var(--text);

    font-size: 13px;

    padding: 13px 14px;

    transition:
        border-color .2s,
        box-shadow .2s;
}

.form-group input,
.form-group select {
    height: 47px;
}

.form-group textarea {
    resize: vertical;

    min-height: 130px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(50, 96, 72, .10);
}

.form-button {
    align-self: flex-start;

    border: none;
}

.form-message {
    display: none;

    padding: 12px;

    background: #EAF1E9;

    color: var(--primary-dark);

    font-size: 12px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: var(--primary-dark);

    color: var(--white);
}

.footer-main {
    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr 1.2fr;

    gap: 50px;

    padding: 70px 0;
}

.footer-brand img {
    width: 145px;

    margin-bottom: 20px;

    /*
       Se sua logo já for clara,
       remova este filtro.
    */
}

.footer-brand p {
    max-width: 260px;

    color: rgba(255, 255, 255, .58);

    font-size: 12px;

    line-height: 1.8;
}

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 10px;
}

.footer-column h3 {
    margin-bottom: 10px;

    color: var(--white);

    font-family: "Manrope", sans-serif;

    font-size: 13px;
}

.footer-column a,
.footer-column span {
    color: rgba(255, 255, 255, .58);

    font-size: 12px;

    transition:
        color .2s;
}

.footer-column a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid rgba(255, 255, 255, .10);

    color: rgba(255, 255, 255, .40);

    font-size: 10px;
}


/* =========================================================
   VOLTAR AO TOPO
========================================================= */

.back-to-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 500;

    width: 45px;
    height: 45px;

    border: none;

    background: var(--primary);

    color: var(--white);

    font-size: 18px;

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transform: translateY(15px);

    transition:
        opacity .3s,
        visibility .3s,
        transform .3s;
}

.back-to-top.show {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
}


/* =========================================================
   ANIMAÇÕES
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   RESPONSIVIDADE
========================================================= */

@media (max-width: 1050px) {

    .nav {
        gap: 18px;
    }

    .nav-link {
        font-size: 12px;
    }

    .about-grid,
    .differential-grid {
        gap: 60px;
    }

    .portal-content {
        padding: 50px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    :root {
        --header-height: 72px;
    }

    /* -----------------------------------------------------
       SOBRE / DIFERENCIAL / CONTATO
    ----------------------------------------------------- */

    .about-grid,
    .differential-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 650px;
    }

    .differential-grid {
        gap: 60px;
    }


    /* -----------------------------------------------------
       SERVIÇOS
    ----------------------------------------------------- */

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-card:last-child {
        grid-column: 1 / -1;

        max-width:
            calc(50% - 12px);

        justify-self: center;
    }


    /* -----------------------------------------------------
       PORTAL
    ----------------------------------------------------- */

    .portal-content {
        width: 60%;
    }

    .portal-decoration {
        width: 40%;
    }


    /* -----------------------------------------------------
       CLIENTES
    ----------------------------------------------------- */

    .clients-placeholder {
        grid-template-columns:
            repeat(3, 1fr);
    }


    /* -----------------------------------------------------
       FOOTER
    ----------------------------------------------------- */

    .footer-main {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 650px) {

    /* -----------------------------------------------------
       CONTAINER
    ----------------------------------------------------- */

    .container {
        width: min(
            calc(100% - 32px),
            var(--container)
        );
    }


    /* -----------------------------------------------------
       SEÇÕES
    ----------------------------------------------------- */

    .section {
        padding: 80px 0;
    }


    /* =====================================================
       HERO MOBILE
    ===================================================== */

    
    .hero {

        width: 100%;

        /*
         * A imagem original é 375 x 667.
         *
         * Mantemos a mesma proporção:
         *
         * 667 / 375 = 1.778
         */
        aspect-ratio: 375 / 667;

        min-height: 0;

        height: auto;

        background: var(--primary-dark);

        overflow: hidden;
    }


    /* =====================================================
       IMAGEM
    ===================================================== */

    .hero-image {

        position: absolute;

        inset: 0;

        width: 100%;
        height: 100%;
    }


    .hero-image img {

        width: 100%;
        height: 100%;

        object-fit: contain;

        object-position: center center;

        display: block;
    }


    /* =====================================================
       OVERLAY
    ===================================================== */

    .hero-overlay {

        background:
            linear-gradient(
                180deg,
                rgba(20, 45, 34, 0.02),
                rgba(20, 45, 34, 0.08)
            );
    }


    /* =====================================================
       CONTAINER
    ===================================================== */

    .hero-container {

        min-height: 0;

        height: 100%;

        width: 100%;

        display: flex;

        align-items: flex-end;
    }


    /* =====================================================
       CONTEÚDO
    ===================================================== */

    .hero-content {

        width: 100%;

        max-width: none;

        padding:

            0

            16px

            35px

            16px;
    }


    /* =====================================================
       BOTÕES
    ===================================================== */

    .hero-buttons {

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 10px;

        width: 100%;
    }


    .hero-buttons .btn {

        width: 100%;

        min-height: 48px;

        justify-content: center;
    }


    /* =====================================================
       RESTANTE DO SITE
    ===================================================== */

    .container {

        width: min(
            calc(100% - 32px),
            var(--container)
        );
    }


    .section {

        padding: 80px 0;
    }


    .section-header {

        display: block;

        margin-bottom: 40px;
    }


    .section-header > p {

        margin-top: 20px;
    }


    .about-grid {

        gap: 60px;
    }


    .image-frame {

        height: 400px;
    }


    .about-badge {

        right: 15px;

        bottom: 15px;

        width: 115px;

        height: 115px;
    }


    .about-badge span {

        font-size: 27px;
    }


    .about-features {

        grid-template-columns: 1fr;
    }


    .services-grid {

        grid-template-columns: 1fr;
    }


    .service-card:last-child {

        grid-column: auto;

        max-width: none;
    }


    .differential {

        padding: 80px 0;
    }


    .differential-item {

        grid-template-columns: 45px 1fr;
    }


    .portal {

        padding: 70px 0;
    }


    .portal-box {

        min-height: auto;
    }


    .portal-content {

        width: 100%;

        padding: 55px 30px;
    }


    .portal-content h2 {

        font-size: 32px;
    }


    .portal-decoration {

        display: none;
    }


    .clients-placeholder {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .careers-box {

        display: block;
    }


    .careers-box .btn {

        margin-top: 30px;
    }


    .form-row {

        grid-template-columns: 1fr;
    }


    .contact-grid {

        gap: 50px;
    }


    .contact-form-wrapper {

        padding: 25px 20px;
    }


    .footer-main {

        grid-template-columns: 1fr;

        gap: 35px;

        padding: 55px 0;
    }


    .footer-bottom {

        padding: 20px 0;

        flex-direction: column;

        align-items: flex-start;

        justify-content: center;
    }
}

/* =========================================================
   CELULAR PEQUENO
========================================================= */

@media (max-width: 450px) {


    /* -----------------------------------------------------
       HERO
    ----------------------------------------------------- */

    .hero {

        /*
         * Banner um pouco menor em celulares pequenos
         */
        min-height: 620px;
    }


    /* -----------------------------------------------------
       BOTÕES
    ----------------------------------------------------- */

    .hero-content {

        padding:

            0

            12px

            25px

            12px;
    }



    .hero-buttons {

        gap: 8px;
    }


    .hero-buttons .btn {

        min-height: 46px;

        font-size: 12px;
    }


    /* -----------------------------------------------------
       ESTATÍSTICAS
    ----------------------------------------------------- */

    .hero-statistics {

        flex-wrap: wrap;

        padding: 15px 0;
    }

    .hero-stat {

        width: 33.333%;

        padding: 0 8px;
    }

    .hero-stat strong {

        font-size: 14px;
    }

    .hero-stat span {

        font-size: 8px;
    }

}