/**
 * Social MAD — Flexible Content (Home blocos modulares).
 *
 * Estilos das presets de seção (fundo, espaçamento, container, alinhamento)
 * + dos 10 layouts de bloco. Mantém o visual do tema (dark mode, tipografia,
 * radius, container) — sem CSS livre por bloco.
 */

/* ============================================================
 *  ESTILO BASE DE TODA SEÇÃO FLEX
 * ============================================================ */
.sm-flex {
        position: relative;
        width: 100%;
        color: var(--text-color);
}
.sm-flex--has-divider {
        border-bottom: 1px solid var(--border-color);
}

/* Fundos (presets) */
.sm-flex-bg--default { background: transparent; }
.sm-flex-bg--dark    { background: #0a0a0a; }
.sm-flex-bg--darker  { background: #000000; }
.sm-flex-bg--card    { background: linear-gradient(180deg, rgba(52,52,52,0.35) 0%, rgba(7,7,7,0.9) 100%); }
.sm-flex-bg--accent  {
        background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(207,207,207,0.85) 100%);
        color: #0b0b0b;
}
.sm-flex-bg--accent .sm-flex-kicker,
.sm-flex-bg--accent .sm-flex-title,
.sm-flex-bg--accent .sm-flex-desc { color: #0b0b0b; }
.sm-flex-bg--accent .sm-flex-service,
.sm-flex-bg--accent .sm-flex-diff,
.sm-flex-bg--accent .sm-flex-stat-card,
.sm-flex-bg--accent .sm-flex-process-step,
.sm-flex-bg--accent .sm-flex-testimonial,
.sm-flex-bg--accent .sm-flex-plan,
.sm-flex-bg--accent .sm-flex-faq-item {
        background: rgba(255,255,255,0.6);
        border-color: rgba(0,0,0,0.12);
        color: #0b0b0b;
}
.sm-flex-bg--tech {
        background:
                linear-gradient(rgba(156, 154, 154, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(156, 154, 154, 0.05) 1px, transparent 1px),
                #070707;
        background-size: 60px 60px, 60px 60px, auto;
}

/* Espaçamento vertical (presets) */
.sm-flex-pad--sm { padding: 40px 0; }
.sm-flex-pad--md { padding: 70px 0; }
.sm-flex-pad--lg { padding: 110px 0; }
.sm-flex-pad--xl { padding: 150px 0; }
@media (min-width: 1024px) {
        .sm-flex-pad--sm { padding: 60px 0; }
        .sm-flex-pad--md { padding: 100px 0; }
        .sm-flex-pad--lg { padding: 140px 0; }
        .sm-flex-pad--xl { padding: 180px 0; }
}

/* Container (presets) */
.sm-flex-container { width: min(100% - 40px, var(--container, 1200px)); margin-inline: auto; position: relative; }
.sm-flex-container--narrow { max-width: 880px; }
.sm-flex-container--wide   { max-width: 1400px; width: min(100% - 40px, 1400px); }
.sm-flex-container--full   { width: 100%; max-width: none; padding-inline: 20px; }

/* Cabeçalho de seção compartilhado */
.sm-flex-head { max-width: 760px; margin-bottom: 50px; }
.sm-flex-head--center { margin-inline: auto; text-align: center; }
.sm-flex-kicker {
        display: inline-block;
        color: var(--primary-2);
        font-size: 0.85rem;
        font-weight: 800;
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-bottom: 14px;
}
.sm-flex-title {
        font-size: clamp(2rem, 3.6vw, 3rem);
        line-height: 1.1;
        letter-spacing: -0.04em;
        margin: 0 0 16px;
        font-weight: 900;
}
.sm-flex-desc {
        color: var(--muted-color);
        font-size: 1.1rem;
        line-height: 1.6;
        margin: 0;
}

/* Botões reutilizáveis (caso o bloco não use o helper PHP) */
.sm-flex .sm-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 26px;
        border-radius: 999px;
        font-weight: 800;
        font-size: 0.95rem;
        text-decoration: none;
        transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
        border: 1px solid transparent;
        cursor: pointer;
}
.sm-flex .sm-btn-primary {
        background: linear-gradient(135deg, #ffffff 0%, #cfcfcf 100%);
        color: #0b0b0b;
        border-color: rgba(255,255,255,0.6);
        box-shadow: 0 10px 30px rgba(255,255,255,0.08);
}
.sm-flex .sm-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(255,255,255,0.18); }
.sm-flex .sm-btn-ghost {
        background: rgba(255,255,255,0.05);
        color: #fff;
        border-color: rgba(255,255,255,0.25);
}
.sm-flex .sm-btn-ghost:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.5); transform: translateY(-2px); }
.sm-flex .sm-btn-lg { padding: 18px 34px; font-size: 1.05rem; }
.sm-flex-bg--accent .sm-btn-primary { background: #0b0b0b; color: #fff; border-color: #0b0b0b; }
.sm-flex-bg--accent .sm-btn-ghost   { background: rgba(0,0,0,0.06); color: #0b0b0b; border-color: rgba(0,0,0,0.25); }

/* ============================================================
 *  1. HERO
 * ============================================================ */
.sm-flex--hero { padding-top: 120px; padding-bottom: 80px; }
@media (min-width: 1024px) { .sm-flex--hero { padding: 140px 0 120px; } }
.sm-flex-hero-grid {
        display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
@media (min-width: 1024px) {
        .sm-flex-hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
}
.sm-flex-hero-eyebrow {
        display: inline-flex; align-items: center; gap: 10px;
        padding: 8px 16px; border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.2);
        background: rgba(255,255,255,0.05);
        color: #fff; font-size: 0.85rem; font-weight: 800;
        margin-bottom: 25px;
}
.sm-flex-hero-dot {
        width: 8px; height: 8px; border-radius: 999px;
        background: var(--primary-2);
        box-shadow: 0 0 0 6px rgba(255,255,255,0.15);
        animation: pulseAnim 2s infinite;
        flex-shrink: 0;
}
.sm-flex-hero-title {
        font-size: clamp(3rem, 6vw, 5.5rem);
        line-height: 1; letter-spacing: -0.05em;
        margin: 0 0 25px; font-weight: 900;
}
.sm-flex-hero-title-grad {
        display: inline-block;
        background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
        -webkit-background-clip: text; background-clip: text;
        color: transparent;
}
.sm-flex-hero-desc {
        color: var(--muted-color); font-size: 1.2rem; line-height: 1.7;
        max-width: 600px; margin: 0 0 40px;
}
.sm-flex-hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.sm-flex-hero-visual { position: relative; min-height: auto; }
@media (min-width: 1024px) { .sm-flex-hero-visual { min-height: 500px; } }
.sm-flex-hero-image { position: relative; }
.sm-flex-hero-image img {
        width: 100%; height: auto; display: block;
        border-radius: 30px;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-custom);
}
.sm-flex-hero-panel {
        position: relative; margin-left: auto;
        width: min(100%, 480px);
        border: 1px solid var(--border-color);
        border-radius: 30px; padding: 30px;
        box-shadow: var(--shadow-custom);
        backdrop-filter: blur(20px);
        overflow: hidden;
        background: linear-gradient(180deg, rgba(52,52,52,0.4), rgba(7,7,7,0.8));
        animation: dashboardFloat 6s ease-in-out infinite;
}
.sm-flex-hero-panel-head {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 30px;
}
.sm-flex-hero-panel-head strong { display: block; font-size: 1.1rem; }
.sm-flex-hero-panel-head span { color: var(--muted-color); font-size: 0.85rem; }
.sm-flex-hero-panel-pill {
        display: inline-flex; align-items: center; gap: 10px;
        padding: 8px 16px; border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.2);
        background: rgba(255,255,255,0.05);
        color: #fff; font-size: 0.85rem; font-weight: 800;
}
.sm-flex-hero-metric {
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 20px; background: rgba(0,0,0,0.5);
        padding: 20px; margin-bottom: 15px;
}
.sm-flex-hero-metric-row {
        display: flex; justify-content: space-between;
        margin-bottom: 15px; font-weight: 800; font-size: 0.95rem;
}
.sm-flex-hero-metric-bar {
        height: 8px; border-radius: 10px;
        background: rgba(255,255,255,0.1); overflow: hidden;
}
.sm-flex-hero-metric-bar > span {
        display: block; height: 100%; border-radius: inherit;
        background: linear-gradient(90deg, var(--primary-color), var(--primary-2));
        transition: width 2s ease;
}
.sm-flex-hero-badge {
        margin-top: 20px;
        max-width: 250px;
        padding: 20px; border-radius: 20px;
        border: 1px solid rgba(156,154,154,0.3);
        background: rgba(7,7,7,0.9);
        backdrop-filter: blur(15px);
        box-shadow: var(--shadow-custom);
        animation: badgePulse 5s infinite;
}
@media (min-width: 1024px) {
        .sm-flex-hero-badge { position: absolute; left: -30px; bottom: 50px; margin-top: 0; }
}
.sm-flex-hero-badge strong { display: block; margin-bottom: 5px; color: var(--primary-2); }
.sm-flex-hero-badge span { color: var(--muted-color); font-size: 0.85rem; line-height: 1.5; }

/* ============================================================
 *  2. AUTORIDADE / STATS
 * ============================================================ */
.sm-flex-stats { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .sm-flex-stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
        .sm-flex-stats--3 { grid-template-columns: repeat(3, 1fr); }
        .sm-flex-stats--4 { grid-template-columns: repeat(4, 1fr); }
        .sm-flex-stats--5,
        .sm-flex-stats--6 { grid-template-columns: repeat(3, 1fr); }
}
.sm-flex-stat-card {
        border: 1px solid var(--border-color);
        background: var(--bg-card);
        border-radius: var(--radius);
        padding: 28px;
        transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.sm-flex-stat-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.3); }
.sm-flex-stat-value {
        display: block;
        font-size: clamp(2.5rem, 4vw, 3.4rem);
        font-weight: 900; line-height: 1;
        letter-spacing: -0.04em;
        background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.6) 100%);
        -webkit-background-clip: text; background-clip: text; color: transparent;
        margin-bottom: 12px;
}
.sm-flex-stat-label { display: block; font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.sm-flex-stat-desc { color: var(--muted-color); font-size: 0.95rem; line-height: 1.5; margin: 0; }

/* ============================================================
 *  3. SERVIÇOS
 * ============================================================ */
.sm-flex-services { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .sm-flex-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
        .sm-flex-services--2 { grid-template-columns: repeat(2, 1fr); }
        .sm-flex-services--3 { grid-template-columns: repeat(3, 1fr); }
        .sm-flex-services--4 { grid-template-columns: repeat(4, 1fr); }
}
.sm-flex-service {
        position: relative;
        border: 1px solid var(--border-color);
        background: var(--bg-card);
        border-radius: var(--radius);
        padding: 28px;
        transition: transform .25s ease, border-color .25s ease, background .25s ease;
        display: flex; flex-direction: column;
}
.sm-flex-service:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.35); }
.sm-flex-service-icon {
        width: 44px; height: 44px;
        display: inline-flex; align-items: center; justify-content: center;
        border-radius: 14px;
        background: rgba(255,255,255,0.06);
        border: 1px solid var(--border-color);
        color: #fff; margin-bottom: 18px;
}
.sm-flex-service-title { font-size: 1.2rem; font-weight: 800; margin: 0 0 10px; }
.sm-flex-service-desc { color: var(--muted-color); font-size: 0.95rem; line-height: 1.55; margin: 0 0 18px; }
.sm-flex-service-link {
        margin-top: auto;
        color: #fff; font-weight: 700; font-size: 0.9rem;
        text-decoration: none;
        display: inline-flex; align-items: center; gap: 6px;
}
.sm-flex-service-link:hover { color: var(--primary-2); }

/* ============================================================
 *  4. PROCESSO
 * ============================================================ */
.sm-flex-process { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 768px)  { .sm-flex-process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sm-flex-process { grid-template-columns: repeat(4, 1fr); } }
.sm-flex-process-step {
        position: relative;
        border: 1px solid var(--border-color);
        background: var(--bg-card);
        border-radius: var(--radius);
        padding: 26px;
        display: flex; flex-direction: column; gap: 12px;
}
.sm-flex-process-number {
        font-size: 2.4rem; font-weight: 900; line-height: 1;
        color: var(--primary-2); letter-spacing: -0.04em;
        opacity: 0.9;
}
.sm-flex-process-title { font-size: 1.15rem; font-weight: 800; margin: 0; }
.sm-flex-process-desc  { color: var(--muted-color); font-size: 0.95rem; line-height: 1.55; margin: 0; }
.sm-flex-process-badge {
        display: inline-flex; align-self: flex-start;
        padding: 5px 12px; border-radius: 999px;
        background: rgba(255,255,255,0.08);
        border: 1px solid var(--border-color);
        font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px;
        text-transform: uppercase; color: #fff;
}

/* ============================================================
 *  5. DIFERENCIAIS
 * ============================================================ */
.sm-flex-diffs { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .sm-flex-diffs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
        .sm-flex-diffs--3 { grid-template-columns: repeat(3, 1fr); }
        .sm-flex-diffs--4 { grid-template-columns: repeat(4, 1fr); }
}
.sm-flex-diff {
        border: 1px solid var(--border-color);
        background: var(--bg-card);
        border-radius: var(--radius);
        padding: 28px;
        transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.sm-flex-diff:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.35); }
.sm-flex-diff-icon {
        width: 48px; height: 48px;
        display: inline-flex; align-items: center; justify-content: center;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
        border: 1px solid var(--border-color);
        color: #fff; margin-bottom: 16px;
}
.sm-flex-diff-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 10px; }
.sm-flex-diff-desc  { color: var(--muted-color); font-size: 0.95rem; line-height: 1.55; margin: 0; }

/* ============================================================
 *  6. PORTFÓLIO
 * ============================================================ */
.sm-flex-portfolio {
        display: grid; gap: 20px;
        grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .sm-flex-portfolio { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; } }
@media (min-width: 1024px) { .sm-flex-portfolio { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; } }
.sm-flex-portfolio-card {
        position: relative; overflow: hidden;
        border-radius: var(--radius);
        border: 1px solid var(--border-color);
        background-color: #0a0a0a;
        background-size: cover; background-position: center;
        color: #fff; text-decoration: none;
        display: block; min-height: 220px;
        transition: transform .25s ease;
}
.sm-flex-portfolio-card::before {
        content: ''; position: absolute; inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 100%);
        transition: opacity .25s ease;
}
.sm-flex-portfolio-card:hover { transform: translateY(-4px); }
.sm-flex-portfolio-card--lg { grid-column: span 1; }
@media (min-width: 1024px) { .sm-flex-portfolio-card--lg { grid-column: span 2; grid-row: span 2; } }
.sm-flex-portfolio-overlay {
        position: absolute; inset: auto 0 0 0;
        padding: 24px; z-index: 1;
}
.sm-flex-portfolio-brand {
        display: inline-block;
        font-size: 0.75rem; font-weight: 800; letter-spacing: 1.5px;
        text-transform: uppercase; color: var(--primary-2);
        margin-bottom: 8px;
}
.sm-flex-portfolio-title { font-size: 1.25rem; font-weight: 800; margin: 0; line-height: 1.2; }
.sm-flex-portfolio-placeholder {
        position: absolute; inset: 0;
        display: flex; align-items: center; justify-content: center;
        color: rgba(255,255,255,0.5);
        background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 10px, rgba(255,255,255,0.04) 10px 20px);
        font-size: 0.85rem; letter-spacing: 0.5px;
}
.sm-flex-portfolio-card--cta {
        background: linear-gradient(135deg, rgba(52,52,52,0.6), rgba(7,7,7,0.95));
        display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
        padding: 28px;
}
.sm-flex-portfolio-card--cta::before { display: none; }
.sm-flex-portfolio-card--cta strong { font-size: 1.1rem; font-weight: 800; }
.sm-flex-portfolio-cta-arrow {
        font-size: 2rem; line-height: 1; margin-bottom: 12px; color: var(--primary-2);
}

/* ============================================================
 *  7. DEPOIMENTOS
 * ============================================================ */
.sm-flex-testimonials {
        display: grid; gap: 20px; grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .sm-flex-testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sm-flex-testimonials { grid-template-columns: repeat(3, 1fr); } }
.sm-flex-testimonial {
        position: relative;
        border: 1px solid var(--border-color);
        background: var(--bg-card);
        border-radius: var(--radius);
        padding: 28px; margin: 0;
        display: flex; flex-direction: column; gap: 18px;
}
.sm-flex-testimonial-mark {
        position: absolute; top: -10px; left: 18px;
        font-size: 4rem; line-height: 1;
        color: var(--primary-2); opacity: 0.4;
        font-family: Georgia, serif;
}
.sm-flex-testimonial-quote {
        color: rgba(255,255,255,0.92); font-size: 1rem; line-height: 1.6;
        margin: 0; font-style: italic;
}
.sm-flex-testimonial-author {
        display: flex; align-items: center; gap: 14px;
        margin: 0; padding-top: 6px;
        border-top: 1px solid var(--border-color);
}
.sm-flex-testimonial-avatar {
        width: 44px; height: 44px; border-radius: 999px;
        object-fit: cover;
        display: inline-flex; align-items: center; justify-content: center;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-2));
        color: #0b0b0b; font-weight: 900; font-size: 1.1rem;
        flex-shrink: 0;
}
.sm-flex-testimonial-author strong { display: block; font-size: 0.95rem; font-weight: 800; }
.sm-flex-testimonial-author small { display: block; color: var(--muted-color); font-size: 0.82rem; }

/* ============================================================
 *  8. PLANOS
 * ============================================================ */
.sm-flex-plans { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 768px)  { .sm-flex-plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
        .sm-flex-plans--3 { grid-template-columns: repeat(3, 1fr); }
        .sm-flex-plans--4 { grid-template-columns: repeat(4, 1fr); }
}
.sm-flex-plan {
        position: relative;
        border: 1px solid var(--border-color);
        background: var(--bg-card);
        border-radius: var(--radius);
        padding: 36px 28px;
        display: flex; flex-direction: column; gap: 14px;
        transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.sm-flex-plan:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.35); box-shadow: 0 30px 60px rgba(0,0,0,0.6); }
.sm-flex-plan--featured {
        background: linear-gradient(180deg, rgba(52,52,52,0.5), rgba(7,7,7,0.9));
        border-color: var(--primary-2);
        box-shadow: 0 0 40px rgba(255,255,255,0.1);
}
/* Badge agora flui no topo do card (não-absolute) — antes ele ficava
 * sobreposto ao título quando o cor de --primary-2 era próxima do texto,
 * deixando "Crescimento" invisível em alguns navegadores. */
.sm-flex-plan-badge {
        align-self: flex-start;
        display: inline-block;
        margin: -6px 0 4px;
        padding: 5px 12px; border-radius: 999px;
        background: var(--primary-2); color: #000;
        font-size: 0.7rem; font-weight: 900; letter-spacing: 1px;
        text-transform: uppercase;
}
.sm-flex-plan-name {
        font-size: 1.3rem; font-weight: 800; margin: 0;
        color: #fff;            /* contraste garantido em qualquer fundo do card */
        position: relative; z-index: 1;
}
.sm-flex-plan-price {
        display: flex; align-items: flex-end; gap: 6px;
}
.sm-flex-plan-price-value { font-size: 2.4rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.sm-flex-plan-price-period { color: var(--muted-color); margin-bottom: 5px; font-size: 0.95rem; }
.sm-flex-plan-summary { color: var(--muted-color); font-size: 0.95rem; line-height: 1.55; margin: 0; }
.sm-flex-plan-features { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; gap: 10px; }
.sm-flex-plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: rgba(255,255,255,0.9); }
.sm-flex-plan-check { color: var(--primary-2); margin-top: 3px; flex-shrink: 0; display: inline-flex; }
.sm-flex-plan-cta { width: 100%; margin-top: auto; }
.sm-flex-plans-compare { text-align: center; margin: 30px 0 0; }
.sm-flex-plans-compare a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 2px; }
.sm-flex-plans-compare a:hover { border-color: #fff; }

/* ============================================================
 *  9. CTA FINAL
 * ============================================================ */
.sm-flex-ctafinal {
        display: grid; gap: 30px; align-items: center;
        border: 1px solid var(--border-color);
        background: linear-gradient(135deg, rgba(52,52,52,0.5), rgba(7,7,7,0.95));
        border-radius: var(--radius);
        padding: 48px 36px;
        overflow: hidden;
}
@media (min-width: 900px) {
        .sm-flex-ctafinal { grid-template-columns: 1.5fr 1fr; padding: 60px; }
}
/* Quando o admin (ou o demo) define um banner decorativo no topo, o card
 * vira layout vertical: banner em cima, copy à esquerda, actions à direita. */
.sm-flex-ctafinal--with-banner {
        padding: 0;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 0;
}
.sm-flex-ctafinal-banner {
        width: 100%;
        height: 180px;
        background-size: cover;
        background-position: center;
        border-bottom: 1px solid var(--border-color);
}
.sm-flex-ctafinal--with-banner .sm-flex-ctafinal-copy { padding: 36px 36px 0; }
.sm-flex-ctafinal--with-banner .sm-flex-ctafinal-actions { padding: 0 36px 36px; justify-content: flex-start; }
@media (min-width: 900px) {
        .sm-flex-ctafinal--with-banner {
                grid-template-columns: 1.5fr 1fr;
                grid-template-rows: auto auto;
        }
        .sm-flex-ctafinal--with-banner .sm-flex-ctafinal-banner { grid-column: 1 / -1; height: 220px; }
        .sm-flex-ctafinal--with-banner .sm-flex-ctafinal-copy { padding: 48px 0 48px 60px; }
        .sm-flex-ctafinal--with-banner .sm-flex-ctafinal-actions { padding: 48px 60px 48px 0; justify-content: flex-end; }
}
.sm-flex-ctafinal-title {
        font-size: clamp(1.8rem, 3.2vw, 2.6rem);
        line-height: 1.1; letter-spacing: -0.04em;
        font-weight: 900; margin: 0 0 14px;
}
.sm-flex-ctafinal-desc { color: var(--muted-color); font-size: 1.05rem; line-height: 1.6; margin: 0; }
.sm-flex-ctafinal-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
@media (max-width: 899px) { .sm-flex-ctafinal-actions { justify-content: flex-start; } }

/* ============================================================
 *  10. FAQ
 * ============================================================ */
.sm-flex-faq { display: grid; gap: 14px; max-width: 880px; }
.sm-flex-head--center + .sm-flex-faq { margin-inline: auto; }
.sm-flex-faq-item {
        border: 1px solid var(--border-color);
        background: var(--bg-card);
        border-radius: var(--radius);
        padding: 0;
        overflow: hidden;
        transition: border-color .25s ease;
}
.sm-flex-faq-item[open] { border-color: rgba(255,255,255,0.3); }
.sm-flex-faq-question {
        list-style: none; cursor: pointer;
        padding: 22px 26px;
        display: flex; align-items: center; justify-content: space-between; gap: 20px;
        font-size: 1.05rem; font-weight: 800; color: #fff;
}
.sm-flex-faq-question::-webkit-details-marker { display: none; }
.sm-flex-faq-toggle {
        width: 28px; height: 28px;
        display: inline-flex; align-items: center; justify-content: center;
        border-radius: 999px; background: rgba(255,255,255,0.08);
        border: 1px solid var(--border-color);
        font-size: 1.2rem; line-height: 1; transition: transform .25s ease;
        flex-shrink: 0;
}
.sm-flex-faq-item[open] .sm-flex-faq-toggle { transform: rotate(45deg); }
.sm-flex-faq-answer {
        padding: 0 26px 24px;
        color: var(--muted-color); font-size: 0.98rem; line-height: 1.65;
}
.sm-flex-faq-answer p:last-child { margin-bottom: 0; }

/* ============================================================================
   HERO SLIDER (3 imagens, dark overlay)
   ============================================================================ */
.sm-flex--hero[data-sm-hero-slider] { padding: 0; position: relative; overflow: hidden; }
.sm-hero-slider {
        position: relative;
        min-height: 88vh;
        display: flex;
        align-items: center;
        color: var(--primary-2, #fff);
}
.sm-hero-slider-track {
        position: absolute; inset: 0; z-index: 0;
}
.sm-hero-slide {
        position: absolute; inset: 0;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 1.1s ease-in-out;
        pointer-events: none;
}
.sm-hero-slide.is-active { opacity: 1; pointer-events: auto; }
.sm-hero-slider .sm-flex-container { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 96px; }
.sm-hero-slider-copy { max-width: 760px; }
.sm-hero-slider-copy .sm-flex-hero-eyebrow { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.sm-hero-slider-copy .sm-flex-hero-title { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.05; margin-bottom: 24px; }
.sm-hero-slider-copy .sm-flex-hero-desc { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 640px; }
.sm-hero-slider-dots {
        position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
        display: flex; gap: 10px; z-index: 3;
}
.sm-hero-slider-dot {
        width: 38px; height: 4px; border-radius: 4px;
        background: rgba(255,255,255,.28); border: 0; cursor: pointer; padding: 0;
        transition: background .25s, width .25s;
}
.sm-hero-slider-dot.is-active { background: var(--primary-2, #fff); width: 60px; }
.sm-hero-slider-dot:hover { background: rgba(255,255,255,.55); }
.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; }

/* ============================================================================
   BLOG GRID (home + index)
   ============================================================================ */
.sm-flex-head--between { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sm-flex-head--between .sm-flex-title { margin: 8px 0 0; }
.sm-flex-blog-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
}
.sm-flex-blog-grid--index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .sm-flex-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .sm-flex-blog-grid { grid-template-columns: 1fr; } }
.sm-flex-blog-card {
        display: flex; flex-direction: column;
        background: rgba(255,255,255,.03);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: var(--radius, 24px);
        overflow: hidden;
        color: var(--primary-2, #fff);
        text-decoration: none;
        transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.sm-flex-blog-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.22); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.sm-flex-blog-card--lg { grid-column: span 2; }
@media (max-width: 960px) { .sm-flex-blog-card--lg { grid-column: span 2; } }
@media (max-width: 620px) { .sm-flex-blog-card--lg { grid-column: span 1; } }
.sm-flex-blog-card-media {
        position: relative;
        aspect-ratio: 16 / 10;
        background: #161616 center / cover no-repeat;
        display: flex; align-items: flex-end; padding: 18px;
}
.sm-flex-blog-card--lg .sm-flex-blog-card-media { aspect-ratio: 16 / 9; }
.sm-flex-blog-card-cat {
        background: rgba(7,7,7,.6); backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,.18);
        color: #fff; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
        padding: 6px 12px; border-radius: 999px;
}
.sm-flex-blog-card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sm-flex-blog-card-title { font-size: 1.18rem; line-height: 1.32; margin: 0; }
.sm-flex-blog-card--lg .sm-flex-blog-card-title { font-size: 1.55rem; }
.sm-flex-blog-card-excerpt { color: var(--muted-color, rgba(255,255,255,.65)); font-size: 0.96rem; line-height: 1.55; margin: 0; }
.sm-flex-blog-card-meta { color: var(--muted-color, rgba(255,255,255,.5)); font-size: 0.84rem; margin-top: auto; }

/* Blog index hero */
.sm-flex--blog-hero { padding-top: 80px; padding-bottom: 60px; }
.sm-blog-pagination {
        display: flex; gap: 10px; justify-content: center; margin-top: 48px;
}
.sm-blog-pagination .page-numbers {
        display: inline-block; padding: 8px 14px;
        background: rgba(255,255,255,.04);
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 10px; color: #fff; text-decoration: none;
}
.sm-blog-pagination .page-numbers.current { background: var(--primary-2, #fff); color: #000; border-color: transparent; }

/* Single post */
.sm-single-page { color: var(--primary-2, #fff); }
.sm-single-hero {
        padding: 96px 0 64px;
        background: #0d0d0d center / cover no-repeat;
        border-bottom: 1px solid rgba(255,255,255,.08);
}
.sm-single-hero-inner { max-width: 820px; }
.sm-single-back {
        display: inline-block; color: rgba(255,255,255,.7); text-decoration: none;
        margin-bottom: 18px; font-size: 0.92rem;
}
.sm-single-back:hover { color: #fff; }
.sm-single-title { font-size: clamp(2rem, 4vw, 3.4rem); margin: 14px 0 20px; }
.sm-single-meta { color: rgba(255,255,255,.65); font-size: 0.9rem; display: flex; gap: 10px; flex-wrap: wrap; }
.sm-single-body { padding: 64px 0 80px; }
.sm-flex-container--narrow { max-width: 760px; }
.sm-single-content { font-size: 1.08rem; line-height: 1.75; color: rgba(255,255,255,.88); }
.sm-single-content h2 { font-size: 1.6rem; margin: 36px 0 14px; color: #fff; }
.sm-single-content p { margin: 0 0 18px; }
.sm-single-content ol, .sm-single-content ul { margin: 0 0 18px 22px; }
.sm-single-content strong { color: #fff; }
.sm-single-tags { margin-top: 40px; }

/* ============================================================================
   FOOTER — SONORITÉ-STYLE
   ============================================================================ */
.sm-footer-rich {
        position: relative;
        background: #050505;
        color: var(--primary-2, #fff);
        padding: 80px 0 0;
        overflow: hidden;
}
.sm-footer-rich-bg {
        position: absolute; inset: 0;
        background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.04), transparent 60%),
                    radial-gradient(circle at 80% 30%, rgba(255,255,255,.03), transparent 55%);
        pointer-events: none;
}
.sm-footer-rich-container {
        position: relative;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
}
.sm-footer-rich-grid {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
        gap: 56px;
        padding-bottom: 60px;
        border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 1024px) { .sm-footer-rich-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 600px)  { .sm-footer-rich-grid { grid-template-columns: 1fr; gap: 36px; } }
.sm-footer-col h3.sm-footer-heading {
        color: #fff; font-size: 1rem; letter-spacing: 0.04em;
        margin: 0 0 18px; text-transform: uppercase;
}
.sm-footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; margin-bottom: 18px; }
.sm-footer-brand-logo { height: 38px; width: auto; }
.sm-footer-brand-mark {
        width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
        background: var(--primary-color, #d9202b); color: #fff; border-radius: 12px; font-weight: 700; letter-spacing: 0.04em;
}
.sm-footer-brand-name { font-weight: 600; font-size: 1.1rem; }
.sm-footer-desc { color: rgba(255,255,255,.7); line-height: 1.6; margin: 8px 0 22px; max-width: 360px; }
.sm-footer-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sm-footer-tag {
        display: inline-block; padding: 6px 12px;
        background: rgba(255,255,255,.05);
        border: 1px solid rgba(255,255,255,.12);
        color: rgba(255,255,255,.85);
        font-size: 0.78rem; letter-spacing: 0.06em; border-radius: 999px;
}
.sm-footer-list, .sm-footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sm-footer-list a, .sm-footer-contact a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.sm-footer-list a:hover, .sm-footer-contact a:hover { color: #fff; }
.sm-footer-contact li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.75); }
.sm-footer-contact-icon {
        width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
        background: rgba(255,255,255,.05); border-radius: 8px; color: rgba(255,255,255,.85); flex-shrink: 0;
}
.sm-footer-cta-desc { color: rgba(255,255,255,.7); line-height: 1.6; margin: 0 0 18px; }
.sm-footer-social { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 10px; }
.sm-footer-social a {
        width: 40px; height: 40px;
        display: inline-flex; align-items: center; justify-content: center;
        background: rgba(255,255,255,.05);
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 10px;
        color: rgba(255,255,255,.85);
        transition: background .2s, color .2s;
}
.sm-footer-social a:hover { background: var(--primary-color, #d9202b); color: #fff; border-color: transparent; }
.sm-footer-wa-btn {
        display: inline-flex; align-items: center; gap: 10px;
        background: #25d366; color: #fff; padding: 12px 18px; border-radius: 12px;
        text-decoration: none; font-weight: 600;
        transition: filter .2s;
}
.sm-footer-wa-btn:hover { filter: brightness(1.08); }
.sm-footer-bottom {
        display: flex; flex-wrap: wrap; gap: 18px;
        justify-content: space-between; align-items: center;
        padding: 24px 0;
        color: rgba(255,255,255,.55); font-size: 0.86rem;
}
.sm-footer-copyright { margin: 0; }
.sm-footer-solutions { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: rgba(255,255,255,.55); }
.sm-footer-solutions-sep { opacity: .5; }

/* Imagem opcional no topo de cada coluna do rodapé (Social MAD → Rodapé do Site).
   O `max-height` aqui é um fallback — quando o admin escolhe um tamanho, o
   template aplica `max-height` inline (que vence esta regra). */
.sm-footer-col-image-wrap { margin: 0 0 14px; line-height: 0; }
.sm-footer-col-image {
        display: inline-block;
        max-width: 100%;
        height: auto;
        max-height: 64px;
        width: auto;
        border-radius: 8px;
        object-fit: contain;
        background: rgba(255,255,255,.04);
}
.sm-footer-col--brand .sm-footer-brand-logo { max-height: 48px; }
/* Margem inferior da brand vem inline (admin → "Espaço abaixo do logotipo"). */
.sm-footer-brand--align-left   { justify-content: flex-start; }
.sm-footer-brand--align-center { justify-content: center; }
.sm-footer-brand--align-right  { justify-content: flex-end; }

/* Ícones customizados (upload pelo admin) — herdam o tamanho do SVG padrão. */
.sm-footer-contact-icon-img { display:block; width:18px; height:18px; object-fit:contain; }
.sm-footer-social-icon-img  { display:block; width:18px; height:18px; object-fit:contain; }

/* ------------------------------------------------------------------ */
/* Hero slider — additions: per-slide copy, progress bar, slide effect */
/* ------------------------------------------------------------------ */
.sm-hero-slider-copies { position: relative; }
.sm-hero-slider-copy { display: none; }
.sm-hero-slider-copy.is-active { display: block; animation: smHeroFadeIn .55s ease both; }
@keyframes smHeroFadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none; } }

.sm-hero-slider--slide .sm-hero-slider-track { position: absolute; inset: 0; overflow: hidden; }
.sm-hero-slider--slide .sm-hero-slide {
        position: absolute; inset: 0; opacity: 1;
        transform: translateX(100%);
        transition: transform .9s cubic-bezier(.65,0,.35,1), opacity .9s ease;
}
.sm-hero-slider--slide .sm-hero-slide.is-active { transform: translateX(0); opacity: 1; pointer-events: auto; }
.sm-hero-slider--slide .sm-hero-slide:not(.is-active) { transform: translateX(-100%); opacity: 0; }

.sm-hero-slider-progress {
        position: absolute; left: 0; right: 0; bottom: 0;
        height: 3px;
        background: rgba(255,255,255,.08);
        z-index: 3;
}
.sm-hero-slider-progress-bar {
        display: block; height: 100%; width: 0%;
        background: linear-gradient(90deg, var(--sm-accent, var(--primary-2, #fff)), var(--primary-2, #fff));
        will-change: width;
}
