/* ==========================================================================
   KHIND RTO — agent home hero (showcase style)
   Dark panel, photo on the right, ghost wordmark, service points along the
   bottom. Mirrors the CUCKOO agent hero but in KHIND yellow on near-black.
   Loaded only on the agent home page (pageKey "agent-home").
   ========================================================================== */

.kh-hero {
    --khh-accent: #f2c213;
    --khh-accent-soft: #ffd84d;
    --khh-ink: #0b090c;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: max(560px, 44vw);
    padding: 72px 0 30px;
    background: var(--khh-ink);
    color: #fff;
    font-family: "Montserrat", "Plus Jakarta Sans", system-ui, sans-serif;
}

/* --- backdrop: sharp photo on the right, blurred copy filling the rest ---- */
.kh-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.kh-hero__bg-blur {
    position: absolute;
    inset: -70px;
    background: url("/khind/hero/hero-portrait.jpg") 55% center / cover no-repeat;
    filter: blur(44px) brightness(0.62) saturate(1.02);
    transform: scale(1.06);
}

.kh-hero__bg-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(56vw, 820px);
    background: url("/khind/hero/hero-portrait.jpg") 55% center / cover no-repeat;
    filter: saturate(1.04) brightness(1.02);
    /* Long, soft fade: the sharp photo melts into the blurred copy instead of
       ending on a hard vertical line. */
    -webkit-mask-image: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.18) 10%,
        rgba(0, 0, 0, 0.45) 20%,
        rgba(0, 0, 0, 0.75) 30%,
        #000 42%);
    mask-image: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.18) 10%,
        rgba(0, 0, 0, 0.45) 20%,
        rgba(0, 0, 0, 0.75) 30%,
        #000 42%);
}

.kh-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(0deg, rgba(11, 9, 12, 1) 0%, rgba(11, 9, 12, 0.92) 5%, rgba(11, 9, 12, 0.55) 11%, rgba(11, 9, 12, 0) 22%),
        linear-gradient(90deg,
            rgba(11, 9, 12, 0.95) 0%,
            rgba(11, 9, 12, 0.92) 18%,
            rgba(11, 9, 12, 0.85) 30%,
            rgba(11, 9, 12, 0.72) 40%,
            rgba(11, 9, 12, 0.55) 50%,
            rgba(11, 9, 12, 0.36) 60%,
            rgba(11, 9, 12, 0.18) 70%,
            rgba(11, 9, 12, 0.05) 80%,
            rgba(11, 9, 12, 0) 88%),
        radial-gradient(52% 64% at 88% 48%, rgba(242, 194, 19, 0.12), transparent 74%);
}

.kh-hero__inner,
.kh-hero__features,
.kh-hero__mobile-photo {
    position: relative;
    z-index: 2;
}

.kh-hero__inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex: 1;
    align-items: center;
}

.kh-hero__copy {
    max-width: 640px;
    min-width: 0;
}

.kh-hero__copy > * {
    /* Soft legibility shadow only — the old 22px glow read as a dark halo. */
    text-shadow: 0 1px 2px rgba(11, 9, 12, 0.45);
}

.kh-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(242, 194, 19, 0.35);
    border-radius: 999px;
    background: rgba(242, 194, 19, 0.1);
    color: var(--khh-accent);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: none;
}

.kh-hero h1 {
    margin: 20px 0 0;
    max-width: 640px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(22px, 2.5vw, 35px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: #fff;
}

.kh-hero__punch {
    display: inline;
    /* Same size as the rest of the headline, only the colour changes. */
    font-size: inherit;
    font-weight: 800;
    line-height: inherit;
    letter-spacing: -0.04em;
    color: var(--khh-accent);
}

.kh-hero h1 em {
    font-style: normal;
    color: var(--khh-accent);
}

.kh-hero__lead {
    margin: 18px 0 0;
    max-width: 520px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.74);
}

.kh-hero__note {
    margin: 14px 0 0;
    max-width: 500px;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
}

.kh-hero__note strong {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.kh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.kh-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    /* No shadow on either button: the copy block sets a text shadow, which
       otherwise bleeds onto the labels and reads like a glow. */
    text-shadow: none;
    box-shadow: none;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.kh-hero__cta svg {
    width: 18px;
    height: 18px;
}

.kh-hero__cta--primary {
    background: var(--khh-accent);
    color: #14100a;
}

.kh-hero__cta--primary:hover {
    background: var(--khh-accent-soft);
    transform: translateY(-2px);
}

.kh-hero__cta--ghost {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.kh-hero__cta--ghost:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-2px);
}

.kh-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 22px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.66);
}

.kh-hero__trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.kh-hero__trust svg {
    width: 14px;
    height: 14px;
    color: var(--khh-accent);
    flex: none;
}

.kh-hero__trust strong {
    color: #fff;
    font-weight: 700;
}

/* --- ghost wordmark -------------------------------------------------------
   Sits low in the hero so it reads as a texture behind the glass service bar
   instead of drawing thin lines across the copy. */
.kh-hero__watermark {
    position: absolute;
    left: 50%;
    bottom: 48px;
    z-index: 1;
    transform: translateX(-50%);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(120px, 19vw, 300px);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.05em;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
    pointer-events: none;
    user-select: none;
}

/* --- service points ------------------------------------------------------- */
.kh-hero__features {
    width: 100%;
    max-width: 1240px;
    margin: 30px auto 0;
    padding: 0 24px;
}

.kh-hero__features ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(11, 9, 12, 0.42);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    list-style: none;
}

.kh-hero__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.kh-hero__feature svg {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--khh-accent);
    filter: drop-shadow(0 1px 2px rgba(11, 9, 12, 0.6));
}

.kh-hero__feature strong {
    display: block;
    font-size: 14px;
    font-weight: 750;
    color: #fff;
}

.kh-hero__feature small {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

/* --- mobile photo --------------------------------------------------------- */
.kh-hero__mobile-photo {
    display: none;
}

@media (max-width: 899px) {
    .kh-hero {
        min-height: 0;
        padding: 0 0 22px;
        /* The warm glow lives on the section, not on the copy block, so it keeps
           running behind the fader photo and there is no seam under it. */
        background:
            radial-gradient(130% 62% at 82% 0%, rgba(242, 194, 19, 0.1), transparent 72%),
            var(--khh-ink);
    }

    .kh-hero__bg,
    .kh-hero__shade {
        display: none;
    }

    .kh-hero__mobile-photo {
        display: block;
        width: 100%;
        height: clamp(210px, 34vh, 320px);
        object-fit: cover;
        object-position: center 42%;
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, rgba(0, 0, 0, 0.45) 86%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 0%, #000 68%, rgba(0, 0, 0, 0.45) 86%, transparent 100%);
    }

    .kh-hero__inner {
        display: block;
        padding: 26px 20px 0;
        background: none;
    }

    /* On phones the wordmark sat behind the service grid and was invisible;
       lift it to the copy block and make the outline a touch stronger. */
    .kh-hero__watermark {
        top: calc(clamp(210px, 34vh, 320px) - 30px);
        bottom: auto;
        font-size: clamp(88px, 26vw, 150px);
        -webkit-text-stroke-color: rgba(255, 255, 255, 0.14);
    }

    .kh-hero h1 {
        font-size: clamp(24px, 6.6vw, 34px);
    }

    .kh-hero__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .kh-hero__cta {
        padding: 0 12px;
        font-size: 13px;
        min-height: 48px;
    }

    .kh-hero__features {
        padding: 0 20px;
    }

    .kh-hero__features ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
        margin-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kh-hero__cta {
        transition: none;
    }
}
