:root {
    --color-cyan: #07B8A6; /* Vibrant cyan/teal from reference */
    --color-cyan-light: #E0F5F3;
    --hero-bg-color: #F2F8F8; /* Light cyan/grey background */
    --text-dark: #1E293B;
}

.hero-wrapper {
    background-color: var(--hero-bg-color);
    border-radius: 40px;
    position: relative;
    overflow: visible; /* Must be visible for the lawyer popping out if needed */
    display: flex;
    flex-direction: column;
    min-height: 85vh;
}

.hero-bg {
    display: none;
}



.hero-section {
    position: relative;
    width: 100%;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 280px;
    gap: 40px;
    padding: 140px 48px 80px; /* Increased top padding to clear fixed header */
    z-index: 10;
    align-items: center;
}

/* LEFT COLUMN */
.hero-content-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 5;
}

.trust-badge,
.mobile-hero-badge {
    display: none !important;
}

.hero-content-left h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.text-accent {
    color: var(--text-dark); /* In the reference, it's just black */
}

.hero-desc {
    font-size: 16px;
    color: #475569;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.btn-hero {
    align-self: flex-start;
    background-color: var(--color-cyan);
    color: #FFFFFF;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-bottom: 48px;
}

.btn-hero:hover {
    background-color: #059688;
    transform: translateY(-2px);
}

.hero-trust-info {
    display: flex;
    gap: 40px;
    border-top: 1px solid #E2E8F0;
    padding-top: 32px;
}

.trust-item h4 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.trust-item span {
    font-size: 14px;
    color: #64748B;
    font-weight: 500;
}

/* CENTER COLUMN - LAWYER POP OUT */
.hero-content-center {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    height: 100%;
    min-height: 500px;
}

.lawyer-frame {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 340px;
    margin-top: auto;
}

.lawyer-frame-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #A3C5BA; /* Soft muted green/grey from reference */
    border-radius: 8px;
    overflow: hidden;
}

.frame-shape {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 150%;
    height: 150%;
    z-index: 1;
}

.lawyer-img-framed {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110%; /* wider than frame */
    max-width: none;
    height: auto;
    z-index: 2;
    /* This makes him stick out of the top of the frame */
}

/* RIGHT COLUMN - CARDS */
.hero-content-right-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}

.hero-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-card-top {
    background-color: #A3C5BA; /* Same as frame */
    color: #1E293B;
}

.hero-card-bottom {
    background-color: #A3C5BA;
    color: #1E293B;
}

.card-avatars {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }
.bg-blue { background-color: #1E3A8A; }
.bg-gold { background-color: #F7A821; }
.bg-dark { background-color: #1E293B; }

.avatar-plus {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #07B8A6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #FFFFFF;
    margin-left: -8px;
}

.card-icon-round {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #07B8A6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.hero-card h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #1E293B;
}

.hero-card span {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    display: block;
    margin-bottom: 16px;
}

.card-quote {
    font-size: 13px;
    font-style: italic;
    color: #334155;
    line-height: 1.5;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 16px;
}

/* Responsive Mobile & Tablet Optimization */
@media (max-width: 1024px) {
    .hero-wrapper {
        border-radius: 36px;
        padding-bottom: 60px;
    }

    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 100px;
        gap: 40px;
    }
    
    .hero-content-left {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .btn-hero {
        align-self: center;
    }
    
    .hero-trust-info {
        justify-content: center;
        width: 100%;
    }
    
    .lawyer-frame {
        margin-top: 40px;
        height: 380px;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content-right-cards {
        flex-direction: row;
    }
}

/* DEDICATED EXCLUSIVE MOBILE HERO STYLES (< 768px) */
.mobile-hero-dedicated {
    display: none;
}

@media (max-width: 768px) {
    .mobile-hero-dedicated {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 95px 16px 36px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-section {
        display: none !important; /* Hide desktop grid on mobile */
    }

    .mobile-hero-badge {
        display: inline-block;
        background-color: var(--color-cyan-light, #E0F5F3);
        color: var(--color-cyan, #07B8A6);
        padding: 6px 16px;
        border-radius: 50px;
        font-size: 12.5px;
        font-weight: 700;
        margin-bottom: 16px;
    }

    .mobile-hero-title {
        font-size: 27px;
        font-weight: 800;
        line-height: 1.25;
        color: #1E293B;
        margin-bottom: 12px;
        letter-spacing: -0.5px;
    }

    .mobile-hero-highlight {
        color: #07B8A6;
    }

    .mobile-hero-sub {
        font-size: 14.5px;
        color: #475569;
        line-height: 1.55;
        margin-bottom: 24px;
        max-width: 340px;
    }

    /* Clean Mobile Lawyer Card com foto de Beca (NOVA-SOBRE.png) */
    .mobile-hero-lawyer-card {
        width: 100%;
        max-width: 320px;
        background: #FFFFFF;
        border-radius: 20px;
        padding: 16px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
        border: 1px solid #E2E8F0;
        margin-bottom: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }

    .mobile-lawyer-img-wrapper {
        width: 100%;
        border-radius: 14px;
        overflow: hidden;
        background: #F1F5F9;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mobile-hero-lawyer-img {
        width: 100%;
        height: auto;
        max-height: 360px;
        object-fit: contain;
        display: block;
    }

    .mobile-lawyer-info {
        margin-top: 12px;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-lawyer-info strong {
        font-size: 16px;
        color: #0F172A;
    }

    .mobile-lawyer-info span {
        font-size: 12px;
        color: #64748B;
        font-weight: 500;
    }

    .mobile-hero-cta {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 16px 20px;
        font-size: 15.5px;
        font-weight: 700;
        border-radius: 50px;
        text-decoration: none;
        margin-bottom: 24px;
        box-sizing: border-box;
    }

    .mobile-hero-metrics {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        width: 100%;
        max-width: 340px;
        padding-top: 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .mobile-metric-item strong {
        display: block;
        font-size: 14px;
        font-weight: 800;
        color: #0F172A;
    }

    .mobile-metric-item span {
        font-size: 11.5px;
        color: #64748B;
    }
}
