/* =========================================================
   PROFESSIONAL PRESENCE — HERO UPDATE
   Add after certifications.css / global-restore.css /
   header-standard-v4.css
   ========================================================= */

.presence-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
    align-items: stretch;
    min-height: 360px;
    margin-top: 42px;
    margin-bottom: 32px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(10,31,68,.08);
    border-radius: 24px;
    background:
        radial-gradient(circle at 78% 22%, rgba(10,102,194,.10), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 8px 24px rgba(15,35,60,.08);
    color: #0a1f44;
}

.presence-hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: #0a66c2;
    z-index: 4;
}

.presence-hero::after {
    content: "";
    position: absolute;
    width: 390px;
    height: 390px;
    right: -185px;
    top: -190px;
    border: 1px solid rgba(10,102,194,.10);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
}

.presence-hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    padding: 58px 42px 58px 58px;
}

.presence-kicker {
    align-self: flex-start;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 7px 13px;
    border: 1px solid rgba(10,102,194,.25);
    border-radius: 999px;
    background: rgba(255,255,255,.70);
    color: #0a66c2;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .65px;
    text-transform: uppercase;
}

.presence-hero h1 {
    margin: 0;
    max-width: 620px;
    color: #0a1f44;
    font-size: clamp(2.35rem, 4.6vw, 3.7rem);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -.04em;
}

.presence-hero p {
    max-width: 610px;
    margin: 22px 0 0;
    color: #5f6b78;
    font-size: 1.05rem;
    line-height: 1.65;
}

.presence-hero-visual {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(247,250,255,.30), rgba(247,250,255,0) 32%),
        #edf5fc;
}

.presence-hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(247,250,255,.72) 0%, rgba(247,250,255,.10) 28%, transparent 48%),
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(10,31,68,.06));
    pointer-events: none;
}

.presence-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: saturate(.96);
    transform: scale(1.01);
}

.presence-hero-visual::after {
    content: "";
    position: absolute;
    width: 290px;
    height: 290px;
    right: -145px;
    top: -145px;
    border: 1px solid rgba(10,102,194,.14);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

/* Keep the existing content below the hero unchanged. */
@media (max-width: 900px) {
    .presence-hero {
        grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
        min-height: 330px;
    }

    .presence-hero-content {
        padding: 48px 28px 48px 42px;
    }

    .presence-hero h1 {
        font-size: clamp(2.1rem, 5vw, 3rem);
    }

    .presence-hero p {
        font-size: 1rem;
    }

    .presence-hero-visual {
        min-height: 330px;
    }
}

@media (max-width: 700px) {
    .presence-hero {
        display: flex;
        flex-direction: column;
        min-height: 0;
        margin-top: 20px;
        border-radius: 18px;
    }

    .presence-hero-content {
        padding: 34px 22px 28px 28px;
    }

    .presence-hero h1 {
        font-size: 2.05rem;
        line-height: 1.08;
    }

    .presence-hero p {
        margin-top: 17px;
        font-size: .96rem;
        line-height: 1.58;
    }

    .presence-hero-visual {
        min-height: 220px;
        height: 220px;
    }

    .presence-hero-image {
        object-position: center;
    }

    .presence-hero::after {
        width: 250px;
        height: 250px;
        right: -125px;
        top: -125px;
    }
}

@media (max-width: 420px) {
    .presence-hero-content {
        padding: 29px 18px 24px 24px;
    }

    .presence-kicker {
        font-size: .70rem;
    }

    .presence-hero h1 {
        font-size: 1.9rem;
    }

    .presence-hero-visual {
        height: 190px;
        min-height: 190px;
    }
}

/* Dark mode */
body.dark.page-presence .presence-hero {
    background:
        radial-gradient(circle at 78% 22%, rgba(10,102,194,.18), transparent 32%),
        linear-gradient(135deg, #172b40 0%, #101d2d 100%);
    border-color: rgba(255,255,255,.08);
}

body.dark.page-presence .presence-hero h1 {
    color: #f4f8fc;
}

body.dark.page-presence .presence-hero p {
    color: #b7c3d0;
}

body.dark.page-presence .presence-kicker {
    background: rgba(10,102,194,.12);
    border-color: rgba(122,192,249,.25);
    color: #9ed1ff;
}

body.dark.page-presence .presence-hero-visual {
    background: #172b40;
}

body.dark.page-presence .presence-hero-visual::before {
    background:
        linear-gradient(90deg, rgba(23,43,64,.82), rgba(23,43,64,.10) 34%, transparent 50%),
        linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.16));
}
