/* ── AGTI brand tokens ───────────────────────────────────────────────────── */
/* Logo: AG white + TI teal (#63baa8) on navy. Accent = teal only.           */

/* ── B2B Nav ─────────────────────────────────────────────────────────────── */
body#index #header,
body.page-index #header,
body#contact #header,
body.page-contact #header,
body.cms-id-3 #header,
body.cms-id-4 #header {
    position: relative;
    background: #0b1120 !important;
}

body#index .header-top--b2b,
body.page-index .header-top--b2b,
body#contact .header-top--b2b-solid,
body.page-contact .header-top--b2b-solid,
body.cms-id-3 .header-top--b2b-solid,
body.cms-id-4 .header-top--b2b-solid {
    position: relative;
    background: #0b1120 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body#index .header-top--b2b #_desktop_logo,
body.page-index .header-top--b2b #_desktop_logo,
body#contact .header-top--b2b #_desktop_logo,
body.page-contact .header-top--b2b #_desktop_logo,
body.cms-id-3 .header-top--b2b #_desktop_logo,
body.cms-id-4 .header-top--b2b #_desktop_logo {
    flex-shrink: 0;
}

body#index .header-top--b2b #_desktop_logo img.logo,
body.page-index .header-top--b2b #_desktop_logo img.logo,
body#contact .header-top--b2b #_desktop_logo img.logo,
body.page-contact .header-top--b2b #_desktop_logo img.logo,
body.cms-id-3 .header-top--b2b #_desktop_logo img.logo,
body.cms-id-4 .header-top--b2b #_desktop_logo img.logo {
    display: block;
    width: auto !important;
    max-width: 120px !important;
    max-height: 40px !important;
    height: auto !important;
    object-fit: contain;
}

.agti-b2b-nav {
    margin-left: auto;
}

.agti-b2b-nav__checkbox {
    display: none;
}

.agti-b2b-nav__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    margin: 0;
}

.agti-b2b-nav__menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 1.75rem;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.agti-b2b-nav__menu li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.agti-b2b-nav__menu a {
    color: rgba(226, 232, 240, 0.88) !important;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.agti-b2b-nav__menu a:hover {
    color: #63baa8 !important;
}

.agti-b2b-nav__cta {
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    background: #63baa8 !important;
    color: #0b1120 !important;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: none;
}

.agti-b2b-nav__cta:hover {
    color: #0b1120 !important;
    background: #4fa897 !important;
}

@media (max-width: 991px) {
    #index .header-top--b2b .d-flex,
    #contact .header-top--b2b .d-flex,
    .cms-id-3 .header-top--b2b .d-flex,
    .cms-id-4 .header-top--b2b .d-flex {
        flex-wrap: nowrap;
    }

    .agti-b2b-nav__toggle {
        display: inline-flex;
    }

    .agti-b2b-nav__menu {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        min-width: 240px;
        max-width: min(280px, calc(100vw - 2rem));
        padding: 0.4rem 0;
        border-radius: 6px;
        background: #0b1120;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
        z-index: 310;
    }

    .agti-b2b-nav__menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .agti-b2b-nav__menu li:last-child {
        border-bottom: none;
    }

    .agti-b2b-nav__menu a {
        display: block;
        padding: 0.75rem 1.15rem;
        font-size: 0.75rem;
    }

    .agti-b2b-nav__checkbox:checked ~ .agti-b2b-nav__menu {
        display: flex;
    }

    .agti-b2b-nav {
        position: relative;
    }

    body#index #header,
    body.page-index #header,
    body#contact #header,
    body.page-contact #header,
    body.cms-id-3 #header,
    body.cms-id-4 #header {
        overflow: visible;
        z-index: 300;
    }
}

/* ── Home scope ──────────────────────────────────────────────────────────── */
.agti-home {
    --agti-ink: #0b1120;
    --agti-navy: #152033;
    --agti-teal: #63baa8;
    --agti-teal-deep: #4fa897;
    --agti-surface: #f7f8fa;
    --agti-surface-alt: #eef1f5;
    --agti-text: #152033;
    --agti-muted: #5b677a;
    --agti-line: #e4e8ee;
    --agti-card: #ffffff;
    color: var(--agti-text);
    font-family: 'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #fff;
}

#index .page-home {
    padding-top: 0;
    margin-top: 0;
}

.agti-home #problema,
.agti-home #tecnologias,
.agti-home #solucoes,
.agti-home #solucoes-engenharia,
.agti-home #solucoes-saas,
.agti-home #repertorio,
.agti-home #como-trabalhamos {
    scroll-margin-top: 5rem;
}

.agti-home section {
    padding: 4rem 1rem !important;
}

@media (min-width: 992px) {
    .agti-home section {
        padding: 5.5rem 1.5rem !important;
    }
}

.agti-home__badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 2px;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--agti-teal-deep);
    background: rgba(99, 186, 168, 0.1);
    border: 1px solid rgba(99, 186, 168, 0.28);
    margin-bottom: 1.5rem;
}

.agti-home__eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--agti-teal-deep);
    margin-bottom: 0.85rem;
}

.agti-home__eyebrow--center {
    text-align: center;
}

.agti-home__title {
    font-family: 'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;
    font-size: clamp(1.7rem, 3.2vw, 2.65rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.025em;
    color: var(--agti-ink);
    max-width: 760px;
    margin: 0 0 1.15rem;
}

.agti-home__title--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.agti-home__lead {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.7;
    color: var(--agti-muted);
    max-width: 640px;
    margin: 0 0 2rem;
}

.agti-home__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.45rem;
    border-radius: 4px;
    font-weight: 650;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.agti-home__btn--primary {
    background: var(--agti-teal);
    color: var(--agti-ink) !important;
    border: 1px solid var(--agti-teal);
    box-shadow: 0 4px 12px rgba(99, 186, 168, 0.25);
}

.agti-home__btn--primary:hover {
    background: var(--agti-teal-deep);
    border-color: var(--agti-teal-deep);
    color: var(--agti-ink) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 186, 168, 0.35);
}

.agti-home__btn--ghost {
    background: transparent;
    color: var(--agti-ink) !important;
    border: 1px solid var(--agti-line);
}

.agti-home__btn--ghost:hover {
    border-color: var(--agti-teal);
    color: var(--agti-teal-deep) !important;
    background: transparent;
    transform: none;
}

.agti-home__hero .agti-home__btn--ghost {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2);
}

.agti-home__hero .agti-home__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff !important;
}

.agti-home__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Hero — light editorial */
.agti-home__hero {
    position: relative;
    overflow: hidden;
    text-align: left;
    color: #fff;
    padding-top: 5.5rem !important;
    padding-bottom: 5rem !important;
    background: linear-gradient(145deg, #0b1120 0%, #152033 100%);
    border-bottom: none;
}

.agti-home__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 85% 0%, rgba(99, 186, 168, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.agti-home__hero > .container {
    position: relative;
    z-index: 1;
    padding-bottom: 0 !important;
    max-width: 920px;
}

.agti-home__hero .agti-home__title {
    color: #fff;
    background: none;
    -webkit-text-fill-color: unset;
    margin-left: 0;
    margin-right: 0;
}

.agti-home__hero .agti-home__lead {
    margin-left: 0;
    margin-right: 0;
    color: #94a3b8;
}

.agti-home__strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.75rem;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.agti-home__strip li {
    position: relative;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e2e8f0;
    padding-left: 0.9rem;
}

.agti-home__strip li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--agti-teal);
}

/* Problem */
.agti-home__problem {
    background: #f8fafc;
    text-align: left;
}

.agti-home__problem .agti-home__title {
    max-width: none;
}

.agti-home__problem-text p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--agti-muted);
    margin-bottom: 1rem;
}

.agti-home__problem-text p:last-child {
    margin-bottom: 0;
    color: var(--agti-text);
    font-weight: 600;
}

/* Flow diagram */
.agti-flow {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(11, 17, 32, 0.05);
}

.agti-flow__row {
    display: grid;
    gap: 0.75rem;
}

.agti-flow__row--top,
.agti-flow__row--middle {
    grid-template-columns: 1fr 1fr;
}

.agti-flow__row--base {
    grid-template-columns: 1fr;
    justify-items: stretch;
}

.agti-flow__connector {
    width: 1px;
    height: 14px;
    margin: 0 auto;
    background: var(--agti-line);
}

.agti-flow__node {
    padding: 0.9rem 1rem;
    border-radius: 4px;
    font-size: 0.84rem;
    font-weight: 550;
    line-height: 1.4;
    text-align: center;
    background: var(--agti-surface);
    color: var(--agti-navy);
    border: 1px solid var(--agti-line);
}

.agti-flow__node--accent {
    background: rgba(99, 186, 168, 0.1);
    color: #2f6f63;
    border-color: rgba(99, 186, 168, 0.35);
    font-weight: 650;
}

.agti-flow__node--base {
    font-weight: 650;
    color: var(--agti-ink);
    background: #fff;
}

@media (max-width: 575px) {
    .agti-flow__row--top,
    .agti-flow__row--middle {
        grid-template-columns: 1fr;
    }
}

/* Signals */
.agti-home__signals {
    margin-top: 3rem;
    padding: 1.75rem 1.75rem 1.5rem;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--agti-line);
}

.agti-home__signals h3 {
    margin: 0 0 1.25rem;
    color: var(--agti-ink);
    font-size: 1.2rem;
    font-weight: 700;
}

.agti-home__signals-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.agti-home__signals-list li {
    position: relative;
    padding-left: 1.15rem;
    color: var(--agti-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

.agti-home__signals-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--agti-teal);
}

.agti-home__signals-conclusion {
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--agti-line);
    color: var(--agti-text);
    font-weight: 650;
    line-height: 1.65;
    font-size: 0.98rem;
}

/* Cost */
.agti-home__cost {
    max-width: 820px;
    margin: 4rem auto 0;
    padding: 2.5rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(11, 17, 32, 0.02);
}

.agti-home__cost .agti-home__title {
    max-width: 720px;
}

/* Tech logos */
.agti-home__tech-logos {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.agti-home__tech-logos-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a94a6;
    margin-bottom: 1.25rem;
}

.agti-home__tech-logos-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.agti-home__tech-logo {
    font-size: 0.9rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: #7a8496;
    filter: none;
    opacity: 1;
}

/* Pillars — light, not dark tech block */
.agti-home__pillars {
    background: #fff;
    color: var(--agti-text);
    border-top: 1px solid var(--agti-line);
}

.agti-home__pillars .agti-home__title {
    color: var(--agti-ink);
}

.agti-home__pillars-sub {
    text-align: center;
    color: var(--agti-muted);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    line-height: 1.65;
}

.agti-home__pillar-card {
    height: 100%;
    padding: 2rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--agti-teal);
    box-shadow: 0 4px 6px -1px rgba(11, 17, 32, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agti-home__pillar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(11, 17, 32, 0.05);
}

.agti-home__pillar-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--agti-ink);
    margin-bottom: 0.75rem;
}

.agti-home__pillar-intro {
    color: var(--agti-muted);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.agti-home__pillar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agti-home__pillar-list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.8rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--agti-muted);
}

.agti-home__pillar-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--agti-teal);
}

/* Expertise */
.agti-home__expertise {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.agti-home__expertise .agti-home__title,
.agti-home__expertise .agti-home__pillars-sub {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.agti-home__expertise-card {
    height: 100%;
    padding: 1.75rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 2px solid var(--agti-teal);
    box-shadow: 0 4px 6px -1px rgba(11, 17, 32, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agti-home__expertise-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(11, 17, 32, 0.05);
}

.agti-home__expertise-card > span {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--agti-teal-deep);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.agti-home__expertise-card h3 {
    margin: 0 0 0.55rem;
    color: var(--agti-ink);
    font-size: 1.02rem;
    font-weight: 700;
}

.agti-home__expertise-card p {
    margin: 0;
    color: var(--agti-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Why / method */
.agti-home__why {
    background: #f8fafc;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.agti-home__why .agti-home__title {
    color: var(--agti-ink);
    margin-left: auto;
    margin-right: auto;
}

.agti-home__why-card {
    height: 100%;
    padding: 2rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-align: left;
    box-shadow: 0 4px 6px -1px rgba(11, 17, 32, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agti-home__why-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(11, 17, 32, 0.05);
}

.agti-home__why-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: rgba(99, 186, 168, 0.12);
    color: var(--agti-teal-deep);
    font-weight: 750;
    font-size: 0.8rem;
    margin-bottom: 0.9rem;
}

.agti-home__why-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--agti-ink);
    margin-bottom: 0.5rem;
}

.agti-home__why-card p {
    font-size: 0.9rem;
    color: var(--agti-muted);
    margin: 0;
    line-height: 1.6;
}

/* CTA — single dark closing block */
.agti-home__cta {
    text-align: center;
    color: var(--agti-ink);
    background: #fff;
    border-top: none;
}

.agti-home__cta .agti-home__title {
    color: var(--agti-ink);
    -webkit-text-fill-color: unset;
    background: none;
    margin-left: auto;
    margin-right: auto;
}

.agti-home__cta .agti-home__lead {
    color: var(--agti-muted);
    margin-left: auto;
    margin-right: auto;
}

.agti-home__cta-box {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.agti-home__cta .agti-home__btn--primary {
    background: var(--agti-teal);
    border-color: var(--agti-teal);
    color: var(--agti-ink) !important;
    box-shadow: 0 4px 12px rgba(99, 186, 168, 0.25);
}

.agti-home__cta .agti-home__btn--primary:hover {
    background: var(--agti-teal-deep);
    border-color: var(--agti-teal-deep);
    color: var(--agti-ink) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 186, 168, 0.35);
}

.agti-home__cta .agti-home__actions {
    justify-content: center;
}

/* ── Mobile / tablet ─────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .agti-home {
        overflow-x: clip;
        max-width: 100%;
    }

    .agti-home__hero {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .agti-home #problema,
    .agti-home #tecnologias,
    .agti-home #solucoes,
    .agti-home #solucoes-engenharia,
    .agti-home #solucoes-saas,
    .agti-home #repertorio,
    .agti-home #como-trabalhamos {
        scroll-margin-top: 4.25rem;
    }

    .agti-home .container {
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }

    .agti-home__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 360px;
    }

    .agti-home__btn {
        width: 100%;
    }

    .agti-home__signals-list {
        grid-template-columns: 1fr;
    }

    .agti-home__pillars-sub {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .agti-home__hero .agti-home__title {
        font-size: clamp(1.55rem, 6.5vw, 1.95rem);
    }
    
    .agti-home__cost {
        padding: 1.5rem;
    }

    .agti-home__strip {
        flex-direction: column;
        gap: 0.65rem;
    }

    .agti-home__signals {
        padding: 1.35rem;
    }

    .agti-home__tech-logos-list {
        gap: 0.85rem 1.25rem;
    }
}

@media (max-width: 575px) {
    .agti-home section {
        padding-top: 2.75rem !important;
        padding-bottom: 2.75rem !important;
    }

    .agti-home__badge {
        font-size: 0.68rem;
        padding: 0.3rem 0.7rem;
    }
}
