/* Estilos específicos da página inicial */

/* Fundo único do carrossel: fica no wrapper (que não se move),
   não em cada slide — assim não há "emenda" de cor na troca de slide,
   pois o fundo simplesmente não muda, só o conteúdo desliza por cima. */
.hero-carousel-wrapper {
    background: linear-gradient(135deg, #232d1d 0%, #3f502e 45%, #2e3517 100%) !important;
}

.hc-slide--tributaria,
.hero-coffee-banner {
    background: transparent !important;
}

/* NOTA: .hero-coffee-banner não é usada no markup atual do slide 2
   (front-page.php usa .hc-slide.hc-slide--hero > .hero-container).
   As regras reais que controlam o slide 2 estão logo abaixo. */

/* ── Alinhamento do Slide 2 (hero institucional) igual ao Slide 1 ──
   .hc-slide--tributaria tem min-height:680 + padding-top:80 no
   .banner-content. Replicamos a mesma altura e o mesmo padding-top
   fixo aqui, trocando o centering (que dependia da altura esticada
   pelo .hc-track) por um offset fixo a partir do topo. */
.hc-slide--hero {
    min-height: 680px;
}

.hc-slide--hero .hero-container {
    align-items: center;
    padding: 80px 20px 40px 20px;
    min-height: 680px;
    box-sizing: border-box;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hc-slide--tributaria {
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hc-slide--tributaria .banner-content {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 32px;
    align-items: center;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 80px 40px 40px 40px;
    min-height: 680px;
    box-sizing: border-box;
}

.hc-slide--tributaria .banner-text {
    color: #fff;
}

.reform-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.18);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 26px;
    color: #fff;
}

.reform-badge i {
    color: var(--accent-color);
}

.hc-slide--tributaria .banner-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 22px;
    color: #fff;
}

.hc-slide--tributaria .banner-title span {
    display: block;
}

/* ── Personagem do Slide 1 do mesmo tamanho que o do Slide 2 ──
   Originais no style.css usam max-width:420px (escala pela largura).
   O slide 2 (.accountant-photo) escala pela ALTURA do container
   (height:680px + max-height:100%), o que resulta numa figura maior.
   Replicamos a mesma lógica aqui para os dois ficarem visualmente
   do mesmo tamanho. */
.banner-visual {
    height: 600px;
}

.banner-character-wrapper {
    height: 100%;
    max-width: none;
}

.banner-character-img {
    height: auto;
    max-height: 100%;
    width: auto;
    max-width: 480px;
}

.hc-slide--tributaria .banner-title .title-highlight {
    color: #dced9a !important;
}

/* ── Reforço de contraste dos dots de navegação ──
   Os dots estavam praticamente invisíveis sobre o fundo escuro do carrossel.
   Aqui garantimos anel/preenchimento visíveis nos dois estados (ativo/inativo). */
.hc-dots {
    z-index: 5;
}

.hc-dot {
    background: transparent;
}

.hc-dot__ring {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.hc-dot__fill {
    background: rgba(255, 255, 255, 0.55) !important;
}

.hc-dot--active .hc-dot__ring {
    box-shadow: 0 0 0 2px #fff !important;
    background: transparent !important;
}

.hc-dot--active .hc-dot__fill {
    background: #dced9a !important;
}

.hc-dot__progress {
    background: #dced9a !important;
}

.hc-slide--tributaria .banner-subtitle {
    font-size: clamp(15px, 1.5vw, 17px);
    color: rgba(255,255,255,.82);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 680px;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 36px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.benefit-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, transparent 65%);
    pointer-events: none;
}

.benefit-text {
    font-size: 14px;
    color: rgba(255,255,255,.90);
    line-height: 1.6;
}

.benefit-text strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    color: #fff;
}

.benefit-desc {
    display: block;
    color: rgba(255,255,255,.75);
}

.cta-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-trib-primary,
.btn-trib-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-trib-primary {
    background: rgba(255,255,255,.12);
    border: 2px solid rgba(255,255,255,.22);
    color: #fff;
}

.btn-trib-primary:hover {
    background: rgba(255,255,255,.22);
    transform: translateY(-2px);
}

.btn-trib-secondary {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid #fff;
    box-shadow: 0 14px 40px rgba(5, 18, 9, 0.18);
}

.btn-trib-secondary:hover {
    transform: translateY(-2px);
    background: #f8f8f8;
}

.hero-text-content {
    flex: 1;
    max-width: 600px;
    color: #fff;
    padding-bottom: 80px;
    animation: fadeUp 1s ease-out;
}

.welcome-badge {
    background: rgba(237, 208, 168, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(237, 208, 168, 0.3);
}

.hero-title {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-title .highlight {
    color: #dced9a;
    position: relative;
    z-index: 1;
    font-weight: 900;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    z-index: -1;
    transform: skewX(-15deg);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 35px;
    max-width: 480px;
}

/* Reforço de contraste — garante branco mesmo se algum CSS global
   do tema (h1, p, .entry-content etc.) tiver especificidade maior
   e estiver sobrescrevendo a cor herdada de .hero-text-content */
.hc-slide--hero .hero-title,
.hc-slide--hero .hero-title *,
.hc-slide--hero .hero-subtitle,
.hc-slide--hero .hero-micro-benefit {
    color: #fff !important;
}

.hc-slide--hero .hero-subtitle b {
    color: #dced9a !important;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background-color: #fff;
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    transition: 0.3s;
    box-shadow: 0 14px 40px rgba(5, 18, 9, 0.18);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    background-color: #f8f8f8;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.btn-hero-coffee {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.btn-hero-coffee:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    height: 680px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.accountant-photo {
    max-height: 100%;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
    animation: slideInRight 1.2s ease-out;
    z-index: 1;
}

.floating-card {
    position: absolute;
    top: 30%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    animation: float 4s ease-in-out infinite;
    z-index: 2;
    border-left: 4px solid var(--accent-color);
}

.floating-card i {
    font-size: 24px;
    color: var(--primary-color);
}

.floating-card strong {
    display: block;
    color: var(--text-color);
    font-size: 24px;
}

.floating-card span {
    font-size: 12px;
    color: #666;
}

.pricing-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.services-grid-section {
    padding: 100px 0;
    background-color: #fff;
}

.feature-split-section {
    padding: 100px 0 0 0;
    background-color: #fff;
    overflow: hidden;
}

.cadu-agent-experience {
    background:
        radial-gradient(circle at 15% 15%, rgba(139, 188, 90, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(63, 80, 46, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #f7f9f5 0%, #ffffff 100%);
    padding: 160px 20px 100px 20px;
    position: relative;
    overflow: visible;
    z-index: 10;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 900px) {
    .hero-coffee-banner {
        padding-top: 40px;
        min-height: auto;
        text-align: center;
    }

    .hero-text-content {
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-actions {
        justify-content: center;
    }

    .accountant-photo {
        max-height: 400px;
    }
}

/* ==========================================================
   RESPONSIVO — MOBILE (Slide 1 e Slide 2)
   front-page.css carrega DEPOIS de style.css e redefine
   .banner-content / .hero-container sem media query, o que
   sobrescreve e anula as regras responsivas originais do tema.
   Replicamos aqui as quebras de layout para mobile.
   ========================================================== */

@media (max-width: 1024px) {
    .hc-slide--tributaria,
    .hc-slide--hero {
        min-height: unset;
    }

    .hc-slide--tributaria .banner-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 48px 24px 32px 24px;
        min-height: unset;
    }

    .hc-slide--hero .hero-container {
        flex-direction: column;
        align-items: center;
        padding: 48px 24px 32px 24px;
        min-height: unset;
    }

    .hero-text-content {
        max-width: 100%;
        padding-bottom: 24px;
        text-align: center;
    }

    .banner-visual,
    .hero-image-wrapper {
        order: -1;
    }

    .hero-image-wrapper {
        height: auto;
        min-height: 280px;
        width: 100%;
    }

    .banner-character-img {
        max-width: 380px;
    }

    .accountant-photo {
        max-height: 320px;
    }
}

@media (max-width: 768px) {
    .benefits-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-buttons,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-trib-primary,
    .btn-trib-secondary,
    .btn-hero-primary,
    .btn-hero-coffee {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .banner-character-img {
        max-width: 300px;
    }

    .hero-title {
        font-size: 30px;
    }

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

@media (max-width: 480px) {
    .hc-slide--tributaria .banner-content,
    .hc-slide--hero .hero-container {
        padding: 28px 16px 28px 16px;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .reform-badge,
    .welcome-badge {
        font-size: 11px;
        padding: 8px 14px;
    }

    .benefit-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .benefit-text {
        font-size: 13px;
    }

    .hero-image-wrapper {
        min-height: 220px;
    }

    .floating-card {
        position: static;
        transform: none;
        margin-top: 16px;
        width: 100%;
        max-width: none;
        justify-content: center;
        animation: none;
    }
}