/* ==================================================
   layout.css
   Aqui você mexe em:
   - header e navegação
   - footer
   - títulos de seção
   - animações de scroll
   - comportamento responsivo estrutural
   ================================================== */

section:nth-of-type(even) {
    background-color: var(--cinza-muito-claro);
}

section:nth-of-type(odd) {
    background-color: var(--branco);
}

.hero,
.cta,
footer,
.entry-products {
    background-color: initial;
}

.services {
    background-color: var(--cinza-muito-claro);
}

.features {
    background-color: var(--branco);
}

.agents {
    background-color: var(--cinza-muito-claro);
}

.faq {
    background-color: var(--branco);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title p {
    color: var(--azul-profundo) !important;
    text-align: left;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgb(255, 255, 255);
    box-shadow: var(--sombra-suave);
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 35px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 0.90rem;
    font-weight: 500;
    position: relative;
    color: var(--azul-profundo);
}

nav ul li a:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--verde-esmeralda-digital);
    transition: var(--transicao);
}

nav ul li a:hover:after {
    width: 100%;
}

nav ul li .btn-primary {
    padding: 10px 25px;
}

footer {
    background-color: var(--azul-profundo);
    color: var(--branco);
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 35px;
    width: auto;
    margin-bottom: 15px;
}

.footer-about p,
.footer-links a,
.footer-contact p,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-about p { margin-bottom: 0; }
.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--branco);
}

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

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--verde-esmeralda-digital);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--verde-esmeralda-digital);
    width: 16px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom p { color: rgba(255, 255, 255, 0.5); }

footer.agent-footer {
    padding: 30px 0 15px;
}
footer.agent-footer .footer-container {
    margin-bottom: 20px;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}
footer.agent-footer .footer-bottom {
    padding-top: 15px;
    font-size: 0.85rem;
}
footer.agent-footer .footer-heading {
    font-size: 1rem;
    margin-bottom: 10px;
}
footer.agent-footer .footer-about p,
footer.agent-footer .footer-links a,
footer.agent-footer .footer-contact p {
    font-size: 0.85rem;
}
footer.agent-footer .footer-logo img {
    height: 30px;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.js-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-scroll.scrolled {
    opacity: 1;
    transform: none;
}

.js-scroll:nth-child(odd),
.js-scroll:nth-child(even) {
    transform: translateY(30px);
}

.hero p,
.agent-hero p,
.about-hero p,
.cta p,
.agent-cta p,
.use-case-card p {
    color: var(--branco) !important;
}

.agent-hero h1,
.cta h2,
.agent-cta h2,
.use-case-card h3 {
    color: var(--branco) !important;
}

section:nth-of-type(even) h2,
section.features h2,
section.faq h2,
section.agent-benefits h2,
section.use-cases h2,
section.pricing-section h2 {
    color: var(--azul-profundo) !important;
}

section:nth-of-type(even) p,
section.features p,
section.faq p,
section.agent-benefits p,
section.use-cases p,
section.pricing-section p {
    color: var(--cinza-escuro);
}
@media (min-width: 769px) and (max-width: 1023px) {
    .footer-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "about about"
            "nav solutions"
            "contact contact";
        gap: 24px 24px;
        text-align: center;
    }

    .footer-about {
        grid-area: about;
        text-align: center;
    }

    .footer-about p {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .footer-links:nth-of-type(1) {
        grid-area: nav;
        text-align: center;
    }

    .footer-links:nth-of-type(2) {
        grid-area: solutions;
        text-align: center;
    }

    .footer-contact {
        grid-area: contact;
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-about p,
    .footer-links a,
    .footer-contact p,
    .footer-contact a {
        text-align: center;
    }
}

@media (max-width: 1023px) {
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--branco);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transicao);
        z-index: 1001;
        padding: 80px 20px 20px;
        display: flex;
        flex-direction: column;
    }

    nav.active { right: 0; }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    nav ul li {
        margin: 0 0 25px;
        width: 100%;
    }

    nav ul li a {
        font-size: 1.1rem;
    }

    nav ul li .btn-primary {
        width: 100%;
        max-width: none;
        margin-top: 10px;
    }
}

@media (max-width: 992px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.2rem; }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.3rem; }
    h2 { font-size: 2rem; }
    section { padding: 60px 0; }

    .mobile-menu-btn { display: block; z-index: 1002; }

    /* =========================
       FOOTER MOBILE / TABLET
       Estrutura:
       1) logo + texto em cima
       2) navegação e soluções lado a lado
       3) contato embaixo
    ========================= */
    .footer-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "about about"
            "nav solutions"
            "contact contact";
        gap: 24px 20px; /* ALTERE AQUI:
                           24px = espaço vertical
                           20px = espaço horizontal */
        text-align: center;
    }

    /* BLOCO DE CIMA: logo + descrição */
    .footer-about {
        grid-area: about;
        text-align: center;
    }

    .footer-logo img {
        margin-bottom: 12px; /* ALTERE AQUI: espaço entre logo e texto */
    }

    .footer-about p {
        margin-bottom: 0;
        max-width: 420px; /* ALTERE AQUI: largura máxima do texto */
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    /* LINHA DO MEIO: navegação e soluções lado a lado */
    .footer-links:nth-of-type(1) {
        grid-area: nav;
        text-align: center;
    }

    .footer-links:nth-of-type(2) {
        grid-area: solutions;
        text-align: center;
    }

    .footer-links ul {
        margin-bottom: 0;
    }

    /* BLOCO DE BAIXO: contato */
    .footer-contact {
        grid-area: contact;
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
}
