/*=====================================================

PJF NAVIGATION
July 2026

Custom desktop dropdown navigation
Custom mobile accordion navigation

Designed for:
• Keyboard accessibility
• Touch devices
• Responsive layouts
• Reduced motion support

=====================================================*/


/* ==========================
   VARIABLES
========================== */


:root {
    --site-width: 1160px;
    --header-height: 70px;
    --header-padding-left: 30px;
    --header-padding-right: 13px;
    --brand-blue: #3c98ca;
}


/* ==========================
   HEADER
========================== */

.site-navigation {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: var(--site-width);
    left: 50%;
    transform: translateX(-50%);
    height: var(--header-height);
    z-index: 9999;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color .3s ease;
}

.site-navigation.scrolled {
    background: #000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--site-width);
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--header-padding-right) 0 var(--header-padding-left);
    box-sizing: border-box;
}


/* ==========================
   BRAND
========================== */

.site-logo,
.site-logo:hover {
    display: inline-block;
    flex: 0 0 auto;
    align-self: center;
    white-space: nowrap;
    color: #fff;
    font-family: 'Museo Slab 700';
    font-size: 24px;
    text-decoration: none;
}

.site-logo:hover {
    color: #fff;
    text-decoration: none;
}


/* ==========================
   DESKTOP MENU
========================== */

.menu {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid transparent;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    display: block;
    height: var(--header-height);
    padding: 0 15px;
    line-height: var(--header-height);
    color: #fff;
    font-family: 'LatoSemibold';
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .25s ease;
}

.menu > li > a:hover {
    background: var(--brand-blue);
}

.menu > li:last-child > .sub-menu {
    left: 0;
    right: auto;
    width: 95px;
    min-width: 95px;
}

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

.menu-toggle {
    display: none;
	flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #fff;
    appearance: none;
    -webkit-appearance: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 3px 0;
    background: currentColor;
    border-radius: 3px;
    transform-origin: center;
}

/* Animated Hamburger */

.menu-toggle span:nth-child(1),
.menu-toggle span:nth-child(3) {
    transition: transform .25s ease;
}

.menu-toggle span:nth-child(2) {
    transition: opacity .05s linear;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform:
        translateY(8px)
        rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform:
        translateY(-8px)
        rotate(-45deg);
}


/* ==========================
   DESKTOP DROPDOWNS
========================== */

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    width: max-content;
    margin: -2px 0 0;
    padding: 5px 0 5px 0;
    list-style: none;
    background: #000;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition:
        max-height .20s ease-out,
        opacity .12s ease,
        visibility 0s linear .20s;
}

.menu > li:hover > .sub-menu {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    transition:
        max-height .40s ease-out,
        opacity .12s ease;
}

.sub-menu a {
    display: block;
    padding: 8px 16px;
    color: #fff;
    font-family: 'LatoSemibold';
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color .15s ease,
        color .15s ease;
}

.sub-menu a:hover {
    background: var(--brand-blue);
}


/* ==========================
   MOBILE NAVIGATION
========================== */


@media (max-width: 960px) {

.site-navigation {
    background: #000;
    border-bottom: 1px solid #fff;
}

.header-inner {
    position: relative;
}

.menu-toggle {
    display: flex;
}

.menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background: #000;
    border-bottom: 1px solid #fff;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition:
        max-height .60s ease,
        opacity .25s ease;
    z-index: 1000;
}

.menu.menu-open {
	max-height: calc(100vh - var(--header-height));
    padding-bottom: 20px;
    opacity: 1;
    visibility: visible;
}

.menu > li {
    border-top: 1px solid rgba(255,255,255,.08);
}

.menu > li:first-child {
    border-top: none;
}

.menu > li > a {
    display: flex;
    align-items: center;
	height: auto;
	min-height: auto;
	line-height: 1.4;
    padding: 6px 32px;
    font-family: 'LatoSemibold';
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s ease;
}

.menu > li > a:hover {
    background: var(--brand-blue);
}

.menu > li:hover > .sub-menu {
    display: none;
}

.menu > li.submenu-open > .sub-menu {
    display: block;
}

.menu > li:last-child > .sub-menu {
    left: 0;
    right: auto;
    width: 100%;
    min-width: 100%;
}

.menu-item-has-children > a::after {
    content: "▸";
    display: inline-block;
    margin-left: 8px;
    transition: transform .2s ease;
}

.menu-item-has-children.submenu-open > a::after {
    transform: rotate(90deg);
}

.sub-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0 !important;
    background: #111;
    list-style: none;
    max-height: none;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transition: none;
}

.sub-menu a {
    display: block;
    padding: 6px 62px;
    font-size: 13px;
    color: #fff;
    background: #000;
    text-decoration: none;
    text-transform: none;
}

}

/* DESKTOP NARROW - menu items vertical spacing */
@media only screen and (max-width: 1210px) {

	.header-inner {
		--header-padding-left: 18px;
		--header-padding-right: 0px;
	}
}

/* TABLETS - menu items vertical spacing */
@media only screen and (max-width: 900px) {

	.header-inner {
		--header-padding-left: 18px;
	}
	.menu > li:last-child > .sub-menu {
		width: 90px;
		min-width: 90px;
	}
}


/* PHONES - menu items vertical spacing */
@media (max-width: 767px) {

	.menu > li > a {
		padding: 4px 32px;
	}
	.sub-menu a {
		padding: 4px 62px;
	}
	.header-inner {
		--header-padding-left: 18px;
		--header-padding-right: 13px;
	}
}


/* ==========================
   REDUCED MOTION
========================== */

@media (prefers-reduced-motion: reduce) {

    body {
        animation: none;
    }
    .site-navigation,
    .menu,
    .sub-menu,
    .menu-toggle span,
    .menu-item-has-children > a::after {
        transition: none !important;
    }
}

/*=====================================================

End PJF Navigation

=====================================================*/

