/* Abelica Global Header — mockup-faithful styles */
.abg-header,
.abg-header * { box-sizing: border-box; }

.abg-header {
    width: 100%;
    height: 114px;
    min-height: 114px;
    background: #fff;
    border-bottom: 1px solid #e9eef2;
    position: relative;
    z-index: 1000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #0A2942;
}

.abg-header-inner {
    width: 100%;
    max-width: 1700px;
    height: 114px;
    min-height: 114px;
    margin: 0 auto;
    padding: 0 0;
    display: flex;
    align-items: center;
}

.abg-header-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.abg-header-logo img {
    display: block;
    width: auto !important;
    max-width: 280px !important;
    max-height: 68px !important;
    height: auto !important;
    object-fit: contain;
}

.abg-header-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: block;
}

.abg-header-word {
    margin-left: 11px;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.abg-header-word b {
    color: #111c29;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.9px;
    white-space: nowrap;
}

.abg-header-word sup {
    font-size: 8px;
    margin-left: 2px;
    vertical-align: top;
}

.abg-header-word > span {
    margin-top: 6px;
    color: #7890a8;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    white-space: nowrap;
}

.abg-header-nav {
    display: flex;
    align-items: center;
    gap: 52px;
    margin-left: 205px;
}

.abg-header-nav a {
    position: relative;
    color: #10283f;
    text-decoration: none;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    padding: 9px 0 18px;
}

.abg-header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #29ABE2 0%, #12B6C6 48%, #00A651 100%);
    transition: width .42s cubic-bezier(.22,.61,.36,1);
}

.abg-header-nav a:hover::after,
.abg-header-nav a:focus-visible::after {
    width: 100%;
}

.abg-header-nav a:hover,
.abg-header-nav a:focus-visible,
.abg-header-language:hover,
.abg-header-login:hover {
    color: #10283f;
}

.abg-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.abg-header-utility {
    display: flex;
    align-items: center;
    gap: 24px;
}

.abg-header-lang {
    position: relative;
}

.abg-header-language {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 8px 0;
    margin: 0;
    color: #10283f;
    font: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

.abg-header-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e1e8ee;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(10, 58, 99, .13);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.abg-header-lang.is-open .abg-header-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.abg-header-lang-menu button {
    width: 100%;
    display: block;
    border: 0;
    background: transparent;
    color: #10283f;
    text-align: left;
    padding: 9px 10px;
    border-radius: 5px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.abg-header-lang-menu button:hover {
    background: #f1f7fa;
}

.abg-header-divider {
    width: 1px;
    height: 29px;
    color: #d7e1e8;
    font-size: 24px;
    line-height: 1;
}

.abg-header-login {
    color: #10283f;
    text-decoration: none;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.abg-header-contact {
    min-width: 193px;
    min-height: 73px;
    padding: 11px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #00A651;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 7px 18px rgba(0, 166, 81, .14);
    transition: background .2s ease, transform .2s ease;
}

.abg-header-contact:hover {
    color: #fff;
    background: #008f45;
    transform: translateY(-1px);
}

.abg-header-hamburger {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.abg-header-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #10283f;
}

@media (max-width: 1300px) {
    .abg-header-inner { padding: 0 28px; }
    .abg-header-nav { margin-left: 90px; gap: 34px; }
    .abg-header-nav a,
    .abg-header-language,
    .abg-header-login,
    .abg-header-contact { font-size: 17px; }
    .abg-header-contact { min-width: 160px; min-height: 58px; }
    .abg-header-utility { gap: 15px; }
    .abg-header-actions { gap: 15px; }
}

@media (max-width: 1000px) {
    .abg-header {
        height: 82px;
        min-height: 82px;
    }

    .abg-header-inner {
        height: 82px;
        min-height: 82px;
        padding: 0 20px;
    }

    .abg-header-logo img {
        max-width: 210px !important;
        max-height: 54px !important;
    }

    .abg-header-nav { display: none; }

    .abg-header-actions { gap: 12px; }

    .abg-header-utility {
        gap: 12px;
    }

    .abg-header-language,
    .abg-header-login {
        font-size: 15px;
    }

    .abg-header-contact {
        min-width: 135px;
        min-height: 50px;
        font-size: 15px;
    }

    .abg-header-hamburger {
        display: flex;
    }
}

@media (max-width: 640px) {
    .abg-header-inner {
        padding: 0 15px;
    }

    .abg-header-logo img {
        max-width: 165px !important;
        max-height: 48px !important;
    }

    .abg-header-mark {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .abg-header-word b { font-size: 20px; }
    .abg-header-word > span { font-size: 8px; }

    .abg-header-login,
    .abg-header-divider {
        display: none;
    }

    .abg-header-language {
        font-size: 13px;
    }

    .abg-header-contact {
        min-width: auto;
        min-height: 43px;
        padding: 9px 14px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .abg-header-language { display: none; }
    .abg-header-actions { gap: 4px; }
}


/* =========================================================
   Exact mockup layout overrides
   ========================================================= */
.abg-header {
    width: 100% !important;
    height: 114px !important;
    min-height: 114px !important;
    max-height: 114px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible;
}

.abg-header-inner {
    width: calc(100% - 240px) !important;
    max-width: 1680px !important;
    height: 114px !important;
    min-height: 114px !important;
    max-height: 114px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 0 !important;
}

.abg-header-logo {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.abg-header-logo img {
    width: 280px !important;
    max-width: 280px !important;
    height: auto !important;
    max-height: 68px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.abg-header-nav {
    flex: 0 0 auto !important;
    margin-left: 198px !important;
    margin-right: 0 !important;
    gap: 52px !important;
}

.abg-header-nav a {
    margin: 0 !important;
    padding: 9px 0 18px !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

.abg-header-actions {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    gap: 24px !important;
}

.abg-header-utility {
    gap: 24px !important;
    margin: 0 !important;
}

.abg-header-language,
.abg-header-login {
    margin: 0 !important;
    padding: 8px 0 !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

.abg-header-divider {
    width: 1px !important;
    min-width: 1px !important;
    height: 29px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.abg-header-contact {
    width: 193px !important;
    min-width: 193px !important;
    max-width: 193px !important;
    height: 73px !important;
    min-height: 73px !important;
    max-height: 73px !important;
    padding: 11px 22px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

@media (max-width: 1740px) and (min-width: 1001px) {
    .abg-header-inner {
        width: calc(100% - 56px) !important;
    }

    .abg-header-nav {
        margin-left: 90px !important;
    }
}

@media (max-width: 1000px) {
    .abg-header {
        height: 82px !important;
        min-height: 82px !important;
        max-height: 82px !important;
    }

    .abg-header-inner {
        width: 100% !important;
        height: 82px !important;
        min-height: 82px !important;
        max-height: 82px !important;
        padding: 0 20px !important;
    }

    .abg-header-logo {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .abg-header-logo img {
        width: auto !important;
        max-width: 210px !important;
    }

    .abg-header-nav {
        margin-left: 0 !important;
    }
}

@media (max-width: 640px) {
    .abg-header-inner {
        padding: 0 15px !important;
    }

    .abg-header-logo img {
        max-width: 165px !important;
    }

    .abg-header-contact {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 43px !important;
        min-height: 43px !important;
        max-height: 43px !important;
    }
}


/* =========================================================
   v1.1.2 — viewport/zoom-safe compact desktop layout
   The reference is commonly captured at a scaled browser
   viewport. This breakpoint keeps the mockup proportions
   intact without allowing the nav items to collide.
   ========================================================= */
@media (min-width: 1001px) and (max-width: 1400px) {
    .abg-header {
        height: 76px !important;
        min-height: 76px !important;
        max-height: 76px !important;
    }

    .abg-header-inner {
        width: 1120px !important;
        max-width: calc(100% - 40px) !important;
        height: 76px !important;
        min-height: 76px !important;
        max-height: 76px !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    .abg-header-logo {
        width: 187px !important;
        min-width: 187px !important;
        max-width: 187px !important;
    }

    .abg-header-logo img {
        width: 187px !important;
        max-width: 187px !important;
        max-height: 46px !important;
    }

    .abg-header-nav {
        margin-left: 133px !important;
        gap: 35px !important;
    }

    .abg-header-nav a {
        font-size: 13.333px !important;
        line-height: 1.2 !important;
        padding: 6px 0 12px !important;
        font-weight: 700 !important;
    }

    .abg-header-nav a::after {
        height: 3px !important;
        bottom: 2px !important;
    }

    .abg-header-actions {
        gap: 16px !important;
    }

    .abg-header-utility {
        gap: 16px !important;
    }

    .abg-header-language,
    .abg-header-login {
        font-size: 13.333px !important;
        line-height: 1.2 !important;
        padding: 5px 0 !important;
        font-weight: 700 !important;
    }

    .abg-header-arrow {
        margin-left: 5px !important;
        font-size: 8px !important;
    }

    .abg-header-divider {
        height: 20px !important;
        font-size: 16px !important;
    }

    .abg-header-contact {
        width: 129px !important;
        min-width: 129px !important;
        max-width: 129px !important;
        height: 49px !important;
        min-height: 49px !important;
        max-height: 49px !important;
        padding: 7px 15px !important;
        border-radius: 5px !important;
        font-size: 13.333px !important;
        font-weight: 700 !important;
    }

    .abg-header-hamburger {
        display: none !important;
    }
}

/* =========================================================
   v1.1.3 — Language dropdown reliability / stacking fix
   ========================================================= */
.abg-header {
    overflow: visible !important;
    isolation: isolate;
}

.abg-header-inner,
.abg-header-actions,
.abg-header-utility,
.abg-header-lang {
    overflow: visible !important;
}

.abg-header-lang {
    position: relative !important;
    z-index: 10020 !important;
}

.abg-header-language {
    cursor: pointer !important;
    position: relative;
    z-index: 10021 !important;
}

.abg-header-lang-menu {
    display: block !important;
    z-index: 10030 !important;
    pointer-events: none;
}

.abg-header-lang.is-open .abg-header-lang-menu {
    pointer-events: auto;
}
