/* ==================================================
   PROVESOFT - IDENTIDADE VISUAL
   ================================================== */

:root {
    /* Cores institucionais */
    --ps-primary: #06284d;
    --ps-primary-dark: #041c36;
    --ps-secondary: #0069a6;

    --ps-green: #438e08;
    --ps-green-dark: #347406;
    --ps-green-light: #83be00;

    /* Cores neutras */
    --ps-white: #ffffff;
    --ps-background: #f4f7fa;
    --ps-border: #e2e8f0;

    --ps-text: #263548;
    --ps-text-muted: #64748b;

    /* Rodape */
    --ps-footer-text: #cbd5e1;
    --ps-footer-border: rgba(255, 255, 255, 0.12);

    /* Gradientes */
    --ps-gradient: linear-gradient(
        135deg,
        var(--ps-primary-dark),
        var(--ps-secondary)
    );

    --ps-gradient-green: linear-gradient(
        135deg,
        var(--ps-green-dark),
        var(--ps-green-light)
    );

    /* Tipografia */
    --ps-font: system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Arial, sans-serif;

    /* Dimensoes */
    --ps-radius-sm: 6px;
    --ps-radius: 12px;
    --ps-radius-lg: 20px;

    /* Sombras */
    --ps-shadow-sm: 0 2px 10px rgba(6, 40, 77, 0.06);
    --ps-shadow: 0 8px 30px rgba(6, 40, 77, 0.08);
    --ps-shadow-lg: 0 15px 40px rgba(6, 40, 77, 0.12);

    /* Transicoes */
    --ps-transition: 0.25s ease;
}


/* ==================================================
   CONFIGURACOES GLOBAIS
   ================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: var(--ps-font);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ps-text);
    background-color: var(--ps-white);
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--ps-secondary);
    text-decoration: none;
    transition: color var(--ps-transition);
}

a:hover {
    color: var(--ps-green);
}

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

:focus-visible {
    outline: 3px solid var(--ps-secondary);
    outline-offset: 4px;
}

::selection {
    color: var(--ps-white);
    background-color: var(--ps-primary);
}


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

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ps-primary);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
}

.ps-text-primary {
    color: var(--ps-primary) !important;
}

.ps-text-green {
    color: var(--ps-green) !important;
}

.ps-text-muted {
    color: var(--ps-text-muted) !important;
}


/* ==================================================
   CABECALHO INSTITUCIONAL
   ================================================== */

.provesoft-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: var(--ps-white);
    border-bottom: 1px solid var(--ps-border);
    box-shadow: var(--ps-shadow-sm);
}

.provesoft-header .navbar {
    min-height: 85px;
    padding: 12px 0;
}

.provesoft-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 25px;
    padding: 0;
}

.provesoft-logo {
    display: block;
    width: 220px;
    height: auto;
    object-fit: contain;
}

.provesoft-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--ps-white);
    background: var(--ps-gradient);
    border-radius: var(--ps-radius-sm);
    font-size: 1.2rem;
}

.provesoft-brand-name {
    color: var(--ps-primary);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.provesoft-header .navbar-nav {
    align-items: center;
    gap: 6px;
}

.provesoft-header .nav-link {
    position: relative;
    padding: 10px 14px !important;
    color: var(--ps-primary);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--ps-transition);
}

.provesoft-header .nav-link:hover,
.provesoft-header .nav-link.active {
    color: var(--ps-green);
}

.provesoft-header .nav-link::after {
    position: absolute;
    right: 14px;
    bottom: 4px;
    left: 14px;
    height: 2px;
    background-color: var(--ps-green);
    border-radius: 2px;
    content: "";
    transform: scaleX(0);
    transition: transform var(--ps-transition);
}

.provesoft-header .nav-link:hover::after,
.provesoft-header .nav-link.active::after {
    transform: scaleX(1);
}

.provesoft-header .navbar-toggler {
    padding: 8px 10px;
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius-sm);
}

.provesoft-header .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 105, 166, 0.15);
}


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

.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--ps-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition:
        color var(--ps-transition),
        background-color var(--ps-transition),
        border-color var(--ps-transition),
        box-shadow var(--ps-transition),
        transform var(--ps-transition);
}

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

.ps-btn:active {
    transform: translateY(0);
}

.ps-btn-primary {
    color: var(--ps-white);
    background-color: var(--ps-primary);
    border-color: var(--ps-primary);
}

.ps-btn-primary:hover {
    color: var(--ps-white);
    background-color: var(--ps-primary-dark);
    border-color: var(--ps-primary-dark);
    box-shadow: var(--ps-shadow);
}

.ps-btn-green {
    color: var(--ps-white);
    background-color: var(--ps-green-dark);
    border-color: var(--ps-green-dark);
}

.ps-btn-green:hover {
    color: var(--ps-white);
    background-color: #285c04;
    border-color: #285c04;
    box-shadow: var(--ps-shadow);
}

.ps-btn-outline {
    color: var(--ps-primary);
    background-color: transparent;
    border-color: var(--ps-primary);
}

.ps-btn-outline:hover {
    color: var(--ps-white);
    background-color: var(--ps-primary);
}

.ps-btn-white {
    color: var(--ps-primary);
    background-color: var(--ps-white);
    border-color: var(--ps-white);
}

.ps-btn-white:hover {
    color: var(--ps-primary-dark);
    background-color: var(--ps-background);
    border-color: var(--ps-background);
}

.ps-btn-outline-white {
    color: var(--ps-white);
    background-color: transparent;
    border-color: var(--ps-white);
}

.ps-btn-outline-white:hover {
    color: var(--ps-primary);
    background-color: var(--ps-white);
}


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

.ps-section {
    padding: 85px 0;
}

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

.ps-section-dark {
    color: var(--ps-white);
    background-color: var(--ps-primary);
}

.ps-section-dark h1,
.ps-section-dark h2,
.ps-section-dark h3,
.ps-section-dark h4 {
    color: var(--ps-white);
}

.ps-section-header {
    max-width: 750px;
    margin: 0 auto 45px;
    text-align: center;
}

.ps-section-header h2 {
    margin-bottom: 18px;
}

.ps-section-header p {
    margin-bottom: 0;
    color: var(--ps-text-muted);
    font-size: 1.05rem;
}

.ps-section-dark .ps-section-header p {
    color: var(--ps-footer-text);
}

.ps-section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--ps-green-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ps-section-dark .ps-section-label {
    color: var(--ps-green-light);
}

.ps-section-divider {
    width: 65px;
    height: 4px;
    margin: 20px auto;
    background: var(--ps-gradient-green);
    border-radius: 4px;
}


/* ==================================================
   HERO - PAGINA INICIAL
   ================================================== */

.ps-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 540px;
    overflow: hidden;
    padding: 90px 0;
    color: var(--ps-white);
    background: var(--ps-gradient);
}

.ps-hero::before {
    position: absolute;
    top: -180px;
    right: -180px;
    width: 500px;
    height: 500px;
    background-color: rgba(131, 190, 0, 0.08);
    border: 1px solid rgba(131, 190, 0, 0.16);
    border-radius: 50%;
    pointer-events: none;
    content: "";
}

.ps-hero::after {
    position: absolute;
    right: 12%;
    bottom: -220px;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
    content: "";
}

.ps-hero .container {
    position: relative;
    z-index: 1;
}

.ps-hero h1 {
    margin-bottom: 24px;
    color: var(--ps-white);
}

.ps-hero-highlight {
    color: var(--ps-green-light);
}

.ps-hero-description {
    max-width: 650px;
    margin-bottom: 32px;
    color: #e2e8f0;
    font-size: 1.15rem;
    line-height: 1.8;
}

.ps-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ps-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-hero-logo {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: var(--ps-radius-lg);
    box-shadow: var(--ps-shadow-lg);
}


/* ==================================================
   CARDS INSTITUCIONAIS
   ================================================== */

.ps-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
    background-color: var(--ps-white);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow-sm);
    transition:
        transform var(--ps-transition),
        border-color var(--ps-transition),
        box-shadow var(--ps-transition);
}

.ps-card:hover {
    transform: translateY(-5px);
    border-color: var(--ps-green);
    box-shadow: var(--ps-shadow);
}

.ps-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 22px;
    color: var(--ps-secondary);
    background-color: rgba(0, 105, 166, 0.08);
    border-radius: var(--ps-radius);
    font-size: 1.5rem;
}

.ps-card h3 {
    margin-bottom: 14px;
}

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

.ps-card .ps-card-action {
    margin-top: auto;
    padding-top: 12px;
}

.ps-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ps-green-dark);
    font-weight: 600;
}

.ps-card-link:hover {
    color: var(--ps-primary);
}


/* ==================================================
   PRODUTOS PROPRIOS
   ================================================== */

.ps-product-card {
    overflow: hidden;
    height: 100%;
    background-color: var(--ps-white);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow-sm);
    transition:
        transform var(--ps-transition),
        box-shadow var(--ps-transition);
}

.ps-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ps-shadow-lg);
}

.ps-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: 25px;
    background-color: var(--ps-background);
    border-bottom: 1px solid var(--ps-border);
}

.ps-product-image img {
    width: auto;
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
}

.ps-product-image i {
    color: var(--ps-primary);
    font-size: 3rem;
}

.ps-product-content {
    display: flex;
    flex-direction: column;
    padding: 28px;
}

.ps-product-content h3 {
    margin-bottom: 12px;
}

.ps-product-content p {
    color: var(--ps-text-muted);
}

.ps-product-label {
    align-self: flex-start;
    margin-bottom: 15px;
    padding: 5px 12px;
    color: var(--ps-green-dark);
    background-color: #edf5e5;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}


/* ==================================================
   CABECALHO DAS PAGINAS INTERNAS
   ================================================== */

.ps-page-header {
    padding: 65px 0;
    color: var(--ps-white);
    text-align: center;
    background: var(--ps-gradient);
}

.ps-page-header h1 {
    margin-bottom: 16px;
    color: var(--ps-white);
    font-size: clamp(2rem, 4vw, 3rem);
}

.ps-page-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #e2e8f0;
    font-size: 1.1rem;
}


/* ==================================================
   CHAMADA COMERCIAL
   ================================================== */

.ps-cta {
    position: relative;
    overflow: hidden;
    padding: 75px 0;
    color: var(--ps-white);
    text-align: center;
    background: var(--ps-gradient);
}

.ps-cta h2 {
    margin-bottom: 18px;
    color: var(--ps-white);
}

.ps-cta p {
    max-width: 650px;
    margin: 0 auto 28px;
    color: #e2e8f0;
    font-size: 1.05rem;
}

.ps-cta .ps-btn {
    margin: 5px;
}


/* ==================================================
   RODAPE INSTITUCIONAL
   ================================================== */

.provesoft-footer {
    flex-shrink: 0;
    color: var(--ps-footer-text);
    background-color: var(--ps-primary-dark);
}

.provesoft-footer-content {
    padding-top: 55px;
    padding-bottom: 45px;
}

.provesoft-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--ps-white);
    font-size: 1.5rem;
    font-weight: 700;
}

.provesoft-footer-brand:hover {
    color: var(--ps-white);
}

.provesoft-footer-brand i {
    color: var(--ps-green-light);
}

.provesoft-footer-logo {
    display: block;
    width: 205px;
    height: auto;
    padding: 8px;
    background-color: var(--ps-white);
    border-radius: var(--ps-radius-sm);
}

.provesoft-footer-description {
    max-width: 320px;
    margin-bottom: 15px;
    color: var(--ps-footer-text);
    font-size: 0.9rem;
    line-height: 1.8;
}

.provesoft-footer-title {
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 12px;
    color: var(--ps-white);
    font-size: 1rem;
    font-weight: 700;
}

.provesoft-footer-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--ps-green-light);
    content: "";
}

.provesoft-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.provesoft-footer-links li {
    margin-bottom: 10px;
}

.provesoft-footer-links a {
    color: var(--ps-footer-text);
    font-size: 0.9rem;
}

.provesoft-footer-links a:hover {
    color: var(--ps-green-light);
}

.provesoft-footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ps-green-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.provesoft-footer-contact:hover {
    color: var(--ps-white);
}

.provesoft-footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--ps-footer-border);
}

.provesoft-footer-copyright {
    margin: 0;
    color: var(--ps-footer-text);
    font-size: 0.82rem;
}

.provesoft-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
}

.provesoft-footer-legal a {
    color: var(--ps-footer-text);
    font-size: 0.82rem;
}

.provesoft-footer-legal a:hover {
    color: var(--ps-green-light);
}


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

.visually-hidden-focusable:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1100;
    padding: 12px 20px;
    color: var(--ps-white);
    background-color: var(--ps-primary);
    border-radius: var(--ps-radius-sm);
}


/* ==================================================
   RESPONSIVIDADE - TABLETS
   ================================================== */

@media (max-width: 991.98px) {

    .provesoft-header .navbar {
        min-height: 75px;
    }

    .provesoft-logo {
        width: 190px;
    }

    .provesoft-header .navbar-collapse {
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid var(--ps-border);
    }

    .provesoft-header .navbar-nav {
        align-items: stretch;
        gap: 2px;
    }

    .provesoft-header .nav-link {
        padding: 12px !important;
        border-radius: var(--ps-radius-sm);
    }

    .provesoft-header .nav-link::after {
        display: none;
    }

    .provesoft-header .nav-link:hover,
    .provesoft-header .nav-link.active {
        background-color: #edf5e5;
    }

    .ps-section {
        padding: 65px 0;
    }

    .ps-hero {
        min-height: auto;
        padding: 70px 0;
    }

    .ps-hero-visual {
        margin-top: 35px;
    }

    .ps-hero-logo {
        max-width: 320px;
    }

    .provesoft-footer-bottom {
        text-align: center;
    }

    .provesoft-footer-legal {
        justify-content: center;
    }
}


/* ==================================================
   RESPONSIVIDADE - SMARTPHONES
   ================================================== */

@media (max-width: 575.98px) {

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

    .provesoft-header .navbar {
        min-height: 65px;
        padding: 10px 0;
    }

    .provesoft-logo {
        width: 165px;
    }

    .provesoft-brand {
        margin-right: 10px;
    }

    .ps-hero {
        padding: 55px 0;
        text-align: center;
    }

    .ps-hero-description {
        font-size: 1rem;
    }

    .ps-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ps-hero-actions .ps-btn {
        width: 100%;
    }

    .ps-hero-logo {
        max-width: 260px;
    }

    .ps-section {
        padding: 50px 0;
    }

    .ps-section-header {
        margin-bottom: 30px;
    }

    .ps-section-header p {
        font-size: 1rem;
    }

    .ps-card {
        padding: 24px;
    }

    .ps-product-content {
        padding: 22px;
    }

    .ps-page-header {
        padding: 45px 0;
    }

    .ps-page-header p {
        font-size: 1rem;
    }

    .ps-cta {
        padding: 50px 0;
    }

    .ps-cta .ps-btn {
        display: flex;
        width: 100%;
        margin: 10px 0;
    }

    .provesoft-footer-content {
        padding-top: 40px;
        padding-bottom: 30px;
    }

    .provesoft-footer-description {
        max-width: none;
    }

    .provesoft-footer-logo {
        width: 180px;
    }

    .provesoft-footer-legal {
        gap: 12px;
    }
}


/* ==================================================
   PREFERENCIA POR MOVIMENTO REDUZIDO
   ================================================== */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ps-btn:hover,
    .ps-card:hover,
    .ps-product-card:hover {
        transform: none;
    }
}