/* re-versioned 23 Nov 2026: the live copy was older than the pages using it */
/* Pinpoint4 site header for hand-built pages (src/shared/lite-header.html, used on free-assessment.html).
   Matches the WordPress header (src/shared/header.html + style.css "header nav" rules) without loading
   the theme CSS. If the main header's look changes, change it here too. */

.p4-lh { position: sticky; top: 0; z-index: 50; background: #000022; border-bottom: 0; transition: transform 0.25s ease; }
.p4-lh.p4-header--hidden { transform: translateY(-100%); }
.p4-lh *, .p4-lh *::before, .p4-lh *::after { box-sizing: border-box; }
.p4-lh__bar { display: flex; align-items: center; min-height: 110px; padding: 0 8%; }
.p4-lh__logo { flex: none; display: block; line-height: 0; }
.p4-lh__logo img { display: block; width: auto; height: 124px; margin: 0 0 -14px; object-fit: contain; }
.p4-lh__nav { margin-left: auto; }
.p4-lh__menu { display: flex; align-items: center; gap: 21px; margin: 0; padding: 0; list-style: none; }
.p4-lh__menu li { margin: 0; padding: 0; }
.p4-lh__nav .elementor-item {
    position: relative; display: flex; align-items: center; padding: 7px 21px;
    color: #FFFFFF; font: 600 16px/28px "DM Sans", "DM Sans", sans-serif; text-decoration: none; white-space: nowrap;
    transition: color 0.2s ease;
}
.p4-lh__nav .elementor-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #324A6D; opacity: 0; transition: opacity 0.2s ease; }
.p4-lh__nav .elementor-item:hover, .p4-lh__nav .elementor-item-active { color: #8FB3EC; }
.p4-lh__nav .elementor-item:hover::after, .p4-lh__nav .elementor-item-active::after { opacity: 1; }
/* the page you're on is plain text (build.py turns its link into a <span>); it still lights up on hover */
.p4-lh span.elementor-item { cursor: default; }
/* "Get Your Free Assessment": real button, green glow on hover (same as style.css) */
.p4-lh__nav .menu-item-9001 > .elementor-item {
    margin-left: 0; padding: 12px 24px; line-height: 1em;
    border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
    background-image: linear-gradient(45deg, #3569BB 0%, #514A9D 100%); background-color: #15803D;
    color: #FFFFFF; box-shadow: 0 2px 10px rgba(74, 129, 211, 0.35);
    transition: background-image 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.p4-lh__nav .menu-item-9001 > .elementor-item::after { display: none; }
.p4-lh__nav .menu-item-9001 > .elementor-item:hover,
.p4-lh__nav .menu-item-9001 > .elementor-item:focus-visible {
    background-image: none; border-color: #4ADE80; color: #FFFFFF; transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.9), 0 0 24px rgba(34, 197, 94, 0.6), 0 0 48px rgba(34, 197, 94, 0.35);
}
/* Services + Products dropdowns (sub-menu in menu.html, 19 Nov 2026): same look as style.css */
.p4-lh__nav .menu-item-has-children { position: relative; }
.p4-lh__nav .menu-item-has-children > .elementor-item { padding-right: 30px; }
.p4-lh__nav .menu-item-has-children > .elementor-item::before {
    content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
    border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0.75; transition: transform 0.2s ease;
}
.p4-lh__nav .menu-item-has-children:hover > .elementor-item::before,
.p4-lh__nav .menu-item-has-children:focus-within > .elementor-item::before { transform: translateY(3px) rotate(225deg); }
.p4-lh .sub-menu { display: none; margin: 0; padding: 0; list-style: none; }
.p4-lh__nav .sub-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 60; min-width: 250px; padding: 8px;
    background: #0A0B2A; border: 1px solid rgba(143, 179, 236, 0.18); border-radius: 14px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.75);
}
.p4-lh__nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.p4-lh__nav .menu-item-has-children:hover > .sub-menu,
.p4-lh__nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
.p4-lh__nav .p4-sub-overview { display: none; }
.p4-lh__nav .elementor-sub-item {
    display: block; padding: 10px 14px; border-radius: 9px; color: rgba(255, 255, 255, 0.88);
    font: 600 15px/1.3 "DM Sans", sans-serif; white-space: nowrap; text-decoration: none;
}
.p4-lh__nav .elementor-sub-item:hover, .p4-lh__nav .elementor-sub-item:focus-visible { background: rgba(74, 129, 211, 0.18); color: #FFFFFF; }
.p4-lh a:focus-visible, .p4-lh button:focus-visible { outline: 3px solid #1D4ED8; outline-offset: 2px; box-shadow: 0 0 0 2px #FFFFFF; }
.p4-lh__toggle, .p4-lh__panel { display: none; }

/* same width steps as style.css, so the nav stays on one row */
@media (min-width: 1025px) and (max-width: 1500px) {
    .p4-lh__bar { padding: 0 3%; }
    .p4-lh__logo img { height: 104px; margin: 0 0 -10px; }
    .p4-lh__nav .elementor-item { padding-left: 15px; padding-right: 15px; }
    .p4-lh__nav .menu-item-9001 > .elementor-item { padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 1025px) and (max-width: 1240px) {
    .p4-lh__bar { padding: 0 2%; }
    .p4-lh__logo img { height: 86px; margin: 0 0 -8px; }
    .p4-lh__nav .elementor-item { padding-left: 9px; padding-right: 9px; font-size: 15px; }
    .p4-lh__nav .menu-item-9001 > .elementor-item { margin-left: -4px; padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 1025px) and (max-width: 1120px) {
    .p4-lh__logo img { height: 74px; margin: 0; }
    .p4-lh__nav .elementor-item { padding-left: 8px; padding-right: 8px; font-size: 14px; }
    .p4-lh__nav .menu-item-9001 > .elementor-item { padding-left: 14px; padding-right: 14px; }
}

/* tablets and phones: logo + menu button, menu drops down (same look as the main site) */
@media (max-width: 1024px) {
    .p4-lh__bar { padding: 0 5%; }
    .p4-lh__nav { display: none; }
    .p4-lh__toggle {
        display: flex; align-items: center; justify-content: center; margin-left: auto; margin-right: -7px;
        width: 44px; height: 44px; padding: 0; cursor: pointer; color: #467FF7;
        border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(143, 179, 236, 0.18);
    }
    .p4-lh__toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
    .p4-lh__icon-close { display: none; }
    .p4-lh__toggle[aria-expanded="true"] { background: rgba(74, 129, 211, 0.16); border-color: rgba(143, 179, 236, 0.4); }
    .p4-lh__toggle[aria-expanded="true"] .p4-lh__icon-open { display: none; }
    .p4-lh__toggle[aria-expanded="true"] .p4-lh__icon-close { display: block; }
    .p4-lh__panel.open {
        display: block; position: absolute; left: 0; right: 0; top: 100%;
        background: #000022; border-top: 1px solid rgba(143, 179, 236, 0.14);
        box-shadow: 0 28px 40px -16px rgba(0, 0, 0, 0.75); padding: 6px 0 18px;
    }
    .p4-lh__panel .p4-lh__menu { display: block; }
    .p4-lh__panel .elementor-item {
        display: flex; align-items: center; min-height: 52px; padding: 0 24px;
        color: rgba(255, 255, 255, 0.88); font: 600 17px/1.2 "DM Sans", sans-serif; text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .p4-lh__panel .elementor-item-active { color: #8FB3EC; box-shadow: inset 3px 0 0 #4A81D3; }
    .p4-lh__panel .menu-item-has-children > .elementor-item { position: relative; }
    .p4-lh__panel .menu-item-has-children > .elementor-item::after {
        content: ""; position: absolute; right: 28px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
        border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0.8; transition: transform 0.2s ease;
    }
    .p4-lh__panel .menu-item-has-children.p4-open > .elementor-item::after { transform: translateY(4px) rotate(225deg); }
    .p4-lh__panel .menu-item-has-children.p4-open > .sub-menu { display: block; background: rgba(255, 255, 255, 0.025); }
    .p4-lh__panel .elementor-sub-item {
        display: flex; align-items: center; min-height: 46px; padding: 0 24px 0 44px;
        color: rgba(255, 255, 255, 0.78); font: 500 16px/1.2 "DM Sans", sans-serif; text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .p4-lh__panel > .p4-lh__menu > li:last-child > .elementor-item {
        justify-content: center; margin: 16px 20px 0;
        border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
        background: linear-gradient(90deg, #3569BB, #5F55C9); color: #FFFFFF;
        box-shadow: 0 10px 30px -10px rgba(91, 110, 220, 0.8);
    }
}
@media (max-width: 767px) {
    /* 80px bar; the logo PNG (83px tall at this width) overhangs it slightly, like the main header */
    .p4-lh__bar { min-height: 0; height: 80px; }
    .p4-lh__logo { align-self: flex-start; margin-top: 5px; }
    .p4-lh__logo img { width: 148px; height: auto; margin: 0; }
}
@media (max-height: 500px) and (orientation: landscape) {
    .p4-lh__bar { min-height: 64px; }
    .p4-lh__logo img { width: 112px; height: auto; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .p4-lh, .p4-lh__nav .elementor-item, .p4-lh__nav .menu-item-9001 > .elementor-item { transition: none; }
    .p4-lh__nav .menu-item-9001 > .elementor-item:hover { transform: none; }
}

/* Pause / play button for moving content (assets/js/p4-motion.js): same as style.css, for the
   hand-built pages that don't load the theme (added 17 Nov 2026 for the sonar background). */
.p4-motion-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(0, 0, 34, 0.72); color: #FFFFFF;
    cursor: pointer; z-index: 5; line-height: 0;
}
.p4-motion-btn svg { width: 16px; height: 16px; fill: currentColor; }
.p4-motion-btn:hover { background: #000022; }
.p4-motion-btn--float { position: fixed; left: 16px; bottom: 16px; z-index: 9990; opacity: 0.8; }
.p4-motion-btn--float:hover, .p4-motion-btn--float:focus-visible { opacity: 1; }
@media (max-width: 767px) { .p4-motion-btn--float { left: 8px; bottom: 8px; width: 32px; height: 32px; } }
@media print { .p4-motion-btn { display: none; } }

/* Site footer + "Your data is your data" strip: same as style.css (.p4-footer, .p4-pledge), so the
   assessment page uses the shared footer.html / pledge.html like every other page (17 Nov 2026). */
.p4-footer {
    background-color: #000022;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: "DM Sans", sans-serif;
}
.p4-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    padding: 26px 8%;
}
.p4-footer__copy {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}
.p4-footer__links {
    display: flex;
    gap: 24px;
    margin-left: auto;
}
.p4-footer__links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}
.p4-footer__links a:hover,
.p4-footer__links a:focus-visible { color: #FFFFFF; }
.p4-footer__social { display: flex; gap: 10px; }
.p4-footer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.p4-footer__icon:hover,
.p4-footer__icon:focus-visible {
    background-color: rgba(34, 197, 94, 0.15);
    border-color: #4ADE80;
    color: #FFFFFF;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.7), 0 0 24px rgba(34, 197, 94, 0.35);
}
@media (max-width: 1024px) { .p4-footer__inner { padding-left: 5%; padding-right: 5%; } }
@media (max-width: 767px) {
    .p4-footer__inner { flex-direction: column; text-align: center; padding-top: 28px; padding-bottom: 28px; }
    .p4-footer__links { margin-left: 0; gap: 8px; }
    /* tap targets of at least 44px */
    .p4-footer__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14px; }
    .p4-footer__icon { width: 44px; height: 44px; }
    .p4-footer__social { gap: 12px; }
}
/* slim pledge strip above the footer */
.p4-pledge { background: linear-gradient(90deg, rgba(74, 222, 128, 0.10), rgba(74, 129, 211, 0.12)), #0A0B2A; border-top: 1px solid rgba(74, 222, 128, 0.25); font-family: "DM Sans", sans-serif; }
.p4-pledge__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 18px; padding: 18px 5%; text-align: center; }
.p4-pledge svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: #4ADE80; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.p4-pledge p { margin: 0; font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.8); }
.p4-pledge p b { color: #FFFFFF; font-family: "Exo 2", sans-serif; font-weight: 700; letter-spacing: 0.3px; }
.p4-pledge a { display: inline-flex; align-items: center; min-height: 44px; color: #4ADE80 !important; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.p4-pledge a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* the theme gives every page 17px / 1.9 body text; the footer inherits it there, so match it here */
.p4-footer { font-size: 17px; line-height: 1.9; }
