/* Redesign global navigation (gnav) — extracted from webroot/redesign/final.html.
   Mobile burger menu (.gnav__toggle + .gnav--open) is a new addition: the prototypes simply
   hid the links below 860px; the toggle reveals them in a panel below the nav bar. */
.gnav { font-family: var(--g-body); font-size: 1.2rem; line-height: 1.55; }
/* Note: prototype used "top: 26px" to sit below the sticky .proto bar; without that bar it is 0. */
.gnav { background: #ffffff; border-bottom: 1px solid var(--g-border); position: sticky; top: 0; z-index: 80; }
.gnav-inner { display: flex; align-items: center; gap: 30px; height: 72px; }
/* logo lives inside a schema.org <div itemscope> wrapper in navigation.tpl.php,
   so the prototype's ".gnav-inner > a img" child selector would not match */
.gnav-inner a img { height: 42px; width: auto; display: block; }
.gnav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.gnav-links > a {
    font-family: var(--g-display-bold); text-transform: uppercase; letter-spacing: .04em;
    color: var(--g-navy); text-decoration: none; font-size: .95rem;
    padding: 4px 0; border-bottom: 2px solid transparent;
    transition: border-color .18s, color .18s;
}
.gnav-links > a:hover { color: var(--g-blue); border-color: var(--g-yellow); }
.gbtn {
    display: inline-block;
    font-family: var(--g-display-bold); text-transform: uppercase; letter-spacing: .05em;
    text-decoration: none; font-size: 1rem;
    padding: 13px 30px; border-radius: 999px;
    transition: transform .18s var(--ease), box-shadow .18s, background .18s;
    cursor: pointer;
}
.gbtn-yellow { background: var(--g-yellow); color: var(--g-navy); box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.gbtn-yellow:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.12); background: #f6c94e; }
.gbtn-blue { background: var(--g-blue); color: #fff; }
.gbtn-blue:hover { transform: translateY(-2px); background: var(--g-blue-deep); }
.gnav-links .gbtn { padding: 10px 22px; font-size: .9rem; white-space: nowrap; }
/* desktop: mobile icon CTA hidden */
.gnav-cta-mobile { display: none; }
@media (max-width: 860px) {
    /* collapsed bar: [icon CTA left] [logo centered] [burger right] */
    .gnav-inner { position: relative; justify-content: space-between; gap: 0; }
    .gnav-links > a:not(.gbtn) { display: none; }
    /* the text CTA lives in the dropdown panel only */
    .gnav-links .gbtn { display: none; }
    .gnav--open .gnav-links .gbtn { display: inline-block; }
    .gnav-cta-mobile {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px;
        background: var(--g-yellow); color: var(--g-navy);
        border-radius: 12px; text-decoration: none; font-size: 1.15rem;
        box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
    }
    .gnav-brand { position: absolute; left: 50%; transform: translateX(-50%); }
    .gnav-brand a img { height: 52px; }
    .gnav__toggle { margin-left: auto; }
}

/* ---------- Mobile burger menu (addition, same tokens as gnav) ---------- */
.gnav__toggle {
    display: none;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    margin-left: 8px;
    background: transparent;
    border: 1px solid var(--g-border); border-radius: 12px;
    color: var(--g-navy);
    font-size: 1.15rem;
    cursor: pointer;
    transition: color .18s, border-color .18s;
}
.gnav__toggle:hover { color: var(--g-blue); border-color: var(--g-yellow); }
@media (max-width: 860px) {
    .gnav__toggle { display: inline-flex; }
    /* Open state: links become a panel below the nav bar */
    .gnav--open .gnav-links {
        position: absolute; left: 0; right: 0; top: 100%;
        display: flex; flex-direction: column; align-items: stretch; gap: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--g-border);
        box-shadow: 0 18px 50px rgba(40, 62, 110, .12);
        padding: 8px 28px 18px;
        z-index: 79;
    }
    .gnav { position: sticky; }
    .gnav--open .gnav-links > a:not(.gbtn) {
        display: block;
        padding: 13px 0;
        border-bottom: 1px solid var(--g-border);
    }
    .gnav--open .gnav-links > a:not(.gbtn):hover { border-color: var(--g-yellow); }
    .gnav--open .gnav-links .gbtn { margin-top: 14px; text-align: center; }
}

/* Secondary phone link in the gnav (carried over from the old navigation) */
.gnav-links > a.gnav-phone {
    font-family: var(--g-body);
    text-transform: none;
    letter-spacing: 0;
    color: var(--g-blue);
    font-size: .95rem;
}
.gnav-links > a.gnav-phone:hover { color: var(--g-navy); border-color: transparent; }
