:root {
    --navy: #193763;
    --navy-2: #102a4d;
    --green: #5d8a53;
    --green-2: #2f6b4d;
    --light: #f4f7f5;
    --ink: #152238;
    --muted: #5f6b78;
    --white: #fff;
    --line: #dfe7e2;
    --shadow: 0 18px 45px rgba(20,44,69,.12);
    --radius: 22px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
                 BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 40px), var(--max));
    margin-inline: auto;
}


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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #fff;
    padding: 12px;
    z-index: 999;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}


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

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255,255,255,.96);
    box-shadow: 0 1px 0 rgba(20,44,69,.08);
    backdrop-filter: blur(12px);
}

.header-shell {
    width: min(calc(100% - 40px), var(--max));
    height: 86px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    width: 235px;
    flex: none;
}

.brand img {
    width: 100%;
    height: 62px;
    object-fit: contain;
    object-position: left center;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 650;
    font-size: 15px;
}

.main-nav a {
    position: relative;
    padding: 10px 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: .25s;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--navy);
    margin: 5px;
}


/* =====================================================
   BOTOES
   ===================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 750;
    transition: .25s;
    border: 1px solid transparent;
}

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

.button-header {
    background: var(--green-2);
    color: #fff;
    white-space: nowrap;
}

.button-primary {
    background: #6f9d61;
    color: #fff;
}

.button-ghost {
    border-color: rgba(255,255,255,.6);
    color: #fff;
}

.button-ghost:hover {
    background: #fff;
    color: var(--navy);
}

.button-light {
    background: #fff;
    color: var(--navy);
}


/* =====================================================
   HERO
   ===================================================== */

.hero {
    min-height: 690px;
    position: relative;
    display: grid;
    align-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background: url('images/hero.jpg') center 42% / cover no-repeat;
    transform: scale(1.015);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(12,35,65,.94) 0%,
        rgba(12,35,65,.82) 42%,
        rgba(12,35,65,.2) 75%,
        rgba(12,35,65,.05) 100%
    );
}

.hero-content {
    position: relative;
    color: #fff;
    padding-block: 90px;
}

.hero-content > * {
    max-width: 690px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    font-weight: 800;
    color: #d7edcf;
}

.eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: currentColor;
}

.eyebrow-dark {
    color: var(--green-2);
}

h1,
h2,
h3 {
    line-height: 1.12;
    margin-top: 0;
}

h1 {
    font-size: clamp(42px,5vw,70px);
    letter-spacing: -.04em;
    margin: 20px 0 24px;
}

.hero p {
    font-size: 19px;
    color: #e5edf5;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 35px;
    flex-wrap: wrap;
}


/* =====================================================
   FAIXA DE INDICADORES
   ===================================================== */

.trust-strip {
    position: relative;
    margin-top: -38px;
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 25px 20px;
}

.stats-grid div {
    padding: 6px 25px;
    border-right: 1px solid var(--line);
}

.stats-grid div:last-child {
    border: 0;
}

.stats-grid strong,
.stats-grid span {
    display: block;
}

.stats-grid strong {
    color: var(--navy);
    font-size: 17px;
}

.stats-grid span {
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}


/* =====================================================
   SECOES
   ===================================================== */

.section {
    padding: 105px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 48px;
}

.section-heading.centered {
    text-align: center;
    margin-inline: auto;
}

.section-heading.centered .eyebrow {
    justify-content: center;
}

.section-heading h2,
.split-copy h2,
.cta-box h2 {
    font-size: clamp(34px,4vw,52px);
    letter-spacing: -.035em;
    margin: 15px 0 18px;
}

.section-heading p,
.split-copy > p {
    font-size: 18px;
    color: var(--muted);
}


/* =====================================================
   SERVICOS
   ===================================================== */

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

.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(20,44,69,.07);
    transition: .3s;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.service-card > img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 28px;
}

.card-number {
    font-weight: 850;
    color: var(--green);
    font-size: 14px;
}

.card-body h3 {
    font-size: 26px;
    color: var(--navy);
    margin: 8px 0 12px;
}

.card-body p {
    color: var(--muted);
}

.card-body ul {
    padding-left: 19px;
    margin-bottom: 0;
}

.card-body li {
    margin: 7px 0;
}


/* =====================================================
   DIFERENCIAIS
   ===================================================== */

.split-section {
    background: var(--light);
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.split-image {
    position: relative;
}

.split-image::before {
    content: "";
    position: absolute;
    left: -20px;
    bottom: -20px;
    width: 55%;
    height: 55%;
    background: #dbe8d8;
    border-radius: 28px;
}

.split-image img {
    position: relative;
    border-radius: 28px;
    box-shadow: var(--shadow);
    min-height: 570px;
    object-fit: cover;
}

.benefits {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.benefits > div {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 12px;
}

.benefits span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #deeadb;
    color: var(--green-2);
    display: grid;
    place-items: center;
    font-weight: 900;
}

.benefits p {
    margin: 0;
    color: var(--muted);
}

.benefits strong {
    display: block;
    color: var(--ink);
    font-size: 17px;
}

.text-link {
    font-weight: 800;
    color: var(--navy);
}

.text-link span {
    color: var(--green);
    margin-left: 6px;
}


/* =====================================================
   CLIENTES E LOGOS
   ===================================================== */

.clients {
    background: #fff;
}

.compact {
    margin-bottom: 30px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
}

.logo-grid > div {
    height: 135px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 22px;

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

    overflow: hidden;
    background: #fff;
}

.logo-grid img {
    display: block;
    width: 190px;
    height: 78px;
    max-width: 90%;
    max-height: 78px;
    object-fit: contain;
    object-position: center;
    filter: saturate(.95);
    transition: transform .25s, filter .25s;
}


/* Ajustes individuais */

.logo-grid img[src*="mademape"] {
    transform: scale(2.2);
}

.logo-grid img[src*="maq-tec"] {
    transform: scale(1.05);
}

.logo-grid img[src*="mazzuchelo"] {
    width: 160px;
    height: 88px;
    max-height: 88px;
}

.logo-grid img[src*="cargo-soft"] {
    transform: scale(1.05);
}

.logo-grid img[src*="viacao-castelo-branco"] {
    width: 155px;
    height: 88px;
    max-height: 88px;
}

.logo-grid img[src*="bio-analise"] {
    width: 205px;
}

.logo-grid img[src*="lb-log"] {
    width: 205px;
}

.logo-grid img[src*="coc-logo"] {
    width: 190px;
}


/* Hover das logos */

.logo-grid > div:hover img {
    filter: saturate(1.1);
}

.logo-grid > div:hover img:not([src*="mademape"]) {
    transform: scale(1.08);
}

.logo-grid > div:hover img[src*="mademape"] {
    transform: scale(2.3);
}


/* =====================================================
   CTA
   ===================================================== */

.cta-section {
    padding-top: 35px;
}

.cta-box {
    background: linear-gradient(135deg,var(--navy-2),#234c7d);
    color: #fff;
    border-radius: 28px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1.5fr .7fr;
    gap: 50px;
    align-items: center;
    box-shadow: var(--shadow);
}

.cta-box h2 {
    margin-bottom: 12px;
}

.cta-box p {
    color: #dbe5ef;
    font-size: 17px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.contact-link {
    color: #deeadb;
    text-decoration: underline;
    text-underline-offset: 4px;
}


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

.site-footer {
    background: #0e2038;
    color: #d8e2ec;
    padding: 70px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .6fr .8fr;
    gap: 70px;
}

.footer-brand img {
    width: 250px;
    height: 80px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
}

.footer-brand p {
    max-width: 420px;
    color: #aab9c8;
}

.footer-grid h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-grid a:hover {
    color: #9fc496;
}

.footer-bottom {
    margin-top: 45px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #93a4b4;
}


/* =====================================================
   WHATSAPP FLUTUANTE
   ===================================================== */

.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
    z-index: 50;
}

.floating-whatsapp:hover {
    transform: scale(1.06);
}


/* =====================================================
   HEADER V4.4
   ===================================================== */

.v44-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 99990 !important;
    width: 100% !important;
    min-height: 82px !important;
    background: #fff !important;
    border-bottom: 1px solid rgba(25,55,99,.10) !important;
    box-shadow: 0 8px 28px rgba(16,42,77,.08) !important;
}

body.admin-bar .v44-header {
    top: 32px !important;
}

.v44-header-shell {
    width: min(calc(100% - 40px),1180px) !important;
    height: 82px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 28px !important;
}

.v44-brand {
    display: flex !important;
    align-items: center !important;
    width: 220px !important;
    min-width: 220px !important;
    height: 66px !important;
}

.v44-brand img {
    display: block !important;
    width: 220px !important;
    height: 58px !important;
    max-width: 220px !important;
    object-fit: contain !important;
    object-position: left center !important;
    opacity: 1 !important;
}

.v44-nav {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 26px !important;
}

.v44-nav a {
    display: block !important;
    color: #193763 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    padding: 10px 0 !important;
    position: relative !important;
}

.v44-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: #5d8a53;
    transition: .2s;
}

.v44-nav a:hover::after {
    width: 100%;
}

.v44-whatsapp {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #2f6b4d !important;
    color: #fff !important;
    padding: 12px 18px !important;
    border-radius: 11px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    box-shadow: 0 8px 18px rgba(47,107,77,.18) !important;
}

.v44-toggle {
    display: none !important;
    border: 0 !important;
    background: transparent !important;
    padding: 8px !important;
}

.v44-toggle span {
    display: block !important;
    width: 26px !important;
    height: 2px !important;
    background: #193763 !important;
    margin: 5px 0 !important;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 980px) {

    .header-shell {
        height: 76px;
    }

    .brand {
        width: 205px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .button-header {
        display: none;
    }

    .main-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 76px;
        background: #fff;
        border-radius: 0 0 16px 16px;
        box-shadow: var(--shadow);
        padding: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

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

    .hero {
        min-height: 640px;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(12,35,65,.94),
            rgba(12,35,65,.7)
        );
    }

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

    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-card:last-child {
        grid-column: 1/-1;
    }

    .split-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .split-image img {
        min-height: 450px;
        width: 100%;
    }

    .logo-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .cta-box {
        grid-template-columns: 1fr;
    }

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

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

    .v44-header-shell {
        height: 74px !important;
    }

    .v44-header {
        min-height: 74px !important;
    }

    .v44-brand {
        width: 190px !important;
        min-width: 190px !important;
        height: 58px !important;
    }

    .v44-brand img {
        width: 190px !important;
        height: 50px !important;
    }

    .v44-toggle {
        display: block !important;
        margin-left: auto !important;
    }

    .v44-whatsapp {
        display: none !important;
    }

    .v44-nav {
        display: none !important;
        position: absolute !important;
        top: 74px !important;
        left: 14px !important;
        right: 14px !important;
        margin: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        background: #fff !important;
        padding: 12px 18px 18px !important;
        border-radius: 0 0 16px 16px !important;
        box-shadow: 0 18px 35px rgba(16,42,77,.16) !important;
    }

    .v44-nav.open {
        display: flex !important;
    }

    .v44-nav a {
        padding: 12px 4px !important;
    }
}


/* =====================================================
   CELULAR
   ===================================================== */

@media (max-width: 650px) {

    .container,
    .header-shell {
        width: min(calc(100% - 28px),var(--max));
    }

    .brand {
        width: 185px;
    }

    .hero {
        min-height: 670px;
    }

    .hero-media {
        background-position: 54% center;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(12,35,65,.7),
            rgba(12,35,65,.95) 58%,
            rgba(12,35,65,.98)
        );
    }

    .hero-content {
        align-self: end;
        padding: 100px 0 58px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .trust-strip {
        margin-top: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        border-radius: 0;
        padding: 10px 20px;
    }

    .stats-grid div {
        border-right: 0 !important;
        border-bottom: 1px solid var(--line) !important;
        padding: 14px 5px;
    }

    .stats-grid div:last-child {
        border: 0 !important;
    }

    .section {
        padding: 74px 0;
    }

    .section-heading h2,
    .split-copy h2,
    .cta-box h2 {
        font-size: 34px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card:last-child {
        grid-column: auto;
    }

    .service-card > img {
        height: 230px;
    }

    .split-image img {
        min-height: 380px;
    }

    .logo-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 12px;
    }

    .logo-grid > div {
        height: 110px;
        padding: 12px 14px;
    }

    .logo-grid img {
        width: 150px;
        height: 65px;
        max-width: 92%;
        max-height: 65px;
    }

    .logo-grid img[src*="mademape"] {
        transform: scale(2);
    }

    .logo-grid img[src*="mazzuchelo"],
    .logo-grid img[src*="viacao-castelo-branco"] {
        height: 72px;
        max-height: 72px;
    }

    .cta-box {
        padding: 35px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .floating-whatsapp {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
}


/* Barra WordPress quando logado */

@media (max-width: 782px) {
    body.admin-bar .v44-header {
        top: 46px !important;
    }
}

@media (max-width: 420px) {

    .v44-header-shell {
        width: calc(100% - 28px) !important;
    }

    .v44-brand {
        width: 165px !important;
        min-width: 165px !important;
    }

    .v44-brand img {
        width: 165px !important;
        height: 46px !important;
    }
}


/* =====================================================
   REDUCAO DE MOVIMENTO
   ===================================================== */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}