/*
 * Site navigation styles. Loaded on every page (see roar_enqueue_nav_assets in functions.php).
 *
 * Ported from the prototype's navigation stylesheet (decision 018). The rules keep the
 * prototype's order, because later rules override earlier ones.
 * Every rule is scoped to #roar-nav, the wrapper in patterns/site-nav.php.
 */

/* The header template part sticks to the top. Below the admin bar when it's fixed. */
header.site-header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 60;
}

@media (max-width: 600px) {
    header.site-header {
        top: 0;
    }
}

/* The prototype loads an earlier copy of this stylesheet first. These are the rules only that
   copy has. They come first because the rules below override them. */
#roar-nav .logo img {
    filter: none;
}

#roar-nav .link strong,
#roar-nav .overview strong,
#roar-nav .feature h4 {
    font-family: inherit;
}

#roar-nav .overview strong,
#roar-nav .feature h4,
#roar-nav .feature .stat {
    font-family: "Greed","Albert Sans",sans-serif;
}

#roar-nav .feature h4,
#roar-nav .feature .stat {
    color: #fff !important;
}

#roar-nav .feature p {
    color: #D9C8F5;
}

#roar-nav .feature .kicker {
    color: #BB9BED;
}

#roar-nav {
    --purple-50: #F7F4FD;
    --purple-100: #EDE4FA;
    --purple-300: #BB9BED;
    --purple-500: #6821D6;
    --purple-600: #581CB6;
    --purple-900: #1F0A40;
    --purple-950: #100520;
    --mint-500: #34A26B;
    --mint-50: #F0FBF5;
    --n-50: #FAFAF9;
    --n-100: #F5F5F4;
    --n-200: #E7E5E4;
    --n-300: #D6D3D1;
    --n-500: #78716C;
    --n-700: #44403C;
    --n-900: #1C1917;
    --font: "Albert Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
    --display: "Greed","Albert Sans",sans-serif;
    --bar-h: 76px;
    --surface: #fff;
    --surface-2: #fff;
    --ink: var(--n-900);
    --ink-soft: var(--n-500);
    --ink-mid: var(--n-700);
    --hover: var(--n-100);
    --edge: var(--n-200);
    --active-bg: var(--purple-50);
    --active-ink: var(--purple-600);
    --overview-bg: var(--purple-50);
    --overview-bg-hover: var(--purple-100);
    --overview-edge: var(--purple-500);
    --overview-ink: var(--purple-900);
    --link-hover: var(--purple-600);
    --feature-bg: var(--purple-950);
    --feature-ink: #fff;
    --feature-body: #D9C8F5;
    --feature-kicker: var(--purple-300);
    --logo-filter: none;
}

#roar-nav * {
    box-sizing: border-box;
}

#roar-nav a {
    color: inherit;
    text-decoration: none;
}

#roar-nav button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

#roar-nav :focus-visible {
    outline: 2px solid var(--purple-500);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- top bar ---------- */
#roar-nav .bar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--surface);
    border-bottom: 1px solid var(--edge);
    color: var(--ink);
}

#roar-nav .bar-in {
    max-width: 1280px;
    margin: 0 auto;
    height: var(--bar-h);
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

#roar-nav .logo img {
    height: 30px;
    display: block;
    filter: var(--logo-filter);
}

#roar-nav .nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

#roar-nav .nav-item>button,
#roar-nav .nav-item>a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

#roar-nav .nav-item>button:hover,
#roar-nav .nav-item>a:hover {
    background: var(--hover);
}

#roar-nav .nav-item.open>button {
    background: var(--active-bg);
    color: var(--active-ink);
}

/* Smaller and quieter than the prototype's arrow, and it doesn't flip when a panel opens. */
#roar-nav .caret {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .6;
}

#roar-nav .bar-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

#roar-nav .btn {
    display: inline-flex;
    align-items: center;
    background: var(--purple-500);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}

#roar-nav .btn:hover {
    background: var(--purple-600);
}

/* ---------- mega panel ---------- */
#roar-nav .panel::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

#roar-nav .panel {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--bar-h);
    background: var(--surface-2);
    color: var(--ink);
    border-bottom: 1px solid var(--edge);
    box-shadow: 0 24px 40px -28px rgba(16,5,32,.5);
    display: none;
}

#roar-nav .nav-item.open .panel {
    display: block;
}

#roar-nav .panel-in {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 24px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr 320px;
    gap: 40px;
}

#roar-nav .panel-in.two {
    grid-template-columns: 1.2fr 1fr 320px;
}

#roar-nav .panel-in.three {
    grid-template-columns: 1fr 1fr 1fr 300px;
    gap: 28px;
}

#roar-nav .col-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--ink-soft);
    margin: 0 0 14px;
}

#roar-nav .overview {
    display: block;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--overview-bg);
    margin-bottom: 20px;
    box-shadow: inset 3px 0 0 transparent;
    transition: background .15s ease, box-shadow .15s ease;
}

#roar-nav .overview:hover {
    background: var(--overview-bg-hover);
    box-shadow: inset 3px 0 0 var(--overview-edge);
}

#roar-nav .overview {
    position: relative;
}

#roar-nav .overview strong {
    display: block;
    font-family: var(--display);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--overview-ink);
    margin-bottom: 8px;
}

#roar-nav .overview span {
    font-size: 14.5px;
    color: var(--ink-mid);
    line-height: 1.5;
}

#roar-nav .overview:hover strong {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
}

#roar-nav .links {
    display: grid;
    gap: 2px;
}

#roar-nav .link {
    display: block;
    padding: 9px 0;
    border-radius: 4px;
}

#roar-nav .link:hover strong {
    color: var(--link-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

#roar-nav .link strong {
    display: block;
    font-size: 15.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

#roar-nav .link span {
    display: block;
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.4;
}

#roar-nav .link.lead strong {
    font-size: 17px;
}

#roar-nav .compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
}

#roar-nav .compact .link {
    padding: 7px 0;
}

#roar-nav .compact .link strong {
    margin: 0;
    font-weight: 500;
    font-size: 15px;
}

#roar-nav .feature {
    background: var(--feature-bg);
    color: var(--feature-ink);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#roar-nav .feature .kicker {
    font-size: 13px;
    color: var(--feature-kicker);
    margin: 0 0 10px;
}

#roar-nav .feature h4 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 10px;
}

#roar-nav .feature p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--feature-body);
    margin: 0 0 20px;
}

#roar-nav .feature .play-row {
    display: flex;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
}

#roar-nav .feature .play-row .go {
    align-self: center;
}

#roar-nav .feature .play {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    display: grid;
    place-items: center;
    transition: background .15s ease,transform .15s ease;
}

#roar-nav .feature .play:after {
    content: '';
    width: 0;
    height: 0;
    margin-left: 3px;
    border-left: 12px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}

#roar-nav .feature:hover .play {
    background: rgba(255,255,255,.3);
    transform: scale(1.06);
}

#roar-nav .feature .go {
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid currentColor;
    align-self: flex-start;
    padding-bottom: 2px;
}

#roar-nav .feature .stat {
    font-family: var(--display);
    font-size: 46px;
    line-height: 1;
    color: #fff;
    margin: 0 0 8px;
}

/* ---------- mobile ---------- */
#roar-nav .quiz-feature {
    width: 100%;
    text-align: left;
}

#roar-nav .quiz-feature .kicker,
#roar-nav .quiz-title,
#roar-nav .quiz-body {
    display: block;
}

#roar-nav .quiz-title {
    font-family: var(--display);
    font-weight: 400;
    font-size: 24px;
    line-height: 1.2;
    color: var(--feature-ink);
    margin-bottom: 10px;
}

#roar-nav .quiz-body {
    font-size: 14px;
    line-height: 1.5;
    color: var(--feature-body);
    margin-bottom: 20px;
}

#roar-nav .quiz-status:not([hidden]) {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--feature-body);
}

#roar-nav .sheet .quiz-feature {
    margin-top: 16px;
}

#roar-nav .burger {
    display: none;
    margin-left: auto;
    padding: 10px;
}

#roar-nav .burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    transition: .2s;
}

#roar-nav .sheet {
    position: fixed;
    inset: calc(var(--bar-h) + var(--wp-admin--admin-bar--height, 0px)) 0 0;
    background: var(--surface);
    color: var(--ink);
    z-index: 55;
    overflow-y: auto;
    display: none;
    padding: 8px 20px 40px;
}

#roar-nav .sheet.open {
    display: block;
}

#roar-nav .acc {
    border-bottom: 1px solid var(--edge);
}

#roar-nav .acc>button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 4px;
    font-size: 18px;
    font-weight: 600;
}

#roar-nav .acc-body {
    display: none;
    padding: 0 4px 18px;
}

#roar-nav .acc.open .acc-body {
    display: block;
}

#roar-nav .acc.open .caret {
    transform: rotate(-135deg) translateY(2px);
}

#roar-nav .sheet .link {
    padding: 11px 0;
}

#roar-nav .sheet .btn {
    width: 100%;
    justify-content: center;
    margin-top: 24px;
    padding: 16px;
}

#roar-nav .sheet .overview {
    margin: 6px 0 14px;
}

@media (max-width:1080px) {
    #roar-nav .nav,
    #roar-nav .bar-cta {
        display: none;
    }

    #roar-nav .burger {
        display: block;
    }

    #roar-nav .bar-in {
        gap: 0;
    }
}

@media (prefers-reduced-motion:reduce) {
    #roar-nav * {
        transition: none!important;
    }
}

#roar-nav {
    font-family: "Albert Sans",-apple-system,sans-serif;
    color: #1C1917;
}

#roar-nav .bar {
    position: relative;
}

#roar-nav.is-scrolled {
    --surface: #1F0A40;
    --surface-2: #2A1055;
    --ink: #fff;
    --ink-soft: #B6A4D6;
    --ink-mid: #DCD2EE;
    --hover: rgba(255,255,255,.09);
    --edge: rgba(255,255,255,.14);
    --active-bg: rgba(255,255,255,.12);
    --active-ink: #fff;
    --overview-bg: rgba(255,255,255,.09);
    --overview-bg-hover: rgba(255,255,255,.16);
    --overview-edge: var(--purple-300);
    --overview-ink: #fff;
    --link-hover: #fff;
    --feature-bg: var(--purple-500);
    --feature-ink: #fff;
    --feature-body: #EDE4FA;
    --feature-kicker: #EDE4FA;
    --logo-filter: brightness(0) invert(1);
    color: #fff;
}

#roar-nav.is-scrolled .logo img {
    filter: brightness(0) invert(1) !important;
}

#roar-nav.is-scrolled .link strong,
#roar-nav.is-scrolled .overview strong,
#roar-nav.is-scrolled .col-title,
#roar-nav.is-scrolled .nav-item>button {
    color: inherit;
}

#roar-nav.is-scrolled .link strong {
    color: #fff;
}

#roar-nav.is-scrolled .overview span {
    color: #DCD2EE;
}

#roar-nav.is-scrolled .btn {
    background: #fff;
    color: #1F0A40;
}

#roar-nav.is-scrolled .btn:hover {
    background: #EDE4FA;
}

#roar-nav.is-scrolled .burger span {
    background: #fff;
}

#roar-nav.is-scrolled .link strong,
#roar-nav.is-scrolled .overview strong,
#roar-nav.is-scrolled .feature h4 {
    font-family: inherit;
}

#roar-nav.is-scrolled .overview strong,
#roar-nav.is-scrolled .feature h4,
#roar-nav.is-scrolled .feature .stat {
    font-family: "Greed","Albert Sans",sans-serif;
}

#roar-nav.is-scrolled .feature h4,
#roar-nav.is-scrolled .feature .stat {
    color: #fff !important;
}

#roar-nav.is-scrolled .feature p {
    color: #EDE4FA;
}

#roar-nav.is-scrolled .feature .kicker {
    color: #EDE4FA;
}

/* light over the page top, dark once scrolling starts */
#roar-nav .bar {
    transition: background-color .35s ease,border-color .35s ease,color .35s ease;
}

#roar-nav .logo img {
    transition: filter .35s ease;
}

#roar-nav .btn,
#roar-nav .burger span {
    transition: background-color .35s ease,color .35s ease;
}

#roar-nav:not(.is-scrolled) .btn {
    background: #581CB6;
    color: #fff;
}

#roar-nav:not(.is-scrolled) .btn:hover {
    background: #34116B;
}

#roar-nav:not(.is-scrolled) .btn-outline {
    background: transparent;
    color: #581CB6;
    border-color: currentColor;
}

#roar-nav:not(.is-scrolled) .btn-outline:hover {
    background: var(--purple-50);
}

#roar-nav.is-scrolled .btn-outline {
    background: transparent;
    color: #fff;
    border-color: currentColor;
}

#roar-nav.is-scrolled .btn-outline:hover {
    background: var(--hover);
}

#roar-nav .sheet .btn + .btn {
    margin-top: 12px;
}

@media (min-width:1081px) and (max-width:1199px) {
    #roar-nav .bar-in {
        gap: 16px;
    }

    #roar-nav .bar-cta .btn {
        padding-right: 16px;
        padding-left: 16px;
    }
}

/* Role navigation now shares the Industries menu. */
#roar-nav .panel-in.why-panel{max-width:1040px;grid-template-columns:minmax(0,1fr) 320px}

/* Curated customer proof follows the budget resources in the same column. */
#roar-nav .resource-cases{margin-top:28px}
#roar-nav .resource-cases .col-title{margin-top:0}

/* Customer stories direction selected by Nate (decision 110). */
#roar-nav .nav-item>button {
    position: relative;
    border-radius: 0;
    padding: 14px 12px;
    font-size: 15px;
}
#roar-nav .nav-item>button:hover,
#roar-nav .nav-item.open>button {
    background: transparent;
}
#roar-nav .nav-item.open>button::after {
    content: '';
    position: absolute;
    height: 2px;
    bottom: 4px;
    left: 12px;
    right: 12px;
    background: currentColor;
}
#roar-nav .panel {
    --surface-2: #fff;
    --ink: #23113d;
    --ink-soft: #6c6475;
    --ink-mid: #51465e;
    --edge: #e7e0ee;
    --overview-ink: #23113d;
    --link-hover: #581cb6;
    --feature-ink: #23113d;
    --feature-body: #6c6475;
    --feature-kicker: #6c6475;
    background: var(--surface-2);
    color: var(--ink);
}
#roar-nav .panel-in { padding: 32px 28px; gap: 36px; }
#roar-nav .panel-in>div { min-width: 0; }
#roar-nav .panel .col-title,
#roar-nav .sheet .col-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--ink-soft);
}
#roar-nav .panel .link strong { font-size: 16px; line-height: 1.35; color: var(--ink); }
#roar-nav .panel .link span { font-size: 13px; line-height: 1.5; margin-top: 5px; }
#roar-nav .panel .link:hover strong { color: var(--link-hover); }
#roar-nav .panel .overview {
    padding: 0 0 22px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    margin: 0 0 24px;
    border-bottom: 1px solid var(--edge);
}
#roar-nav .panel .overview strong {
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--overview-ink);
}
#roar-nav .panel .overview span { font-size: 14px; color: var(--ink-mid); }
#roar-nav .panel .feature {
    border-radius: 0;
    border-left: 1px solid var(--edge);
    padding: 0 0 0 28px;
    background: none;
    justify-content: flex-start;
    gap: 20px;
}
#roar-nav .panel .feature h4,
#roar-nav .panel .quiz-title {
    font-family: inherit;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--feature-ink) !important;
}
#roar-nav .panel .feature p,
#roar-nav .panel .quiz-body,
#roar-nav .panel .quiz-status { color: var(--feature-body); font-size: 14px; }
#roar-nav .panel .feature .kicker { color: var(--feature-kicker); font-size: 12px; }
#roar-nav .panel .feature .go { color: var(--purple-600); }
#roar-nav .panel .feature .play { background: var(--purple-100); width: 36px; height: 36px; }
#roar-nav .panel .feature .play:after { border-left-color: var(--purple-600); border-left-width: 9px; border-top-width: 5px; border-bottom-width: 5px; }
#roar-nav .panel .links.compact { grid-template-columns: 1fr; gap: 2px; }
#roar-nav .panel .compact .link strong { font-size: 15px; font-weight: 500; }
#roar-nav .panel .resource-directory .link { padding: 7px 0; }
#roar-nav .panel-in.resources-panel {
    grid-template-columns: .78fr 1.65fr;
    gap: 0;
    padding: 0;
}
#roar-nav .resource-directory {
    position: relative;
    padding: 32px;
    background: #f6f2fc;
    border-right: 1px solid var(--edge);
}
/* Extend the tint through the centered menu’s left gutter without moving links. */
#roar-nav .resource-directory::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: max(0px, calc((100vw - 1280px) / 2));
    background: inherit;
    pointer-events: none;
}
#roar-nav .resource-budget { margin-top: 30px; }
#roar-nav .resource-stories { min-width: 0; padding: 32px 36px; }
#roar-nav .story-result {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--edge);
}
#roar-nav .story-result:first-of-type { padding-top: 4px; }
#roar-nav .story-number {
    flex: 0 0 92px;
    color: var(--purple-600);
    font-family: var(--display);
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -.04em;
}
#roar-nav .story-copy { min-width: 0; }
#roar-nav .story-copy strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.4; }
#roar-nav .story-copy>span { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-top: 5px; }
#roar-nav .story-arrow { margin-left: auto; font-size: 22px; color: var(--purple-600); }
#roar-nav .story-result:hover strong { color: var(--purple-600); text-decoration: underline; text-underline-offset: 4px; }
#roar-nav .resource-hotels { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 17px; }
#roar-nav .resource-all { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--purple-600); font-size: 14px; font-weight: 600; }
#roar-nav .resource-all:hover { text-decoration: underline; text-underline-offset: 4px; }
#roar-nav .sheet .resource-cases .compact { grid-template-columns: 1fr; gap: 0; }
@media (min-width:1081px) and (max-width:1199px) {
    #roar-nav .nav-item>button { padding-left: 9px; padding-right: 9px; font-size: 14px; }
    #roar-nav .panel-in.three { grid-template-columns: 1fr 1fr 1fr 1.15fr; gap: 24px; }
    #roar-nav .panel .feature { padding-left: 22px; }
    #roar-nav .resource-stories { padding-right: 28px; padding-left: 28px; }
}
