/* =========================================================
   TARGETNEX HUB
   BASE GLOBAL
========================================================= */

:root {
    --tn-black: #0f1316;
    --tn-black-soft: #171c20;
    --tn-graphite: #22282d;
    --tn-graphite-light: #30373c;

    --tn-yellow: #f4bd00;
    --tn-yellow-light: #ffd84a;
    --tn-yellow-dark: #d5a400;

    --tn-white: #ffffff;
    --tn-off-white: #f5f5f2;

    --tn-gray-100: #eeeeea;
    --tn-gray-200: #dedfda;
    --tn-gray-300: #c9cdcc;
    --tn-gray-400: #9da4a7;
    --tn-gray-500: #777f83;
    --tn-gray-600: #5b6367;

    --tn-whatsapp: #25d366;
    --tn-linkedin: #0a66c2;

    --tn-container: 1180px;

    --tn-radius-sm: 8px;
    --tn-radius-md: 14px;
    --tn-radius-lg: 22px;

    --tn-shadow-soft:
        0 20px 55px rgba(0, 0, 0, 0.08);

    --tn-shadow-dark:
        0 28px 80px rgba(0, 0, 0, 0.22);
}


/* =========================================================
   RESET
========================================================= */

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

html {
    margin: 0;
    padding: 0;

    scroll-behavior: smooth;

    background: var(--tn-off-white);
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    overflow-x: hidden;

    background: var(--tn-off-white);

    color: var(--tn-graphite);

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg,
canvas {
    max-width: 100%;
}

img {
    height: auto;

    display: block;
}

svg {
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

main {
    display: block;
}


/* =========================================================
   ESTRUTURA
========================================================= */

.section-container {
    width: min(var(--tn-container), 88%);

    margin-inline: auto;
}

.page-section {
    position: relative;

    padding: 112px 0;
}


/* =========================================================
   TIPOGRAFIA
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: inherit;

    font-weight: 750;

    letter-spacing: -0.045em;
}

p {
    color: var(--tn-gray-600);
}

.section-kicker {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 16px;

    color: var(--tn-yellow-dark);

    font-size: 0.67rem;
    font-weight: 850;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}

.section-kicker::before {
    content: "";

    width: 22px;
    height: 2px;

    flex: 0 0 22px;

    background: currentColor;
}


/* =========================================================
   ACESSIBILIDADE
========================================================= */

:focus-visible {
    outline:
        2px solid var(--tn-yellow);

    outline-offset: 3px;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background:
        rgba(15, 19, 22, 0.96);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);

    backdrop-filter: blur(18px);
}

.nav-container {
    width: min(1180px, 92%);

    min-height: 76px;

    margin-inline: auto;

    display: flex;
    align-items: center;

    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    text-decoration: none;
}

.nav-logo {
    width: 166px;
    height: auto;
}

.main-nav {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 25px;
}

.main-nav a {
    position: relative;

    min-height: 42px;

    display: inline-flex;
    align-items: center;

    color: #c7cdcf;

    text-decoration: none;

    font-size: 0.82rem;
    font-weight: 500;

    white-space: nowrap;

    transition:
        color 0.2s ease;
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 4px;

    height: 2px;

    background: var(--tn-yellow);

    transform: scaleX(0);

    transform-origin: center;

    transition:
        transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--tn-white);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.portal-button {
    min-height: 44px;

    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: var(--tn-radius-sm);

    background: var(--tn-yellow);

    color: var(--tn-black);

    text-decoration: none;

    font-size: 0.79rem;
    font-weight: 800;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.portal-button:hover {
    background: var(--tn-yellow-light);

    transform: translateY(-2px);
}

.mobile-menu-button {
    display: none;

    width: 44px;
    height: 44px;

    margin-left: auto;

    padding: 0;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: var(--tn-radius-sm);

    background:
        rgba(255, 255, 255, 0.025);

    cursor: pointer;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;
}

.mobile-menu-button span {
    width: 19px;
    height: 2px;

    display: block;

    background: var(--tn-white);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.mobile-menu-button.is-open span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    position: relative;

    width: 100%;

    padding:
        66px
        0
        26px;

    overflow: hidden;

    background: var(--tn-black);

    color: var(--tn-white);
}

.footer-topline {
    margin-bottom: 38px;

    display: flex;
    align-items: center;

    gap: 13px;
}

.footer-topline > span {
    width: 34px;
    height: 2px;

    display: block;

    background: var(--tn-yellow);
}

.footer-topline small {
    color: var(--tn-gray-500);

    font-size: 0.55rem;
    font-weight: 800;

    letter-spacing: 0.13em;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr
        0.7fr
        0.8fr
        0.8fr;

    gap: 55px;

    padding-bottom: 47px;
}

.footer-brand img {
    width: 165px;
    height: auto;

    margin-bottom: 18px;
}

.footer-brand p {
    max-width: 390px;

    margin-bottom: 0;

    color: #8e9699;

    font-size: 0.81rem;

    line-height: 1.72;
}

.footer-column {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 7px;
}

.footer-column strong {
    margin-bottom: 8px;

    color: #d9ddde;

    font-size: 0.76rem;
}

.footer-column a {
    min-height: 34px;

    display: inline-flex;
    align-items: center;

    color: #858d91;

    text-decoration: none;

    font-size: 0.79rem;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-column a:hover {
    color: var(--tn-yellow);

    transform: translateX(3px);
}

.footer-development {
    color: #5f686c;

    font-size: 0.68rem;
}

.footer-bottom {
    padding-top: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid rgba(255, 255, 255, 0.07);

    color: #60686c;

    font-size: 0.67rem;
}


/* =========================================================
   WHATSAPP FIXO
========================================================= */

.whatsapp-floating {
    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 9999;

    width: 58px;
    height: 58px;

    min-width: 58px;
    min-height: 58px;

    max-width: 58px;
    max-height: 58px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(37, 211, 102, 0.24);

    border-radius: 50%;

    background: #1d2427;

    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.28);

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.whatsapp-floating > svg {
    width: 29px;
    height: 29px;

    min-width: 29px;
    min-height: 29px;

    max-width: 29px;
    max-height: 29px;

    flex: 0 0 29px;

    fill: var(--tn-whatsapp);
}

.whatsapp-floating > svg path {
    fill: var(--tn-whatsapp);
}

.whatsapp-floating-ring {
    position: absolute;

    inset: 5px;

    border:
        1px solid rgba(37, 211, 102, 0.28);

    border-radius: 50%;

    pointer-events: none;
}

.whatsapp-floating-label {
    position: absolute;

    right: 70px;

    width: max-content;

    max-width: 180px;

    padding: 8px 10px;

    border-radius: 7px;

    background: #1d2427;

    color: var(--tn-white);

    font-size: 0.66rem;
    font-weight: 700;

    opacity: 0;

    pointer-events: none;

    transform: translateX(7px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.whatsapp-floating:hover {
    transform: translateY(-3px);

    box-shadow:
        0 19px 48px rgba(0, 0, 0, 0.32);
}

.whatsapp-floating:hover
.whatsapp-floating-label {
    opacity: 1;

    transform: translateX(0);
}


/* =========================================================
   REVEAL
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(22px);

    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   RESPONSIVIDADE GLOBAL
========================================================= */

@media (max-width: 1050px) {

    .mobile-menu-button {
        display: flex;
    }

    .main-nav {
        position: absolute;

        top: 76px;
        left: 0;
        right: 0;

        display: none;

        margin: 0;

        padding:
            18px
            6%
            24px;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        background: var(--tn-black-soft);

        border-top:
            1px solid rgba(255, 255, 255, 0.07);

        box-shadow:
            0 18px 40px rgba(0, 0, 0, 0.2);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        width: 100%;

        min-height: 48px;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.06);
    }

    .main-nav a::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns:
            1.2fr
            1fr
            1fr;
    }

    .footer-brand {
        grid-column:
            1 / -1;
    }
}


@media (max-width: 760px) {

    .nav-container {
        min-height: 69px;
    }

    .nav-logo {
        width: 134px;
    }

    .main-nav {
        top: 69px;
    }

    .portal-button {
        display: none;
    }

    .page-section {
        padding: 78px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;

        gap: 4px;
    }

    .whatsapp-floating {
        right: 16px;
        bottom: 16px;

        width: 54px;
        height: 54px;

        min-width: 54px;
        min-height: 54px;

        max-width: 54px;
        max-height: 54px;
    }

    .whatsapp-floating > svg {
        width: 27px;
        height: 27px;

        min-width: 27px;
        min-height: 27px;

        max-width: 27px;
        max-height: 27px;

        flex-basis: 27px;
    }

    .whatsapp-floating-label {
        display: none;
    }
}


/* =========================================================
   MOVIMENTO REDUZIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;

        transform: none;
    }

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }
}