/* ============================================================
   GIANT HEADER — frontend styles
   ============================================================ */

/* ---------- Base header — reset theme overrides ---------- */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    z-index: 1000 !important;
    background-color: #fff;
    /* border-bottom: 1px solid rgba(0,0,0,.08); */
    transition: background-color .3s ease, box-shadow .3s ease;
    box-sizing: border-box;
    padding: 20px 0px !important;
}
.site-header.is-scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
}

/* ---------- Container ---------- */
.site-header .gh-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ---------- Inner row ---------- */
.site-header .gh-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: 90px;
}

/* ---------- Logo ---------- */
.site-header .gh-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.site-header .gh-logo-img {
    height: var(--logo-height, 60px);
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

/* ---------- Right group ----------
   Structure: [stacked-col: phone / sec-nav] [person-icon] [burger]
   --------------------------------------------------------- */
.site-header .gh-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Left part of right group: phone on top, secondary nav below */
.site-header .gh-right-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    padding: 8px 0;
}

/* Top row: phone */
.site-header .gh-right-top {
    display: flex;
    align-items: center;
}

/* Bottom row: secondary nav */
.site-header .gh-right-bottom {
    display: flex;
    align-items: center;
}

/* ---------- Phone ---------- */
.site-header .gh-phone {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
    padding: 2px 10px;
}
.site-header .gh-phone:hover { color: #0055a5; }
.site-header .gh-phone-label { font-weight: 400; color: #666; }
.site-header .gh-phone-number { color: #0055a5; font-weight: 600; }

/* ---------- Secondary nav ---------- */
.site-header .gh-secondary-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Items with no children: plain link */
.site-header .gh-sec-link {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: color .2s;
    white-space: nowrap;
}
.site-header .gh-sec-link:hover { color: #0055a5; }

/* Items with children: wrapper */
.site-header .gh-sec-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* The text link part (navigates) */
.site-header .gh-sec-text-link {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    padding: 5px 4px 5px 10px;
    transition: color .2s;
    white-space: nowrap;
}
.site-header .gh-sec-text-link:hover { color: #0055a5; }

/* The chevron button (opens dropdown only) */
.site-header .gh-sec-chevron-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 5px 8px 5px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background .15s;
    line-height: 0;
}
.site-header .gh-sec-chevron-btn:hover { background: rgba(0,0,0,.05); }
.site-header .gh-sec-chevron {
    width: 14px;
    height: 9px;
    display: block;
    flex-shrink: 0;
    color: #333;
    transition: transform .25s ease;
    transform-origin: center;
}
.site-header .gh-sec-dropdown.is-open .gh-sec-chevron {
    transform: rotate(180deg);
}

/* Dropdown submenu panel */
.site-header .gh-sec-submenu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 210px;
    background: #1a5fbf;
    /* border-radius: 4px; */
    padding: 8px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 500;
}
.site-header .gh-sec-submenu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.site-header .gh-sec-submenu li { margin: 0; padding: 0; }
.site-header .gh-sec-submenu a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: background .15s;
    line-height: 1.3;
}
.site-header .gh-sec-submenu a:hover { background: rgba(255,255,255,.12); }

/* ---------- Contact / account icon ---------- */
.site-header .gh-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: color .2s;
    flex-shrink: 0;
}
.site-header .gh-contact-icon:hover { color: #0055a5; }
.site-header .gh-contact-icon--default svg { width: 26px; height: 26px; }

/* ---------- Burger button ---------- */
.site-header .gh-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 4px;
    transition: background .2s;
}
.site-header .gh-burger:hover { background: rgba(0,0,0,.06); }
.site-header .gh-burger-bar {
    display: block;
    width: 40px;
    height: 5px;
    background-color: #4D5858;
    /* border-radius: 2px; */
    transition: transform .3s ease, opacity .3s ease;
    transform-origin: center;
}

/* ---------- Mobile phone icon ---------- */
.site-header .gh-mobile-phone-icon {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
}
.site-header .gh-mobile-phone-icon img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* ============================================================
   MOBILE (<= 900px) — collapse secondary nav + phone into burger
   ============================================================ */
@media (max-width: 900px) {
    .site-header .gh-right-stack { display: none; }
    .site-header .gh-right { gap: 14px; }
    .site-header .gh-mobile-phone-icon { display: flex; }
}
@media (max-width: 640px) {
    .site-header .gh-inner    { min-height: 70px; }
    .site-header .gh-logo-img { height: calc(var(--logo-height, 60px) * .75); }
    .site-header .gh-right    { gap: 10px; }
}

/* ============================================================
   OVERLAY — outside <header>, quarter-width panel on desktop
   ============================================================ */
.gh-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    /* desktop: 380px wide panel from the right */
    width: 380px;
    z-index: 99999;
    background-color: #fff;
    box-shadow: -4px 0 30px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .4s ease, visibility 0s linear .4s;
    pointer-events: none;
    overflow-y: auto;
}
.gh-overlay.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .4s ease, visibility 0s linear 0s;
    margin-top: 0px;
}

/* Dark backdrop when overlay is open */
.gh-overlay-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0,0,0,.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility 0s linear .4s;
    pointer-events: none;
}
.gh-overlay-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .4s ease, visibility 0s linear 0s;
    margin-top: 0px;
}

.gh-overlay-inner {
    width: 100%;
    padding: 100px 28px 60px;
    box-sizing: border-box;
    position: relative;
    min-height: 100%;
}

/* Secondary nav items merged into overlay — hidden on desktop.
   On desktop the secondary nav lives in the header bar (.gh-secondary-nav);
   it only merges into the burger overlay on mobile (<=900px, see below). */
.gh-overlay-secondary,
.gh-overlay-sec-item {
    display: none;
}
/* Children collapsed by default — animated open in mobile media query */
.gh-overlay-sec-children {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .45s cubic-bezier(.4,0,.2,1), opacity .35s ease;
}

.gh-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    border-radius: 50%;
    transition: background .2s, color .2s;
    padding: 0;
}
.gh-close { color: #4D5858; }
.gh-close:hover { background: rgba(0,0,0,.06); color: #000; }
.gh-close svg   { width: 50px; height: 50px; }
.gh-overlay-nav { width: 100%; }

/* Single merged menu — all primary + secondary items in one flat list */
.gh-overlay-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: right;
}

/* Primary simple link items */
.gh-overlay-primary-link {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    color: var(--parent-color, #4D5858);
    line-height: 1.2;
}
.gh-overlay-primary-link a {
    color: inherit;
    text-decoration: none;
    display: block;
    padding: 6px 0;
    transition: color .2s;
}
.gh-overlay-primary-link a:hover { color: var(--active-color, #0055a5); }

/* Primary parent items */
.gh-overlay-primary-parent { margin: 0; }

/* Secondary items in merged list — visibility is breakpoint-controlled
   (hidden on desktop above, shown on mobile in the <=900px query below). */

.sub-menu-heading span,
.gh-overlay-primary-link a,
.gh-overlay-sec-item  a{
    padding: 0px 0px 20px;
}
.gh-overlay-sec-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    /* padding: 0px 0px 10px; */
    /* gap: 10px; */
}
.gh-overlay-sec-link {
    font-size: 16px;
    font-weight: 700;
    color: #4D5858;
    text-decoration: none;
    line-height: 1.2;
    text-align: right;
}
a.gh-overlay-sec-link:hover { color: #0055a5; }
.gh-overlay-sec-toggle {
    order: -1;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 6px;
    min-width: 44px;
    /* min-height: 44px; */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(0deg);
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    transform-origin: center;
}
.gh-overlay-sec-toggle img {
    display: block;
    width: 23px;
    height: 15px;
    pointer-events: none;
}
.gh-overlay-sec-item.active .gh-overlay-sec-toggle { transform: rotate(90deg); }
.gh-overlay-sec-children {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .45s cubic-bezier(.4,0,.2,1), opacity .35s ease;
    text-align: right;
    padding-right: 4px;
}
.gh-overlay-sec-item.active .gh-overlay-sec-children {
    max-height: 600px;
    opacity: 1;
    pointer-events: auto;
    padding-right: 10px;
    margin-bottom: 20px;
}
.gh-overlay-sec-children a {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #4D5858;
    text-decoration: none;
    padding: 4px 0;
    transition: color .2s;
}
.gh-overlay-sec-children a:hover { color: #0055a5; }

.sub-menu-heading.parent-no-url.active span,
.gh-overlay-sec-item.has-children.active .gh-overlay-sec-link{
    color: #0282CB;
}
/* Full-width on mobile + merge secondary nav into the overlay.
   On mobile the in-bar secondary nav (.gh-right-stack) is hidden, so the
   secondary items are shown here inside the burger overlay instead. */
@media (max-width: 900px) {
    .gh-overlay {
        width: 100%;
        box-shadow: none;
    }
    .gh-overlay-sec-item { display: block; }
}
