body.vea-redesign :is(.header,.header.scrolled){
    --header-foreground: #fff;
    --header-rule: rgb(255 255 255 / .48);
    display: grid !important;
    grid-template-columns: 120px minmax(0,1fr) auto 48px;
    align-items: center;
    gap: 20px;
    padding: 10px var(--page-gutter);
}
body.vea-redesign .header::before{
    background: linear-gradient(180deg,rgb(16 17 14 / .64),rgb(16 17 14 / .44));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom-color: rgb(255 255 255 / .12);
}
body.vea-redesign .header.scrolled,
body.vea-redesign.nav-open .header{
    --header-foreground: var(--text);
    --header-rule: var(--border);
}
body.vea-redesign .header .brand-logo-crop{ background: #fff; border-radius: 8px; }
body.vea-redesign .header-primary-nav{
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(18px,2.1vw,32px);
    min-width: 0;
    margin: 0;
}
body.vea-redesign .header-primary-nav a{
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--header-foreground);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}
body.vea-redesign .header-primary-nav a:hover{
    text-decoration: underline;
    text-underline-offset: .4em;
    text-decoration-color: var(--accent);
}
body.vea-redesign .header .header-actions{ grid-column: 3; gap: 12px !important; margin: 0 !important; }
body.vea-redesign .header .theme-header-toggle{
    display: inline-flex;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}
body.vea-redesign .header .lang-switcher{
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px !important;
    min-height: 48px;
    padding: 3px 4px 3px 12px;
    border: 1px solid var(--header-rule);
    border-radius: 999px;
    color: var(--header-foreground);
    background: transparent;
}
body.vea-redesign .header .language-globe{ flex-shrink: 0; width: 18px; height: 18px; margin-right: 2px; }
body.vea-redesign .header .lang-switcher .lang-item{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 9px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--header-foreground) !important;
    opacity: 1;
    transition: background-color 180ms ease,color 180ms ease;
}
body.vea-redesign .header .lang-switcher .lang-item.active{
    color: #171813 !important;
    background: var(--accent);
}
body.vea-redesign .header .lang-switcher .lang-item:hover:not(.active){ background: rgb(197 160 89 / .18); }
body.vea-redesign .header .lang-switcher .lang-text{
    border: 0;
    font-size: .8125rem !important;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .03em;
}
body.vea-redesign .header .header-actions .header-quote{
    display: inline-flex;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--accent);
    color: #171813;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}
body.vea-redesign .header .header-actions .header-quote:hover{ background: var(--surface-soft); color: var(--text); border-color: var(--accent-text); }
body.vea-redesign .header .mobile-menu-btn{
    grid-column: 4;
    position: relative;
    display: block !important;
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--header-rule);
    border-radius: 50%;
    color: var(--header-foreground);
    background: transparent;
    z-index: 1002;
}
body.vea-redesign .header .mobile-menu-btn:hover{ border-color: var(--accent-text); background: var(--surface-soft); color: var(--accent-text); }
body.vea-redesign .header .mobile-menu-btn span{
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 18px !important;
    height: 1px !important;
    margin: 0 !important;
    bottom: auto !important;
    background: currentColor !important;
    transform: translate(-50%,-50%) !important;
    transition: transform 180ms ease,opacity 180ms ease;
}
body.vea-redesign .header .mobile-menu-btn span:nth-child(1){ transform: translate(-50%,calc(-50% - 5px)) !important; }
body.vea-redesign .header .mobile-menu-btn span:nth-child(3){ transform: translate(-50%,calc(-50% + 5px)) !important; }
body.vea-redesign .header .mobile-menu-btn.active span:nth-child(1){ transform: translate(-50%,-50%) rotate(45deg) !important; }
body.vea-redesign .header .mobile-menu-btn.active span:nth-child(2){ opacity: 0; }
body.vea-redesign .header .mobile-menu-btn.active span:nth-child(3){ transform: translate(-50%,-50%) rotate(-45deg) !important; }

body.vea-redesign .header #nav-menu{
    --header-foreground: var(--text);
    --header-accent: var(--accent-text);
    position: fixed !important;
    inset: var(--header-height) 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    height: calc(100dvh - var(--header-height)) !important;
    margin: 0 !important;
    padding: 28px max(var(--page-gutter),calc((100vw - 720px) / 2)) max(32px,env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    background: var(--surface) !important;
    border-top: 1px solid var(--border);
    transform: translateY(-8px) !important;
    transition: transform 180ms ease,opacity 180ms ease !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 1001 !important;
}
body.vea-redesign .header #nav-menu.active{ visibility: visible; opacity: 1; pointer-events: auto; transform: none !important; }
body.vea-redesign .header #nav-menu > a{
    display: flex;
    flex-shrink: 0;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px;
    width: 100% !important;
    min-height: 56px;
    margin: 0 !important;
    padding: 16px 0 !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border) !important;
    border-top: 0 !important;
    font-size: 1rem !important;
    line-height: 1.5;
    letter-spacing: .02em !important;
    text-transform: none;
    white-space: normal;
    animation: none !important;
}
body.vea-redesign .header #nav-menu > a::after{ display: none; }
body.vea-redesign .header #nav-menu .mobile-search-wrapper{ display: block !important; flex-shrink: 0; width: 100% !important; margin: 0 0 20px !important; }
body.vea-redesign .header #nav-menu .mobile-search-box{ display: flex; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); }
body.vea-redesign .header #nav-menu .mobile-search-box input{ width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text) !important; font-size: 1rem; line-height: 1.5; }
body.vea-redesign .header #nav-menu .mobile-search-box input::placeholder{ color: var(--text-muted) !important; }
body.vea-redesign .header .theme-menu-row{ display: none; }
body.vea-redesign.nav-open{ overflow: hidden; }
body.vea-redesign.nav-open .header-primary-nav{ display: none; }
body.vea-redesign.nav-open .header::before{ background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }

@media (max-width: 1199px){
    body.vea-redesign :is(.header,.header.scrolled){ grid-template-columns: 120px minmax(0,1fr) 48px; gap: 16px; }
    body.vea-redesign .header-primary-nav{ display: none; }
    body.vea-redesign .header .header-actions{ justify-self: end; }
    body.vea-redesign .header .header-actions{ grid-column: 2; }
    body.vea-redesign .header .mobile-menu-btn{ grid-column: 3; }
}
@media (max-width: 768px){
    body.vea-redesign :is(.header,.header.scrolled){ grid-template-columns: 96px minmax(0,1fr) 44px; gap: 12px; padding: 8px 20px !important; }
    body.vea-redesign .header .header-actions{ gap: 10px !important; }
    body.vea-redesign .header .header-actions .header-quote{ display: none !important; }
    body.vea-redesign .header .mobile-menu-btn,
body.vea-redesign .header .theme-header-toggle{ width: 44px; height: 44px; }
    body.vea-redesign .header .lang-switcher{ min-height: 44px; }
    body.vea-redesign .header #nav-menu{ padding-top: 20px !important; }
}
@media (max-width: 480px){
    body.vea-redesign :is(.header,.header.scrolled){ gap: 8px; padding-inline: 16px !important; }
    body.vea-redesign .header .theme-header-toggle{ display: none; }
    body.vea-redesign .header .theme-menu-row{ display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 16px; margin-bottom: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
    body.vea-redesign .header .theme-menu-row > span{ color: var(--text-muted); font-size: .875rem; }
    body.vea-redesign .header .theme-menu-toggle{ min-width: 114px; border-radius: 999px; background: var(--surface-soft); }
}
@media (max-width: 359px){
    body.vea-redesign :is(.header,.header.scrolled){ padding-inline: 12px !important; gap: 6px; }
    body.vea-redesign .header .lang-switcher{ padding-inline: 4px; gap: 2px !important; }
    body.vea-redesign .header .language-globe{ width: 16px; height: 16px; margin: 0; }
}
@media (max-height: 500px) and (orientation: landscape){
    body.vea-redesign .header #nav-menu{ padding-top: 16px !important; }
}
@media (prefers-reduced-motion: reduce){
    body.vea-redesign .header #nav-menu,
body.vea-redesign .header :is(.lang-item,.mobile-menu-btn span){ transition: none !important; }
}
@media (prefers-reduced-transparency: reduce){
    body.vea-redesign .header:not(.scrolled)::before{ background: #181816; -webkit-backdrop-filter: none; backdrop-filter: none; }
    body.vea-redesign.nav-open .header::before{ background: var(--surface); }
}
@media print{
    body.vea-redesign :is(.header,.header.scrolled){ display: none !important; }
}
