/* ==============================================
   UNFF Fullscreen Menu - Styles
   Colours from MENU.svg:
     #F4F0E8  panel bg (cream)
     #D8D3CC  decor bg (warm grey)
     #8A463A  active / hover accent (terracotta)
     #2F2D2B  default text
     #171717  close icon stroke
============================================== */

/* Hide Salient OCM - replaced by our trigger */
ul.left-aligned-ocm,
nav ul.left-aligned-ocm,
.slide-out-widget-area-toggle {
    display: none !important;
}

/* ------------------------------------------
   Trigger wrapper + pointer-events fix
   Salient's permanent-transparent header sets
   pointer-events:none on #header-outer but
   only whitelists .span_3 and .span_9.
------------------------------------------ */
.unff-menu {
    pointer-events: all;
    position: relative;
    z-index: 10001;
    display: flex;
    align-items: center;
}

/* ------------------------------------------
   Trigger label colour
   White on transparent header, dark once
   Salient adds .scrolled-down.dark-slide
------------------------------------------ */
.unff-label {
    color: #fff;
}
.transparent.scrolled-down.dark-slide .unff-label,
.transparent.dark-slide .unff-label{
    color: #000;
}
.unff-lines span {
    background-color: #fff;
}
.transparent.scrolled-down.dark-slide .unff-lines span,
.transparent.dark-slide .unff-lines span{
    background-color: #000;
}

/* ------------------------------------------
   Container layout - flex row
   [.unff-menu trigger | .row (logo)]
------------------------------------------ */
#header-outer #top .container {
    display: flex;
    align-items: center;
}

#header-outer #top .container > .row {
    flex: 1;
    min-width: 0;
}

/* ------------------------------------------
   Trigger button
------------------------------------------ */
#unff-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: inherit;
    flex-shrink: 0;
    pointer-events: all;
}
.unff-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.unff-lines span {
    display: block;
    width: 18px;
    height: 2px;
    /*background: currentColor;*/
}
.unff-label {
    font-size: 11px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1;
}

/* ------------------------------------------
   Overlay
------------------------------------------ */
#unff-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    z-index: 99998;
    visibility: hidden;
    pointer-events: none;
}
.admin-bar #unff-overlay { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar #unff-overlay { top: 46px; }
}
#unff-overlay.is-open {
    visibility: visible;
    pointer-events: all;
}

/* ------------------------------------------
   Left panel
------------------------------------------ */
#unff-panel {
    width: 320px;
    flex-shrink: 0;
    height: 100%;
    background: #F4F0E8;
    display: flex;
    flex-direction: column;
    padding: 36px 40px 48px;
    box-sizing: border-box;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}
#unff-overlay.is-open #unff-panel {
    transform: translateX(0);
}

/* ------------------------------------------
   Right decorative panel
------------------------------------------ */
#unff-decor {
    flex: 1;
    background: transparent;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.45s cubic-bezier(0.76, 0, 0.24, 1) 0.08s;
}
#unff-overlay.is-open #unff-decor {
    opacity: 1;
}

/* ------------------------------------------
   Close button
------------------------------------------ */
#unff-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 64px;
    display: inline-flex;
    align-self: flex-start;
    opacity: 0.85;
    transition: opacity 0.2s;
}
#unff-close:hover { opacity: 1; }

/* ------------------------------------------
   Main nav list
------------------------------------------ */
#unff-nav { flex: 1; }

ul.unff-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0;
}
ul.unff-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

/* Top-level links */
ul.unff-list > li > a {
    font-size: 11px !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #2F2D2B !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    padding: 10px 0 1px !important;
    background: none !important;
    display: inline-block !important;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s !important;
}
ul.unff-list > li > a:hover {
    color: #8A463A !important;
    border-bottom-color: #8A463A;
}
ul.unff-list > li.current-menu-item > a,
ul.unff-list > li.current_page_item > a,
ul.unff-list > li.current-menu-ancestor > a {
    color: #8A463A !important;
}

/* ------------------------------------------
   Sub-menu - always visible, indented
------------------------------------------ */
ul.unff-list ul.sub-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 0 4px 36px !important;
    display: flex;
    flex-direction: column;
    gap: 0;
}
ul.unff-list ul.sub-menu li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}
ul.unff-list ul.sub-menu li a {
    font-size: 11px !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #2F2D2B !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    opacity: 0.55;
    padding: 6px 0 1px !important;
    background: none !important;
    display: inline-block !important;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s, opacity 0.2s !important;
}
ul.unff-list ul.sub-menu li a:hover {
    color: #8A463A !important;
    border-bottom-color: #8A463A;
    opacity: 1;
}
ul.unff-list ul.sub-menu li.current-menu-item > a {
    color: #8A463A !important;
    opacity: 1;
}

/* ------------------------------------------
   Social links list
------------------------------------------ */
#unff-socials { margin-top: 48px; }

ul.unff-social-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0;
}
ul.unff-social-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}
ul.unff-social-list li a {
    font-size: 11px !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #2F2D2B !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    padding: 6px 0 1px !important;
    background: none !important;
    display: inline-block !important;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s !important;
}
ul.unff-social-list li a:hover {
    color: #8A463A !important;
    border-bottom-color: #8A463A;
}

/* ------------------------------------------
   Logo - right aligned (desktop + mobile)
   Salient's centered-logo-between-menu-alt
   uses position:absolute on #logo at desktop.
   We override that to right-align it.
------------------------------------------ */
#header-outer #top #logo {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    margin-left: auto !important;
    display: block !important;
}
#header-outer #top .col.span_3 {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
}

/* ------------------------------------------
   Reduced motion
------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    #unff-panel,
    #unff-decor,
    ul.unff-list > li > a,
    ul.unff-list ul.sub-menu li a,
    ul.unff-social-list li a { transition: none; }
}