/* Site-wide brand touches that sit outside the generated bundles. */

/* X (formerly Twitter) ships as inline SVG: the Font Awesome 5 set predates
   the rebrand, so there is no glyph for it. Sized and coloured like the
   neighbouring icon-font glyphs. */
.eabe-x-icon {
    display: inline-block;
    line-height: 1;
}
.eabe-x-icon svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
}

/* Hover states use the brand orange rather than the theme's black. */
#polyglotLanguageSwitcher a:hover,
#polyglotLanguageSwitcher a:focus {
    color: #f68a1e;
}

/* Mobile menu panel in the brand navy (the theme uses near-black), with
   the current page in orange as on desktop. */
.mobile-menu .menu-box {
    background-color: #08194a;
}
.mobile-menu .navigation li.current > a {
    color: #f68a1e;
}
.mobile-menu .navigation li.dropdown .dropdown-btn {
    background: rgba(255, 255, 255, 0.12);
}

/* Service page copy follows the site-wide scheme: grey body text, brand
   blue for headings and bold highlights (orange stays for taglines). */
.services-single .inner-box :is(p, li, dd) {
    color: #707070;
}
.services-single .inner-box :is(p, li, dd) :is(strong, b),
.services-single .inner-box :is(h2, h3, h4),
.eabe-service-page .eabe-service-faq summary,
.services-single .inner-box .eabe-service-note {
    color: #002b86;
}
.services-single .inner-box h3 {
    font-weight: 700;
}

/* Section headings use the site font; the theme's style-three variant
   switched to Poppins on two pages only. */
.sec-title.style-three h2 {
    font-family: inherit;
    font-weight: 700;
}

/* Small subheadings get a short orange accent bar, echoing the 85px bar
   under section headings. Orange stays an accent: as text on white it is
   only 2.45:1. */
.services-single .inner-box .text .two-column h3::after,
.accordian-boxed > h3::after,
.eabe-booking-panel > h3::after,
.contact-section .info-column .inner-column > h4::after,
.eabe-service-enquiry legend::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    margin-top: 10px;
    background-color: #f68a1e;
}
.eabe-service-enquiry legend {
    margin-bottom: 16px;
}

/* Homepage "Why Choose Us": brand colours, and lighter features. The theme
   used a red tick image, an off-brand navy, 50px icons and 24px bold titles;
   fixed-width icons also keep every title on the same starting line. */
.why-choose-us .icon-box h4 {
    color: #002b86;
    font-weight: 500;
}
.why-choose-us .list li {
    color: #707070;
}
.why-choose-us .list li:before {
    top: 6px;
    left: 4px;
    width: 7px;
    height: 12px;
    background: none;
    border: solid #f68a1e;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
@media only screen and (min-width: 992px) {
    .why-choose-us .icon-box {
        flex-wrap: nowrap;
        padding-bottom: 14px;
        margin-bottom: 14px;
    }
    .why-choose-us .icon-box .icon {
        flex: 0 0 32px;
        margin-right: 16px;
        font-size: 24px;
        line-height: 1;
        text-align: center;
    }
    .why-choose-us .icon-box h4 {
        margin: 0;
        font-size: 19px;
        line-height: 1.3;
    }
}

/* Forms: dark typed text, visible field borders (3:1 contrast), and grey
   placeholders so hints never look like entered values. */
#contact-form :is(input, textarea):not([type="hidden"]) {
    color: #222;
    border-color: #6b7890;
}
#contact-form :is(input, textarea):focus-visible {
    border-color: #002b86;
    outline: 2px solid #002b86;
    outline-offset: 2px;
}
:is(#contact-form, .eabe-service-enquiry, .eabe-booking-form) :is(input, textarea)::placeholder {
    color: #707070;
    opacity: 1;
}

/* Errors stay beside their forms; success feedback uses a temporary popup. */
.eabe-form-status[role="status"][data-form-state="error"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 16px 0 0;
    padding: 14px 16px;
    border: 1px solid #cad4e1;
    border-left: 4px solid currentColor;
    border-radius: 4px;
    background: #f5f7fa;
    color: #111f4b;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    overflow-wrap: anywhere;
    scroll-margin: 150px 0 24px;
}
.eabe-form-status[role="status"][data-form-state="error"] {
    border-color: #ebc1bf;
    border-left-color: #9b1c1c;
    background: #fff3f2;
    color: #9b1c1c;
}
.eabe-form-status[role="status"][data-form-state="error"] .eabe-status-heading,
.eabe-form-status[role="status"][data-form-state="error"] .eabe-status-detail {
    display: block;
    color: inherit;
}
.eabe-form-status[role="status"][data-form-state="error"] .eabe-status-heading {
    margin-bottom: 6px;
    font-weight: 700;
}

/* A single confirmation popup overlays the page without changing its layout. */
.eabe-success-toast {
    position: fixed;
    z-index: 100000;
    top: calc(16px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    width: min(420px, calc(100% - 32px));
    padding: 16px 48px 16px 18px;
    border: 1px solid #b7d9c4;
    border-left: 4px solid #146c43;
    border-radius: 8px;
    background: #eff8f1;
    color: #146c43;
    box-shadow: 0 8px 28px rgba(17, 31, 75, 0.18);
    text-align: left;
    overflow-wrap: anywhere;
}
.eabe-success-toast[hidden] {
    display: none;
}
.eabe-success-toast .eabe-toast-title {
    display: block;
    margin: 0 0 6px;
    color: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}
.eabe-success-toast .eabe-toast-message {
    display: block;
    color: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}
.eabe-success-toast .eabe-toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.eabe-success-toast .eabe-toast-close:hover {
    background: #dcefe2;
}
.eabe-success-toast .eabe-toast-close:focus-visible {
    outline: 2px solid #146c43;
    outline-offset: 2px;
}

/* Banner breadcrumbs are white on every page (two service pages showed the
   theme's orange). */
.page-title .page-breadcrumb a {
    color: #fff;
}

/* Header "24/7 AOG" label matches the navy menu beside it. */
.main-header .logo-box > div:not(.logo) {
    color: #111f4b;
}

/* The homepage AOG call-to-action button: navy text instead of black, and
   a navy hover fill instead of the theme's red (#d70c08). */
.cta-section .theme-btn {
    color: #111f4b;
}
.cta-section .theme-btn:before {
    background-color: #111f4b;
}

/* Search field focus: brand blue instead of Bootstrap's light blue glow. */
.form-control:focus {
    border-color: #002b86;
    box-shadow: 0 0 0 3px rgba(0, 43, 134, 0.2);
}

/* Inner-page banners share one height, whatever the title length, and
   titles scale down on phones instead of wrapping to three lines. */
.page-title.eabe-page-banner,
.page-title.eabe-page-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 309px;
    padding: 60px 0;
}
.page-title.eabe-page-banner > .auto-container,
.page-title.eabe-page-title > .auto-container {
    width: 100%;
}
/* The visible banner title is the page's h1. The theme styles banner h1s
   as giant outline text, so restore the title look here. */
.page-title > .auto-container > h1 {
    position: relative;
    right: auto;
    bottom: auto;
    color: #fff;
    font-family: inherit;
    font-size: clamp(30px, 4vw, 55px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: normal;
    text-transform: capitalize;
    -webkit-text-stroke-width: 0;
}
@media only screen and (max-width: 767px) {
    .page-title.eabe-page-banner,
    .page-title.eabe-page-title {
        min-height: 240px;
        padding: 48px 0;
    }
}

/* The top bar needs ~1297px on one line; below that it wraps to two rows
   until 1199px, where the theme hides its right column. Tighten the
   spacing in between so it stays on one line. */
@media only screen and (min-width: 1200px) and (max-width: 1365px) {
    .header-top .left-column .text {
        padding-left: 20px;
        padding-right: 20px;
    }
    .header-top .left-column .office-hour {
        margin-left: 20px;
        width: 170px;
    }
    .header-top .right-column .phone-number {
        font-size: 17px;
    }
    .header-top #polyglotLanguageSwitcher {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* Header navigation fit. The eight top-level items need ~1620px at the
   theme's full 17px size, so show the mobile menu below 1200px and scale
   the desktop menu from 14px at 1200px to its full size at 1700px. */
@media only screen and (max-width: 1199px) {
    .main-header .nav-outer .main-menu,
    .sticky-header {
        display: none !important;
    }
    .nav-outer .mobile-nav-toggler {
        display: block;
    }
}

@media only screen and (min-width: 1200px) {
    /* "24/7 AOG" is absolutely positioned beside the logo, so reserve its
       width; otherwise the menu slides underneath it. */
    .main-header .header-upper .logo-box {
        margin-right: 107px;
    }
    .main-header .header-upper .main-menu .navigation > li {
        margin-right: clamp(14px, calc(4.2vw - 36.4px), 35px);
    }
    .main-header .header-upper .main-menu .navigation > li:last-child {
        margin-right: 0;
    }
    .main-header .header-upper .main-menu .navigation > li > a {
        font-size: clamp(14px, calc(0.6vw + 6.8px), 17px);
        white-space: nowrap;
    }
}

/* Desktop dropdowns: compact translucent navy glass instead of solid white.
   The selectors outrank the per-page header colour rules. */
@media only screen and (min-width: 1200px) {
    .eabe-header-nav .main-menu .navigation > li > ul {
        min-width: 220px;
        padding: 6px 0;
        background-color: rgba(8, 25, 74, 0.96);
        border-top: 2px solid #f68a1e;
        border-radius: 0 0 8px 8px;
        overflow: hidden;
        box-shadow: 0 14px 32px rgba(8, 25, 74, 0.28);
    }
    @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        .eabe-header-nav .main-menu .navigation > li > ul {
            background-color: rgba(8, 25, 74, 0.78);
            -webkit-backdrop-filter: blur(14px) saturate(160%);
            backdrop-filter: blur(14px) saturate(160%);
        }
    }
    .eabe-header-nav .main-menu .navigation > li > ul > li > a {
        padding: 9px 22px;
        font-size: 14px;
        line-height: 22px;
        letter-spacing: 0.02em;
        color: rgba(255, 255, 255, 0.92);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transition: color 200ms ease, background-color 200ms ease;
    }
    .eabe-header-nav .main-menu .navigation > li > ul > li:last-child > a {
        border-bottom: 0;
    }
    .eabe-header-nav .main-menu .navigation > li > ul > li > a:hover,
    .eabe-header-nav .main-menu .navigation > li > ul > li > a:focus-visible,
    .eabe-header-nav .main-menu .navigation > li > ul > li.current > a {
        color: #f68a1e;
        background-color: rgba(255, 255, 255, 0.07);
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1699px) {
    .main-header.header-style-one .header-upper .auto-container {
        padding: 0 30px;
    }
    .main-header .header-upper .main-menu .navigation {
        margin-left: 0;
    }
    .main-header .header-upper .search-btn {
        margin-left: 20px;
        padding-left: 16px;
        margin-right: 16px;
    }
    .main-header .header-upper .link-btn a {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 15px;
    }
}

/* Homepage hero: an arrow link to the operations desk, not a booking button. */
.banner-section .link-box a.eabe-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.eabe-hero-cta .eabe-hero-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #f68a1e;
    box-shadow: 0 0 0 8px rgb(246 138 30 / 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.banner-section .link-box a.eabe-hero-cta .eabe-hero-cta-arrow i {
    margin: 0;
}
.eabe-hero-cta .eabe-hero-cta-text {
    border-bottom: 2px solid rgb(255 255 255 / 0.35);
    padding-bottom: 4px;
    transition: border-color 0.3s ease;
}
.eabe-hero-cta:hover .eabe-hero-cta-arrow,
.eabe-hero-cta:focus-visible .eabe-hero-cta-arrow {
    transform: translateX(6px);
    box-shadow: 0 0 0 12px rgb(246 138 30 / 0.2);
}
.eabe-hero-cta:hover .eabe-hero-cta-text,
.eabe-hero-cta:focus-visible .eabe-hero-cta-text {
    border-color: #f68a1e;
}
@media (max-width: 991px) {
    .banner-section .link-box a.eabe-hero-cta { padding: 0; font-size: 15px; gap: 14px; }
    .eabe-hero-cta .eabe-hero-cta-arrow { width: 48px; height: 48px; box-shadow: 0 0 0 6px rgb(246 138 30 / 0.25); }
}

/* Site search: a compact panel under the header instead of the theme's
   full-screen overlay, in the same frosted navy glass as the dropdown menus.
   Results are filled in by assets/js/site-search.js. */
.search-popup {
    background: rgba(8, 25, 74, 0.3);
    transform: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.search-popup.popup-visible {
    transform: none;
}
.eabe-search-panel {
    position: relative;
    max-width: 600px;
    margin: 110px auto 40px;
    background-color: rgba(8, 25, 74, 0.96);
    border-top: 2px solid #f68a1e;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 20px 50px rgba(8, 25, 74, 0.35);
    overflow: hidden;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .eabe-search-panel {
        background-color: rgba(8, 25, 74, 0.78);
        -webkit-backdrop-filter: blur(14px) saturate(160%);
        backdrop-filter: blur(14px) saturate(160%);
    }
}
.eabe-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.eabe-search-form .icon-Search {
    font-size: 18px;
    color: #f68a1e;
}
.eabe-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 60px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 17px;
    color: #fff;
}
.eabe-search-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.search-popup .eabe-search-form .close-search {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 200ms ease;
}
.search-popup .eabe-search-form .close-search:hover,
.search-popup .eabe-search-form .close-search:focus-visible {
    background: #f68a1e;
    color: #fff;
    opacity: 1;
}
.eabe-search-label {
    margin: 0;
    padding: 14px 20px 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.eabe-search-results {
    margin: 0;
    padding: 0 8px 10px;
    list-style: none;
    max-height: 60vh;
    overflow-y: auto;
}
.eabe-search-results a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: background-color 200ms ease;
}
.eabe-search-results a:hover,
.eabe-search-results a:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    border-left-color: #f68a1e;
}
.eabe-search-results strong {
    display: block;
    font-size: 16px;
    color: #fff;
    transition: color 200ms ease;
}
.eabe-search-results a:hover strong,
.eabe-search-results a:focus-visible strong {
    color: #f68a1e;
}
.eabe-search-results a span {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
}
.eabe-search-empty {
    padding: 6px 12px 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}
.eabe-search-results .eabe-search-empty a {
    display: inline;
    padding: 0;
    border: 0;
    color: #f68a1e;
}
.eabe-search-results .eabe-search-empty a:hover {
    background: none;
    text-decoration: underline;
}
@media (max-width: 640px) {
    .eabe-search-panel {
        margin: 16px;
    }
}

/* Keyboard focus stays visible against both light and navy surfaces without
   changing element dimensions or the normal pointer appearance. */
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid #111f4b !important;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #fff;
}

/* Brand navy gives the existing orange header buttons readable text. */
.main-header .link-btn .btn-style-one,
.main-header .link-btn .btn-style-one:hover {
    color: #111f4b;
}

/* Keyboard navigation reveals the same desktop submenus as pointer hover. */
@media only screen and (min-width: 1200px) {
    .main-menu .navigation li.dropdown:focus-within > ul {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social profiles without a URL are display-only until their accounts are ready. */
.social-links a:not([href]) {
    cursor: default;
    pointer-events: none;
}
