/* ==========================================================================
   RASonly — site-wide header (same design as the home page header)
   Loaded by application/views/ras/template/header.php on pages that also load
   Bootstrap / theme.min.css / style.css, so every rule is scoped under .elh and
   resets what those stylesheets set on a, nav, img and button.
   Markup: application/views/ras/template/site_header_bar.php
   ========================================================================== */

/* the wrapper has no box, so the sticky header sticks to the page, not to it */
.elh {
    display: contents;

    --navy:   #042c54;
    --navy-2: #175087;
    --amber:  #f1a43b;
    --text:   #44546a;
    --muted:  #6d7c91;
    --line:   #e4e9f2;
    --tint:   #f5f8fc;
    --white:  #ffffff;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --pad: clamp(16px, 4vw, 40px);
    --hdr: 72px;
}

.elh *, .elh *::before, .elh *::after { box-sizing: border-box; }
.elh .el-header, .elh .el-mobnav {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
.elh a, .elh a:hover, .elh a:focus { text-decoration: none; }
.elh img { max-width: 100%; display: block; }
.elh button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; margin: 0; }
.elh :focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.elh .el-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
            backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    transition: transform .3s ease, box-shadow .3s ease;
    margin: 0;
}
.el-hdr-hidden .elh .el-header { transform: translateY(-100%); box-shadow: none; }
.el-hdr-scrolled .elh .el-header { box-shadow: 0 6px 20px rgba(4, 44, 84, .08); }

.elh .el-header-in {
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--hdr);
    width: min(100% - (var(--pad) * 2), 1320px);
    margin-inline: auto;
}
.elh .el-brand { flex: 0 0 auto; }
.elh .el-brand img { height: 40px; width: auto; }

.elh .el-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 0 0 auto;
    padding: 0;
}
.elh .el-nav a {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
    padding: 8px 9px;
    border-radius: 8px;
    white-space: nowrap;
    transition: color .16s, background .16s;
}
.elh .el-nav a:hover { color: var(--navy); background: var(--tint); }

.elh .el-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    line-height: 1.2;
    border-radius: 10px;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background .18s, color .18s, box-shadow .18s;
}
.elh .el-btn--primary { background: var(--navy); color: #fff; }
.elh .el-btn--primary:hover { background: var(--navy-2); color: #fff; box-shadow: 0 10px 24px rgba(4, 44, 84, .22); }
.elh .el-btn--sm { padding: 10px 18px; min-height: 42px; font-size: 14px; }
.elh .el-btn--full { width: 100%; padding: 13px 18px; font-size: 15px; }
.elh .el-header-cta { margin-left: 8px; flex: 0 0 auto; }

.elh .el-burger {
    display: none;
    flex: 0 0 44px;
    width: 44px; height: 44px;
    position: relative;
    border-radius: 10px;
}
.elh .el-burger:hover { background: var(--tint); }
.elh .el-burger span {
    position: absolute;
    left: 11px;
    width: 22px; height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform .25s, opacity .2s;
}
.elh .el-burger span:nth-child(1) { top: 15px; }
.elh .el-burger span:nth-child(2) { top: 21px; }
.elh .el-burger span:nth-child(3) { top: 27px; }
.elh .el-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.elh .el-burger.open span:nth-child(2) { opacity: 0; }
.elh .el-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* fixed under the sticky header, so it opens in view at any scroll position */
.elh .el-mobnav {
    display: none;
    position: fixed;
    top: var(--hdr);
    left: 0; right: 0;
    z-index: 1019;
    max-height: calc(100vh - var(--hdr));
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(4, 44, 84, .12);
    padding: 6px var(--pad) 20px;
}
.elh .el-mobnav.open { display: block; animation: elh-drop .2s ease-out; }
.elh .el-mobnav a:not(.el-btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.elh .el-mobnav a:not(.el-btn)::after {
    content: "\F285";                  /* bi-chevron-right */
    font-family: "bootstrap-icons";
    font-size: 13px;
    color: var(--muted);
}
.elh .el-mobnav .el-btn { margin-top: 18px; }

@keyframes elh-drop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

/* 7 nav labels + logo + button need ~1260px; below that use the menu button */
@media (max-width: 1279px) {
    .elh .el-nav { display: none; }
    .elh .el-header-in { gap: 10px; }
    .elh .el-header-cta { margin-left: auto; }
    .elh .el-burger { display: block; }
    .elh .el-brand img { height: 36px; }
}
@media (max-width: 380px) {
    .elh .el-header-cta { padding-inline: 12px; }
    .elh .el-header-cta i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .elh .el-header, .elh .el-burger span, .elh .el-nav a, .elh .el-btn { transition: none; }
    .elh .el-mobnav.open { animation: none; }
}
