/* Coqpit Page hero - structural styles (typography/colours/sizes come from Elementor controls) */

.coqpit-ph {
    --coqpit-ph-x: 50%;
    --coqpit-ph-y: 50%;
    --coqpit-ph-gap: 16px;

    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 572px;
    overflow: hidden;
    background-color: #191c2a;
    font-family: 'Manrope', sans-serif;
}

/* Layout props on a stronger selector: Elementor/themes ship `img { height: auto; max-width: 100% }`,
   which would let the image keep its own ratio and make the framing settings do nothing. */
.coqpit-ph .coqpit-ph__media {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: var(--coqpit-ph-x) var(--coqpit-ph-y);
    transform-origin: var(--coqpit-ph-x) var(--coqpit-ph-y);
}

.coqpit-ph__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.coqpit-ph__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    box-sizing: border-box;
    padding: 120px 60px 60px;
}

.coqpit-ph__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    text-align: left;
}

.coqpit-ph__title {
    margin: 0 0 20px;
    color: #fff;
    font-size: 96px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.coqpit-ph__subtitle {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.coqpit-ph__subtitle:last-child,
.coqpit-ph__title:last-child {
    margin-bottom: 0;
}

/* Breadcrumb (Yoast markup or the built-in one) */
.coqpit-ph__breadcrumb {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
}

.coqpit-ph__breadcrumb--above {
    margin-bottom: var(--coqpit-ph-gap);
}

.coqpit-ph__breadcrumb--below {
    /* the space comes from the margin under the text (or under the title) */
    margin-top: 0;
}

.coqpit-ph__breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.coqpit-ph__breadcrumb a:hover,
.coqpit-ph__breadcrumb a:focus-visible {
    color: #fff;
}

.coqpit-ph__breadcrumb .breadcrumb_last {
    color: #fff;
}

.coqpit-ph__breadcrumb p {
    margin: 0;
}
