/* ==========================================================
   ELDER ALVES ADVOCACIA
   HOME.CSS
   ----------------------------------------------------------
   Estilos exclusivos da Home:
   - Hero
   - Áreas da Home
   - Sobre resumido
   - Depoimentos
   - Blog home
========================================================== */


/* ==========================================================
   HOME GERAL
========================================================== */

.elder-home {
    background: var(--white);
}


/* ==========================================================
   HERO HOME
========================================================== */

.ea-hero {
    min-height: 100vh;
    padding: 158px 0 88px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.ea-hero::after {
    content: "";
    position: absolute;
    right: -160px;
    bottom: -180px;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: rgba(198, 163, 106, 0.12);
    filter: blur(2px);
}

.ea-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 70px;
    align-items: center;
}

.ea-hero-content {
    max-width: 720px;
}

.ea-hero h1 {
    margin-top: 18px;
    color: var(--white);
    font-size: clamp(3.2rem, 6vw, 5.1rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.ea-hero p {
    max-width: 640px;
    margin-top: 26px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    line-height: 1.65;
}

.ea-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 38px;
}

.ea-hero-form {
    position: relative;
}


/* ==========================================================
   BOTÕES DO HERO
========================================================== */

.ea-btn-whatsapp {
    min-width: 210px;
}

.ea-btn-whatsapp svg {
    width: 21px;
    height: 21px;
}

.ea-btn-case {
    min-width: 218px;
    justify-content: space-between;
}

.ea-btn-circle-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ea-btn-circle-icon svg {
    width: 17px;
    height: 17px;
}


/* ==========================================================
   ÁREAS HOME
========================================================== */

.ea-areas {
    background:
        linear-gradient(180deg, var(--white), var(--ea-gray-50));
}


/* ==========================================================
   SOBRE HOME
========================================================== */

.ea-about {
    background: var(--white);
}

.ea-about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 76px;
    align-items: center;
}

.ea-about-image {
    position: relative;
}

.ea-about-image::before {
    content: "";
    position: absolute;
    inset: 28px -24px -24px 28px;
    border-radius: var(--radius-xl);
    background: var(--ea-cream);
    z-index: 0;
}

.ea-about-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-medium);
}

.ea-about-content > span {
    display: inline-block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.ea-about-content h2 {
    color: var(--primary);
    font-size: clamp(2.2rem, 4.3vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    margin-bottom: 22px;
}

.ea-about-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.75;
}


/* ==========================================================
   SOBRE O ADVOGADO — HIGHLIGHTS
   ----------------------------------------------------------
   Esse bloco usa a classe atual do HTML: .ea-about-points
   Não precisa mudar o front-page.php.
========================================================== */

.ea-about-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 34px;
    margin-bottom: 28px;
    align-items: stretch;
}

.ea-about-points div {
    text-align: center;
    padding: 0 22px;
    position: relative;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.ea-about-points div:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 0;
    width: 1px;
    height: 78px;
    background: #e6dccf;
}

.ea-about-points div svg {
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    color: var(--gold);
}

.ea-about-points div svg path,
.ea-about-points div svg circle {
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ea-about-points strong {
    display: block;
    color: var(--primary);
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.01em;
    margin: 0 auto;
    max-width: 170px;
}

.ea-about-points small {
    display: none;
}

.ea-about-content .ea-btn {
    margin-top: 4px;
}




/* ==========================================================
   BLOG HOME
========================================================== */

.ea-blog {
    background: var(--white);
}

.ea-blog-heading-left {
    max-width: 760px;
    margin-bottom: 28px;
}

.ea-blog-heading-left span {
    display: inline-block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.ea-blog-heading-left h2 {
    color: var(--primary);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.ea-blog-featured-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: stretch;
}

.ea-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.ea-blog-card {
    overflow: hidden;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid #e8e2d8;
    box-shadow: 0 10px 28px rgba(5, 19, 34, 0.06);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.ea-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 38px rgba(5, 19, 34, 0.1);
    border-color: rgba(198, 163, 106, 0.42);
}

.ea-blog-card-image {
    display: block;
    overflow: hidden;
}

.ea-blog-card-image img,
.ea-blog-card img {
    width: 100%;
    height: 122px;
    object-fit: cover;
    display: block;
    transition: transform 0.42s ease;
}

.ea-blog-card:hover img {
    transform: scale(1.05);
}

.ea-blog-card-content {
    padding: 18px 18px 20px;
}

.ea-blog-category {
    display: inline-block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 8px;
}

.ea-blog-card h3 {
    color: var(--primary);
    font-size: 1.04rem;
    line-height: 1.24;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.ea-blog-card h3 a {
    color: inherit;
    text-decoration: none !important;
    transition: color var(--transition);
}

.ea-blog-card h3 a:hover {
    color: var(--gold);
}

.ea-blog-card small {
    color: var(--text-light);
    font-size: 0.84rem;
    font-weight: 600;
}

/* CTA lateral */

.ea-blog-cta-card {
    border-radius: 10px;
    padding: 28px 26px;
    background:
        radial-gradient(circle at 100% 0%, rgba(198, 163, 106, 0.15), transparent 34%),
        linear-gradient(135deg, var(--ea-navy-950), var(--ea-navy-800));
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    box-shadow: 0 16px 40px rgba(5, 19, 34, 0.16);
}

.ea-blog-cta-icon {
    width: 48px;
    height: 48px;
    color: var(--white);
    opacity: 0.92;
    margin-bottom: 22px;
}

.ea-blog-cta-icon svg {
    width: 48px;
    height: 48px;
}

.ea-blog-cta-icon svg path {
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ea-blog-cta-card h3 {
    color: var(--white);
    font-size: 1.45rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-weight: 900;
    margin-bottom: 26px;
}

.ea-blog-cta-btn {
    width: 100%;
    min-height: 56px;
    justify-content: space-between;
    color: var(--white) !important;
    text-decoration: none !important;
}

.ea-blog-cta-btn .ea-btn-circle-icon {
    background: rgba(255, 255, 255, 0.95);
    color: var(--gold);
}

/* Responsivo blog */

@media (max-width: 1100px) {
    .ea-blog-featured-layout {
        grid-template-columns: 1fr;
    }

    .ea-blog-cta-card {
        min-height: auto;
    }
}

@media (max-width: 900px) {
    .ea-blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .ea-blog-grid {
        grid-template-columns: 1fr;
    }

    .ea-blog-heading-left {
        margin-bottom: 24px;
    }

    .ea-blog-card-image img,
    .ea-blog-card img {
        height: 180px;
    }
}
/* ==========================================================
   DEPOIMENTOS HOME
========================================================== */

.ea-testimonials {
    background: var(--white);
    padding: 72px 0;
}

.ea-testimonials .ea-section-heading {
    margin-bottom: 42px;
}

/* Slider */

.ea-testimonials-slider {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 18px;
}

.ea-testimonials-viewport {
    overflow: hidden;
    width: 100%;
}

.ea-testimonials-track {
    display: flex;
    gap: 20px;
    transition: transform 0.42s ease;
    will-change: transform;
}

/* Cards */

.ea-testimonial-card {
    flex: 0 0 calc((100% - 40px) / 3);
    min-height: 260px;
    padding: 28px 28px 24px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid #ece7df;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.ea-testimonial-card::before {
    content: "❝";
    display: block;
    color: var(--gold);
    font-size: 2.3rem;
    line-height: 1;
    margin-bottom: 8px;
    font-family: Georgia, serif;
}

.ea-testimonial-stars {
    color: var(--gold);
    font-size: 0.96rem;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
    font-weight: 900;
}

.ea-testimonial-card p {
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.68;
    margin-bottom: 24px;
    flex: 1;
}

.ea-testimonial-card strong {
    display: block;
    color: var(--primary);
    font-size: 0.96rem;
    font-weight: 900;
}

.ea-testimonial-card small {
    display: block;
    color: var(--text-light);
    font-size: 0.84rem;
    margin-top: 4px;
}

/* Setas */

.ea-testimonials-arrow {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 999px;
    border: 1px solid #e5ddd1;
    background: #ffffff;
    color: var(--text-light);
    display: grid;
    place-items: center;
    padding: 0;
    line-height: 1;
    transition: all var(--transition);
    box-shadow: 0 8px 22px rgba(5, 19, 34, 0.05);
}

.ea-testimonials-arrow span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    line-height: 1;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
}

.ea-testimonials-prev span {
    transform: translate(-1px, -2px);
}

.ea-testimonials-next span {
    transform: translate(1px, -2px);
}

.ea-testimonials-arrow:hover {
    color: var(--primary);
    border-color: var(--gold);
    background: #fffdf9;
}

.ea-testimonials-arrow:disabled {
    cursor: pointer;
}

/* Bolinhas */

.ea-testimonials-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
}

.ea-testimonials-dots button {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 0;
    background: #d8d8d8;
    padding: 0;
    transition: all var(--transition);
}

.ea-testimonials-dots button.is-active {
    width: 34px;
    background: var(--gold);
    transform: none;
}

/* Responsivo */

@media (max-width: 1100px) {
    .ea-testimonials-slider {
        grid-template-columns: 44px 1fr 44px;
        gap: 14px;
    }

    .ea-testimonial-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .ea-testimonials-arrow {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .ea-testimonials-arrow span {
        width: 44px;
        height: 44px;
        font-size: 1.85rem;
    }
}

@media (max-width: 768px) {
    .ea-testimonials {
        padding: 76px 0;
    }

    .ea-testimonials-slider {
        grid-template-columns: 40px 1fr 40px;
        gap: 10px;
    }

    .ea-testimonial-card {
        flex: 0 0 100%;
        min-height: auto;
        padding: 26px 24px 24px;
    }

    .ea-testimonials-arrow {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .ea-testimonials-arrow span {
        width: 40px;
        height: 40px;
        font-size: 1.65rem;
    }
}
/* ==========================================================
   AJUSTE ÍCONES HOME
========================================================== */

.ea-hero-actions .ea-btn svg {
    width: 18px;
    height: 18px;
}


/* ==========================================================
   RESPONSIVO HOME
========================================================== */

@media (max-width: 1100px) {
    .ea-hero-grid,
    .ea-about-grid {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .ea-hero {
        min-height: auto;
    }

    .ea-hero-content {
        max-width: 820px;
    }

    .ea-hero-form {
        max-width: 640px;
    }

    .ea-about-points {
        grid-template-columns: repeat(3, 1fr);
    }

    .ea-testimonials-grid,
    .ea-blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .ea-hero {
        padding: 142px 0 72px;
    }

    .ea-hero h1 {
        font-size: clamp(2.65rem, 13vw, 4rem);
    }

    .ea-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ea-about-grid {
        gap: 44px;
    }

    .ea-about-image::before {
        inset: 18px -12px -12px 18px;
    }

    .ea-about-points,
    .ea-testimonials-grid,
    .ea-blog-grid {
        grid-template-columns: 1fr;
    }

    .ea-about-points {
        gap: 22px;
        margin-top: 28px;
        margin-bottom: 28px;
    }

    .ea-about-points div {
        padding: 0;
    }

    .ea-about-points div:not(:last-child)::after {
        display: none;
    }

    .ea-about-points div svg {
        width: 42px;
        height: 42px;
        margin-bottom: 10px;
    }

    .ea-about-points strong {
        max-width: none;
    }
}
/* ==========================================================
   DESTAQUE DO QUALIFICADOR AO CLICAR EM "DESCREVA SEU CASO"
========================================================== */

/* Garante que o scroll pare antes da caixa, sem cortar no header */
#qualificador {
    scroll-margin-top: 150px;
}

/* Estado normal da caixa dentro do hero */
.ea-hero-form .ea-lead-box {
    transition:
        box-shadow 0.35s ease,
        transform 0.35s ease,
        outline-color 0.35s ease;
}

/* Quando o botão leva para #qualificador */
#qualificador:target .ea-lead-box {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 2px rgba(198, 163, 106, 0.38),
        0 0 0 10px rgba(198, 163, 106, 0.08),
        0 28px 90px rgba(0, 0, 0, 0.34),
        0 18px 60px rgba(198, 163, 106, 0.22);
}

/* Classe usada pelo JS para dar destaque temporário */
.ea-lead-box.is-highlighted {
    animation: eaQualifierPulse 1.35s ease;
    box-shadow:
        0 0 0 2px rgba(198, 163, 106, 0.45),
        0 0 0 12px rgba(198, 163, 106, 0.10),
        0 30px 100px rgba(0, 0, 0, 0.36),
        0 20px 70px rgba(198, 163, 106, 0.24) !important;
}

@keyframes eaQualifierPulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 0 0 0 rgba(198, 163, 106, 0),
            0 24px 70px rgba(0, 0, 0, 0.22);
    }

    35% {
        transform: translateY(-5px) scale(1.012);
        box-shadow:
            0 0 0 2px rgba(198, 163, 106, 0.50),
            0 0 0 14px rgba(198, 163, 106, 0.12),
            0 30px 100px rgba(0, 0, 0, 0.36),
            0 20px 70px rgba(198, 163, 106, 0.25);
    }

    100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 24px 70px rgba(0, 0, 0, 0.22);
    }
}