/* HEADER */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(2, 6, 23, .85);
    backdrop-filter: blur(18px);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.logo img {
    height: 55px;
}


/* ====== HEADER SITE RAIZ ======= */
.sr-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(10,10,15,.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--primary);
    transition: .3s;
}
.sr-header.scrolled{
    background:#0f172a;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.sr-header .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:80px;
}
.sr-logo img{
    max-height:45px;
    display:block;
}
.sr-desktop-menu,
.sr-header-cta{
    display:none;
}

/* BOTÃO MOBILE */
.sr-menu-toggle{
    width:50px;
    height:50px;
    border:none;
    border-radius:12px;
    background:#1e293b;
    color:#fff;
    cursor:pointer;
    font-size:1.2rem;
}

/* OVERLAY */
.sr-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    opacity:0;
    visibility:hidden;
    transition:.35s;
    z-index:998;
}
.sr-overlay.active{
    opacity:1;
    visibility:visible;
}

/* MENU LATERAL */
.sr-mobile-menu{
    position:fixed;
    top:0;
    right:-100%;
    width:320px;
    max-width:90vw;
    height:100dvh;
    background:#0f172a;
    z-index:9999;
    display:flex;
    flex-direction:column;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    transition: right .45s cubic-bezier(.4,0,.2,1);
    box-sizing:border-box;
}
.sr-mobile-menu.active{
    right:0;
}
.sr-mobile-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:25px;
    border-bottom:1px solid rgba(255,255,255,.08);
}
.sr-mobile-header img{
    height:40px;
}
.sr-close-menu{
    background:none;
    border:none;
    color:#fff;
    font-size:1.5rem;
    cursor:pointer;
}
.sr-mobile-menu nav{
    flex:1;
    width:100%;
    overflow-x:hidden;
}
.sr-mobile-menu ul{
    width:100%;
    margin:0;
    padding:0;
    list-style:none;
    overflow-x:hidden;
}
.sr-mobile-menu li{
    margin-bottom:5px;
}
.sr-mobile-menu a{
    display:block;
    width:100%;
    padding:10px 16px;
    color:#fff;
    text-decoration:none;
    border-radius:12px;
    box-sizing:border-box;
    word-break:break-word;
    border-bottom: 1px solid transparent;
    transition:.3s;
}
.sr-mobile-menu a:hover{
    background:rgba(255,255,255,.08);
    border-bottom: 1px solid var(--primary);
    transition:.3s;
}
.sr-menu-title{
    color:#94a3b8;
    font-size:.8rem;
    text-transform:uppercase;
    letter-spacing:2px;
    padding:20px 15px 10px;
}
.sr-mobile-btn{
    display:block;
    width: 100%;
    max-width: 90% !important;
    margin:20px;
    text-align:center;
    padding:16px;
    border-radius:14px;
    background:linear-gradient(135deg,#2563eb,#3b82f6);
    color:#fff;
    text-decoration:none;
    font-weight:700;
}


/* BLOQUEIA SCROLL */
body.menu-open{
    overflow:hidden;
    touch-action:none;
}

/* DESKTOP */
@media(min-width:992px){
    .sr-menu-toggle{
        display:none;
    }
    .sr-desktop-menu{
        display:block;
    }
    .sr-desktop-menu ul{
        display:flex;
        align-items:center;
        gap:30px;
        list-style:none;
    }
    .sr-desktop-menu a{
        color:#fff;
        text-decoration:none;
        font-weight:500;
        transition:.3s;
        position:relative;
    }
    .sr-desktop-menu a::after{
        content:'';
        position:absolute;
        left:0;
        bottom:-8px;
        width:0;
        height:2px;
        background:#3b82f6;
        transition:.3s;
    }
    .sr-desktop-menu a:hover::after{
        width:100%;
    }
    .sr-header-cta{
        display:flex;
        align-items:center;
        justify-content:center;
        height:48px;
        padding:18px 11px;
        border-radius:12px;
        background:#3b82f6;
        color:#fff;
        text-decoration:none;
        font-weight:600;
    }
    .sr-header-cta:hover{
        opacity: 90%
    }
}



.container {
    width: 90%;
    max-width: 1280px;
    margin: auto;
}
section{
    padding-block:clamp(80px,8vw,140px);
    scroll-margin-top: 100px;
}

.section-header{
    text-align:center;
    max-width:850px;
    margin:0 auto 60px;
}


/* =========== BOTÕES ============== */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 34px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}
.btn-primary {
    background: var(--primary);
    color: var(--dark);
}
.btn-primary:hover {
    transform: translateY(-3px);
}
.btn-secondary {
    border: 1px solid rgba(255, 255, 255, .15);
    color: var(--light);
}
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}



/* =========== HERO ============= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}
.hero-content {
    max-width: 700px;
}
.hero-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(0, 255, 136, .08);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 25px;
}
.hero-content p {
    font-size: 1.1rem;
    margin: 25px 0 40px;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-image {
    position: relative;
}
.hero-image::before {
    content: "";
    position: absolute;
    inset: -20px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(0, 255, 136, .15), transparent);
    z-index: -1;
}
.hero-image img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
}
@media(max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image img {
        max-height: 500px;
        margin: 0 auto;
        display: block;
    }

    .hero-buttons {
        justify-content: center;
    }
}
@media(max-width: 992px) {
    .hero-content,
    .grid-2,
    .cards,
    .extras-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    nav ul {
        gap: 15px;
    }
}
@media(max-width: 768px) {

    .header .container {
        flex-direction: column;
        gap: 20px;
    }

    .hero {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

}


/*======== BREADCRUMB ==============*/
.hero-breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

/* BREADCRUMB */
.breadcrumb {
    padding: 120px 0 30px;
    font-size: .9rem;
}
.breadcrumb .container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.breadcrumb a {
    color: var(--gray) !important;
    text-decoration: none;
}
.hero-breadcrumb a:hover{
    color: var(--primary);
    cursor:pointer;
}
.breadcrumb strong {
    color: var(--primary);
}


/* CARDS GENÉRICOS */
.card {
    background: var(--secondary);
    padding: 40px;
    border-radius: var(--radius);
}

/* GRID BASE */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* ======= FOOTER PRINCIPAL ======= */
.footer{
    background:#0f172a;
    color:#e5e7eb;
    padding:80px 0 0;
    position:relative;
    overflow:hidden;
}
.footer::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:1px;
    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.2),
        transparent
    );
}

/* ======GRID SUPERIOR ======== */
.footer-top{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr 1fr;
    gap:50px;
    margin-bottom:60px;
}

/* ======MARCA ======= */
.footer-brand img{
    max-width:180px;
    margin-bottom:20px;
}
.footer-brand h3{
    font-size:1.5rem;
    margin-bottom:15px;
    color:#fff;
}
.footer-brand p{
    line-height:1.8;
    color:#94a3b8;
    font-size:.95rem;
}

/* ====== DIFERENCIAIS ======== */
.footer-badges{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:25px;
}
.footer-badges span{
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    padding:8px 12px;
    border-radius:30px;
    font-size:.80rem;
    color:#cbd5e1;
    transition:.3s;
}
.footer-badges span:hover{
    transform:translateY(-2px);
    background:rgba(255,255,255,.08);
}

/* ======== COLUNAS ======== */
.footer-column h3{
    color:#fff;
    margin-bottom:20px;
    font-size:1.05rem;
}
.footer-column ul{
    list-style:none;
    padding:0;
    margin:0;
}
.footer-column li{
    margin-bottom:12px;
}
.footer-column a{
    color:#94a3b8;
    text-decoration:none;
    transition:.3s;
}
.footer-column a:hover{
    color:#fff;
    padding-left:5px;
}

/* ======= ESTATÍSTICAS ======== */
.footer-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin:60px 0;
}
.stat-item{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    padding:30px;
    text-align:center;
}
.stat-item strong{
    display:block;
    font-size:2rem;
    color:#fff;
    margin-bottom:10px;
}
.stat-item span{
    color:#94a3b8;
    font-size:.9rem;
}

.stat-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: blur(20px);
    transition: .4s !important;
}
.stat-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(0, 255, 136, .08);
    border-radius: 50%;
    top: -50px;
    right: -50px;

    filter: blur(30px);
}
.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 136, .25);
	transition: .4s !important;
}
.stat-card strong {
    display: block;
    font-size: 3rem;
    color: #00ff88;
    margin-bottom: 15px;
}
.stat-card span {
    color: #cbd5e1;
}

/* ======== REDES SOCIAIS ======= */
.footer-social{
    text-align:center;
    margin-bottom:60px;
}
.footer-social h3{
    margin-bottom:25px;
    color:#fff;
}
.social-links{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:15px;
}
.social-links a{
    width:55px;
    height:55px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#fff;
    font-size:1.2rem;

    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);

    transition:.3s;
}
.social-links a:hover{
    transform:translateY(-4px);
    background:#2563eb;
}

/* ===== CTA ======= */
.footer-cta{
    text-align:center;
    max-width:850px;
    margin:0 auto 70px;
    padding:50px;

    border-radius:30px;

    background:linear-gradient(
        135deg,
        rgba(37,99,235,.15),
        rgba(59,130,246,.05)
    );

    border:1px solid rgba(255,255,255,.08);
}
.footer-cta h3{
    color:#fff;
    font-size:2rem;
    margin-bottom:20px;
}
.footer-cta p{
    color:#cbd5e1;
    line-height:1.8;
    margin-bottom:30px;
}
.btn-footer{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:16px 35px;

    background:#2563eb;
    color:#fff;
    text-decoration:none;

    border-radius:12px;

    font-weight:600;

    transition:.3s;
}
.btn-footer:hover{
    background:#1d4ed8;
    transform:translateY(-3px);
}

/* ======== TEXTO SEO ========= */
.footer-seo{
    max-width:1000px;
    margin:0 auto 50px;
    text-align:center;
}
.footer-seo p{
    color:#94a3b8;
    line-height:1.9;
    font-size:.92rem;
}

/* ======== LINKS LEGAIS ======= */
.footer-legal-links{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:25px;
    padding:30px 0;
    border-top:1px solid var(--primary);
}
.footer-legal-links a{
    color:#94a3b8;
    text-decoration:none;
    transition:.3s;
}
.footer-legal-links a:hover{
    color:#fff;
}

/* ====== COPYRIGHT ========= */
.footer-bottom{
    text-align:center;
    padding:30px 0 50px;
}
.footer-bottom p{
    margin:8px 0;
    color:#64748b;
    font-size:.9rem;
}

/* ======= TABLET ======== */
@media(max-width:992px){

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

    .footer-brand{
        grid-column:span 2;
    }

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

}

/* ======= MOBILE ======== */
@media(max-width:768px){

    .footer{
        padding-top:60px;
    }

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

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

    .footer-column{
        text-align:center;
    }

    .footer-brand{
        text-align:center;
    }

    .footer-badges{
        justify-content:center;
    }

    .footer-cta{
        padding:35px 25px;
    }

    .footer-cta h3{
        font-size:1.6rem;
    }

    .footer-stats{
        gap:15px;
    }

    .stat-item{
        padding:25px;
    }

    .footer-legal-links{
        flex-direction:column;
        gap:15px;
    }

}

/* ====== SMARTPHONE PEQUENO ======= */

@media(max-width:480px){

    .footer-brand h3{
        font-size:1.3rem;
    }

    .footer-cta h3{
        font-size:1.4rem;
    }

    .btn-footer{
        width:100%;
    }

    .social-links a{
        width:50px;
        height:50px;
    }

}


/* ======= PROCESSO ============ */
.processo {
    background: #0d1117;
}
.processo .cards {
    grid-template-columns: repeat(3, 1fr);
}
.processo .card h3 {
    color: var(--primary);
}
@media(max-width:992px) {

    .processo .cards {
        grid-template-columns: 1fr;
    }

}


/* =========== ARTICLE.CSS | SITE RAIZ ========= */
/* BREADCRUMB */
.breadcrumb {
    padding: 120px 0 30px;
    font-size: .9rem;
}
.breadcrumb .container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
}
.breadcrumb strong {
    color: var(--primary);
}

/* HERO DO ARTIGO */
.article-hero {
    padding: 40px 0 80px;
}
.article-hero .container {
    max-width: 900px;
}
.article-category {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(0, 255, 136, .1);
    color: var(--primary);
    margin-bottom: 25px;
    font-size: .85rem;
    font-weight: 600;
}
.article-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 25px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    color: var(--gray);
}
.article-hero img {
    width: 100%;
    border-radius: 24px;
    display: block;
}

/* LAYOUT */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
}

/* CONTEÚDO */
.article-content {
    padding-bottom: 100px;
}
.article-content article {
    max-width: 100%;
}
.article-content h2 {
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 2rem;
    line-height: 1.3;
}
.article-content h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.article-content p {
    margin-bottom: 24px;
    line-height: 1.9;
    color: #d7d7d7;
    font-size: 1.1rem;
}
.article-content ul,
.article-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}
.article-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}
.article-content a {
    color: var(--primary);
}
.article-content blockquote {
    margin: 40px 0;
    padding: 30px;
    border-left: 4px solid var(--primary);
    background: rgba(255, 255, 255, .03);
    border-radius: 12px;
}

/* SUMÁRIO */
.sumario {
    background: var(--secondary);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 50px;
}
.sumario h2 {
    margin-top: 0;
}
.sumario ul {
    list-style: none;
    padding: 0;
}
.sumario li {
    margin-bottom: 15px;
}
.sumario a {
    text-decoration: none;
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}
.widget {
    background: var(--secondary);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
}
.widget h3 {
    margin-bottom: 20px;
}
.widget ul {
    list-style: none;
    padding: 0;
}
.widget li {
    margin-bottom: 15px;
}
.widget a {
    color: var(--gray);
    text-decoration: none;
    transition: .3s;
}
.widget a:hover {
    color: var(--primary);
}

/* CTA ARTIGO */
.article-cta {
    margin: 70px 0;
    padding: 50px;
    border-radius: 24px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 255, 136, .1), rgba(15, 23, 42, 1));
}
.article-cta h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.article-cta p {
    margin-bottom: 30px;
}

/* FAQ */
.faq {
    margin-top: 70px;
}
.faq-item {
    background: var(--secondary);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 20px;
}
.faq-item h3 {
    margin-top: 0;
}

/* AUTOR */
.author-box {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 60px;
    padding: 30px;
    border-radius: 20px;
    background: var(--secondary);
}
.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}
.author-info h4 {
    margin-bottom: 10px;
}

/* COMPARTILHAMENTO */
.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.share-buttons a {
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    background: var(--secondary);
    transition: .3s;
}
.share-buttons a:hover {
    transform: translateY(-3px);
}

/* ARTIGOS RELACIONADOS */
.artigos-relacionados {
    padding: 100px 0;
}
.artigos-relacionados h2 {
    text-align: center;
    margin-bottom: 50px;
}

/* BARRA DE LEITURA */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary);
    z-index: 9999;
}

/* TABELAS */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
}
.article-content th,
.article-content td {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .08);
}
.article-content th {
    background: var(--secondary);
}

/* IMAGENS */
.article-content img {
    width: 100%;
    border-radius: 20px;
    margin: 40px 0;
}

/* RESPONSIVO */
@media(max-width:1200px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: 0;
    }
}
@media(max-width:768px) {
    .article-hero h1 {
        font-size: 2.2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-content p {
        font-size: 1rem;
    }

    .article-cta {
        padding: 30px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }
}