/**
 * @file
 * Hamburger Menu Toggle Styling
 * This file handles the "Main navigation" toggle replacement with hamburger icon
 */

/* Hide the default "Main navigation" text */
.sf-accordion-toggle.sf-style-none a span {
    display: none;
}

/* Style the toggle button */
.sf-accordion-toggle.sf-style-none a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    padding: 0;
}

/* Create hamburger icon using pseudo-elements */
.sf-accordion-toggle.sf-style-none a::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #000;
    position: relative;
    box-shadow: 0 8px 0 0 #000, 0 16px 0 0 #000;
    transition: all 0.3s ease;
}

/* Hamburger on hover */
.sf-accordion-toggle.sf-style-none a:hover::before {
    background: #ef6602;
    box-shadow: 0 8px 0 0 #ef6602, 0 16px 0 0 #ef6602;
}

/* Active state: transform hamburger to X or back arrow */
.sf-accordion-toggle.sf-style-none a.expanded::before {
    background: #ef6602;
    box-shadow: none;
    transform: rotate(45deg);
}

.sf-accordion-toggle.sf-style-none a.expanded::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #ef6602;
    position: absolute;
    transform: rotate(-45deg);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .sf-accordion-toggle.sf-style-none a {
        width: 36px;
        height: 36px;
    }

    .sf-accordion-toggle.sf-style-none a::before {
        width: 22px;
        height: 2px;
        box-shadow: 0 7px 0 0 #000, 0 14px 0 0 #000;
    }

    .sf-accordion-toggle.sf-style-none a:hover::before {
        box-shadow: 0 7px 0 0 #ef6602, 0 14px 0 0 #ef6602;
    }

    .sf-accordion-toggle.sf-style-none a.expanded::after {
        width: 22px;
    }
}

@media (max-width: 480px) {
    .sf-accordion-toggle.sf-style-none a {
        width: 32px;
        height: 32px;
    }

    .sf-accordion-toggle.sf-style-none a::before {
        width: 20px;
        height: 2px;
        box-shadow: 0 6px 0 0 #000, 0 12px 0 0 #000;
    }

    .sf-accordion-toggle.sf-style-none a:hover::before {
        box-shadow: 0 6px 0 0 #ef6602, 0 12px 0 0 #ef6602;
    }

    .sf-accordion-toggle.sf-style-none a.expanded::after {
        width: 20px;
    }
}
