/*
Theme Name: New Alliance Framework
Description: Framework institucional WordPress da New Alliance Tecnologia.
Version: 1.12.0
Requires at least: 6.4
Requires PHP: 8.3
Author: New Alliance Tecnologia
Text Domain: new-alliance-framework
*/

/* Base styles — Design System tokens (code-first, independente de theme.json runtime) */

:root {
    --na-container-max: 1280px;
    --na-gutter: 24px;
    --na-margin-mobile: 16px;
    --na-stack-xl: 120px;
    --na-stack-md: 64px;
    --na-stack-sm: 32px;

    --wp--preset--color--background: #131315;
    --wp--preset--color--on-background: #e5e1e4;
    --wp--preset--color--surface: #131315;
    --wp--preset--color--surface-deep: #050505;
    --wp--preset--color--surface-container: #201f21;
    --wp--preset--color--surface-container-low: #1c1b1d;
    --wp--preset--color--surface-container-lowest: #0e0e10;
    --wp--preset--color--surface-bright: #39393b;
    --wp--preset--color--on-surface: #e5e1e4;
    --wp--preset--color--on-surface-variant: #bfc7d1;
    --wp--preset--color--primary: #258dca;
    --wp--preset--color--on-primary: #ffffff;
    --wp--preset--color--primary-container: #258dca;
    --wp--preset--color--on-primary-container: #ffffff;
    --wp--preset--color--secondary: #00a79d;
    --wp--preset--color--tertiary: #5454d4;
    --wp--preset--gradient--brand-gradient: linear-gradient(135deg, #258dca 0%, #00a79d 50%, #5454d4 100%);
    --wp--preset--color--outline-variant: #3f4850;
    --wp--preset--color--border-muted: #232326;
    --wp--preset--color--text-dim: #a1a1aa;

    --wp--preset--font-family--display: Geist, system-ui, sans-serif;
    --wp--preset--font-family--body: Inter, system-ui, sans-serif;
    --wp--preset--font-family--mono: "JetBrains Mono", ui-monospace, monospace;

    --wp--preset--spacing--gutter: 24px;
    --wp--preset--spacing--stack-md: 64px;
    --wp--preset--spacing--stack-xl: 120px;
    --wp--preset--font-size--body-lg: 18px;
}

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

body {
    margin: 0;
    background-color: var(--wp--preset--color--background, #131315);
    color: var(--wp--preset--color--on-background, #e5e1e4);
    font-family: var(--wp--preset--font-family--body, Inter, sans-serif);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.na-main {
    max-width: var(--na-container-max);
    margin-inline: auto;
    padding-inline: var(--na-gutter);
}

@media (max-width: 768px) {
    .na-main {
        padding-inline: var(--na-margin-mobile);
    }
}

body.na-site {
    overflow-x: clip;
    max-width: 100%;
    padding-top: 72px;
}

.na-landing-canvas {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.has-global-padding > .na-landing-canvas .alignfull,
.is-layout-constrained > .na-landing-canvas .alignfull,
.na-landing-canvas .alignfull {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* -------------------------------------------------------------------------
   Botões code-style — padrão único (header, hero, CTA, captação)
   Referência: [ CALL_EXPERT ] — mono, uppercase, primary fill, borda sutil
   ------------------------------------------------------------------------- */

.na-btn,
.na-header__cta,
.na-hero__cta,
.na-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 44px;
    padding: 10px 20px;
    font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--wp--preset--color--on-primary, #00344f);
    background: var(--wp--preset--color--primary, #8fcdff);
    border: 1px solid rgb(143 205 255 / 20%);
    border-radius: 2px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
}

.na-btn:hover,
.na-btn:focus-visible,
.na-header__cta:hover,
.na-header__cta:focus-visible,
.na-hero__cta:hover,
.na-hero__cta:focus-visible,
.na-cta__button:hover,
.na-cta__button:focus-visible {
    background: var(--wp--preset--color--surface-bright, #39393b);
    color: var(--wp--preset--color--on-surface, #e5e1e4);
    border-color: rgb(143 205 255 / 35%);
    outline: none;
}

.na-btn--block {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 640px) {
    .na-btn--block-sm-auto {
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .na-btn,
    .na-header__cta,
    .na-hero__cta,
    .na-cta__button {
        transition: none;
    }
}

html {
    overflow-x: clip;
    scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Site navigation */
.na-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgb(19 19 21 / 80%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--wp--preset--color--border-muted, #232326);
}

.na-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--na-container-max, 1280px);
    margin-inline: auto;
    padding: 16px var(--na-gutter, 24px);
}

.na-header__actions {
    display: flex;
    align-items: center;
    gap: 32px;
}

.na-header__brand {
    text-decoration: none;
    color: var(--wp--preset--color--on-surface, #e5e1e4);
}

.na-header__name {
    font-family: var(--wp--preset--font-family--display, Geist, sans-serif);
    font-weight: 600;
    font-size: 1.125rem;
}

.na-header__logo {
    max-height: 36px;
    width: auto;
}

.na-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.na-header__nav .na-nav__list a,
.na-footer__nav .na-nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--wp--preset--color--text-dim, #a1a1aa);
    transition: color 0.15s ease;
}

.na-header__nav .na-nav__list a:hover,
.na-header__nav .na-nav__list a:focus,
.na-footer__nav .na-nav__list a:hover,
.na-footer__nav .na-nav__list a:focus {
    color: var(--wp--preset--color--primary, #8fcdff);
    outline: none;
}

.na-header__nav-cta {
    margin: 0;
    padding: 0;
}

.na-footer {
    margin-top: auto;
    padding-block: 64px 32px;
    background: var(--wp--preset--color--surface-deep, #050505);
    border-top: 1px solid rgb(137 146 155 / 10%);
}

.na-footer__grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(2, 1fr);
    max-width: var(--na-container-max, 1280px);
    margin-inline: auto;
    padding-inline: var(--na-gutter, 24px);
    margin-bottom: 80px;
}

@media (min-width: 768px) {
    .na-footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .na-footer__brand-col {
        grid-column: span 1;
    }
}

.na-footer__brand-col {
    grid-column: span 2;
}

@media (min-width: 768px) {
    .na-footer__brand-col {
        grid-column: span 1;
    }
}

.na-footer__col-title {
    display: block;
    margin-bottom: 16px;
    font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
    font-size: 11px;
    color: var(--wp--preset--color--on-surface, #e5e1e4);
    text-transform: uppercase;
}

.na-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.na-footer__links a {
    font-size: 14px;
    text-decoration: none;
    color: var(--wp--preset--color--text-dim, #a1a1aa);
    transition: color 0.15s ease;
}

.na-footer__links a:hover,
.na-footer__links a:focus {
    color: var(--wp--preset--color--primary, #8fcdff);
    outline: none;
}

.na-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    max-width: var(--na-container-max, 1280px);
    margin-inline: auto;
    padding: 40px var(--na-gutter, 24px) 0;
    border-top: 1px solid rgb(137 146 155 / 10%);
}

@media (min-width: 768px) {
    .na-footer__bottom {
        flex-direction: row;
    }
}

.na-footer__social {
    display: flex;
    gap: 32px;
    font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
    font-size: 10px;
    letter-spacing: 0.05em;
}

.na-footer__social a {
    text-decoration: none;
    color: var(--wp--preset--color--text-dim, #a1a1aa);
    transition: color 0.15s ease;
}

.na-footer__social a:hover,
.na-footer__social a:focus {
    color: var(--wp--preset--color--primary, #8fcdff);
    outline: none;
}

.na-footer__inner {
    max-width: var(--na-container-max, 1280px);
    margin-inline: auto;
    padding-inline: var(--na-gutter, 24px);
}

.na-footer__brand {
    margin-bottom: 24px;
}

.na-footer__name {
    display: block;
    font-weight: 600;
    color: var(--wp--preset--color--primary, #8fcdff);
    margin-bottom: 8px;
}

.na-footer__tagline {
    font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
    font-size: 11px;
    color: var(--wp--preset--color--text-dim, #a1a1aa);
    opacity: 0.6;
}

.na-footer__nav {
    margin-bottom: 24px;
}

.na-footer__copy {
    margin: 0;
    font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wp--preset--color--text-dim, #a1a1aa);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .na-header__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 10px;
        row-gap: 0;
        padding-block: 10px;
        padding-inline: var(--na-margin-mobile, 16px);
    }

    .na-header__brand {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .na-header__logo {
        max-height: 32px;
        width: auto;
    }

    .na-header__actions {
        display: contents;
    }

    .na-header__menu-toggle {
        grid-column: 2;
        grid-row: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 0;
        width: 40px;
        height: 40px;
        border: 1px solid rgb(143 205 255 / 14%);
        border-radius: 4px;
        background: rgb(143 205 255 / 4%);
        color: var(--wp--preset--color--on-surface, #e5e1e4);
        cursor: pointer;
        flex-shrink: 0;
    }

    .na-header__menu-toggle[aria-expanded='true'] {
        border-color: rgb(143 205 255 / 35%);
        background: rgb(143 205 255 / 10%);
    }

    .na-header__nav {
        grid-column: 1 / -1;
        grid-row: 2;
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--wp--preset--color--border-muted, #232326);
    }

    .na-header__nav.is-open {
        display: flex;
    }

    .na-nav__list {
        flex-direction: column;
        gap: 4px;
    }

    .na-header__nav .na-nav__list a {
        min-height: 44px;
        padding-inline: 4px;
    }

    .na-header__nav-cta {
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--wp--preset--color--border-muted, #232326);
    }

    .na-header__nav-cta .na-header__cta {
        width: 100%;
        justify-content: center;
    }

    .na-footer__grid {
        padding-inline: var(--na-margin-mobile, 16px);
        margin-bottom: 48px;
    }

    body.na-site {
        padding-top: 56px;
    }

    html {
        scroll-padding-top: 64px;
    }
}

@media (min-width: 769px) {
    .na-header__menu-toggle {
        display: none;
    }

    .na-header__nav {
        display: flex;
        align-items: center;
        gap: 32px;
    }
}
