/* ======================================
Moonbraintech Custom Styles
====================================== */
/* Hide desktop menu toggle on desktop */
@media (min-width: 992px) {
    .header-social-links {
        padding: 0 2rem;
        border-left: 1px solid #FFFFFF2B;
    }
}
.hero-slider-content h3.wp-block-heading {
    font-size: 30px;
    font-weight: 600;
    text-transform: uppercase;
    color: #FFFFFF;
}
.hero-slider-content h1.wp-block-heading {
    font-size: 100px;
    font-weight: 700;
    text-transform: uppercase;
}
.hero-slider-content h2.wp-block-heading {
    font-size: 55px;
    font-weight: 600;
    text-transform: uppercase;
    color: #FFFFFF;
}

.wp-block-buttons .wp-block-button .default-primary-button,
.wp-block-buttons .wp-block-button .wp-block-button__link  {
    border-radius: 8px 8px 8px 8px;
    padding: 0.75rem 1.5rem;
    font-size: 15px;
    line-height: 1;
    fill: #fff;
    text-align: center;
    transition: all .3s;
}

/* ======================================
Default Header Styles 🔴🔴🟠🟡🟢🔵🟣🟡🟢⚫
====================================== */
.site-header {
    background: #ffffff;
    width: 100%;
    z-index: 1000;
    transition: all 0.25s ease;
}

.inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 20px;
}

/* Branding */
.site-branding-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

/* Hide WP Title if logo exists */
.wp-custom-logo .site-branding {
    display: none;
}

/* Header Buttons Base */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.25s ease;
    border: 1px solid transparent;
}

.header-btn-icon {
    display: flex;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-select {
    padding: 7px 28px 7px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
}

/* ======================================
SECONDARY NAVIGATION SYSTEM
====================================== */

/* Secondary Navigation Wrapper */
.secondary-nav-wrapper {
    background: hsl(var(--color-primary));
    position: relative;
    z-index: 999;
}

.secondary-nav-wrapper.grid-container {
    padding-left: 20px;
    padding-right: 20px;
}

/* Secondary Navigation */
.secondary-navigation {
    width: 100%;
}

.secondary-navigation .inside-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Secondary Menu */
.secondary-menu {
    display: flex;
    list-style: none;
    gap: 0;
    padding: 0;
    margin: 0;
    align-items: center;
}

/* Menu Alignment Classes */
.secondary-menu.justify-left {
    justify-content: flex-start;
}

.secondary-menu.justify-center {
    justify-content: center;
}

.secondary-menu.justify-right {
    justify-content: flex-end;
}

.secondary-menu.justify-space-between {
    justify-content: space-between;
}

.secondary-menu.justify-space-around {
    justify-content: space-around;
}

.secondary-menu.justify-space-evenly {
    justify-content: space-evenly;
}

.secondary-menu.justify-no-space {
    justify-content: space-evenly;
}

.secondary-menu.justify-no-space li {
    flex: 1;
}

/* Menu Items */
.secondary-menu > li {
    position: relative;
    margin: 0;
}

.secondary-menu > li > a {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.secondary-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Icon Position Styles */
.secondary-menu.icon-left a {
    flex-direction: row;
}

.secondary-menu.icon-right a {
    flex-direction: row-reverse;
}

.secondary-menu.icon-top a {
    flex-direction: column;
    text-align: center;
}

.secondary-menu.icon- a .menu-icon {
    display: none;
}

/* Menu Icon */
.secondary-menu .menu-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.secondary-menu .menu-icon img,
.secondary-menu .menu-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Dropdown Toggle Arrow */
.secondary-menu .dropdown-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.secondary-menu .dropdown-arrow svg {
    width: 12px;
    height: 12px;
}

.secondary-menu .menu-item-has-children.sfHover > a .dropdown-arrow {
    transform: rotate(180deg);
}

/* Click-arrow behavior: make arrow clickable */
.secondary-nav-wrapper[data-dropdown-behavior="click-arrow"] .dropdown-arrow {
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    border-radius: 4px;
    transition: background 0.2s ease, transform 0.3s ease;
}

.secondary-nav-wrapper[data-dropdown-behavior="click-arrow"] .dropdown-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
}

.secondary-nav-wrapper[data-dropdown-behavior="click-arrow"] .menu-item-has-children.sfHover > a .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menus */
.secondary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 220px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 1000;
}

.secondary-menu .menu-item-has-children.sfHover > .sub-menu,
.secondary-menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Direction - Right */
.secondary-navigation.sub-menu-right .sub-menu {
    left: auto;
    right: 0;
}

/* Submenu Items */
.secondary-menu .sub-menu li {
    margin: 0;
}

.secondary-menu .sub-menu a {
    padding: 0.75rem 1.25rem;
    display: block;
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: all 0.2s ease;
}

.secondary-menu .sub-menu a:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

/* Dropdown Animations */
.secondary-menu .sub-menu.animation-fade {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.secondary-menu .sub-menu.animation-slide {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.secondary-menu .sub-menu.animation-scale {
    transform-origin: top;
    transform: translateY(-10px) scale(0.95);
}

.secondary-menu .menu-item-has-children.sfHover > .sub-menu.animation-scale {
    transform: translateY(0) scale(1);
}

/* Menu Styles */
/* Style: Minimal */
.secondary-menu.style-minimal > li > a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

/* Style: Buttons */
.secondary-menu.style-buttons > li > a {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 0.25rem;
    padding: 0.75rem 1.25rem;
}

.secondary-menu.style-buttons > li > a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Style: Pills */
.secondary-menu.style-pills > li > a {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    margin: 0.25rem;
    padding: 0.75rem 1.5rem;
}

.secondary-menu.style-pills > li > a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile */
@media (max-width: 768px) {
    .inside-header {
        flex-direction: column;
        text-align: center;
    }

    .header-actions {
        justify-content: center;
    }
}

/* ======================================
MOBILE RESPONSIVE STYLES
====================================== */

/* Hide desktop menu toggle on desktop */
@media (min-width: 769px) {
    .secondary-menu-toggle {
        display: none !important;
    }
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    /* Hide secondary menu by default on mobile */
    .secondary-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: hsl(var(--color-primary));
        margin-top: 0;
        padding: 0;
        gap: 0;
    }

    /* When toggle is active → show menu */
    .secondary-menu.active {
        display: flex !important;
    }

    /* Toggle button */
    .secondary-menu-toggle.menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0 20px;
        line-height: 50px;
        background: hsl(var(--color-primary));
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        border: none;
        text-transform: uppercase;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .secondary-menu-toggle.menu-toggle:active,
    .secondary-menu-toggle.menu-toggle:focus,
    .secondary-menu-toggle.menu-toggle:hover,
    .secondary-menu-toggle.menu-toggle.toggled {
        background: hsl(var(--color-secondary));
    }

    /* Menu items on mobile */
    .secondary-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .secondary-menu > li:last-child {
        border-bottom: none;
    }

    /* Menu links on mobile */
    .secondary-menu > li > a {
        padding: 1rem 1.25rem;
        color: #fff;
        width: 100%;
        justify-content: space-between;
    }

    .secondary-menu > li > a:hover {
        background: rgba(255,255,255,0.1);
    }

    /* Submenus on mobile */
    .secondary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        box-shadow: none;
        display: none;
        width: 100%;
    }

    .secondary-menu .menu-item-has-children.sfHover > .sub-menu {
        display: block;
    }

    .secondary-menu .sub-menu a {
        padding-left: 2rem;
        color: rgba(255, 255, 255, 0.9);
    }

    /* Remove dropdown arrows on mobile or make them functional */
    .secondary-menu .menu-item-has-children > a::after {
        margin-left: auto;
    }

    /* All menu styles look the same on mobile */
    .secondary-menu.style-buttons > li > a,
    .secondary-menu.style-pills > li > a {
        background: transparent;
        border-radius: 0;
        margin: 0;
    }
}
