/* ============================================
   LAYER 2: HORIZONTAL NAVIGATION
   Faithfullight Theme
   Version: 6.0 | Status: Production | WP Approved
   Last Updated: 2026-02-26
   ============================================ */

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

.ftl-header {
    position: relative;
    z-index: 5000;              /* Above overlay, below mobile menus */
    width: 100%;
    box-sizing: border-box;
    padding: 6rem 15rem 6rem 10rem;  /* top, right, bottom, left */
    background: #000000;
}

/* ============================================
   MAIN NAVIGATION BAR
   ============================================ */

.ftl-main-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* ============================================
   LOGO POSITIONING
   ============================================ */

.wp-block-site-logo {
    position: static;              /* ← Let flexbox handle positioning */
    margin-right: 3rem;       /* ← Space between logo and menu */
    display: flex;
    align-items: center;
}

.wp-block-site-logo img {
    width: auto;
    display: block;
    max-height: 60px;  /* Default for desktop */
}

/* Tablet scaling */
@media screen and (max-width: 900px) {
    .wp-block-site-logo img {
        max-height: 45px;
    }
}

/* Mobile scaling */
@media screen and (max-width: 600px) {
    .wp-block-site-logo img {
        max-height: 45px;
    }
}

/* Small mobile */
@media screen and (max-width: 400px) {
    .wp-block-site-logo img {
        max-height: 45px;
    }
}

/* Focus outline - transparent but accessible */
.wp-block-site-logo a:focus {
    outline: 3px solid transparent;
}

/* ============================================
   MENU CONTAINER – Desktop First
   ============================================ */

.ftl-primary-menu {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;               /* ← Pushes menu right */
    margin-right: 2rem;           /* ← Space between menu and utility group */
}

.ftl-primary-menu .wp-block-navigation__container {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
/* Space between menu items */
.ftl-primary-menu .wp-block-navigation__container .wp-block-navigation-item {
    margin-right: 0.6rem;    /* ← Space between menu and utility group */
}

.ftl-primary-menu .wp-block-navigation__container .wp-block-navigation-item:last-child {
    margin-right: 0;
}
/* Menu link styling */
.ftl-primary-menu .wp-block-navigation-item__content {
    color: #cccccc;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.5rem 0.6rem;           /* Vertical 0.5rem, Horizontal 0.6rem */
    transition: color 0.3s ease;
    display: block;
    white-space: nowrap;
}

.ftl-primary-menu .wp-block-navigation-item__content:hover {
    color: #ffffff;           
}
/* Current page indicator */
.current-menu-item .wp-block-navigation-item__content {
    color: #ffffff !important;            /* Important override */
    
}
/* ============================================
   MENU INITIAL STATE - For GSAP Cascade
   ============================================ */

.ftl-primary-menu .wp-block-navigation-item,
.ftl-mobile-toggle,
.ftl-sidebar-toggle,
.ftl-cart-icon,
.wp-block-site-logo {
    opacity: 0;
    transform: translateY(-10px);
}

/* ============================================
   LINK STYLES & FOCUS STATES
   ============================================ */

/* Reset browser default link styles */
.wp-block-navigation-item__content {
    -webkit-tap-highlight-color: transparent;
}
/* Standard focus style - visible for keyboard users */
.wp-block-navigation-item__content:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}
/* Visible outline for keyboard navigation */
.wp-block-navigation-item__content:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}
/* Transparent focus outline for menu items */
.ftl-primary-menu .wp-block-navigation-item__content:focus {
    outline: 3px solid transparent;
}
/* ============================================
   UTILITY GROUP – TOGGLES
   ============================================ */

.ftl-utility-group {
    display: flex;
    align-items: center;
    margin-left: 0;
    flex-shrink: 0;
}

/* Desktop: negative margin for proper spacing */
@media screen and (min-width: 768px) {
    .ftl-utility-group {
        margin-right: -113px;
    }
}

.ftl-utility-group .ftl-sidebar-toggle:last-child {
    margin-right: 0;
}

/* Toggle buttons base styles */
.ftl-mobile-toggle,
.ftl-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #cccccc;
    transition: color 0.3s ease;
}

.ftl-mobile-toggle .wp-block-button__link,
.ftl-sidebar-toggle .wp-block-button__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    line-height: 1;
    background: transparent;
    color: inherit;
}

/* Hamburger icon */
.ftl-mobile-toggle .wp-block-button__link {
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Individual hamburger icon */
.ftl-mobile-toggle .toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #cccccc;
    border-radius: 1px;
    margin-bottom: 4px;            /* Space between hamburger bars */
    transition: all 0.3s ease;
}

.ftl-mobile-toggle .toggle-bar:last-child {
    margin-bottom: 0;
}

.ftl-mobile-toggle:hover .toggle-bar {
    background-color: #ffffff;
}

.ftl-mobile-toggle {
    margin-right: 0;
}

/* Sidebar toggle */
.ftl-sidebar-toggle svg {
    width: 24px;
    height: 24px;
    color: #cccccc;
    transition: color 0.3s ease;
}

.ftl-sidebar-toggle:hover svg {
    color: #ffffff;
}

/* ============================================
   MOBILE MENU
   ============================================ */

.ftl-mobile-menu {
    display: none;
}

/* ============================================
   MOBILE STYLES (767px and below)
   ============================================ */

@media only screen and (max-width: 767px) {
    .ftl-primary-menu {
        display: none !important;    /* Important menu-show override */
    }
    /* Show hamburger on mobile */
    .ftl-mobile-toggle {
        display: flex;
    }
    /* Utility group becomes relative for mobile layout */
    .ftl-utility-group {
        position: relative;
        margin-left: auto;
    }
    /* Tighter spacing on mobile */
    .ftl-utility-group .ftl-mobile-toggle,
    .ftl-utility-group .ftl-sidebar-toggle {
        margin-left: 1rem;
    }
    
    .ftl-utility-group .ftl-mobile-toggle:first-child,
    .ftl-utility-group .ftl-sidebar-toggle:first-child {
        margin-left: 0;
    }
    /* Mobile menu container */
    .ftl-mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: #000000;
        z-index: 10000;
        transform: translateX(100%);
        transition: transform 0.5s ease;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .ftl-mobile-menu--open {
        transform: translateX(0);
    }
    /* Mobile menu close button */
    .ftl-mobile-close {
        display: flex;
        position: absolute;
        right: 20px;
        top: 80px;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        color: #888888;
        font-size: 30px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        z-index: 10001;
        transition: color 0.3s ease;
    }
    
    .ftl-mobile-close:hover {
        color: #ffffff;
    }
    /* Mobile menu content */
    .ftl-mobile-menu-content {
        padding: 40px;
        padding-top: 150px;
    }
    /* Mobile menu list */
    .ftl-mobile-menu-list {
        list-style: none;
        padding: 130px 30px 30px;       /* Add top padding */
        margin: 0;
    }
    
    .ftl-mobile-menu-list .menu-item {
        margin-bottom: 0.8rem;
    }
    
    .ftl-mobile-menu-list .menu-item a {
        display: block;
        padding: 0.8rem 0;
        font-size: 0.95rem;
        color: #b3b3b3;
        color: rgba(255, 255, 255, 0.5);
        text-decoration: none;
        text-transform: uppercase;
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        letter-spacing: 0.05em;
        border-bottom: 1px solid #262626;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        transition: color 0.3s ease;
    }
    
    .ftl-mobile-menu-list .menu-item a:hover {
        color: #ffffff;
        color: rgba(255, 255, 255, 0.8);
    }
    /* Prevent body scroll when mobile menu open */
    .mobile-menu-open {
        overflow: hidden;
    }
}

/* ============================================
   TABLET LANDSCAPE (961px to 1024px)
   ============================================ */

@media only screen and (min-width: 961px) and (max-width: 1024px) {
    .ftl-mobile-toggle {
        display: none;
    }
    
    .ftl-mobile-menu {
        display: none;
    }
    
    .ftl-mobile-close {
        display: none;
    }
}

/* ============================================
   DESKTOP HIDE – Hamburger hidden on desktop
   ============================================ */

@media screen and (min-width: 768px) {
    .ftl-mobile-toggle {
        display: none;
    }
}

/* ============================================
   CART ICON – PRESERVED FOR FUTURE USE
   ============================================ */

/*
.ftl-cart-icon {
    display: flex;
    align-items: center;
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    margin-right: 2rem;
}

.ftl-cart-icon:hover {
    color: #ffffff;
}

.ftl-cart-icon svg {
    transition: color 0.3s ease;
}

.cart-count-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    min-width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: #000000;
    color: white;
    border: 1.5px solid #ffffff;
    font-size: 0.70rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}
*/

/* ============================================
   HEADER LAYOUT – WordPress Override
   ============================================ */

.ftl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   SIDEBAR MENU STYLES
   ============================================ */

.ftl-sidebar-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 25%;
    max-width: 400px;
    min-width: 300px;
    height: 100vh;
    background: #0a0a0a;
    z-index: 10002;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    overflow-y: auto;
    box-sizing: border-box;
    border-left: 1px solid #1a1a1a;
    border-left: 1px solid rgba(204, 204, 204, 0.1);
}

.ftl-sidebar-menu--open {
    transform: translateX(0);
}

.ftl-sidebar-close {
    position: absolute;
    top: 10px;
    left: 2px;                           /* Position Left (-) Right (+) */
    background: transparent;
    border: none;
    color: #cccccc;
    cursor: pointer;
    padding: 0;                      /* Remove padding to avoid extra width */
    width: 40px;                   /* Fixed width for click area */
    height: 40px;                  /* Fixed height for click area */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 100005;
}

.ftl-sidebar-close .sidebar-close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;                     /* Adjustment size */
    height: 20px;
    font-size: 1.5rem;            /* Slightly larger X */
    color: #cccccc;
    transition: color 0.3s ease;
}
/* Hover effect for sidebar close X */
.ftl-sidebar-close .sidebar-close-icon::before {
    content: '×';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 1.5px solid #666666;
    border: 1.5px solid #cccccc;
    border-radius: 50%;
    box-sizing: border-box;
}

.ftl-sidebar-close:hover .sidebar-close-icon::before {
    color: #ffffff;
    border-color: #ffffff;
}

.ftl-sidebar-content {
    padding: 80px 30px 30px;
    color: #cccccc;
}

.ftl-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000;
    background: transparent;
    pointer-events: none;
    z-index: 10001;
    display: none;
}

.sidebar-open .ftl-sidebar-overlay {
    display: block;
}

/* Responsive sidebar widths */
@media only screen and (max-width: 960px) {
    .ftl-sidebar-menu {
        width: 40%;
        min-width: 280px;
    }
}

@media only screen and (max-width: 767px) {
    .ftl-sidebar-menu {
        width: 60%;
        min-width: 250px;
    }
}

@media only screen and (max-width: 480px) {
    .ftl-sidebar-menu {
        width: 80%;
        min-width: 200px;
    }
}

/* ============================================
   SIDEBAR CLOSE BUTTON – WordPress Reset
   ============================================ */

.ftl-sidebar-close .wp-block-button__link {
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    text-decoration: none;
}

.ftl-sidebar-close .wp-block-button__link:hover {
    background: transparent;
    color: #ffffff;
}

/* ============================================
   HIDE WORDPRESS HAMBURGER
   ============================================ */

.wp-block-navigation__responsive-container-open {
    display: none;
}

.wp-block-navigation__responsive-container {
    display: none;
}

/* ============================================
   MOBILE CLOSE BUTTON
   ============================================ */

.ftl-mobile-close .wp-block-button__link {
    background: transparent;
    padding: 0;
    margin: 0;
    border: 1.5px solid #cccccc;
    border-radius: 50%;
    color: #cccccc;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    line-height: 1;
    transition: all 0.3s ease;
    overflow: visible;
}

.ftl-mobile-close:hover .wp-block-button__link {
    border-color: #ffffff;            /* White circle on hover */
    color: #ffffff;                       /* White X on hover */
    background: transparent;
}

/* Active mobile menu items */
.ftl-mobile-menu-list .current-menu-item a {
    color: #ffffff;
}

/* ============================================
   MOBILE HEADER PADDING
   ============================================ */

@media screen and (max-width: 600px) {
    .ftl-header {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ============================================
   UI ELEMENT Z-INDEX HIERARCHY
   ============================================ */

.ftl-header {
    position: relative;
    z-index: 5000;
}

.ftl-mobile-menu {
    position: fixed;
    z-index: 10000;
}

.ftl-sidebar-menu {
    position: fixed;
    z-index: 10000;
}

/* ============================================
   MOBILE TOUCH DEVICE SUPPORT
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    .ftl-fullscreen-overlay {
        display: none;
    }
    
    .overlay-visible .ftl-content-wrap {
        opacity: 1;
    }
    
    .ftl-primary-menu > li > a:active,
    .ftl-mobile-toggle:active,
    .ftl-sidebar-toggle:active {
        background: #ffffff;
        background: rgba(255, 255, 255, 0.1);
        transition: background 0.1s ease;
        transform: scale(0.98);
    }
    
    .ftl-mobile-menu {
        -webkit-overflow-scrolling: touch;
    }
}

@media (hover: hover) and (pointer: fine) {
    .ftl-fullscreen-overlay {
        display: block;
    }
}
/* ============================================
   MOBILE STACKING - Toggles vertical at 500px
   ============================================ */

@media screen and (max-width: 500px) {
    /* Override negative margin with highest specificity */
    body .ftl-utility-group,
    .ftl-header .ftl-utility-group {
        margin-right: 0;
    }
    
    .ftl-utility-group {
        flex-direction: column; 
        align-items: flex-end;
        width: auto;
    }
    
    .ftl-utility-group .ftl-mobile-toggle {
        margin-bottom: -2.5rem;
        margin-right: 0;
    }
        /* Move logo up to align with toggles */
    .wp-block-site-logo {
        margin-top: -2rem;  /* Adjust this value as needed */
    }
}
/* ============================================
   PAGE TITLE ANIMATION - Real Title (Ashade-inspired)
   Added: 2026-02-27
   ============================================ */

.ftl-page-title-wrap {
    position: relative;
    text-align: center;
    margin: 2rem 0 3rem;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.5s ease;
    z-index: 100;
}

/* Inactive state via body class */
.page-title-inactive .ftl-page-title-wrap {
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
}

.ftl-page-title-wrap .wp-block-post-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Tablet */
@media screen and (min-width: 768px) {
    .ftl-page-title-wrap .wp-block-post-title {
        font-size: 2.8rem;
    }
}

/* Desktop */
@media screen and (min-width: 1024px) {
    .ftl-page-title-wrap .wp-block-post-title {
        font-size: 3.5rem;
    }
}

/* Mobile adjustments */
@media screen and (max-width: 767px) {
    .ftl-page-title-wrap {
        margin: 1rem 0 2rem;
    }
    
    .ftl-page-title-wrap .wp-block-post-title {
        font-size: 1.8rem;
    }
}