/* =========================================================
   HOME 2.0 — GUIA DO ELEVADOR
========================================================= */

/* HERO DA HOME */

.hero-home {
    padding: 7rem 2rem 6.5rem;
    background:
        radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.18), transparent 35%),
        linear-gradient(135deg, var(--bg-primary), #172554);
}

.hero-home .section-kicker {
    color: #7dd3fc;
}

.hero-home h2 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.4rem, 5vw, 4rem);
    letter-spacing: -0.04em;
}

.hero-home p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
}


/* GRID DE NECESSIDADES */

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

.home-need-card {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 1.75rem;
}

.home-need-card .card-icon {
    margin-bottom: 1.25rem;
}

.home-need-card h3 {
    font-size: 1.25rem;
}

.home-need-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.home-need-card .text-link {
    margin-top: 1.25rem;
}


/* CABEÇALHO DE SEÇÃO COM LINK */

.home-section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    text-align: left;
}

.home-section-header-row > div {
    max-width: 700px;
}

.home-header-link {
    white-space: nowrap;
    margin-bottom: 0.25rem;
}


/* ARTIGOS */

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

.home-post-grid .post-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-post-grid .post-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-post-grid .post-card-content .text-link {
    margin-top: auto;
    padding-top: 1rem;
}


/* ÁREA DE CONSULTORIA */

.home-consulting-section {
    padding-top: 3rem;
}

.home-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.home-split-content {
    max-width: 680px;
}

.home-split-content h2,
.home-guide-text h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.home-split-content p,
.home-guide-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.home-split-content .btn {
    margin-top: 1rem;
}

.home-highlight-card {
    background: linear-gradient(145deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-light);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 35px -15px rgba(15, 23, 42, 0.35);
}

.home-highlight-card h3 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.home-highlight-card .status-badge {
    background-color: rgba(125, 211, 252, 0.15);
    color: #7dd3fc;
}


/* PROJETOS */

.home-projects {
    background-color: #f1f5f9;
    max-width: none;
    padding-left: max(2rem, calc((100% - 1200px) / 2));
    padding-right: max(2rem, calc((100% - 1200px) / 2));
}

.home-centered-link {
    text-align: center;
    margin-top: 2rem;
}


/* GUIAS */

.home-guides-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.home-split-reverse {
    grid-template-columns: 0.85fr 1.15fr;
}

.home-guide-box {
    background: var(--bg-primary);
    color: var(--text-light);
    border-radius: 16px;
    padding: 2.75rem;
    box-shadow: 0 20px 35px -15px rgba(15, 23, 42, 0.3);
}

.home-guide-box h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.home-guide-box p {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.home-guide-box .card-icon {
    color: #7dd3fc;
}

.home-guide-box .section-kicker {
    color: #7dd3fc;
}

.home-guide-box .check-list {
    margin-bottom: 2rem;
}

.home-guide-box .check-list li {
    color: #e2e8f0;
}

.home-guide-box .check-list li::before {
    color: #7dd3fc;
}

.home-guide-box .btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.home-guide-text {
    max-width: 680px;
}


/* CTA FINAL */

.home-final-cta {
    padding: 4.5rem 3rem;
}

.home-final-cta .section-kicker {
    color: #7dd3fc;
}

.home-final-cta h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}


/* PEQUENOS AJUSTES VISUAIS */

.home-needs {
    padding-bottom: 4rem;
}

.home-articles {
    padding-top: 4rem;
}

.home-projects .section-header {
    margin-bottom: 2.5rem;
}

.home-projects .technical-preview-card {
    background-color: white;
}


/* RESPONSIVO */

@media (max-width: 1000px) {

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-split,
    .home-split-reverse {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .home-guide-text {
        max-width: none;
    }
}


@media (max-width: 768px) {

    .hero-home {
        padding: 5rem 1.5rem;
    }

    .hero-home h2 {
        font-size: 2.35rem;
    }

    .hero-home p {
        font-size: 1.05rem;
    }

    .grid-4,
    .home-post-grid {
        grid-template-columns: 1fr;
    }

    .home-section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .home-header-link {
        white-space: normal;
    }

    .home-highlight-card,
    .home-guide-box {
        padding: 2rem;
    }

    .home-projects {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .home-final-cta {
        padding: 3rem 1.5rem;
    }
}
