/* ═════════════════════════════════════════════════════════════════════════
   CORTEPLACA — Hero v2 (background image + overlay)
   Replaces RevSlider with a clean, performant hero section.
   ═════════════════════════════════════════════════════════════════════════ */

.cp-hero-v2 {
    position: relative;
    min-height: calc(100vh - 200px);
    min-height: calc(100dvh - 200px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

/* Background crossfade slideshow */
.cp-hero-v2-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cp-hero-v2-bg .cp-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.cp-hero-v2-bg .cp-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

.cp-hero-v2-bg .cp-hero-slide.active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .cp-hero-v2-bg .cp-hero-slide {
        transition: none;
    }
}

/* Uniform dark scrim — even contrast across full image */
.cp-hero-v2-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(10, 24, 20, .54) 0%,
        rgba(10, 24, 20, .50) 55%,
        rgba(10, 24, 20, .64) 100%
    );
}

.cp-hero-v2-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

/* Content container */
.cp-hero-v2-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 64px 0 56px;
}

/* Text content */
.cp-hero-v2-content {
    max-width: 700px;
}

.cp-hero-v2-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px 5px 10px;
    margin-bottom: 18px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(10, 28, 22, 0.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 3px solid #1D9E75;
    border-radius: 4px;
}

.cp-kicker-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1D9E75;
    flex-shrink: 0;
    animation: cp-kicker-pulse 2.2s ease-in-out infinite;
}

@keyframes cp-kicker-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.65); }
}

@media (prefers-reduced-motion: reduce) {
    .cp-kicker-dot { animation: none; }
}

.cp-hero-v2-kicker i {
    font-size: 13px;
}

.cp-hero-v2-title {
    margin: 0;
    font-size: clamp(4.5rem, 10vw, 6.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}

.cp-hero-v2-sub {
    margin: 20px 0 0;
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.65;
    color: rgba(255, 255, 255, .88);
    max-width: 600px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

/* CTA buttons */
.cp-hero-v2-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.cp-btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: #edba02;
    color: #1f352b;
    border: 2px solid #ffc107;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .15s;
}

.cp-btn-hero-primary:hover {
    background: #d2a501;
    border-color: #bf9702;
    color: #fff;
    transform: translateY(-1px);
}

.cp-btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background .15s, border-color .15s;
}

.cp-btn-hero-outline:hover {
    background: rgba(255, 255, 255, .15);
    border-color: #fff;
    color: #fff;
}

/* Gold CTA — "Utilizar o Simulador" highlight */
.cp-btn-hero-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--cp-gold, #EDBA02);
    color: #1F2937;
    border: 2px solid var(--cp-gold, #EDBA02);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}

.cp-btn-hero-gold:hover {
    background: var(--cp-gold-hover, #D4A502);
    border-color: var(--cp-gold-hover, #D4A502);
    color: #1F2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(237, 186, 2, .35);
}

.cp-btn-hero-primary:focus-visible,
.cp-btn-hero-outline:focus-visible,
.cp-btn-hero-gold:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Microcopy — trust signals below CTAs */
.cp-hero-v2-microcopy {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 12px 0 0;
    padding: 0;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .80);
    flex-wrap: wrap;
}

.cp-hero-v2-microcopy i {
    font-size: 13px;
    color: #1D9E75;
    margin-right: 4px;
}

/* Trust line — contrast ~7.5:1 ✓ WCAG AA */
.cp-hero-v2-trust {
    margin: 20px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
    padding-left: 4px;
    letter-spacing: .01em;
}

.cp-hero-v2-trust i {
    color: #edba02;
    margin-right: 4px;
}

/* Stats strip (bottom of hero — icon boxes like screenshot) */
.cp-hero-v2-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    padding-top: 24px;
}

.cp-hero-v2-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px 0 0;
    text-decoration: none;
    color: #fff;
    border-radius: 8px;
    transition: color .15s ease;
}

.cp-hero-v2-stat:hover {
    color: #fff;
    text-decoration: none;
}

.cp-hero-v2-stat:hover .cp-stat-icon {
    background: rgba(29, 158, 117, .30);
    border-color: rgba(29, 158, 117, .55);
}

.cp-hero-v2-stat:hover .cp-stat-label {
    color: #1D9E75;
}

.cp-hero-v2-stat:not(:first-child) {
    padding-left: 20px;
    
}

/* Rounded-square icon box — green accent for brand identity */
.cp-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(29, 158, 117, .20);
    border: 1px solid rgba(29, 158, 117, .40);
    flex-shrink: 0;
}

.cp-stat-icon i {
    font-size: 20px;
    color: #fff;
}

.cp-stat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

/* Label = título da stat (proeminente) — contrast ~13:1 ✓ WCAG AAA */
.cp-stat-label {
    font-size: 13.5px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: .01em;
    color: #fff;
    line-height: 1.3;
    transition: color .15s ease;
}

/* Value = descrição (muted) — contrast ~6.5:1 ✓ WCAG AA */
.cp-stat-value {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, .70);
    letter-spacing: normal;
    line-height: 1.4;
}

.cp-hero-v2-stat:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .9);
    outline-offset: 3px;
}

.cp-hero-v2-stat--highlight {
    background: rgba(29, 158, 117, .28);
    border: 1px solid rgba(29, 158, 117, .55);
    border-radius: 8px;
    padding: 10px 16px;
}

.cp-hero-v2-stat--highlight .cp-stat-icon {
    background: rgba(29, 158, 117, .35);
    border-color: rgba(29, 158, 117, .60);
}

.cp-hero-v2-stat--highlight .cp-stat-label {
    color: #fff;
}

/* Features row below stats */
.cp-hero-v2-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.cp-hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0 16px 0 0;
}

.cp-hero-feature:not(:first-child) {
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.cp-hero-feature>i {
    font-size: 18px;
    color: var(--cp-gold, #EDBA02);
    margin-top: 2px;
    flex-shrink: 0;
}

.cp-hero-feature strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.cp-hero-feature span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, .6);
    line-height: 1.4;
    margin-top: 2px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    .cp-hero-v2 {
        min-height: calc(100vh - 56px);
        min-height: calc(100dvh - 56px);
    }

    .cp-hero-v2-inner {
        padding: 48px 0 40px;
    }

    .cp-hero-v2-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        margin-top: 32px;
        padding-top: 20px;
    }

    .cp-hero-v2-stat {
        padding: 10px 16px 10px 0;
    }

    .cp-hero-v2-stat:not(:first-child) {
        padding-left: 16px;
        border-left: 1px solid rgba(255, 255, 255, .14);
    }

    .cp-hero-v2-stat:nth-child(3) {
        padding-left: 0;
        border-left: 0;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, .14);
    }

    .cp-hero-v2-stat:nth-child(4) {
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, .14);
    }

    .cp-hero-v2-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin-top: 18px;
        padding-top: 18px;
    }

    .cp-hero-feature:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }
}


/* ── Versão B — hero headline (Barlow Condensed, letras menores) ─────────── */
.cp-hero-v2-headline {
    margin: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.01em;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}

.cp-headline-accent {
    color: #1D9E75;
    display: block;
}

/* ── Versão B — kicker editorial (tagline, sem pill glass) ─────────────── */
.cp-hero-v2-kicker--large {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-left: 3px solid #1D9E75;
    border-radius: 0;
    padding: 3px 0 3px 13px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .015em;
    text-transform: none;
    color: rgba(255, 255, 255, .82);
}

.cp-hero-v2-kicker--spotlight {
    background: rgba(10, 28, 22, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-left: 4px solid #edba02;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 700;
    letter-spacing: .01em;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

/* ── Versão B — botão secundário premium ───────────────────────────────── */
.cp-btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: rgba(255, 255, 255, .10);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .48);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background .18s, border-color .18s, box-shadow .18s, transform .15s;
}

.cp-btn-hero-secondary:hover {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .78);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
    transform: translateY(-1px);
    text-decoration: none;
}

.cp-btn-hero-secondary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ── Versão B — primary button refinement ───────────────────────────────── */
.cp-btn-hero-primary--refined {
    box-shadow: 0 2px 0 rgba(0, 0, 0, .18), 0 4px 16px rgba(237, 186, 2, .30);
    letter-spacing: .01em;
}

.cp-btn-hero-primary--refined:hover {
    box-shadow: 0 2px 0 rgba(0, 0, 0, .18), 0 6px 20px rgba(237, 186, 2, .40);
}

/* ── SEO bridge (secção após routing-strip) ─────────────────────────────── */
.cp-seo-bridge {
    background: linear-gradient(180deg, #f8f9fa 0%, #f2f6f4 100%);
    padding: 64px 0 72px;
    border-top: 1px solid var(--color-border, #e5e7eb);
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.cp-seo-bridge-inner {
    display: grid;
    grid-template-columns: minmax(330px, 38%) 1fr;
    gap: 42px;
    align-items: stretch;
}

.cp-seo-bridge-text,
.cp-mat-nav {
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
}

.cp-seo-bridge-text {
    border-left: 4px solid var(--color-primary, #1D9E75);
}

.cp-seo-bridge-title {
    font-size: clamp(1.4rem, 2vw, 1.95rem);
    font-weight: 800;
    color: var(--color-text, #1f2937);
    letter-spacing: -.01em;
    margin: 0 0 18px;
    line-height: 1.28;
}

.cp-seo-bridge-desc {
    font-size: 15px;
    line-height: 1.78;
    color: var(--color-text-muted, #6b7280);
    margin: 0 0 24px;
}

.cp-seo-bridge-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ds-green-deep, #0F6B4E);
    text-decoration: none;
    transition: gap .15s;
}

.cp-seo-bridge-link:hover {
    gap: 8px;
    color: var(--ds-green-deep, #0F6B4E);
}

.cp-mat-nav-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--color-text-muted, #6b7280);
    margin: 0 0 16px;
}

.cp-mat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cp-mat-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 14px;
    min-height: 102px;
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
    position: relative;
}

.cp-mat-card:hover {
    border-color: var(--color-primary, #1D9E75);
    box-shadow: 0 2px 8px rgba(29, 158, 117, .08);
    text-decoration: none;
}

.cp-mat-card strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text, #1f2937);
    line-height: 1.3;
}

.cp-mat-card span {
    font-size: 12px;
    color: var(--color-text-muted, #6b7280);
    line-height: 1.45;
}

.cp-mat-card--more {
    border-style: dashed;
    justify-content: space-between;
}

.cp-mat-card--more strong {
    color: var(--ds-green-deep, #0F6B4E);
}

.cp-mat-card--more i {
    font-size: 13px;
    color: var(--color-primary, #1D9E75);
    margin-top: auto;
    padding-top: 6px;
}

@media (max-width: 991.98px) {
    .cp-seo-bridge-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cp-seo-bridge-text,
    .cp-mat-nav {
        padding: 20px;
    }

    .cp-mat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ── Entry animations — staggered fade-up ──────────────────────────────── */
@keyframes cp-hero-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cp-hero-v2-content .cp-hero-v2-kicker {
    animation: cp-hero-in .55s cubic-bezier(.22,.68,0,1.2) both;
    animation-delay: 0ms;
}

.cp-hero-v2-content .cp-hero-v2-title,
.cp-hero-v2-content .cp-hero-v2-headline {
    animation: cp-hero-in .55s cubic-bezier(.22,.68,0,1.2) both;
    animation-delay: 110ms;
}

.cp-hero-v2-content .cp-hero-v2-sub {
    animation: cp-hero-in .55s ease-out both;
    animation-delay: 230ms;
}

.cp-hero-v2-content .cp-hero-v2-ctas {
    animation: cp-hero-in .5s ease-out both;
    animation-delay: 340ms;
}

.cp-hero-v2-content .cp-hero-v2-trust {
    animation: cp-hero-in .45s ease-out both;
    animation-delay: 430ms;
}

@media (max-width: 575.98px) {
    .cp-hero-v2 {
        min-height: calc(100vh - 108px);
        min-height: calc(100dvh - 108px);
    }

    .cp-hero-v2-inner {
        padding: 32px 0 28px;
    }

    .cp-hero-v2-headline {
        font-size: clamp(2.2rem, 10vw, 2.9rem);
        line-height: 1.02;
        letter-spacing: 0;
    }

    .cp-hero-v2-sub {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.55;
        max-width: 100%;
    }

    .cp-hero-v2-kicker--spotlight {
        padding: 7px 12px;
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 14px;
    }

    .cp-hero-v2-ctas {
        flex-direction: column;
        gap: 10px;
        margin-top: 22px;
    }

    .cp-btn-hero-primary,
    .cp-btn-hero-secondary,
    .cp-btn-hero-outline,
    .cp-btn-hero-gold {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        font-size: 14px;
        font-weight: 700;
        border-radius: 7px;
    }

    .cp-btn-hero-primary--refined {
        box-shadow: 0 2px 0 rgba(0, 0, 0, .16), 0 3px 12px rgba(237, 186, 2, .24);
    }

    .cp-btn-hero-secondary {
        background: rgba(9, 30, 24, .42);
        border-color: rgba(255, 255, 255, .60);
    }

    .cp-hero-v2-trust {
        margin-top: 14px;
        padding-left: 0;
        font-size: 12.5px;
        line-height: 1.45;
        color: rgba(255, 255, 255, .82);
    }

    .cp-hero-v2-stats {
        margin-top: 24px;
        padding-top: 16px;
    }

    .cp-hero-v2-stat {
        gap: 10px;
        padding: 8px 10px 8px 0;
    }

    .cp-hero-v2-stat:not(:first-child) {
        padding-left: 10px;
    }

    .cp-stat-icon {
        width: 40px;
        height: 40px;
    }

    .cp-stat-icon i {
        font-size: 17px;
    }

    .cp-stat-label {
        font-size: 12.5px;
    }

    .cp-stat-value {
        font-size: 11px;
    }

    .cp-seo-bridge {
        padding: 34px 0 38px;
    }

    .cp-seo-bridge-title {
        font-size: 1.32rem;
    }

    .cp-seo-bridge-desc {
        font-size: 14px;
        line-height: 1.65;
    }

    .cp-mat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cp-mat-card {
        min-height: 96px;
        padding: 12px;
    }

    .cp-seo-bridge-inner {
        gap: 14px;
    }

    .cp-seo-bridge-text,
    .cp-mat-nav {
        padding: 16px;
    }

    .cp-hero-v2-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cp-hero-feature {
        padding: 0;
    }

    .cp-hero-feature:not(:first-child) {
        padding-left: 0;
        border-left: 0;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    .cp-btn-hero-primary:hover,
    .cp-btn-hero-gold:hover,
    .cp-btn-hero-secondary:hover {
        transform: none;
    }

    .cp-hero-v2-content .cp-hero-v2-kicker,
    .cp-hero-v2-content .cp-hero-v2-title,
    .cp-hero-v2-content .cp-hero-v2-headline,
    .cp-hero-v2-content .cp-hero-v2-sub,
    .cp-hero-v2-content .cp-hero-v2-ctas,
    .cp-hero-v2-content .cp-hero-v2-trust {
        animation: none;
    }
}