/* ===================================================
   style.css — CSS puro, mobile-first, sem frameworks
   Breakpoints: 320px, 768px, 1024px, 1440px
   =================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--cor-fundo, #0a0a0a);
    color: var(--cor-texto, #e0e0e0);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cor-primaria, #25D366); text-decoration: none; transition: color .2s; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; color: #fff; }

/* ---- Typography (fluid clamp) ---- */
h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
h2 { font-size: clamp(1.375rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
p { font-size: clamp(0.95rem, 1.5vw, 1.1rem); }

/* ---- Container ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all .25s ease;
    text-align: center;
    min-height: 48px;
    line-height: 1.2;
}
.btn-primary {
    background: var(--cor-primaria, #25D366);
    color: #000;
}
.btn-primary:hover {
    opacity: .9;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, .3);
}

/* ===================================================
   HEADER
   =================================================== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(10, 10, 10, .95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    border-bottom: 1px solid var(--cor-borda, #222);
    padding: 0 20px;
}
.header-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.header-logo {
    font-size: 1.25rem; font-weight: 700; color: #fff;
}
.header-logo:hover { text-decoration: none; color: var(--cor-primaria); }
.header-nav {
    display: flex; gap: 24px; list-style: none; padding: 0; margin: 0;
}
.header-nav li { display: flex; }
.header-nav a {
    color: var(--cor-texto-muted, #999); font-size: .875rem;
    transition: color .2s; padding: 4px 0;
}
.header-nav a:hover { color: #fff; text-decoration: none; }
.header-cta-btn {
    background: var(--cor-primaria, #25D366); color: #000;
    padding: 8px 20px; border-radius: 6px;
    font-weight: 700; font-size: .875rem;
    transition: background .2s;
    min-height: 48px;
    display: flex; align-items: center;
}
.header-cta-btn:hover { background: #1fb855; text-decoration: none; }

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 8px;
    min-width: 48px; min-height: 48px; justify-content: center; align-items: center;
}
.hamburger span {
    width: 24px; height: 2px; background: #fff;
    transition: all .3s ease;
}

@media (max-width: 768px) {
    .header-nav {
        position: fixed; top: 64px; left: 0; right: 0;
        background: rgba(10, 10, 10, .98);
        flex-direction: column; padding: 20px; gap: 16px;
        transform: translateY(-120%);
        transition: transform .3s ease;
        border-bottom: 1px solid var(--cor-borda, #222);
    }
    .header-nav.open { transform: translateY(0); }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .header-cta-btn { display: none; }
}

/* ===================================================
   SECTIONS — Geral
   =================================================== */
.section {
    padding: 80px 0;
    position: relative;
}
.section-tag {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: clamp(.75rem, 1.2vw, .875rem);
    color: var(--cor-primaria, #25D366);
    margin-bottom: 8px;
}
.section-title {
    margin-bottom: 12px;
}
.section-subtitle {
    color: var(--cor-texto-muted, #999);
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: clamp(.95rem, 1.5vw, 1.1rem);
}
.section-intro {
    color: var(--cor-texto-muted, #999);
    max-width: 700px;
    margin: 0 auto 48px;
    text-align: center;
}
.section .container { text-align: center; }

/* ===================================================
   HERO
   =================================================== */
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 80px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.section-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,.7) 0%, rgba(10,10,10,.95) 100%);
    z-index: 0;
}
.hero-container { position: relative; z-index: 1; max-width: 800px; }
.hero-headline {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, var(--cor-primaria, #25D366) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subheadline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--cor-texto-muted, #ccc);
    margin-bottom: 12px;
}
.hero-description {
    color: var(--cor-texto-muted, #999);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.btn-hero {
    font-size: 1.1rem;
    padding: 16px 40px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.4); }
    50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
}

/* ===================================================
   BENEFÍCIOS
   =================================================== */
.section-beneficios {
    background: var(--cor-card, #141414);
}
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
}
.benefit-card {
    background: var(--cor-fundo, #0a0a0a);
    border: 1px solid var(--cor-borda, #222);
    border-radius: 12px;
    padding: 28px;
    transition: transform .2s, border-color .2s;
}
.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--cor-primaria, #25D366);
}
.benefit-icon {
    color: var(--cor-primaria, #25D366);
    margin-bottom: 16px;
}
.benefit-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}
.benefit-card p {
    color: var(--cor-texto-muted, #999);
    font-size: .95rem;
}

@media (min-width: 768px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===================================================
   CTA / STEPS
   =================================================== */
.section-cta {
    background: var(--cor-fundo, #0a0a0a);
}
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}
.step-card {
    background: var(--cor-card, #141414);
    border: 1px solid var(--cor-borda, #222);
    border-radius: 12px;
    padding: 24px;
    position: relative;
}
.step-number {
    display: inline-block;
    width: 40px; height: 40px;
    background: var(--cor-primaria, #25D366);
    color: #000;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 12px;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step-card p { color: var(--cor-texto-muted, #999); font-size: .9rem; }

.cta-highlight {
    background: linear-gradient(135deg, var(--cor-secundaria, #075E54), var(--cor-primaria, #25D366));
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}
.cta-highlight h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: 12px; }
.cta-highlight p { color: rgba(255,255,255,.9); }

@media (min-width: 768px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===================================================
   DEPOIMENTOS
   =================================================== */
.section-depoimentos {
    background: var(--cor-card, #141414);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
}
.testimonial-card {
    background: var(--cor-fundo, #0a0a0a);
    border: 1px solid var(--cor-borda, #222);
    border-radius: 12px;
    padding: 24px;
}
.testimonial-stars { margin-bottom: 12px; display: flex; gap: 2px; }
.testimonial-card blockquote { margin: 0; }
.testimonial-card blockquote p {
    color: var(--cor-texto, #e0e0e0);
    font-size: .95rem;
    font-style: italic;
    line-height: 1.7;
}
.testimonial-author {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--cor-borda, #222);
}
.testimonial-author strong { color: #fff; display: block; }
.testimonial-author span { color: var(--cor-texto-muted, #999); font-size: .85rem; }

@media (min-width: 768px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================
   FAQ
   =================================================== */
.section-faq {
    background: var(--cor-fundo, #0a0a0a);
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.faq-item {
    border-bottom: 1px solid var(--cor-borda, #222);
}
.faq-question {
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    text-align: left;
    font-family: inherit;
    min-height: 48px;
}
.faq-question:hover { color: var(--cor-primaria, #25D366); }
.faq-chevron {
    flex-shrink: 0;
    transition: transform .3s ease;
    color: var(--cor-texto-muted, #999);
}
.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 0 18px;
    overflow: hidden;
}
.faq-answer[hidden] { display: none; }
.faq-short {
    color: var(--cor-texto, #e0e0e0);
    margin-bottom: 12px;
    font-size: .95rem;
}
.faq-long {
    color: var(--cor-texto-muted, #999);
    font-size: .9rem;
    line-height: 1.7;
}
.faq-long a { color: var(--cor-primaria, #25D366); }

/* ===================================================
   FORMULÁRIO
   =================================================== */
.section-formulario {
    background: var(--cor-card, #141414);
}
.lead-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    position: relative;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: .875rem;
    color: var(--cor-texto-muted, #ccc);
}
.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--cor-fundo, #0a0a0a);
    border: 1px solid var(--cor-borda, #333);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .2s;
    min-height: 48px;
}
.form-group input:focus {
    outline: none;
    border-color: var(--cor-primaria, #25D366);
}
.form-group input.error {
    border-color: #ef4444;
}
.field-error {
    display: block;
    color: #ef4444;
    font-size: .8rem;
    margin-top: 4px;
    min-height: 18px;
}
.btn-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 14px;
}
.form-message {
    text-align: center;
    margin-top: 16px;
    font-size: .9rem;
    min-height: 24px;
}
.form-message.success { color: #4ade80; }
.form-message.error { color: #ef4444; }

/* ===================================================
   MESH / SAIBA MAIS
   =================================================== */
.section-mesh {
    background: var(--cor-fundo, #0a0a0a);
    padding: 60px 0;
}
.mesh-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
}
.mesh-card {
    display: block;
    background: var(--cor-card, #141414);
    border: 1px solid var(--cor-borda, #222);
    border-radius: 10px;
    padding: 24px;
    transition: transform .2s, border-color .2s;
}
.mesh-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
    border-color: var(--cor-primaria, #25D366);
}
.mesh-card h3 { font-size: 1rem; margin-bottom: 8px; }
.mesh-card p { color: var(--cor-texto-muted, #999); font-size: .875rem; margin-bottom: 12px; }
.mesh-card-link { color: var(--cor-primaria, #25D366); font-size: .85rem; font-weight: 600; }

@media (min-width: 768px) {
    .mesh-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .mesh-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
    background: var(--cor-card, #141414);
    border-top: 1px solid var(--cor-borda, #222);
    padding: 48px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
}
.footer-logo {
    font-size: 1.25rem;
    color: #fff;
    display: block;
    margin-bottom: 8px;
}
.footer-brand p {
    color: var(--cor-texto-muted, #999);
    font-size: .9rem;
    max-width: 300px;
}
.footer-links h4, .footer-mesh h4 {
    color: #fff;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
}
.footer-links ul, .footer-mesh ul {
    list-style: none; padding: 0; margin: 0;
}
.footer-links li, .footer-mesh li { margin-bottom: 6px; }
.footer-links a, .footer-mesh a {
    color: var(--cor-texto-muted, #999);
    font-size: .875rem;
    transition: color .2s;
}
.footer-links a:hover, .footer-mesh a:hover { color: var(--cor-primaria, #25D366); }
.footer-bottom {
    margin-top: 32px;
    padding: 20px 0;
    border-top: 1px solid var(--cor-borda, #222);
}
.footer-bottom p {
    color: var(--cor-texto-muted, #888);
    font-size: .8rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

/* ===================================================
   WHATSAPP FLUTUANTE
   =================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .4);
    transition: transform .2s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    text-decoration: none;
}

/* ===================================================
   BACK TO TOP
   =================================================== */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px; height: 44px;
    background: var(--cor-card, #222);
    border: 1px solid var(--cor-borda, #333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    transition: opacity .3s, transform .3s;
    color: #fff;
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: var(--cor-primaria, #25D366); color: #000; }

/* ===================================================
   SCROLL PROGRESS
   =================================================== */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--cor-primaria, #25D366);
    z-index: 10001;
    transition: width .1s linear;
    width: 0;
}

/* ===================================================
   CLUSTER PAGE
   =================================================== */
.breadcrumb {
    padding: 80px 0 0;
    font-size: .85rem;
    color: var(--cor-texto-muted, #999);
}
.breadcrumb a { color: var(--cor-texto-muted, #999); }
.breadcrumb a:hover { color: var(--cor-primaria); }
.breadcrumb span { margin: 0 8px; }

.cluster-main { padding: 24px 0 60px; }
.cluster-article { max-width: 800px; }
.article-header { margin-bottom: 32px; text-align: left; }
.article-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 12px;
}
.article-meta {
    color: var(--cor-texto-muted, #888);
    font-size: .85rem;
}
.article-content {
    text-align: left;
    line-height: 1.8;
}
.article-content h2 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}
.article-content p {
    margin-bottom: 16px;
    color: var(--cor-texto, #e0e0e0);
}
.article-content a {
    color: var(--cor-primaria, #25D366);
    text-decoration: underline;
}
.article-content strong { color: #fff; }

.back-to-pillar {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--cor-borda, #222);
    text-align: left;
}
.back-to-pillar a {
    color: var(--cor-primaria, #25D366);
    font-weight: 600;
}

.cluster-faq {
    margin-top: 40px;
    text-align: left;
}
.cluster-faq h2 {
    margin-bottom: 20px;
}

.cluster-related {
    margin-top: 48px;
    text-align: left;
}
.cluster-related h2 {
    margin-bottom: 20px;
    text-align: center;
}
.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.related-card {
    display: block;
    background: var(--cor-card, #141414);
    border: 1px solid var(--cor-borda, #222);
    border-radius: 10px;
    padding: 20px;
    transition: transform .2s, border-color .2s;
}
.related-card:hover {
    transform: translateY(-2px);
    border-color: var(--cor-primaria, #25D366);
    text-decoration: none;
}
.related-card h3 { font-size: .95rem; margin-bottom: 6px; }
.related-card p { color: var(--cor-texto-muted, #999); font-size: .85rem; margin-bottom: 8px; }
.related-card span { color: var(--cor-primaria, #25D366); font-size: .8rem; font-weight: 600; }

@media (min-width: 768px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===================================================
   RESPONSIVIDADE EXTRA
   =================================================== */
@media (max-width: 320px) {
    .container { padding: 0 12px; }
    .section { padding: 48px 0; }
    .hero-headline { font-size: 1.5rem; }
}

@media (min-width: 1440px) {
    .container { max-width: 1320px; }
}

/* ---- Acessibilidade ---- */
:focus-visible {
    outline: 2px solid var(--cor-primaria, #25D366);
    outline-offset: 2px;
}
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- Loading spinner ---- */
.btn-submit.loading {
    pointer-events: none;
    opacity: .7;
}
.btn-submit.loading::after {
    content: '';
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    margin-left: 8px;
    animation: spin .6s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Print ---- */
@media print {
    .site-header, .whatsapp-float, .back-to-top, #scroll-progress { display: none !important; }
    body { background: #fff; color: #000; }
    .section { padding: 20px 0; }
}
