/* ==========================================================================
   Global Header — eztio
   Design tokens from DNA.md
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
    /* Header surface & foreground tokens */
    --header-bg: #ffffff;
    --header-fg: #1A365D;
    --header-accent: #0891B2;
    --header-border: #E2E8F0;
    --header-surface: #F8FAFC;

    /* DNA brand colors */
    --color-primary: #1A365D;
    --color-primary-light: #2C5282;
    --color-primary-800: #2A4365;
    --color-cta: #0891B2;
    --color-cta-hover: #0E7490;
    --color-cta-dark: #155E75;
    --color-cta-light: #22D3EE;
    --color-accent: #38A169;
    --color-neutral-50: #F8FAFC;
    --color-neutral-100: #F1F5F9;
    --color-neutral-200: #E2E8F0;
    --color-neutral-300: #CBD5E1;
    --color-neutral-400: #94A3B8;
    --color-neutral-500: #64748B;
    --color-neutral-600: #475569;
    --color-neutral-700: #334155;
    --color-neutral-800: #1E293B;
    --color-neutral-900: #0F172A;

    /* Z-index contract */
    --z-header: 9000;
    --z-mega-menu: 9100;
    --z-mobile-drawer: 9200;
    --z-lang-dropdown: 9300;

    /* Layout */
    --header-max-width: 1440px;
    --header-gutter: 1.5rem;

    /* Typography */
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Transitions */
    --header-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
.site-header,
.site-header *,
.mobile-drawer,
.mobile-drawer * {
    box-sizing: border-box;
}

.site-header {
    position: relative;
    z-index: var(--z-header);
    width: 100%;
    max-width: 100%;
    font-family: var(--font-body);
    overflow-x: clip;
}

/* --- Top Bar --- */
.header-topbar {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8125rem;
    line-height: 1.4;
    position: relative;
    overflow: visible;
}

.header-topbar-inner {
    max-width: var(--header-max-width);
    margin: 0 auto;
    padding: 0.625rem var(--header-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-left,
.topbar-center,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.topbar-left {
    flex: 1;
    min-width: 0;
}

.topbar-center {
    flex: 1;
    justify-content: center;
}

.topbar-right {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.topbar-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.topbar-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    white-space: nowrap;
    min-width: 0;
    transition: color 0.15s;
}

.topbar-contact-item:hover {
    color: #ffffff;
}

.topbar-contact-item + .topbar-contact-item {
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Language Switcher in Top Bar */
.topbar-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    position: relative;
    min-width: 0;
}

.topbar-globe-icon {
    width: 1.125rem;
    height: 1.125rem;
    opacity: 0.85;
}

/* JCM Language Switcher Styling */
.topbar-lang-switcher .jcm-language-switcher,
.topbar-lang-switcher .jcm-language-switcher-dropdown {
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.topbar-lang-switcher .jcm-language-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.topbar-lang-switcher .jcm-language-switcher ul li {
    position: relative;
}

.topbar-lang-switcher .jcm-language-switcher ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.15s;
}

.topbar-lang-switcher .jcm-language-switcher ul li a:hover {
    color: #ffffff;
}

/* Dropdown variant */
.topbar-lang-switcher .jcm-language-switcher-dropdown {
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.topbar-lang-switcher .jcm-language-switcher-dropdown .jcm-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    max-width: 100%;
    min-width: 0;
    white-space: nowrap;
}

.topbar-lang-switcher .jcm-language-switcher-dropdown .jcm-dropdown-toggle .name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-lang-switcher .jcm-language-switcher-dropdown .jcm-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: auto;
    min-width: 160px;
    max-width: calc(100vw - (var(--header-gutter) * 2));
    background: #ffffff;
    border: 1px solid var(--color-neutral-200);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: var(--z-lang-dropdown);
}

.topbar-lang-switcher .jcm-language-switcher-dropdown:hover .jcm-dropdown-menu,
.topbar-lang-switcher .jcm-language-switcher-dropdown.open .jcm-dropdown-menu,
.topbar-lang-switcher .jcm-language-switcher-dropdown.is-open .jcm-dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.topbar-lang-switcher .jcm-language-switcher-dropdown .jcm-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--color-neutral-700);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: background 0.15s, color 0.15s;
}

.topbar-lang-switcher .jcm-language-switcher-dropdown .jcm-dropdown-menu a:hover {
    background: var(--color-neutral-50);
    color: var(--color-primary);
}

/* --- Main Header --- */
.header-main {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    position: relative;
    transition: background var(--header-transition),
                box-shadow var(--header-transition),
                padding var(--header-transition);
}

.header-main-inner {
    max-width: var(--header-max-width);
    margin: 0 auto;
    padding: 1.125rem var(--header-gutter);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    transition: padding var(--header-transition);
}

/* --- Logo --- */
.header-brand {
    grid-column: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
    max-width: 100%;
}

.header-logo {
    width: clamp(115px, 12vw, 176px);
    height: auto;
    display: block;
    transition: width var(--header-transition);
}

/* Logo visibility: default state shows on-light, hides on-dark */
.header-logo--on-light {
    display: block;
}

.header-logo--on-dark {
    display: none;
}

/* --- Desktop Navigation --- */
.header-nav-desktop {
    grid-column: 2;
    justify-self: center;
    display: none;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.625rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-neutral-700);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-primary);
    background: var(--color-neutral-50);
}

.nav-item.is-active .nav-link {
    color: var(--color-cta);
    font-weight: 600;
}

.nav-item.is-active .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--color-cta);
    border-radius: 1px;
}

.nav-chevron {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.nav-item--products.is-mega-open .nav-chevron {
    transform: rotate(180deg);
}

/* --- Action Zone --- */
.header-actions {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    min-width: 0;
}

.header-cta-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: var(--color-cta);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
}

.header-cta-btn:hover {
    background: var(--color-cta-hover);
    transform: translateY(-1px);
}

.cta-arrow {
    width: 1rem;
    height: 1rem;
    transition: transform 0.15s;
}

.header-cta-btn:hover .cta-arrow {
    transform: translateX(2px);
}

/* --- Hamburger --- */
.header-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    border-radius: 6px;
    transition: background 0.15s;
}

.header-hamburger:hover {
    background: var(--color-neutral-50);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.header-hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.header-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Mega Menu Panel --- */
.mega-menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--color-neutral-200);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
    border-radius: 0 0 10px 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s, transform 0.25s ease;
    pointer-events: none;
    z-index: var(--z-mega-menu);
}

.mega-menu-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-inner {
    max-width: var(--header-max-width);
    margin: 0 auto;
    padding: 2rem var(--header-gutter) 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
}

.mega-menu-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.mega-category-block {
    padding: 0;
}

.mega-category-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.375rem;
}

.mega-category-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.15s;
}

.mega-category-title a:hover {
    color: var(--color-cta);
}

.mega-category-desc {
    font-size: 0.75rem;
    color: var(--color-neutral-500);
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.mega-category-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-category-links li {
    margin-bottom: 0.25rem;
}

.mega-category-links a {
    display: inline-block;
    padding: 0.25rem 0;
    font-size: 0.8125rem;
    color: var(--color-neutral-600);
    text-decoration: none;
    transition: color 0.15s, padding-left 0.15s;
}

.mega-category-links a:hover {
    color: var(--color-cta);
    padding-left: 0.25rem;
}

.mega-view-all {
    display: inline-block;
    margin-top: 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-cta);
    text-decoration: none;
    transition: color 0.15s;
}

.mega-view-all:hover {
    color: var(--color-cta-hover);
}

/* Mega Menu Support Card */
.mega-menu-support {
    min-width: 220px;
    max-width: 260px;
}

.mega-support-card {
    background: var(--color-neutral-50);
    border: 1px solid var(--color-neutral-200);
    border-radius: 8px;
    padding: 1.5rem;
}

.mega-support-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(8, 145, 178, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.mega-support-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--color-cta);
}

.mega-support-card h4 {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.5rem;
}

.mega-support-card p {
    font-size: 0.8125rem;
    color: var(--color-neutral-600);
    line-height: 1.5;
    margin: 0 0 1rem;
}

.mega-support-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-cta);
    text-decoration: none;
    transition: color 0.15s;
}

.mega-support-link:hover {
    color: var(--color-cta-hover);
}

/* --- Scrolled State --- */
.site-header.is-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.site-header.is-scrolled .header-topbar {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    border: none;
    opacity: 0;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
}

.site-header.is-scrolled .header-topbar-inner {
    padding-top: 0;
    padding-bottom: 0;
}

.site-header.is-scrolled .header-main {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.site-header.is-scrolled .header-main-inner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.site-header.is-scrolled .header-logo {
    width: clamp(96px, 9.6vw, 136px);
}

/* --- Header Spacer --- */
.header-spacer {
    display: none;
    width: 100%;
}

.header-spacer.is-active {
    display: block;
}

/* --- Mobile Drawer --- */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--z-mobile-drawer);
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
}

.mobile-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.mobile-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-drawer.is-open .mobile-drawer-overlay {
    opacity: 1;
}

.mobile-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 85vw);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-drawer.is-open .mobile-drawer-panel {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem var(--header-gutter);
    border-bottom: 1px solid var(--color-neutral-200);
}

.mobile-drawer-logo {
    width: clamp(96px, 22.4vw, 141px);
    height: auto;
    max-width: 100%;
}

.mobile-drawer-close {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}

.mobile-drawer-close:hover {
    background: var(--color-neutral-100);
}

.mobile-drawer-close svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--color-neutral-700);
}

/* Mobile Nav */
.mobile-drawer-nav {
    flex: 1;
    padding: 1rem 0;
}

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

.mobile-nav-item {
    border-bottom: 1px solid var(--color-neutral-100);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem var(--header-gutter);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-neutral-700);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s, background 0.15s;
}

.mobile-nav-link:hover {
    background: var(--color-neutral-50);
    color: var(--color-primary);
}

.mobile-nav-item.is-active > .mobile-nav-link {
    color: var(--color-cta);
    font-weight: 600;
}

.mobile-nav-chevron {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.mobile-nav-item--products.is-expanded .mobile-nav-chevron {
    transform: rotate(180deg);
}

/* Mobile Products Submenu */
.mobile-products-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--color-neutral-50);
}

.mobile-nav-item--products.is-expanded .mobile-products-submenu {
    max-height: 2000px;
}

.mobile-product-group {
    padding: 0.75rem var(--header-gutter) 0.75rem calc(var(--header-gutter) + 0.75rem);
    border-bottom: 1px solid var(--color-neutral-100);
}

.mobile-product-group:last-child {
    border-bottom: none;
}

.mobile-product-category {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.15s;
}

.mobile-product-category:hover {
    color: var(--color-cta);
}

.mobile-product-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-product-children li a {
    display: block;
    padding: 0.3125rem 0;
    font-size: 0.8125rem;
    color: var(--color-neutral-600);
    text-decoration: none;
    transition: color 0.15s;
}

.mobile-product-children li a:hover {
    color: var(--color-cta);
}

/* Mobile Drawer Footer */
.mobile-drawer-footer {
    padding: 1.25rem var(--header-gutter);
    border-top: 1px solid var(--color-neutral-200);
    margin-top: auto;
}

.mobile-drawer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--color-cta);
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s;
    margin-bottom: 1rem;
}

.mobile-drawer-cta:hover {
    background: var(--color-cta-hover);
}

.mobile-drawer-cta svg {
    width: 1rem;
    height: 1rem;
}

.mobile-drawer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1rem;
    min-width: 0;
}

.mobile-drawer-contact a {
    display: grid;
    gap: 0.125rem;
    font-size: 0.8125rem;
    color: var(--color-neutral-600);
    text-decoration: none;
    min-width: 0;
    overflow-wrap: anywhere;
    transition: color 0.15s;
}

.mobile-drawer-contact a span {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-neutral-500);
}

.mobile-drawer-contact a strong {
    font-weight: 500;
    min-width: 0;
    overflow-wrap: anywhere;
}

.mobile-drawer-contact a:hover {
    color: var(--color-cta);
}

.mobile-drawer-lang {
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-neutral-100);
}

.mobile-drawer-lang .jcm-language-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mobile-drawer-lang .jcm-language-switcher ul li a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--color-neutral-700);
    text-decoration: none;
    border: 1px solid var(--color-neutral-200);
    border-radius: 6px;
    transition: border-color 0.15s, color 0.15s;
}

.mobile-drawer-lang .jcm-language-switcher ul li a:hover {
    border-color: var(--color-cta);
    color: var(--color-cta);
}

.mobile-drawer-lang .jcm-language-switcher-dropdown .jcm-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--color-neutral-200);
    border-radius: 6px;
    margin-top: 0.5rem;
}

/* --- Responsive --- */

/* Tablet and up */
@media (min-width: 768px) {
    .header-topbar-inner {
        padding: 0.5rem var(--header-gutter);
    }

    .topbar-contact-item span {
        display: inline;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .header-nav-desktop {
        display: block;
    }

    .header-hamburger {
        display: none;
    }

    .header-cta-btn {
        display: inline-flex;
    }

    .header-main-inner {
        padding: 1.25rem var(--header-gutter);
    }

    .site-header.is-scrolled .header-main-inner {
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }
}

/* Mobile: simplify top bar */
@media (max-width: 767px) {
    /* Language switcher: hide in topbar on mobile — drawer handles it */
    .header-topbar__lang { display: none; }
    .header-topbar-inner {
        padding: 0.5rem var(--header-gutter);
    }

    .topbar-left {
        display: none;
    }

    .topbar-center {
        flex: 1;
        justify-content: flex-start;
        min-width: 0;
    }

    .topbar-right {
        min-width: 0;
        margin-left: auto;
    }

    .topbar-center .topbar-contact-item span {
        display: none;
    }

    .topbar-contact-item {
        flex: 0 0 auto;
    }

    .topbar-lang-switcher {
        max-width: 44vw;
        justify-content: flex-end;
    }

    .topbar-lang-switcher .jcm-language-switcher-dropdown .jcm-dropdown-toggle {
        max-width: 100%;
    }

    .topbar-lang-switcher .jcm-language-switcher-dropdown .jcm-dropdown-toggle .name {
        display: inline-block;
        max-width: clamp(2.5rem, 22vw, 6.25rem);
    }

    .topbar-contact-item + .topbar-contact-item {
        margin-left: 0.25rem;
        padding-left: 0.5rem;
    }

    .header-main-inner {
        padding: 0.875rem var(--header-gutter);
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
    }

    .header-brand {
        grid-column: 1;
    }

    .header-actions {
        grid-column: 2;
    }

    .header-logo {
        width: clamp(96px, 22.4vw, 141px);
    }

    .mega-menu-panel {
        display: none;
    }
}

/* Large desktop: wider gutters */
@media (min-width: 1440px) {
    :root {
        --header-gutter: 2rem;
    }
}

/* Mega menu responsive */
@media (max-width: 1279px) and (min-width: 1024px) {
    .mega-menu-categories {
        grid-template-columns: repeat(3, 1fr);
    }

    .mega-menu-inner {
        grid-template-columns: 1fr 200px;
    }
}

@media (min-width: 1280px) {
    .mega-menu-categories {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Body scroll lock when drawer is open */
body.drawer-open {
    overflow: hidden;
}
