/* ============================================================
   BLOG NOVO ENHANCED — XRP Contabilidade
   Design premium, conversão e SEO local
   ============================================================ */

/* ===== HERO SECTION ENHANCED ===== */
.blog-hero-enhanced {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    margin-top: var(--header-height);
    overflow: hidden;
}

.blog-hero-enhanced__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.blog-hero-enhanced:hover .blog-hero-enhanced__bg {
    transform: scale(1.0);
}

.blog-hero-enhanced__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 0, 51, 0.88) 0%,
        rgba(139, 61, 255, 0.75) 50%,
        rgba(255, 46, 146, 0.65) 100%
    );
}

.blog-hero-enhanced__content {
    position: relative;
    z-index: 2;
    padding: 6rem 1.5rem 4rem;
    max-width: 800px;
}

.blog-hero-enhanced__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.blog-hero-enhanced__title {
    font-family: var(--title-font);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: var(--font-extra-bold);
    color: white;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.blog-hero-enhanced__highlight {
    background: linear-gradient(90deg, #FF2E92, #FFB347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-enhanced__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.blog-hero-enhanced__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: var(--font-bold);
}

.btn--outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.7);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md, 1rem);
    font-weight: var(--font-bold);
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn--outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    transform: translateY(-2px);
}

.blog-hero-enhanced__stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--title-font);
    font-size: 1.75rem;
    font-weight: var(--font-extra-bold);
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: var(--smaller-font-size);
    color: rgba(255,255,255,0.75);
    font-weight: var(--font-medium);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
}

/* ===== DIAGNÓSTICO BANNER ===== */
.diagnostico-banner {
    background: linear-gradient(135deg, #1a0033 0%, #3d0080 100%);
    padding: 2.5rem 0;
}

.diagnostico-banner__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.diagnostico-banner__icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #FF2E92;
}

.diagnostico-banner__content {
    flex: 1;
    min-width: 200px;
}

.diagnostico-banner__title {
    font-family: var(--title-font);
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    color: white;
    margin-bottom: 0.5rem;
}

.diagnostico-banner__text {
    font-size: var(--small-font-size);
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--first-color), var(--second-color));
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: 2rem;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-semi-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--title-font);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--font-extra-bold);
    color: var(--title-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: var(--normal-font-size);
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== SEGMENTED PAGES GRID ===== */
.segmented-pages {
    background: #f7f7fb;
    padding: 5rem 0;
}

.segmented-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.seg-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.seg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(139,61,255,0.25);
}

.seg-card__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.seg-card:hover .seg-card__image {
    transform: scale(1.08);
}

.seg-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 0, 51, 0.95) 0%,
        rgba(26, 0, 51, 0.6) 50%,
        rgba(26, 0, 51, 0.1) 100%
    );
    transition: background 0.3s ease;
}

.seg-card:hover .seg-card__overlay {
    background: linear-gradient(
        to top,
        rgba(139, 61, 255, 0.95) 0%,
        rgba(139, 61, 255, 0.6) 50%,
        rgba(139, 61, 255, 0.1) 100%
    );
}

.seg-card__content {
    position: relative;
    z-index: 2;
    padding: 1.75rem;
}

.seg-card__tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.3rem 0.875rem;
    border-radius: 1.5rem;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.seg-card__title {
    font-family: var(--title-font);
    font-size: 1.2rem;
    font-weight: var(--font-bold);
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.seg-card__desc {
    font-size: var(--small-font-size);
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.seg-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #FF2E92;
    font-weight: var(--font-semi-bold);
    font-size: var(--small-font-size);
    transition: gap 0.3s ease;
}

.seg-card:hover .seg-card__cta {
    gap: 0.75rem;
}

/* ===== BLOG FILTERS ENHANCED ===== */
.blog-filters {
    padding: 3rem 0 2rem;
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.blog-filters__wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.blog-filters__search {
    position: relative;
    display: flex;
    justify-content: center;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-light);
    font-size: 1.1rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    max-width: 600px;
    padding: 0.875rem 1.5rem 0.875rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 3rem;
    font-size: var(--normal-font-size);
    transition: var(--transition);
    background: #f9f9f9;
    font-family: var(--body-font);
}

.search-input:focus {
    outline: none;
    border-color: var(--first-color);
    background: white;
    box-shadow: 0 4px 16px rgba(139,61,255,0.12);
}

/* ===== CTA INTERMEDIÁRIO ===== */
.cta-mid {
    background: linear-gradient(135deg, var(--first-color) 0%, var(--second-color) 100%);
    padding: 5rem 0;
}

.cta-mid__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.cta-mid__text {
    flex: 1;
    min-width: 280px;
}

.cta-mid__title {
    font-family: var(--title-font);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: var(--font-extra-bold);
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-mid__desc {
    font-size: var(--normal-font-size);
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
}

.cta-mid__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 240px;
}

.cta-mid__actions .btn--primary {
    background: white;
    color: var(--first-color);
    border: none;
}

.cta-mid__actions .btn--primary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

.cta-mid__actions .btn--outline {
    border-color: rgba(255,255,255,0.7);
    color: white;
}

.cta-mid__actions .btn--outline:hover {
    background: rgba(255,255,255,0.15);
}

/* ===== NEWSLETTER ENHANCED ===== */
.cta-newsletter {
    background: #f7f7fb;
    padding: 5rem 0;
}

.cta-newsletter__box {
    background: white;
    border-radius: 1.5rem;
    padding: 3.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(139,61,255,0.1);
    border: 1px solid rgba(139,61,255,0.1);
    max-width: 680px;
    margin: 0 auto;
}

.cta-newsletter__icon {
    font-size: 3rem;
    color: var(--first-color);
    margin-bottom: 1rem;
}

.cta-newsletter__title {
    font-family: var(--title-font);
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: var(--title-color);
    margin-bottom: 0.75rem;
}

.cta-newsletter__text {
    font-size: var(--normal-font-size);
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 480px;
    margin: 0 auto 1rem;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: var(--normal-font-size);
    font-family: var(--body-font);
    transition: var(--transition);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--first-color);
    box-shadow: 0 0 0 3px rgba(139,61,255,0.1);
}

.btn--newsletter {
    background: var(--gradient-color);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: var(--font-bold);
    font-size: var(--normal-font-size);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-family: var(--body-font);
    white-space: nowrap;
}

.btn--newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139,61,255,0.35);
}

.newsletter-privacy {
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* ===== BLOG POST CARDS ENHANCED ===== */
.blog-post-card {
    position: relative;
}

.blog-post-card__image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-post-card:hover .blog-post-card__image-wrapper::after {
    opacity: 1;
}

/* ===== WHATSAPP FLOAT ENHANCED ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 80px;
    height: 80px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: var(--z-fixed);
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
    .segmented-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .blog-hero-enhanced {
        min-height: 100vh;
    }

    .blog-hero-enhanced__content {
        padding: 5rem 1.5rem 3rem;
    }

    .blog-hero-enhanced__stats {
        gap: 1.25rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .diagnostico-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    .segmented-grid {
        grid-template-columns: 1fr;
    }

    .seg-card {
        min-height: 260px;
    }

    .cta-mid__inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-mid__actions {
        width: 100%;
    }

    .cta-newsletter__box {
        padding: 2.5rem 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input,
    .btn--newsletter {
        width: 100%;
    }

    .blog-filters {
        position: relative;
        top: 0;
    }
}

@media screen and (max-width: 480px) {
    .blog-hero-enhanced__ctas {
        flex-direction: column;
    }

    .blog-hero-enhanced__ctas .btn--primary,
    .blog-hero-enhanced__ctas .btn--outline-white {
        width: 100%;
        justify-content: center;
    }

    .stat-divider {
        display: none;
    }
}
