/**
 * De ce există: rafinează hero-ul și semnalele locale ale paginii Acasă.
 * Responsabilitate: compoziție editorială, imagine lizibilă și responsive fără overflow.
 * Ce NU face: nu inventează rezultate, prețuri, localități sau fotografii.
 * Depinde de: front-page.php, tokenurile globale și asset-urile oficiale locale.
 */

.home .hero-v2 {
    padding: 58px 0 86px;
    background: #fff;
}

.home .hero-v2-grid {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
    gap: 66px;
    align-items: center;
}

.home .hero-v2-copy h1 {
    max-width: 690px;
    margin-top: 18px;
    font-size: clamp(54px, 5vw, 76px);
}

.home .hero-v2-lead {
    max-width: 650px;
    margin: 26px 0 0;
    color: #3f463b;
    font-size: 20px;
    line-height: 1.62;
}

.home .hero-v2 .hero-actions {
    margin-top: 30px;
}

.home .hero-v2-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 28px;
    color: #465141;
    font-size: 14px;
    font-weight: 800;
}

.home .hero-v2-details > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.home .hero-v2-details .dashicons {
    color: var(--green);
}

.home .hero-v2-visual {
    position: relative;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--green-soft);
    box-shadow: var(--shadow);
}

.home .hero-v2-visual > img {
    width: 100%;
    aspect-ratio: 1.48 / 1;
    object-fit: cover;
    border-radius: 18px;
}

.home .hero-v2-visual figcaption {
    position: absolute;
    right: 36px;
    bottom: 38px;
    display: grid;
    min-width: 236px;
    padding: 16px 20px;
    border: 1px solid rgba(17, 19, 15, .08);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.home .hero-v2-visual figcaption strong {
    font-family: var(--serif);
    font-size: 25px;
}

.home .hero-v2-visual figcaption span {
    color: var(--muted);
    font-size: 13px;
}

.home .hero-v2-location {
    position: absolute;
    left: -28px;
    top: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow);
}

.home .hero-v2-location .dashicons {
    width: 30px;
    height: 30px;
    color: var(--green);
    font-size: 30px;
}

.home .hero-v2-location span:last-child {
    display: grid;
    line-height: 1.25;
}

.home .hero-v2-location small {
    color: var(--muted);
    font-size: 11px;
}

.home .trust-strip {
    margin-top: -42px;
}

.home .local-intro {
    padding: 72px 0 20px;
}

.home .local-intro-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 72px;
    align-items: start;
    padding: 38px 42px;
    border: 1px solid #dbe8d4;
    border-radius: 22px;
    background: #f2f8ee;
}

.home .local-intro h2 {
    margin-top: 16px;
    font-size: clamp(34px, 3.4vw, 48px);
}

.home .local-intro p {
    margin-top: 0;
    color: #465141;
    font-size: 18px;
}

.home .home-teacher-section {
    overflow: hidden;
    padding: 72px 0;
    background: #fff;
}

.home .home-teacher-directory {
    max-width: 1160px;
}

.home .home-teacher-section .section-head {
    max-width: 860px;
    margin-bottom: 42px;
}

.home .home-teacher-section .section-head .eyebrow {
    justify-content: center;
}

.home .home-teacher-section .section-head p {
    max-width: 760px;
    margin-inline: auto;
}

.home .teacher-directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(54px, 8vw, 116px);
    row-gap: 44px;
}

.home .teacher-profile {
    min-width: 0;
    text-align: center;
}

.home .teacher-portrait-shell {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 22px;
}

.home .teacher-portrait {
    position: absolute;
    inset: 21px;
    width: calc(100% - 42px);
    height: calc(100% - 42px);
    border-radius: 50%;
    object-fit: cover;
    object-position: center var(--teacher-focus, center);
    background: #f2f5ef;
    box-shadow: 0 12px 30px rgba(25, 65, 12, .12);
}

.home .teacher-portrait-ring {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.home .teacher-profile-copy {
    max-width: 520px;
    margin: 0 auto;
}

.home .teacher-profile h3 {
    margin: 0 0 7px;
    font-size: clamp(30px, 3vw, 39px);
    letter-spacing: -.025em;
}

.home .teacher-profile .teacher-role {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 16px;
    font-weight: 800;
}

.home .teacher-profile .teacher-summary {
    margin: 0;
    color: #343a30;
    font-size: 16px;
    line-height: 1.62;
}

.home .home-teacher-action {
    margin: 38px 0 0;
    text-align: center;
}

@media (max-width: 980px) {
    .home .teacher-directory-grid {
        column-gap: 38px;
    }

    .home .teacher-portrait-shell {
        width: 204px;
        height: 204px;
    }

    .home .hero-v2-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .home .hero-v2-copy {
        max-width: 760px;
    }

    .home .hero-v2-visual {
        max-width: 760px;
    }

    .home .local-intro-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 720px) {
    .home .home-teacher-section {
        padding-top: 70px;
    }

    .home .home-teacher-section .section-head {
        margin-bottom: 44px;
    }

    .home .teacher-directory-grid {
        grid-template-columns: 1fr;
        row-gap: 52px;
    }

    .home .teacher-portrait-shell {
        width: 198px;
        height: 198px;
        margin-bottom: 18px;
    }

    .home .teacher-profile h3 {
        font-size: 32px;
    }

    .home .teacher-profile .teacher-summary {
        font-size: 15px;
    }

    .home .hero-v2 {
        padding: 46px 0 64px;
    }

    .home .hero-v2-grid {
        gap: 34px;
    }

    .home .hero-v2-copy h1 {
        font-size: clamp(43px, 13vw, 58px);
    }

    .home .hero-v2-lead {
        font-size: 18px;
    }

    .home .hero-v2-details {
        display: grid;
    }

    .home .hero-v2-visual {
        padding: 10px;
        border-radius: 20px;
    }

    .home .hero-v2-visual > img {
        min-height: 300px;
        border-radius: 14px;
    }

    .home .hero-v2-location {
        left: 18px;
        top: 26px;
    }

    .home .hero-v2-visual figcaption {
        right: 22px;
        bottom: 24px;
        min-width: 210px;
    }

    .home .trust-strip {
        margin-top: 12px;
    }

    .home .local-intro {
        padding-top: 48px;
    }

    .home .local-intro-grid {
        padding: 28px 24px;
    }
}
