/* 
   New Header Stylesheet (BRM Final - Layout Refined)
   Version: 1.4.0
*/

:root {
  --header-pill-bg: rgba(0, 39, 67, 0.96); /* BRM Dark Blue with subtle transparency */
  --header-text-color: #FFFFFF; /* White text for dark background */
  --header-accent-color: #ef7d00; /* BRM Orange */
  --header-accent-gradient: linear-gradient(90deg, #f7921e, #fe402e);
  --header-radius: 100px;
  --header-radius-expanded: 48px;
  --header-margin: 24px;
  --panel-bg: #002743;
}

/* Main Wrapper */
.MainNavigation {
    position: fixed;
    top: var(--header-margin);
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    z-index: 9999;
}

/* Container for both Pill and Panels */
.MainNavigation--content {
    background-color: var(--header-pill-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--header-radius);
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.12);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 72px;
    position: relative;
    /* Removed overflow:hidden to allow lang dropdown to pop out */
}

/* Expanded State */
.MainNavigation--content.is-expanded {
    border-radius: var(--header-radius-expanded);
    height: 520px; /* Reduced by 100px as requested */
}

/* Pill Flex Layout */
.MainNavigation--pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    height: 72px;
}

.MainNavigation--pill-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.MainNavigation--pill-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Logo */
.MainNavigation--logo {
    display: flex;
    align-items: center;
}

.MainNavigation--logo img {
    height: 36px;
    width: auto;
    filter: none; /* White logo on dark blue */
}

/* Nav List */
.AccordionPanel--list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px; /* Adjusted gap for more items */
}

.AccordionPanel--trigger, .AccordionPanel--link {
    background: none;
    border: none;
    text-decoration: none;
    font-weight: 700;
    color: var(--header-text-color);
    font-size: 14px;
    letter-spacing: normal;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 24px;
    display: block;
    white-space: nowrap;
}

.AccordionPanel--trigger:hover, .AccordionPanel--link:hover {
    color: var(--header-accent-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.AccordionPanel--trigger.is-active {
    color: #002743;
    background-color: #FFF;
}

/* Phone Utility */
.nav-phone-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    background: var(--header-accent-color); /* BRM Orange by default */
    border-radius: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 125, 0, 0.3);
}

.nav-phone-link:hover {
    transform: scale(1.03);
    background: #ff8c1a; /* Lighter orange on hover */
}

.nav-phone-link .phone-number {
    color: #FFF !important; /* Force white text */
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
    line-height: 1;
}

.nav-phone-link .phone-icon {
    filter: none;
    color: #FFF !important;
    line-height: 1;
}

/* Market/Lang Tool */
.MarketLanguageSwitcher--trigger {
    background-color: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 24px;
    height: 44px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.current-flag {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.lang-code-short {
    font-size: 12px;
    font-weight: 800;
}

.locale-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #002743; /* Match BRM Dark Blue */
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    display: none;
    padding: 12px 0;
    margin-top: 16px;
    min-width: 180px;
    z-index: 10001;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.locale-tool.is-open .locale-dropdown {
    display: block;
}

.locale-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #FFFFFF; /* White text for dark background */
    font-size: 14px;
    font-weight: 600;
}

.locale-item:hover {
    background: rgba(255,255,255,0.08);
}

.flag-icon {
    width: 18px;
    height: auto;
    border-radius: 2px;
}

/* Cart Tool */
.cart-button-v2 {
    background-color: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    color: #FFF;
}

.icon-cart {
    width: 20px;
    filter: brightness(0) invert(1);
}

.cart-quantity-v2 {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #002743; /* Blue as requested */
    color: #FFF;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFF;
}

/* Panels Area */
.MainNavigation--panels {
    padding: 32px 48px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    overflow: hidden; /* Keep panels contained when expanding */
    border-bottom-left-radius: var(--header-radius-expanded);
    border-bottom-right-radius: var(--header-radius-expanded);
}

.is-expanded .MainNavigation--panels {
    opacity: 1;
    visibility: visible;
}

.NavigationPanel {
    display: none;
}

.NavigationPanel.is-visible {
    display: block;
    animation: fadeInSlide 0.4s ease-out forwards;
}

/* Panel Layouts */
.NavigationPanel--grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 60px;
}

.NavigationPanel--grid-simple {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.NavigationPanel--grid-company {
    display: grid;
    grid-template-columns: repeat(2, 1fr) 280px;
    gap: 40px;
    width: 100%;
}

.NavigationPanel--grid-support {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    width: 100%;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Machine Tab System - 3 Column Layout */
.MachineTabSystem {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 280px;
    gap: 32px;
    height: 100%;
    align-items: start;
}

.MachineTabSystem--sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-right: 24px;
}

.MachineTabSystem--main {
    min-width: 0;
}

.MachineTabButton {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: #FFF;
    font-weight: 700;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.MachineTabButton:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--header-accent-color);
}

.MachineTabButton.is-active {
    background: #FFF;
    color: #002743;
    border-color: #FFF;
}

.MachineTabButton .arrow {
    color: var(--header-accent-color);
    opacity: 0.6;
}

.MachineTabButton.is-active .arrow {
    opacity: 1;
}

/* Sidebar Footer Links */
.SidebarFooter {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.SidebarFooter--btn {
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    text-align: center;
    font-size: 15px;
    transition: all 0.3s ease;
}

.SidebarFooter--btn.primary {
    background: var(--header-accent-gradient);
    color: #FFF;
    box-shadow: 0 4px 12px rgba(239, 125, 0, 0.2);
}

.SidebarFooter--btn.secondary {
    background: rgba(255,255,255,0.08);
    color: #FFF;
    border: 1px solid rgba(255,255,255,0.1);
}

.SidebarFooter--btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.MachineTabSystem--content {
    position: relative;
    padding-top: 10px;
}

.MachineTabContent {
    display: none;
    animation: fadeIn 0.4s ease;
}

.MachineTabContent.is-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Stacked Content Layout */
.TabHeader {
    margin-bottom: 32px;
}

.TabHeader h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #FFF;
}

.TabHeader p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    max-width: 90%;
}

.TabModels h5 {
    color: var(--header-accent-color);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 12px;
    margin-bottom: 20px;
    font-weight: 800;
}

.MachineTabContent--header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #FFF;
    margin: 0 0 20px 0;
}

.ModelList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ModelList.is-3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 20px;
}

.ModelList.with-icons {
    grid-template-columns: 1fr;
}

.ModelList.with-icons li a {
    justify-content: flex-start;
    gap: 15px;
}

.ModelList.is-3col li a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.ModelList li a {
    color: #FFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s;
}

.ModelList li a:after {
    content: none;
}

.ModelList li a:hover {
    border-bottom-color: var(--header-accent-color);
}

.ModelList li a:hover:after {
    opacity: 1;
    transform: translateX(0);
}

/* Persona Column */
.MachineTabSystem--persona {
    padding-top: 0;
}

.MachineCard {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.MachineCard:hover {
    transform: translateY(-4px);
}

.MachineCard--image {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 16px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.MachineCard--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.MachineCard:hover .MachineCard--image img {
    transform: scale(1.08);
}

.MachineCard--title {
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--header-text-color);
}

.arrow-small {
    color: var(--header-accent-color);
}

/* Machine Footer */
.MachineFooter {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.MachineFooter--link {
    text-decoration: none;
    color: var(--header-text-color);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.MachineFooter--link:hover {
    color: var(--header-accent-color);
}

/* Persona Block */
.PersonaBlock {
    background: #002d4d; /* Slightly lighter shade for contrast inside panel */
    border-radius: 28px;
    padding: 24px;
    color: #FFF;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
}

.PersonaBlock h4 {
    color: #FFF;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-transform: none;
    letter-spacing: normal;
}

.PersonaBlock p {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}

.PersonaBlock--id {
    display: flex;
    align-items: center;
    gap: 12px;
}

.PersonaBlock--id img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.PersonaBlock--id .name {
    display: block;
    font-weight: 700;
    font-size: 14px;
}

.PersonaBlock--id .role {
    display: block;
    font-size: 11px;
    opacity: 0.6;
}

.PersonaBlock--cta {
    width: fit-content;
    margin-top: 15px; /* Added some spacing from the persona info */
    text-shadow: none;
}

/* Nav Columns */
.NavColumn h3 {
    font-size: 22px;
    font-weight: 700;
    color: #FFF;
    margin: 0 0 20px 0;
    text-transform: none;
    letter-spacing: normal;
}

.NavList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.NavList > li {
    margin-bottom: 4px;
}

.NavList > li > a {
    text-decoration: none;
    color: var(--header-text-color);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.NavList > li > a:hover {
    color: var(--header-accent-color);
    border-bottom-color: var(--header-accent-color);
}

/* SubNav */
.SubNavList {
    list-style: none;
    padding: 8px 0 0 0;
    margin: 0;
}

.SubNavList li {
    margin-bottom: 8px;
}

.SubNavList li a {
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.SubNavList li a:hover {
    color: #FFF;
}

/* Icons for Labels */
.icon-wrap {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--header-accent-color); /* Icons in orange */
}

.label-icon {
    width: 22px;
    height: auto;
}

.NavList.with-icons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.NavList.with-icons li a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #FFF;
    font-weight: 700;
}

.NavList.with-icons .icon-wrap {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.NavList.with-icons li a:hover .icon-wrap {
    background: var(--header-accent-color);
}

.NavList.with-icons .label-icon {
    width: 18px !important;
    height: 18px !important;
    color: var(--header-accent-color);
    transition: color 0.3s ease;
}

.NavList.with-icons li a:hover .label-icon {
    color: #FFF;
}

/* Responsive */
@media (max-width: 1250px) {
    .nav-phone-link {
        padding: 0 14px;
    }
    .MainNavigation--pill {
        padding: 0 20px;
    }
}
@media (max-width: 1100px) {
    .AccordionPanel--trigger, .AccordionPanel--link {
        font-size: 12px;
        padding: 8px 10px;
    }
    .MainNavigation--pill-left {
        gap: 16px;
    }
}
/* Product Preview Block (Apple-style Refinement) */
.ProductPreviewBlock.is-apple-style {
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 32px;
    padding: 32px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.ProductPreviewBlock.is-apple-style:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    background: linear-gradient(145deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
}

.ProductPreviewBlock.is-apple-style .ProductPreview--image {
    background: none;
    aspect-ratio: auto;
    height: 180px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ProductPreviewBlock.is-apple-style .ProductPreview--image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

.ProductPreviewBlock.is-apple-style .ProductPreview--content h4 {
    font-size: 26px;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.ProductPreviewBlock.is-apple-style .preview-specs {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
    font-weight: 300;
}

.preview-link-hint {
    font-size: 14px;
    font-weight: 600;
    color: var(--brm-orange, #FF7235);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.ProductPreviewBlock.is-apple-style:hover .preview-link-hint {
    opacity: 1;
}

/* Product Preview Block (Dynamic Card) */
.ProductPreviewBlock {
    background: rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.ProductPreview--image {
    width: 100%;
    aspect-ratio: 4/3;
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.ProductPreview--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.ProductPreview--content h4 {
    font-size: 20px;
    color: #FFF;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.ProductPreview--content p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin: 0;
}

.ProductPreview--cta {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

.preview-target-active {
    animation: previewFadeIn 0.3s ease-out;
}

@keyframes previewFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Visibility --- */
.mobile-only { display: none !important; }
.desktop-only { display: flex !important; }

@media (max-width: 1024px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    
    .MainNavigation--pill {
        padding: 0 16px !important;
        height: 64px !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .MainNavigation--content {
        height: 64px !important;
        border-radius: 32px !important;
        overflow: hidden !important;
    }

    /* Mobile Nav Container (ONLY within media query) */
    .mobile-nav-container {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 100% !important;
        padding: 0 !important; /* Padding moved to side wrappers for finer control */
    }

    .mobile-nav-left, .mobile-nav-right {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
    }

    .mobile-nav-left { 
        justify-content: flex-start !important; 
        padding-left: 6px !important; /* Pulling logo further to the left as requested */
    }
    
    .mobile-nav-right { 
        justify-content: flex-end !important; 
        padding-right: 36px !important; /* Pushing hamburger further to the left (away from edge) */
    }

    .MainNavigation--logo.mobile {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
    }

    .MainNavigation--logo.mobile img {
        height: 32px !important;
        width: auto !important;
    }

    .nav-phone-link.mobile {
        background: var(--header-accent-color) !important;
        box-shadow: 0 4px 15px rgba(239, 125, 0, 0.4) !important;
        height: 36px !important;
        padding: 0 14px !important;
        border-radius: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: #FFF !important;
        flex: 0 0 auto !important;
        z-index: 2;
    }

    .nav-phone-link.mobile .phone-number {
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    .hamburger-menu {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        gap: 5px !important;
        padding: 0 !important;
        width: 32px !important;
        height: 32px !important;
    }

    .hamburger-line {
        width: 24px;
        height: 2px;
        background-color: #FFF;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
}

/* Mobile Menu Overlay */
.MobileMenuOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 39, 67, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    padding: 20px;
}

.MobileMenuOverlay.is-active {
    opacity: 1;
    visibility: visible;
}

.MobileMenuOverlay--content {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 40px;
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

.MobileMenuOverlay--header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-menu {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Mobile Nav List */
.MobileMenu--list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.MobileMenu--item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.MobileMenu--trigger, .MobileMenu--item > a {
    background: none;
    border: none;
    color: #FFF;
    font-size: 24px;
    font-weight: 700;
    padding: 16px 0;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.MobileMenu--trigger::after {
    content: '+';
    font-size: 20px;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.MobileMenu--item.is-open .MobileMenu--trigger::after {
    transform: rotate(45deg);
}

/* Accordion Content */
.MobileMenu--submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.MobileMenu--item.is-open .MobileMenu--submenu {
    max-height: none; /* Removed fixed max-height to allow full content and scrolling */
}

.MobileMenu--sublist {
    list-style: none;
    padding: 10px 0 30px 0; /* Added more bottom padding for safe scrolling */
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Slightly tighter for long lists */
}

.MobileMenu--sublist li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 8px 0;
}

.MobileMenu--sublist li a.view-all {
    color: var(--header-accent-color);
    font-weight: 700;
}

.MobileMenuOverlay--footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.MobileMenu--actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.mobile-footer-btn {
    width: 100% !important;
    max-width: 340px;
    height: 52px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: #FFF;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.whatsapp-pill-btn {
    background: #002743 !important; /* BRM Dark Blue */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.phone-pill-btn {
    background: var(--header-accent-color) !important;
    box-shadow: 0 4px 15px rgba(239, 125, 0, 0.2);
}

.icon-whatsapp {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}
/* 
   Content Alignment for New Floating Header
   Baseline settings - reverting negative margins
*/

body .page-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body .acf-block-hero-home .padding-section-xlarge,
body .acf-block-hero-general .padding-section-xlarge {
    padding-top: 10rem !important;
}

body .breadcrumbs, 
body/* 3. Tight breadcrumb placement */
.has-new-header .breadcrumbs {
    padding-top: 0px !important; /* Force to 0 as requested */
    min-height: 0 !important;
    margin: 0 !important;
}

@media (max-width: 1024px) {
    body .breadcrumbs {
        padding-top: 0px !important;
    }
}

/* 
   Neutralize legacy Webflow 20rem paddings 
   that cause huge white space below the new pill header
*/
.has-new-header .header-dealers.large,
.has-new-header .toepassing-lasersnijden {
    padding-top: 10rem !important;
}

/* Specific homepage hero handling to remove the top gap */
.has-new-header.home .header.section-2 {
    padding-top: 0 !important;
}

.has-new-header.home .header-content-wrapper {
    padding-top: 10rem !important;
}

.has-new-header:not(.home) .header.section-2 {
    padding-top: 10rem !important;
}

/* Hardcoded removal of the legacy USP bar (the blue bar) only on the homepage */
.has-new-header.home .header_usps, 
.has-new-header.home .header-usp-wrapper,
.has-new-header.home .header-usp {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* 
   BRM UNIVERSAL HERO CONTAINMENT FIX
   Ensures backgrounds (images, SVG, overlays) stay within their section.
*/

/* === BRM UNIVERSAL HERO FIX === 
   1. Prevents background bleed (overflow: hidden)
   2. Prevents content cutoff (height: auto)
   3. Prevents collapse (min-height)
*/
aside.header {
    position: relative;
    overflow: hidden;
    height: auto !important;
}
aside.header-case {
    position: relative;
    overflow: hidden;
    
    
}
aside.header-product {
    position: relative;
    overflow: hidden;
    
    
}



/* === Lasermachines: background wrapper moet aside vullen === */
.page-template-page-lasermachines .dark-header-background-wrapper {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
}
.page-template-page-lasermachines .header_background-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.page-template-page-lasermachines .dark-header-background.blue-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
}

/* --- Mobile Language Switcher Dropdown --- */
.mobile-locale-tool .locale-dropdown {
  position: relative;
  background: #002743;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  padding: 12px;
  margin-top: 8px;
  min-width: 180px;
  z-index: 10001;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-locale-tool .locale-dropdown .locale-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  color: #fff;
  text-decoration: none;
}

.mobile-locale-tool .locale-dropdown .flag-icon {
  width: 20px;
  height: 20px;
}

/* Mobile language switcher overrides */
.MobileMenuOverlay--footer .mobile-locale-tool .locale-dropdown {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  background: #002743;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  padding: 12px;
  margin-top: 8px;
  min-width: 180px;
  z-index: 10001;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.MobileMenuOverlay--footer .mobile-locale-tool .locale-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  color: #fff;
  text-decoration: none;
}
.MobileMenuOverlay--footer .mobile-locale-tool .flag-icon {
  width: 20px;
  height: 20px;
}
