/**
 * ==========================================================================
 * Isolated Hero Component Stylesheet: RankHawn Rebel Hero
 * Scoped, self-contained, and completely decoupled from global grid side-effects.
 * ==========================================================================
 */

.Hero_hero__IrR3f,
.Hero_hero__realEstate {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: calc(114px + clamp(2rem, 3.5vh, 3rem)) !important;
    padding-bottom: clamp(2.5rem, 4vh, 3.5rem) !important;
    overflow: visible !important;
    z-index: 2;
    background: transparent;
    pointer-events: auto;
    box-sizing: border-box;
}

/* Vector backdrop lines */
.Hero_vectorBackdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.Hero_vectorSvg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Decoupled, isolated container: Flex column layout, never hijacked by 12-column grid */
.Hero_heroContainer {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: calc(1440px + 10%) !important;
    margin: 0 auto !important;
    margin-bottom: clamp(3rem, 5.5vh, 4.5rem) !important;
    padding: 0 6% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Split grid: 2 columns on desktop (Editorial copy on left, Lead card on right) */
.Hero_grid__split,
.Hero_realEstateSplit {
    display: grid !important;
    grid-template-columns: 1.15fr 0.95fr !important;
    gap: clamp(2rem, 4.5vw, 4.5rem) !important;
    align-items: center !important;
    width: 100% !important;
    grid-column: 1 / -1 !important;
}

/* Left Column: Heading, Eyebrow & Value Narrative */
.Hero_contentLeft,
.Hero_realEstateLeft {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 720px;
}

.Hero_eyebrowBadge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.25);
    color: #0066ff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.Hero_eyebrowDot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00d26a;
    box-shadow: 0 0 8px #00d26a;
    display: inline-block;
}

/* Hero Display Heading with Integrated Showreel Video */
.Hero_mainHeading {
    font-family: var(--font-heading, var(--montreal), 'Neue Montreal', sans-serif) !important;
    font-size: clamp(2.1rem, 3.8vw, 3.4rem) !important;
    font-weight: 400 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
    color: #000000;
    margin: 0 0 1.25rem 0;
    text-wrap: balance;
    white-space: normal !important;
}

.Hero_headingLine {
    display: block;
}

.Hero_convertWord {
    display: inline-flex;
    align-items: center;
    position: relative;
    vertical-align: middle;
}

/* Embedded Showreel Capsule inside the letter 'o' of Convert */
.Hero_videoSlot {
    display: inline-block;
    width: clamp(48px, 6vw, 76px);
    height: clamp(38px, 4.8vw, 58px);
    border-radius: 2rem;
    overflow: hidden;
    vertical-align: middle;
    margin: 0 0.08em;
    border: 2px solid #000000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    background: #000000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.Hero_videoSlot:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.Hero_videoSlot video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.Hero_subheading {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    font-weight: 500;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    text-wrap: balance;
}

.Hero_narrativeText {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
    line-height: 1.6;
    color: rgba(26, 26, 26, 0.72);
    margin: 0;
    max-width: 580px;
}

.Hero_narrativeText strong {
    color: #000000;
    font-weight: 600;
}

/* Right Column: Homepage Top Form Container */
.Hero_contentRight,
.Hero_realEstateRight {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

/* Partner Logos Strip anchored at the bottom of Hero */
.Hero_logos__jC9k_ {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: auto !important;
    padding-top: 1.75rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
}

.Hero_logosInner__D4sWL {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 1.25rem 2rem !important;
    width: 100% !important;
    max-width: calc(1440px + 10%) !important;
    margin: 0 auto !important;
    padding: 0 6% !important;
    box-sizing: border-box !important;
}

.Hero_logosInner__D4sWL img {
    height: 30px !important;
    width: auto !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    opacity: 0.92;
    filter: none !important;
    transition: opacity 0.25s ease, transform 0.25s ease;
    object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
    .Hero_logosInner__D4sWL img:hover {
        opacity: 1;
        transform: translateY(-2px);
    }
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .Hero_hero__IrR3f,
    .Hero_hero__realEstate {
        padding-top: calc(72px + 1.5rem) !important;
        padding-bottom: 2.5rem !important;
        min-height: auto;
    }

    .Hero_grid__split,
    .Hero_realEstateSplit {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 2.25rem !important;
    }

    .Hero_contentLeft,
    .Hero_realEstateLeft {
        min-width: 0;
        max-width: 100%;
        text-align: left;
        box-sizing: border-box;
    }

    .Hero_contentRight,
    .Hero_realEstateRight {
        min-width: 0;
        max-width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .Hero_logosInner__D4sWL {
        justify-content: center !important;
        gap: 1.25rem 1.75rem !important;
    }

    .Hero_logosInner__D4sWL img {
        height: 26px !important;
    }
}

@media (max-width: 768px) {
    .Hero_hero__IrR3f,
    .Hero_hero__realEstate {
        padding-top: calc(64px + 1.15rem) !important;
        padding-bottom: 2rem !important;
    }

    .Hero_heroContainer {
        padding: 0 5% !important;
        margin-bottom: 2rem !important;
    }

    .Hero_mainHeading {
        font-size: clamp(2rem, 8.2vw, 2.65rem) !important;
        line-height: 1.06 !important;
        letter-spacing: -0.035em !important;
    }

    .Hero_videoSlot {
        width: 52px;
        height: 40px;
    }

    .Hero_subheading {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    .Hero_narrativeText {
        font-size: 0.975rem;
        line-height: 1.55;
    }

    .Hero_logos__jC9k_ {
        padding-top: 1.25rem !important;
    }

    .Hero_logosInner__D4sWL {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.65rem !important;
        padding: 0 5% !important;
    }

    .Hero_logosInner__D4sWL img {
        width: 100% !important;
        height: 46px !important;
        padding: 0.65rem 0.7rem !important;
        background: rgba(255, 255, 255, 0.82) !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
        object-fit: contain !important;
        opacity: 1 !important;
    }
}
