/*
 Theme Name:   Thiago Branco V2
 Theme URI:    https://trafegopagopolitico.com.br
 Description:  Tema filho do Hello Elementor com design V2 premium dark para Thiago Branco - Marketing Político Digital
 Author:       Thiago Branco
 Author URI:   https://trafegopagopolitico.com.br
 Template:     hello-elementor
 Version:      2.1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  thiago-branco-v2
*/

/* ── CSS Custom Properties (Design V2 Tokens) ── */
:root {
    /* Brand Colors */
    --brand-primary: #FF6B35;
    --brand-primary-hover: #E85A24;
    --brand-primary-light: #FF8C42;
    --brand-primary-dark: #CC5529;
    --brand-primary-glow: rgba(255, 107, 53, 0.15);
    --brand-gradient: linear-gradient(135deg, #FF6B35 0%, #FF8C42 50%, #FFa85c 100%);
    --brand-gradient-dark: linear-gradient(135deg, #CC5529 0%, #FF6B35 100%);

    /* Background Colors */
    --bg-primary: #080808;
    --bg-secondary: #0E0E0E;
    --bg-surface: #161616;
    --bg-surface-hover: #1E1E1E;
    --bg-card: #121212;
    --bg-glass: rgba(18, 18, 18, 0.7);
    --bg-glass-hover: rgba(26, 26, 26, 0.8);

    /* Text Colors */
    --text-primary: #FAFAFA;
    --text-secondary: #A3A3A3;
    --text-muted: #666666;
    --text-accent: #FF6B35;
    --text-bright: #FFFFFF;

    /* Border & Shadows */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(255, 107, 53, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow-sm: 0 0 20px rgba(255, 107, 53, 0.15);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Spacing & Radius */
    --container-width: 1200px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Global Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body) !important;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* ── Force V2 Typography on all pages ── */
h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading,
.entry-title {
    font-family: var(--font-heading) !important;
}

p,
li,
span,
div,
a,
blockquote,
.entry-content,
.post-content,
.tb-post-content,
.tb-article-content {
    font-family: var(--font-body) !important;
}

/* Ultra-specific for single posts (overrides Elementor/Hello) */
body.single-post h1,
body.single-post h2,
body.single-post h3,
body.single-post h4 {
    font-family: var(--font-heading) !important;
}

body.single-post p,
body.single-post li,
body.single-post .tb-post-content,
body.single-post .entry-content,
body.single-post .tb-article-content {
    font-family: var(--font-body) !important;
}

body.single-post .tb-article-content h1 {
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

/* Blog listing pages */
body.blog h1,
body.blog h2,
body.blog h3,
body.blog h4,
body.archive h1,
body.archive h2,
body.archive h3,
body.archive h4 {
    font-family: var(--font-heading) !important;
}

body.blog p,
body.blog li,
body.archive p,
body.archive li {
    font-family: var(--font-body) !important;
}

/* Display font for counters and special elements */
.tb-cd-number,
.tb-btn-cta-round {
    font-family: var(--font-display) !important;
}

::selection {
    background: rgba(255, 107, 53, 0.3);
    color: var(--text-bright);
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-primary-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading) !important;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary) !important;
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ── Container ── */
.tb-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER V2
   ============================================ */
.tb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(8, 8, 8, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.tb-header.scrolled {
    padding: 10px 0;
    background: rgba(8, 8, 8, 0.92);
    box-shadow: var(--shadow-md);
}

.tb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.tb-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.tb-logo span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tb-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tb-nav a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding: 6px 0;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.tb-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    border-radius: 1px;
    transition: width var(--transition-normal);
}

.tb-nav a:hover,
.tb-nav a.active {
    color: var(--text-primary) !important;
}

.tb-nav a:hover::after,
.tb-nav a.active::after {
    width: 100%;
}

.tb-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--brand-gradient);
    color: var(--text-bright) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.tb-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
    color: var(--text-bright) !important;
}

/* Mobile Menu */
.tb-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.tb-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
    border-radius: 1px;
}

/* ============================================
   URGENCY BANNER
   ============================================ */
.tb-urgency-banner {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.03));
    border-bottom: 1px solid rgba(255, 107, 53, 0.12);
}

.tb-urgency-banner p {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    text-align: center;
    width: 100%;
}

/* ============================================
   ARTICLE LAYOUT (Single Post)
   ============================================ */
.tb-article-hero {
    padding: 160px 0 60px;
    background-color: var(--bg-secondary);
    position: relative;
}

.tb-article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

/* Article Content */
.tb-article-content h1 {
    font-size: 2.4rem !important;
    line-height: 1.15 !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
}

.tb-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.tb-article-meta .author {
    color: var(--brand-primary);
    font-weight: 600;
}

.tb-category-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.15);
    color: var(--brand-primary);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
}

/* Article Body */
.tb-article-body {
    background-color: var(--bg-secondary);
    padding: 0 0 80px;
}

.tb-article-body h2,
.tb-post-content h2,
.entry-content h2,
.wp-block-heading:where(h2) {
    font-size: 1.5rem !important;
    margin-top: 48px !important;
    margin-bottom: 16px !important;
    padding-top: 16px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    display: block !important;
}

.tb-article-body h3,
.tb-post-content h3,
.entry-content h3,
.wp-block-heading:where(h3) {
    font-size: 1.15rem !important;
    margin-top: 36px !important;
    margin-bottom: 14px !important;
    padding-top: 12px !important;
    color: var(--brand-primary) !important;
    text-transform: none !important;
    display: block !important;
}

.tb-article-body h4,
.tb-post-content h4,
.entry-content h4,
.wp-block-heading:where(h4) {
    font-size: 1rem !important;
    margin-top: 28px !important;
    margin-bottom: 10px !important;
    padding-top: 8px !important;
    text-transform: none !important;
    display: block !important;
}

.tb-article-body p,
.tb-post-content p,
.entry-content p {
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 18px;
    color: var(--text-secondary);
    max-width: 100%;
}

.tb-article-body strong,
.tb-post-content strong,
.entry-content strong {
    color: var(--text-primary);
}

.tb-article-body ul,
.tb-article-body ol,
.tb-post-content ul,
.tb-post-content ol,
.entry-content ul,
.entry-content ol {
    margin: 16px 0 18px 24px;
    color: var(--text-secondary);
}

.tb-article-body li,
.tb-post-content li,
.entry-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.tb-article-body blockquote,
.tb-post-content blockquote,
.entry-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    border-left: 3px solid var(--brand-primary);
    background: var(--bg-glass);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.tb-article-body img,
.tb-post-content img,
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.tb-article-body a,
.tb-post-content a,
.entry-content a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tb-article-body a:hover,
.tb-post-content a:hover,
.entry-content a:hover {
    color: var(--brand-primary-light);
}

/* Article CTA */
.tb-article-cta {
    margin-top: 48px;
    padding: 32px;
    background: var(--brand-gradient);
    border-radius: var(--radius-lg);
    text-align: center;
}

.tb-article-cta h3,
body.single-post .tb-article-cta h3 {
    color: var(--text-bright) !important;
    font-size: 1.3rem !important;
    margin-bottom: 12px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-bottom: none !important;
    text-transform: none !important;
}

.tb-article-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    max-width: 100%;
}

.tb-article-cta .tb-btn-cta {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-bright) !important;
    padding: 12px 32px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-normal);
}

.tb-article-cta .tb-btn-cta:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Share Bar */
.tb-share-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.tb-share-bar .label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.tb-share-bar a {
    padding: 8px 20px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary) !important;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.tb-share-bar a:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary) !important;
}

/* ============================================
   AUTHOR BOX
   ============================================ */
.tb-author-box {
    margin-top: 48px;
    padding: 36px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.tb-author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
}

.tb-author-box-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.tb-author-avatar {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--brand-primary);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

.tb-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 !important;
}

.tb-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tb-author-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-primary);
}

.tb-author-name {
    font-family: var(--font-heading) !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    text-transform: none !important;
    line-height: 1.3 !important;
}

.tb-author-title {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tb-author-bio {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 20px !important;
    max-width: 100%;
}

.tb-author-social {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tb-author-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    transition: all var(--transition-normal);
}

.tb-author-social-link:hover {
    background: var(--brand-gradient);
    border-color: var(--brand-primary);
    color: var(--text-bright) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.tb-author-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--brand-gradient);
    color: var(--text-bright) !important;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.tb-author-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
    color: var(--text-bright) !important;
}

@media (max-width: 768px) {
    .tb-author-box {
        padding: 24px;
    }

    .tb-author-box-header {
        flex-direction: column;
        text-align: center;
    }

    .tb-author-social {
        justify-content: center;
    }

    .tb-author-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   SIDEBAR
   ============================================ */
.tb-sidebar-widget {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.tb-sidebar-widget h4 {
    font-size: 0.9rem !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.tb-related-post {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none !important;
    transition: all var(--transition-fast);
}

.tb-related-post:last-child {
    border-bottom: none;
}

.tb-related-post .rp-category {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-primary);
    margin-bottom: 4px;
}

.tb-related-post .rp-title {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.tb-related-post:hover .rp-title {
    color: var(--brand-primary);
}

/* Countdown Widget */
.tb-countdown-widget {
    border-color: rgba(255, 107, 53, 0.15) !important;
    background: rgba(255, 107, 53, 0.03) !important;
}

.tb-cd-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   FOOTER V2
   ============================================ */
.tb-footer {
    padding: 80px 0 32px;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.tb-footer-cta {
    text-align: center;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.tb-footer-cta h2 {
    font-size: 2.5rem !important;
    margin-bottom: 24px !important;
}

.tb-footer-cta .highlight {
    color: var(--brand-primary);
}

.tb-btn-cta-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: var(--text-bright) !important;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-spring);
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    position: relative;
}

.tb-btn-cta-round::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 53, 0.3);
    animation: tb-pulse-ring 2s infinite;
}

.tb-btn-cta-round:hover {
    transform: scale(1.12) rotate(3deg);
    box-shadow: 0 0 50px rgba(255, 107, 53, 0.5);
    color: var(--text-bright) !important;
}

@keyframes tb-pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.tb-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.tb-footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.tb-footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary) !important;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.tb-footer-links a:hover {
    color: var(--brand-primary) !important;
}

.tb-footer-copyright {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.tb-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary) !important;
    transition: all var(--transition-normal);
    text-decoration: none !important;
}

.tb-social-link:hover {
    background: var(--brand-gradient);
    border-color: var(--brand-primary);
    color: var(--text-bright) !important;
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-sm);
}

/* Instagram Widget Sidebar */
.tb-instagram-widget {
    text-align: center;
}

.tb-instagram-widget .tb-insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 16px;
}

.tb-instagram-widget .tb-insta-placeholder {
    aspect-ratio: 1;
    background: var(--bg-surface);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* YouTube Widget Sidebar */
.tb-youtube-widget iframe {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    border: none;
    margin-bottom: 12px;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.tb-whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-spring);
}

.tb-whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.tb-whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* Scroll to Top */
.tb-scroll-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.tb-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.tb-scroll-top:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* ============================================
   BLOG LISTING (home.php / archive.php)
   ============================================ */
.tb-featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tb-featured-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
}

.tb-featured-post:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg), var(--shadow-glow-sm);
}

.tb-featured-post-img,
.tb-featured-post img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
}

/* Blog Grid */
.tb-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Blog Card */
.tb-blog-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: block;
}

.tb-blog-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-sm);
}

.tb-blog-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.tb-blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.tb-blog-card:hover .tb-blog-card-img {
    transform: scale(1.05);
}

.tb-blog-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(255, 107, 53, 0.9);
    color: var(--text-bright);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
}

.tb-blog-card-body {
    padding: 20px;
}

.tb-blog-card-body h4 {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
}

.tb-blog-card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.tb-blog-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Category Filter Buttons */
.tb-cat-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary) !important;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    text-decoration: none !important;
    transition: all var(--transition-normal);
}

.tb-cat-btn:hover,
.tb-cat-btn.active {
    color: var(--text-bright) !important;
    background: var(--brand-gradient);
    border-color: var(--brand-primary);
}

/* Pagination */
.page-numbers {
    list-style: none;
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.page-numbers li a,
.page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.page-numbers li a:hover,
.page-numbers li span.current {
    background: var(--brand-gradient);
    border-color: var(--brand-primary);
    color: var(--text-bright);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .tb-article-layout {
        grid-template-columns: 1fr;
    }

    .tb-article-content h1 {
        font-size: 1.7rem !important;
    }

    .tb-article-body h2,
    .tb-post-content h2,
    .entry-content h2 {
        font-size: 1.25rem !important;
    }

    .tb-featured-post {
        grid-template-columns: 1fr;
    }

    .tb-blog-grid {
        grid-template-columns: 1fr;
    }

    .tb-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(8, 8, 8, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .tb-nav.open {
        display: flex;
    }

    .tb-menu-toggle {
        display: flex;
    }

    .tb-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .tb-footer-cta h2 {
        font-size: 1.8rem !important;
    }
}

/* ============================================
   WORDPRESS OVERRIDES
   (garante visual V2 sobrescreva o Hello/WP)
   ============================================ */
.entry-content,
.post-content,
.elementor-widget-theme-post-content {
    color: var(--text-secondary) !important;
}

.wp-block-heading {
    color: var(--text-primary) !important;
    font-family: var(--font-heading) !important;
}

/* Remove Hello Elementor defaults */
body.single-post .site-header,
body.single-post .site-footer,
body.single-post .page-header,
body.blog .site-header,
body.blog .site-footer,
body.blog .page-header,
body.archive .site-header,
body.archive .site-footer,
body.archive .page-header {
    display: none !important;
}

/* Gutenberg blocks dark mode */
.wp-block-quote {
    border-left-color: var(--brand-primary) !important;
    background: var(--bg-glass) !important;
    padding: 24px 28px !important;
    border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}

.wp-block-image img {
    border-radius: var(--radius-md) !important;
}

.wp-block-separator {
    border-color: var(--border-color) !important;
}

/* ============================================
   PÁGINA: QUEM É THIAGO BRANCO
   ============================================ */

/* Hero */
.tb-about-hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.tb-about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.tb-about-hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.tb-about-hero-text {
    flex: 1;
}

.tb-about-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--brand-primary);
    background: var(--brand-primary-glow);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.tb-about-hero-text h1 {
    font-family: var(--font-heading) !important;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.1;
    margin-bottom: 12px;
}

.tb-about-hero-text h1 .highlight {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tb-about-subtitle {
    font-family: var(--font-display) !important;
    font-size: 1.15rem;
    color: var(--brand-primary-light);
    font-weight: 600;
    margin-bottom: 20px;
}

.tb-about-hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.tb-about-hero-desc strong {
    color: var(--text-bright);
}

.tb-about-hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tb-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-bright);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.tb-btn-secondary:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--brand-primary-glow);
}

.tb-about-hero-image {
    position: relative;
    flex-shrink: 0;
}

.tb-about-hero-image img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-light);
    position: relative;
    z-index: 1;
}

.tb-about-hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.2) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.8;
    }
}

/* Stats */
.tb-about-stats {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tb-about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.tb-about-stat-number {
    display: block;
    font-family: var(--font-display) !important;
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.tb-about-stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}

/* Story / Timeline */
.tb-about-story {
    padding: 80px 0;
}

.tb-about-story h2,
.tb-about-expertise h2,
.tb-about-why h2,
.tb-about-social h2 {
    font-family: var(--font-heading) !important;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-bright);
}

.tb-about-story h2 .highlight,
.tb-about-expertise h2 .highlight,
.tb-about-why h2 .highlight,
.tb-about-social h2 .highlight {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tb-about-timeline {
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
    position: relative;
}

.tb-about-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand-primary), var(--border-color));
}

.tb-about-timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.tb-about-timeline-item:last-child {
    padding-bottom: 0;
}

.tb-about-timeline-marker {
    position: absolute;
    left: -34px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brand-primary);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

.tb-about-timeline-content h3 {
    font-family: var(--font-heading) !important;
    font-size: 1.15rem;
    color: var(--text-bright) !important;
    margin-bottom: 10px !important;
    padding-top: 0 !important;
    border-bottom: none !important;
}

.tb-about-timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Expertise Cards */
.tb-about-expertise {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tb-about-expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.tb-about-expertise-card {
    padding: 32px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.tb-about-expertise-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-sm);
}

.tb-about-expertise-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 16px;
}

.tb-about-expertise-card h3 {
    font-family: var(--font-heading) !important;
    font-size: 1.1rem;
    color: var(--text-bright) !important;
    margin-bottom: 10px !important;
    padding-top: 0 !important;
    border-bottom: none !important;
}

.tb-about-expertise-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Why Choose Me */
.tb-about-why {
    padding: 80px 0;
}

.tb-about-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.tb-about-why-item {
    padding: 28px;
    border-left: 3px solid var(--brand-primary);
    transition: all var(--transition-normal);
}

.tb-about-why-item:hover {
    background: var(--bg-glass);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.tb-about-why-number {
    font-family: var(--font-display) !important;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary);
    opacity: 0.5;
    display: block;
    margin-bottom: 8px;
}

.tb-about-why-item h3 {
    font-family: var(--font-heading) !important;
    font-size: 1.1rem;
    color: var(--text-bright) !important;
    margin-bottom: 8px !important;
    padding-top: 0 !important;
    border-bottom: none !important;
}

.tb-about-why-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Social */
.tb-about-social {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tb-about-social-desc {
    text-align: center;
    color: var(--text-secondary);
    max-width: 500px;
    margin: -32px auto 40px;
}

.tb-about-social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

.tb-about-social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.tb-about-social-card:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-sm);
}

.tb-about-social-card svg {
    transition: all var(--transition-normal);
}

.tb-about-social-card:hover svg {
    transform: scale(1.15);
}

.tb-about-social-card h3 {
    font-family: var(--font-heading) !important;
    font-size: 0.95rem;
    color: var(--text-bright) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.tb-about-social-card p {
    font-size: 0.8rem;
    margin: 0;
}

/* CTA */
.tb-about-cta {
    padding: 80px 0;
}

.tb-about-cta-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.tb-about-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
}

.tb-about-cta-box h2 {
    font-family: var(--font-heading) !important;
    font-size: 1.8rem;
    color: var(--text-bright);
    margin-bottom: 16px;
    border: none !important;
    padding: 0 !important;
}

.tb-about-cta-box p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ===== RESPONSIVE: Quem Sou ===== */
@media (max-width: 768px) {
    .tb-about-hero {
        padding: 100px 0 60px;
    }

    .tb-about-hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 32px;
    }

    .tb-about-hero-text h1 {
        font-size: 2.5rem;
    }

    .tb-about-hero-desc {
        max-width: 100%;
    }

    .tb-about-hero-ctas {
        justify-content: center;
    }

    .tb-about-hero-image img {
        width: 200px;
        height: 200px;
    }

    .tb-about-hero-glow {
        width: 240px;
        height: 240px;
    }

    .tb-about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .tb-about-stat-number {
        font-size: 2.2rem;
    }

    .tb-about-expertise-grid {
        grid-template-columns: 1fr;
    }

    .tb-about-why-grid {
        grid-template-columns: 1fr;
    }

    .tb-about-social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tb-about-cta-box {
        padding: 40px 24px;
    }

    .tb-about-cta-box h2 {
        font-size: 1.4rem;
    }
}

/* ============================================
   FORCE HEADING SPACING (overrides Elementor/Hello)
   Seletores ultra-específicos para garantir espaçamento
   Usa padding-top (não sofre margin-collapse) para
   espaçamento confiável entre seções
   ============================================ */
body.single-post .tb-article-body h2,
body.single-post .tb-post-content h2,
body.single-post .entry-content h2,
body.single-post .elementor-widget-theme-post-content h2,
body.single-post h2 {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    padding-top: 48px !important;
    padding-bottom: 16px !important;
    font-size: 1.5rem !important;
    line-height: 1.4 !important;
    word-spacing: 0.05em !important;
    border-bottom: 1px solid var(--border-color) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    display: block !important;
    clear: both !important;
}

body.single-post .tb-article-body h3,
body.single-post .tb-post-content h3,
body.single-post .entry-content h3,
body.single-post .elementor-widget-theme-post-content h3,
body.single-post h3 {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    padding-top: 36px !important;
    font-size: 1.15rem !important;
    line-height: 1.5 !important;
    word-spacing: 0.05em !important;
    color: var(--brand-primary) !important;
    text-transform: none !important;
    display: block !important;
    clear: both !important;
}

/* Exclui headings dentro de widgets especiais */
body.single-post .tb-article-cta h3,
body.single-post .tb-author-box h3,
body.single-post .tb-sidebar-widget h4 {
    color: inherit !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    word-spacing: normal !important;
}

body.single-post .tb-article-body h4,
body.single-post .tb-post-content h4,
body.single-post .entry-content h4,
body.single-post .elementor-widget-theme-post-content h4,
body.single-post h4 {
    margin-top: 16px !important;
    margin-bottom: 16px !important;
    padding-top: 28px !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    word-spacing: 0.05em !important;
    text-transform: none !important;
    display: block !important;
    clear: both !important;
}

/* Headings consecutivos (h2 seguido de h3, etc) - menos espaço entre eles */
body.single-post h2+h3,
body.single-post .entry-content h2+h3,
body.single-post .tb-post-content h2+h3 {
    padding-top: 20px !important;
}

body.single-post h3+h4,
body.single-post .entry-content h3+h4,
body.single-post .tb-post-content h3+h4 {
    padding-top: 16px !important;
}

/* Primeiro heading no conteúdo - menos espaço no topo */
body.single-post .tb-post-content>h2:first-child,
body.single-post .entry-content>h2:first-child {
    margin-top: 0 !important;
    padding-top: 16px !important;
}

/* Parágrafos - garantir espaçamento com headings */
body.single-post .tb-post-content p,
body.single-post .entry-content p {
    margin-bottom: 20px !important;
    line-height: 1.85 !important;
}

/* Listas - espaço adequado */
body.single-post .tb-post-content ul,
body.single-post .tb-post-content ol,
body.single-post .entry-content ul,
body.single-post .entry-content ol {
    margin-bottom: 24px !important;
}