
/* ==========================================
   HSOR GLOBAL HEADER
   Clean, lightweight, responsive navigation
========================================== */

.hsr-header,
.hsr-header * {
    box-sizing: border-box;
}

.hsr-header {
    --hsr-blue: #1767a7;
    --hsr-red: #db2848;
    --hsr-ink: #192536;
    --hsr-paper: #fffefa;

    position: relative;
    z-index: 999;
    width: 100%;
    background: #ffffff;
    color: var(--hsr-ink);
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    box-shadow: 0 3px 14px rgba(22,38,59,.055);
}

/* TOP ACCENT STRIP */

.hsr-topline {
    height: 4px;
    display: flex;
}

.hsr-topline span:nth-child(1) {
    background: var(--hsr-red);
    flex: 1;
}

.hsr-topline span:nth-child(2) {
    background: var(--hsr-blue);
    flex: 1;
}

.hsr-topline span:nth-child(3) {
    background: var(--hsr-ink);
    flex: 1;
}

/* ==========================================
   DESKTOP NAVIGATION
========================================== */

.hsr-header .hsr-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;

    width: 100%;
    max-width: 100%;
    min-height: 76px;
    height: auto;

    margin: 0;
    padding: 8px 36px;
    gap: 28px;
}

/* BRAND */

.hsr-header .hsr-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 0;
}

/* LOGO */

.hsr-header .hsr-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    margin: 0;
    padding: 0;
    line-height: 1;
    text-decoration: none;
}

.hsr-header .hsr-logo img,
.hsr-header .hsr-logo .custom-logo {
    display: block;
    width: auto;
    height: 60px;
    max-width: 220px;
    object-fit: contain;
}

/* BRAND NAME */

.hsr-header .hsr-brand-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
    white-space: nowrap;
}

.hsr-header .hsr-brand-name span {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: .055em;
}

.hsr-header .hsr-brand-name small {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .25em;
    color: var(--hsr-blue);
}

/* ==========================================
   MAIN NAVIGATION LINKS
========================================== */

.hsr-header .hsr-navlinks {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.5vw, 26px);
    margin-left: auto;
}

.hsr-header .hsr-navlinks > a:not(.hsr-apply),
.hsr-header .hsr-mega-trigger {
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;

    color: var(--hsr-ink);
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    padding: 12px 0;
    cursor: pointer;
}

.hsr-header .hsr-navlinks > a:not(.hsr-apply):hover,
.hsr-header .hsr-mega-trigger:hover,
.hsr-header .hsr-mega-trigger:focus {
    color: var(--hsr-blue) !important;
}

/* APPLY HERE */

.hsr-header .hsr-navlinks .hsr-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: var(--hsr-blue) !important;
    color: #ffffff !important;
    border: 1px solid var(--hsr-blue) !important;
    border-radius: 7px !important;

    padding: 12px 19px !important;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;

    box-shadow: none;
    transition: background .2s ease;
}

.hsr-header .hsr-navlinks .hsr-apply:hover {
    background: #125486 !important;
}

.hsr-header .hsr-apply span {
    font-size: 16px;
}

/* DROPDOWN ARROW */

.hsr-header .hsr-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;

    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    transform: rotate(45deg);
    margin-left: 7px;
    vertical-align: 3px;
}

.hsr-header .hsr-mega-trigger[aria-expanded="true"]
.hsr-chevron {
    transform: rotate(225deg);
    vertical-align: 0;
}

/* ACCESSIBILITY */

.hsr-header a:focus-visible,
.hsr-header button:focus-visible {
    outline: 2px solid var(--hsr-blue) !important;
    outline-offset: 4px !important;
}

/* ==========================================
   MOBILE HAMBURGER
========================================== */

.hsr-header .hsr-mobile-toggle {
    display: none !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    width: 44px;
    height: 44px;
    padding: 8px;

    background: #ffffff !important;
    color: var(--hsr-ink) !important;
    border: 1px solid #dde5ed !important;
    border-radius: 7px;
    box-shadow: none !important;

    cursor: pointer;
}

.hsr-header .hsr-mobile-toggle span {
    width: 21px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

/* ==========================================
   MEGA MENU PANEL
========================================== */

.hsr-header .hsr-mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;

    background: var(--hsr-paper);
    border-top: 1px solid #e6e9ed;
    box-shadow: 0 15px 35px rgba(12,30,50,.11);

    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s;
}

.hsr-header .hsr-mega.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* MEGA MENU CONTENT */

.hsr-header .hsr-mega-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 26px 36px;

    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) 2fr;
    gap: 40px;
    align-items: start;
}

/* INTRODUCTION */

.hsr-header .hsr-mega-intro {
    border-right: 1px solid #e2e7ed;
    padding-right: 30px;
}

.hsr-header .hsr-eyebrow {
    color: var(--hsr-red);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .15em;
}

.hsr-header .hsr-mega-intro h2 {
    font-family: inherit;
    font-size: clamp(23px, 2vw, 30px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.025em;

    margin: 12px 0;
    color: var(--hsr-ink);
}

.hsr-header .hsr-mega-intro h2 em {
    color: var(--hsr-blue);
    font-style: normal;
}

.hsr-header .hsr-mega-intro p {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    color: #647386;
    margin: 0;
}

/* MEGA MENU COLUMNS */

.hsr-header .hsr-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.hsr-header .hsr-mega-col h3 {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 1.2px;
    text-transform: uppercase;

    color: var(--hsr-blue);
    margin: 0 0 12px;
}

.hsr-header .hsr-mega-col a {
    display: block;

    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;

    color: #28394b;
    text-decoration: none;
    padding: 6px 0;

    transition:
        color .2s ease,
        padding-left .2s ease;
}

.hsr-header .hsr-mega-col a:hover {
    color: var(--hsr-red);
    padding-left: 4px;
}

/* ==========================================
   TABLET & MOBILE — 1150px BREAKPOINT
========================================== */

@media (max-width: 1150px) {

    .hsr-header .hsr-nav {
        flex-wrap: wrap;
        min-height: 68px;
        padding: 8px 22px;
        gap: 12px;
    }

    .hsr-header .hsr-logo img,
    .hsr-header .hsr-logo .custom-logo {
        height: 52px;
        width: auto;
    }

    .hsr-header .hsr-mobile-toggle {
        display: flex !important;
        margin-left: auto;
    }

    .hsr-header .hsr-navlinks {
        display: none;
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        margin-left: 0;
        gap: 0;

        border-top: 1px solid #edf0f3;
        padding: 10px 0 4px;
    }

    .hsr-header .hsr-navlinks.is-open {
        display: flex;
    }

    .hsr-header .hsr-navlinks > a:not(.hsr-apply),
    .hsr-header .hsr-mega-trigger {
        width: 100%;
        padding: 13px 10px;
        text-align: left;
        font-size: 14px;

        border-bottom: 1px solid #f0f2f4 !important;
    }

    .hsr-header .hsr-navlinks .hsr-apply {
        align-self: flex-start;
        margin: 12px 8px;
    }

    /* Mobile mega menu */

    .hsr-header .hsr-mega {
        position: static;
        display: none;

        border: 0;
        box-shadow: none;

        visibility: hidden;
        opacity: 0;
        transform: none;
        transition: none;
    }

    .hsr-header .hsr-mega.is-open {
        display: block;
        visibility: visible;
        opacity: 1;
    }

    .hsr-header .hsr-mega-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px;
        background: #f7f9fb;
    }

    .hsr-header .hsr-mega-intro {
        border-right: 0;
        border-bottom: 1px solid #e2e7ed;
        padding: 0 0 18px;
    }

    .hsr-header .hsr-mega-intro h2 {
        font-size: 24px;
    }

    .hsr-header .hsr-mega-grid {
        gap: 20px;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 620px) {

    .hsr-header .hsr-nav {
        padding: 8px 16px;
    }

    .hsr-header .hsr-brand {
        gap: 8px;
    }

    .hsr-header .hsr-logo img,
    .hsr-header .hsr-logo .custom-logo {
        height: 46px;
        width: auto;
    }

    .hsr-header .hsr-brand-name span {
        font-size: 15px;
    }

    .hsr-header .hsr-brand-name small {
        font-size: 9px;
    }

    .hsr-header .hsr-mega-grid {
        grid-template-columns: 1fr;
    }

    .hsr-header .hsr-mega-inner {
        padding: 18px 16px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .hsr-header * {
        transition: none !important;
    }
}
