/*
 * Leader Frontpage Hero block.
 *
 * Full-width black band, two-column CSS Grid (left / right).
 *
 * The Kadence theme applies overflow:visible to alignfull sections so they
 * can break out of the content column — this makes the section unusable as a
 * clipping or containing-block context. All absolutely-positioned elements
 * (icon, hover image) therefore live INSIDE .leader-frontpage-hero__right,
 * which is a plain div untouched by the theme's breakout rules and reliably
 * acts as a position:relative / overflow:hidden container.
 */

.leader-frontpage-hero {
    --lfph-content: 1180px;
    --lfph-side-pad: max(1.5rem, calc((100vw - var(--lfph-content)) / 2));
    --lfph-rotate: -15deg;
    --lfph-x: 0px;
    --lfph-y: 0px;

    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: clamp(460px, 46vw, 620px);
    background: #000;
    color: #fff;
}

/* ── Left column ── */

.leader-frontpage-hero__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 2.5rem 3rem var(--lfph-side-pad);
}

.leader-frontpage-hero__logo {
    flex: 0 0 auto;
    width: 100%;
}

.leader-frontpage-hero__logo-img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.leader-frontpage-hero__logo--placeholder {
    width: 100%;
    height: 100px;
    background: #222;
    border-radius: 4px;
}

.leader-frontpage-hero__subtitle {
    flex: 0 0 auto;
    width: 100%;
    margin: 1.5rem 0 0;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    line-height: 1.65;
    color: #ccc;
    text-align: center;
}

.leader-frontpage-hero__subtitle--placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.leader-frontpage-hero__left-image {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 2rem;
}

.leader-frontpage-hero__left-image-img {
    display: block;
    max-width: 100%;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.leader-frontpage-hero__left-image--placeholder {
    width: 100%;
    height: 200px;
    background: repeating-linear-gradient(
        45deg,
        #1a1a1a,
        #1a1a1a 12px,
        #222 12px,
        #222 24px
    );
}

.leader-frontpage-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #cba76c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.leader-frontpage-hero__link:hover,
.leader-frontpage-hero__link:focus-visible {
    color: #fff;
}

.leader-frontpage-hero__link-arrow {
    font-size: 1.3em;
    line-height: 1;
}

.leader-frontpage-hero__link--placeholder {
    color: rgba(203, 167, 108, 0.4);
    cursor: default;
}

/* ── Scroll-down arrow — centered at the bottom of the whole section ── */

.leader-frontpage-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 1.75rem;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    animation: leader-frontpage-hero-bounce 2s ease-in-out infinite;
}

.leader-frontpage-hero__scroll:hover,
.leader-frontpage-hero__scroll:focus-visible {
    background: none;
    opacity: 0.5;
}

.leader-frontpage-hero__scroll-icon {
    display: block;
}

@keyframes leader-frontpage-hero-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

/* ── Right column ──
 *
 * position:relative makes this the containing block for the absolutely-
 * positioned icon and hover image. overflow:hidden clips the rotated hover
 * image at the column boundary. No theme rule touches plain inner divs.
 */

.leader-frontpage-hero__right {
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem var(--lfph-side-pad) 3rem 2rem;
}

.leader-frontpage-hero__right .leader-frontpage-hero__title {
    margin: 0;
    padding-top: 0.5em;
    font-size: clamp(3.25rem, 9.5vw, 120px);
    font-weight: 900;
    line-height: 0.92;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: #fff;
    word-break: break-word;
    hyphens: manual;
    position: relative;
    z-index: 1;
}

.leader-frontpage-hero__title-line {
    display: block;
}

.leader-frontpage-hero__right .leader-frontpage-hero__title--placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* ── Icon — absolute inside right column, top-right ── */

.leader-frontpage-hero__icon {
    position: absolute;
    top: 2.5rem;
    right: max(1.5rem, var(--lfph-side-pad));
    z-index: 4;
    pointer-events: none;
}

.leader-frontpage-hero__icon-img {
    display: block;
    width: auto;
    max-width: 140px;
    height: auto;
}

/* ── Hover image — absolute inside right column, bottom-right ──
 *
 * right / bottom accept the ACF number fields directly (px values).
 * Positive --lfph-x moves the image left from the right edge;
 * positive --lfph-y moves it up from the bottom edge.
 */

.leader-frontpage-hero__hover {
    position: absolute;
    bottom: 2rem;
    right: max(1.5rem, var(--lfph-side-pad));
    transform:
        translate(calc(-1 * var(--lfph-x, 0px)), calc(-1 * var(--lfph-y, 0px)))
        rotate(var(--lfph-rotate, -15deg));
    transform-origin: center center;
    z-index: 3;
    pointer-events: none;
}

.leader-frontpage-hero__hover-img {
    display: block;
    max-width: 264px;
    height: auto;
}

/* ── Editor placeholder colours ── */

.leader-frontpage-hero [data-rich-text-placeholder]::after,
.leader-frontpage-hero [data-rich-text-placeholder]::before {
    color: rgba(255, 255, 255, 0.4);
}

/* ── Desktop only (1025px and above) ── */

@media (min-width: 1025px) {
    .leader-frontpage-hero__right .leader-frontpage-hero__title {
        font-size: clamp(3.25rem, 7vw, 120px);
    }
}

/* ── Tablet only: two squares side by side (901px – 1024px) ── */

@media (min-width: 901px) and (max-width: 1024px) {
    .leader-frontpage-hero {
        min-height: 50vw;
    }

    .leader-frontpage-hero__left {
        padding: 2.5rem 1.5rem 2rem 2rem;
    }

    .leader-frontpage-hero__right {
        padding: 2.5rem 2rem 2rem 1.5rem;
    }

    .leader-frontpage-hero__icon {
        top: 1.5rem;
        right: 1.5rem;
    }

    .leader-frontpage-hero__icon-img {
        max-width: 100px;
    }

    .leader-frontpage-hero__hover-img {
        max-width: 160px;
    }
}

/* ── Mobile + portrait tablet: stacked (900px and below) ── */

@media (max-width: 900px) {
    .leader-frontpage-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .leader-frontpage-hero__left {
        min-height: 100vw;
        padding: 3rem 1.5rem 2rem;
    }

    .leader-frontpage-hero__right {
        min-height: 100vw;
        padding: 2.5rem 1.5rem 2rem;
    }

    .leader-frontpage-hero__right .leader-frontpage-hero__title {
        font-size: clamp(3rem, 19vw, 120px);
    }

    .leader-frontpage-hero__icon {
        top: 1.25rem;
        right: 1.25rem;
    }

    .leader-frontpage-hero__icon-img {
        max-width: 155px;
    }

    .leader-frontpage-hero__hover {
        bottom: 0;
        right: 0;
        transform: rotate(var(--lfph-rotate, -15deg));
    }

    .leader-frontpage-hero__hover-img {
        max-width: 255px;
    }
}
