/* Final delivery hardening for Eagle Global Hub.
   Loaded last so it can safely correct layout edge cases without changing
   booking/provider behaviour. */

.site-body,
.site-body * {
    box-sizing: border-box;
}

.site-body {
    max-width: 100%;
    overflow-x: clip;
}

.site-body img {
    max-width: 100%;
}

/* ---------------------------------------------------------------- Brand */
.egho-brand-official {
    min-width: 0 !important;
    max-width: 100%;
    gap: 10px !important;
}

/* The supplied artwork has transparent space above/below it. A wide viewport
   with object-fit: cover makes the actual EGH mark and wordmark readable while
   retaining the official source image unchanged. */
.egho-brand-logo {
    display: block !important;
    width: 112px !important;
    height: 66px !important;
    flex: 0 0 112px !important;
    object-fit: cover !important;
    object-position: center 44% !important;
}

.egho-brand-official .egho-brand-copy {
    min-width: 0 !important;
}

.egho-brand-official .egho-brand-copy strong,
.egho-brand-official .egho-brand-copy small {
    white-space: nowrap !important;
}

/* --------------------------------------------------------------- Footer */
.egho-footer {
    overflow: hidden;
}

.egho-footer .egho-shell,
.egho-footer-main,
.egho-footer-main > div,
.egho-footer-bottom {
    min-width: 0;
}

.egho-footer-brand-official {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: max-content;
    max-width: 100%;
    text-decoration: none !important;
}

.egho-footer-logo {
    display: block !important;
    width: 124px !important;
    height: 76px !important;
    flex: 0 0 124px !important;
    object-fit: cover !important;
    object-position: center 44% !important;
}

.egho-footer-brand-official > span {
    min-width: 0;
}

.egho-footer-brand-official strong,
.egho-footer-brand-official small {
    white-space: nowrap;
}

.egho-footer-desc {
    max-width: 38rem;
    margin-top: 12px !important;
    overflow-wrap: anywhere;
}

.egho-footer-list,
.egho-footer-contact,
.egho-footer-status {
    min-width: 0;
}

.egho-footer-list a,
.egho-footer-contact a,
.egho-footer-contact span,
.egho-footer-status li {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* ---------------------------------------------------- Public interactions */
/* Shared motion for the public website's real controls. This deliberately
   changes only interaction feedback; existing colours, routes, permissions and
   submit behaviour stay untouched. */
.site-body :is(
    button:not(:disabled),
    .site-button,
    .egho-submit,
    .egho-search-tab,
    .egho-panel-cta,
    .egho-promo-cta,
    .egho-app-cta,
    .egho-journey-cta,
    .egho-section-link,
    .egho-btn,
    .egho-nav a,
    .egho-nav-more > summary,
    a.egho-tile
) {
    transform-origin: center;
    transition:
        transform .18s cubic-bezier(.2,.8,.2,1),
        box-shadow .18s ease,
        filter .18s ease,
        border-color .18s ease,
        background-color .18s ease,
        color .18s ease !important;
}

.site-body :is(
    button:not(:disabled),
    .site-button,
    .egho-submit,
    .egho-search-tab,
    .egho-panel-cta,
    .egho-promo-cta,
    .egho-app-cta,
    .egho-journey-cta,
    .egho-section-link,
    .egho-btn,
    .egho-nav a,
    .egho-nav-more > summary,
    a.egho-tile
):hover {
    transform: translateY(-2px) scale(1.015);
    filter: brightness(1.035) saturate(1.025);
    box-shadow: 0 8px 20px rgba(18, 86, 160, .10);
}

.site-body :is(
    button:not(:disabled),
    .site-button,
    .egho-submit,
    .egho-search-tab,
    .egho-panel-cta,
    .egho-promo-cta,
    .egho-app-cta,
    .egho-journey-cta,
    .egho-section-link,
    .egho-btn,
    .egho-nav a,
    .egho-nav-more > summary,
    a.egho-tile
):active {
    transform: translateY(0) scale(.965);
    filter: brightness(.99);
    box-shadow: 0 3px 8px rgba(18, 86, 160, .08);
}

/* Header navigation keeps the lift/colour feedback but never draws a shadow
   behind the text/pill. Preventing text selection also avoids a browser
   selection block appearing when a user clicks or drags over More/nav items. */
.site-body .egho-nav a,
.site-body .egho-nav-more > summary {
    user-select: none;
    -webkit-user-select: none;
}

.site-body .egho-nav a:hover,
.site-body .egho-nav a:active,
.site-body .egho-nav-more > summary:hover,
.site-body .egho-nav-more > summary:active,
.site-body .egho-nav-more[open] > summary {
    box-shadow: none !important;
}

.site-body :is(
    button,
    .site-button,
    .egho-submit,
    .egho-search-tab,
    .egho-panel-cta,
    .egho-promo-cta,
    .egho-app-cta,
    .egho-journey-cta,
    .egho-section-link,
    .egho-btn,
    .egho-nav a,
    .egho-nav-more > summary,
    a.egho-tile
):focus-visible {
    outline: 3px solid rgba(18, 86, 160, .22) !important;
    outline-offset: 3px !important;
}

/* Primary public actions get a small highlight sweep on hover without changing
   their text or click target. */
.site-body :is(.site-button-primary, .egho-submit, .egho-panel-cta, .egho-promo-cta, .egho-btn) {
    position: relative;
    overflow: hidden;
}

.site-body :is(.site-button-primary, .egho-submit, .egho-panel-cta, .egho-promo-cta, .egho-btn)::after {
    content: "";
    position: absolute;
    top: -35%;
    bottom: -35%;
    left: -45%;
    width: 28%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
    transform: skewX(-18deg) translateX(0);
    transition: transform .48s ease;
}

.site-body :is(.site-button-primary, .egho-submit, .egho-panel-cta, .egho-promo-cta, .egho-btn):hover::after,
.site-body :is(.site-button-primary, .egho-submit, .egho-panel-cta, .egho-promo-cta, .egho-btn):focus-visible::after {
    transform: skewX(-18deg) translateX(520%);
}

/* ---------------------------------------------------------- Common mobile */
@media (max-width: 900px) {
    .egho-header-inner {
        flex-wrap: wrap !important;
        align-items: center !important;
    }

    .egho-nav {
        width: 100% !important;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .egho-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 32px 24px !important;
    }

    .egho-footer-main > div:first-child {
        grid-column: 1 / -1 !important;
    }

    .egho-footer-bottom {
        flex-wrap: wrap !important;
        gap: 12px 20px !important;
    }
}

@media (max-width: 640px) {
    .egho-shell {
        width: 100%;
        max-width: 100%;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .egho-topbar-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 4px !important;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .egho-topbar-group {
        min-width: 0;
        justify-content: center;
        gap: 4px 10px !important;
    }

    .egho-topbar-item {
        min-height: 28px !important;
        font-size: 11px !important;
    }

    .egho-brand-logo {
        width: 94px !important;
        height: 58px !important;
        flex-basis: 94px !important;
    }

    .egho-brand-official .egho-brand-copy strong {
        font-size: 14px !important;
    }

    .egho-brand-official .egho-brand-copy small {
        font-size: 8px !important;
        letter-spacing: .04em !important;
    }

    .egho-footer-main {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 26px !important;
    }

    .egho-footer-main > div,
    .egho-footer-main > div:first-child {
        grid-column: 1 !important;
        width: 100%;
        max-width: 100%;
    }

    .egho-footer-brand-official {
        width: auto;
        max-width: 100%;
        justify-content: flex-start;
    }

    .egho-footer-logo {
        width: 112px !important;
        height: 70px !important;
        flex-basis: 112px !important;
    }

    .egho-footer-brand-official strong {
        font-size: 15px !important;
        line-height: 1.15 !important;
    }

    .egho-footer-brand-official small {
        font-size: 8px !important;
        line-height: 1.3 !important;
    }

    .egho-footer-desc {
        max-width: 100%;
        margin-top: 10px !important;
        font-size: 13px;
        line-height: 1.55;
    }

    .egho-footer-bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .egho-footer-status {
        width: 100%;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px 16px !important;
        padding-left: 0 !important;
    }

    .egho-footer h3 {
        margin-bottom: 10px !important;
    }

    .egho-footer-list,
    .egho-footer-contact {
        gap: 8px !important;
    }

    /* Shared forms/cards: never force horizontal scrolling on phones. */
    .egho-search-card,
    .egho-panel,
    .egho-contact-card,
    .egh-travel-page .egh-search-panel,
    .egh-travel-page .egh-travel-card,
    .egh-travel-page .egh-info-card,
    .egh-travel-page .egh-step-card,
    .egh-travel-page .egh-work-destination {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .egho-field input,
    .egho-field select,
    .egho-field textarea,
    .egh-travel-page input,
    .egh-travel-page select,
    .egh-travel-page textarea,
    .egh-travel-page button,
    .egh-travel-page .egho-btn {
        max-width: 100%;
    }

    /* Hover-only lift should not leave touch controls visually displaced. */
    .site-body :is(
        button:not(:disabled),
        .site-button,
        .egho-submit,
        .egho-search-tab,
        .egho-panel-cta,
        .egho-promo-cta,
        .egho-app-cta,
        .egho-journey-cta,
        .egho-section-link,
        .egho-btn,
        .egho-nav a,
        .egho-nav-more > summary,
        a.egho-tile
    ):hover {
        transform: none;
    }

    .site-body :is(
        button:not(:disabled),
        .site-button,
        .egho-submit,
        .egho-search-tab,
        .egho-panel-cta,
        .egho-promo-cta,
        .egho-app-cta,
        .egho-journey-cta,
        .egho-section-link,
        .egho-btn,
        .egho-nav a,
        .egho-nav-more > summary,
        a.egho-tile
    ):active {
        transform: scale(.97);
    }
}

@media (max-width: 420px) {
    .egho-brand-official {
        gap: 7px !important;
    }

    .egho-brand-logo {
        width: 82px !important;
        height: 52px !important;
        flex-basis: 82px !important;
    }

    .egho-brand-official .egho-brand-copy strong {
        font-size: 13px !important;
    }

    .egho-brand-official .egho-brand-copy small {
        font-size: 7.5px !important;
    }

    .egho-footer-brand-official {
        gap: 9px !important;
    }

    .egho-footer-logo {
        width: 104px !important;
        height: 66px !important;
        flex-basis: 104px !important;
    }

    .egho-footer-brand-official strong {
        font-size: 14px !important;
    }

    .egho-footer-brand-official small {
        font-size: 7.5px !important;
    }

    .egho-footer-contact a {
        font-size: 12.5px;
    }
}
