/* Header Styles - Meunier Theme */

/* Reset & Base */
* {
    box-sizing: border-box;
}

/* Header Container */

.meunier-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Logo */

.logo-img {
    height: 3rem;
    width: auto;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-title {
    letter-spacing: 0.05em;
    color: #1f305c;
    font-family: 'Aller', 'sans-serif';
    font-weight: bold;
    text-transform: uppercase;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #666666;
    text-transform: uppercase;
    font-family: 'Aller', 'sans-serif';
}

/* Navigation */

.desktop-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.mobile-nav-controls {
    /* Button that not appear in the mobile sidebar */
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }

    .mobile-nav-controls {
        display: none;
    }
}

/* Nav Items */

.nav-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #437ab9;
    color: white;
    font-family: 'Aller', 'sans-serif';
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    outline: none;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    height: 2.25rem;
}

.nav-primary-button:hover {
    background-color: rgba(67, 122, 185, 0.9);
    color: white;
}

.nav-item {
    position: relative;
}

.nav-button {
    font-family: 'Aller', 'sans-serif';
    color: #1a1a1a;
    font-size: 0.875rem;
    line-height: 1.25rem;
    width: 100%;
    padding: 0.5rem 0rem;

    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-item:hover .nav-button {
    color: #437ab9;
}

.nav-item:hover .nav-icon {
    transform: rotate(180deg);
}

.nav-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.nav-icon.rotate {
    transform: rotate(180deg);
}

/* Mega Menu */

.mega-menu {
    --items: 3;

    position: absolute;
    top: 100%;
    left: 50%;
    
    padding: 1.5rem;
    padding-top: 2rem;
    width: fit-content;
    max-width: min(90vw, 1100px);
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    border: 1px solid #f3f4f6;

    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
}

.nav-item:active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
    --items: 3;

    display: grid;
    grid-template-columns: repeat(var(--items), 1fr);
    gap: 1.5rem;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;

    min-width: 200px;
    max-width: 250px;
}

.mega-menu-title {
    font-family: 'Aller', 'sans-serif';
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #1f305c;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;

    background: none;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
}

.mega-menu-title:hover {
    color: #437ab9;
}

.mega-menu-sublist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0.5rem;
}

.mega-menu-subitem {
    font-family: 'Aller', 'sans-serif';
    color: #999999;
    text-align: left;
    font-size: 0.75rem;
    line-height: 1rem;

    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.mega-menu-subitem-depth-0 {
    color: #666666;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.mega-menu-subitem:hover {
    color: #437ab9;
}

/* Language Switcher */

.language-switcher-desktop {
    position: relative;
    border-left: 1px solid #e5e7eb;
    padding-left: 1rem;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.language-button span {
    font-size: 0.875rem;
    color: #666666;
    font-family: 'Aller', 'sans-serif';
}

.language-icon {
    width: 1rem;
    height: 1rem;
    color: #666666;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    visibility: hidden;
    width: 14rem;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    border: 1px solid #f3f4f6;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.language-switcher-desktop:hover .language-dropdown,
.language-switcher-mobile:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    width: calc(100% - 1rem);
    text-align: left;
    font-family: 'Aller', 'sans-serif';
    padding: 0.75rem 1rem;
    margin: 0 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #666666;

    border: none;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.language-option:hover {
    background-color: #f0f7ff;
    color: #437ab9;
}

.language-option.active {
    background-color: #437ab9;
    color: white;
}

.language-switcher-desktop:hover .nav-icon {
    transform: rotate(180deg);
}

/* Mobile Controls */

.mobile-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .mobile-controls {
        display: none;
    }
}

.language-switcher-mobile {
    position: relative;
}

.mobile-language-button {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.125rem;
}

.mobile-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-button .icon {
    display: none;
}

.mobile-menu-button .icon-menu {
    display: block;
}

.mobile-menu-button.is-open .icon-menu {
    display: none;
}

.mobile-menu-button.is-open .icon-close {
    display: block;
}

/* Mobile Navigation */

.mobile-sidebar {
    position: fixed;
    left: 0px;
    right: 0px;
    top: 80px;
    bottom: 0px;
    background-color: white;
    overflow-y: auto;
    z-index: 40;
    padding: 1rem 1.5rem;
    flex-direction: column;

    display: none;
}

.mobile-sidebar.is-open {
    display: flex;
}

.nav-link {
    font-family: 'Aller', 'sans-serif';
    color: #1a1a1a;
    font-size: 0.875rem;
    line-height: 1.25rem;
    width: fit-content;
    padding: 0.5rem 0rem;
    display: flex;
}

.nav-link:hover {
    color: #437ab9;
    text-decoration: none;
}

@media (min-width: 1024px) {

    .mobile-sidebar {
        display: none;
    }

    .mobile-sidebar.is-open {
        display: none;
    }
}

/* Accordion */

.accordion {
    width: 100%;
}

.accordion-trigger {
    font-family: 'Aller', 'sans-serif';
    color: #1a1a1a;
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-align: left;

    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.accordion-trigger:hover {
    color: #437ab9;
    text-decoration: none;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.show {
    max-height: 2000px;
}

.accordion-content-inner {
    display: flex;
    flex-direction: column;
}

.accordion-link {
    font-family: 'Aller', 'sans-serif';
    color: #1f305c;
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-align: left;
    text-decoration: none;

    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2rem;

    background: none;
    border: none;
    cursor: pointer;
    display: block;

    transition: background-color 0.3s ease;
}

.accordion-link-depth-1 {
    font-weight: 500;
    color: #666666;
}

.accordion-link-depth-1 {
    color: #666666;
}

.accordion-link-depth-2 {
    font-size: 0.75rem;
    line-height: 1rem;
    color: #999999;
}

.accordion-link:hover {
    background-color: #f3f4f6;
}