/**
 * Vefey Global Header Styles
 * 
 * Design tokens from DNA.md:
 * - primary-950: #111113 (body BG)
 * - primary: #1A1A1D (section BG)
 * - cta: #00E5FF
 * - cta-hover: #00B8D4
 * - accent: #A64D79
 * - neutral-300: #C4C4CC (body text)
 * - neutral-400: #9E9EA8 (subdued)
 * - neutral-500: #6E6E7A (labels)
 * - neutral-700: #2D2D35 (dividers)
 * - neutral-800: #1E1E24 (alt BG)
 * 
 * Fonts: Orbitron (headings), Outfit (body)
 * Container: max 1440px with responsive gutters
 * 
 * z-index contract:
 * - header stack: 9000
 * - mega menu: 9100
 * - mobile drawer: 9500
 */

/* ===== CSS Custom Properties ===== */
:root {
    --header-bg: rgba(17, 17, 19, 0.92);
    --header-bg-solid: #111113;
    --header-fg: #ffffff;
    --header-fg-muted: #C4C4CC;
    --header-fg-subdued: #9E9EA8;
    --header-accent: #00E5FF;
    --header-accent-hover: #00B8D4;
    --header-border: #2D2D35;
    --header-surface: #1A1A1D;
    --header-surface-alt: #1E1E24;

    --topbar-bg: #0d0d0f;
    --topbar-fg: #9E9EA8;
    --topbar-fg-hover: #00E5FF;

    --megamenu-bg: #151517;
    --megamenu-border: #2D2D35;

    --drawer-bg: #111113;

    --header-container-max: 1440px;
    --header-gutter: 1rem;
    --header-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    --z-header: 9000;
    --z-megamenu: 9100;
    --z-drawer: 9500;
}

@media (min-width: 640px) {
    :root {
        --header-gutter: 1.25rem;
    }
}
@media (min-width: 1024px) {
    :root {
        --header-gutter: 1.5rem;
    }
}

/* ===== Top Bar ===== */
.gdm-topbar {
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--header-border);
    position: relative;
    z-index: var(--z-header);
    overflow: visible;
}

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

.gdm-topbar__left,
.gdm-topbar__center,
.gdm-topbar__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gdm-topbar__left {
    flex: 1;
    min-width: 0;
}

.gdm-topbar__center {
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.gdm-topbar__right {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.gdm-topbar__trust {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--topbar-fg);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.gdm-topbar__icon {
    flex-shrink: 0;
    opacity: 0.8;
}

.gdm-topbar__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: var(--topbar-fg);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.gdm-topbar__contact-link:hover {
    color: var(--topbar-fg-hover);
}

.gdm-topbar__divider {
    width: 1px;
    height: 12px;
    background: var(--header-border);
}

/* Language Switcher Wrapper */
.gdm-topbar__lang {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    position: relative;
}

.gdm-topbar__globe-icon {
    color: var(--topbar-fg);
}

/* WPML/JCM Language Switcher Styling */
.gdm-topbar__lang .jcm-language-switcher {
    position: relative;
}

.gdm-topbar__lang .jcm-language-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gdm-topbar__lang .jcm-language-switcher ul li a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: var(--topbar-fg);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.gdm-topbar__lang .jcm-language-switcher ul li a:hover,
.gdm-topbar__lang .jcm-language-switcher ul li.active a {
    color: var(--header-accent);
    background: rgba(0, 229, 255, 0.06);
}

/* Dropdown-style language switcher */
.gdm-topbar__lang .jcm-language-switcher-dropdown {
    position: relative;
}

.gdm-topbar__lang .jcm-language-switcher-dropdown .jcm-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: var(--topbar-fg);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.gdm-topbar__lang .jcm-language-switcher-dropdown .jcm-dropdown-toggle:hover {
    color: var(--header-accent);
    background: rgba(0, 229, 255, 0.06);
}

.gdm-topbar__lang .jcm-language-switcher-dropdown .jcm-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: var(--megamenu-bg);
    border: 1px solid var(--megamenu-border);
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: calc(var(--z-megamenu) + 10);
    list-style: none;
    margin: 0;
}

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

.gdm-topbar__lang .jcm-language-switcher-dropdown .jcm-dropdown-menu li {
    list-style: none;
}

.gdm-topbar__lang .jcm-language-switcher-dropdown .jcm-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    color: var(--header-fg-muted);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.gdm-topbar__lang .jcm-language-switcher-dropdown .jcm-dropdown-menu li a:hover {
    background: rgba(0, 229, 255, 0.06);
    color: var(--header-accent);
}

.gdm-topbar__lang .jcm-language-switcher-dropdown .jcm-dropdown-menu li.active a {
    color: var(--header-accent);
}

/* Mobile topbar simplification */
@media (max-width: 767px) {
    /* Language switcher: hide in topbar on mobile — drawer handles it */
    .header-topbar__lang { display: none; }
    .gdm-topbar__left,
    .gdm-topbar__center {
        display: none;
    }

    .gdm-topbar__container {
        justify-content: flex-end;
        padding: 0.5rem var(--header-gutter);
    }
}

/* ===== Main Header ===== */
.gdm-header {
    position: relative;
    z-index: var(--z-header);
    width: 100%;
}

.gdm-header-main {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--header-border);
    position: relative;
    transition: background var(--header-transition),
                padding var(--header-transition),
                box-shadow var(--header-transition);
}

.gdm-header-main__container {
    max-width: var(--header-container-max);
    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 ===== */
.gdm-header__brand {
    grid-column: 1;
    display: flex;
    align-items: center;
}

.gdm-header__logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.gdm-logo {
    width: clamp(144px, 15vw, 220px);
    height: auto;
    display: block;
    transition: opacity var(--header-transition);
}

/* Default state: show dark-surface logo (light text logo for dark header) */
.gdm-logo--on-dark {
    opacity: 1;
}

.gdm-logo--on-light {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Scrolled state: show light-surface logo */
.gdm-header.is-scrolled .gdm-logo--on-dark {
    opacity: 0;
}

.gdm-header.is-scrolled .gdm-logo--on-light {
    opacity: 1;
}

/* ===== Desktop Navigation ===== */
.gdm-header__nav {
    grid-column: 2;
    justify-self: center;
    display: none;
}

@media (min-width: 1024px) {
    .gdm-header__nav {
        display: flex;
        align-items: center;
    }
}

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

.gdm-nav-item {
    position: relative;
}

.gdm-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--header-fg);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.gdm-nav-link:hover {
    color: var(--header-accent);
    background: rgba(0, 229, 255, 0.05);
}

.gdm-nav-item.is-active .gdm-nav-link {
    color: var(--header-accent);
}

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

.gdm-nav-chevron {
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.gdm-nav-item--products[data-megamenu-open] .gdm-nav-chevron {
    transform: rotate(180deg);
}

/* ===== Actions Zone ===== */
.gdm-header__actions {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.gdm-header__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111113;
    background: var(--header-accent);
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    box-shadow: 0 4px 16px rgba(0, 229, 255, 0.2);
    white-space: nowrap;
}

.gdm-header__cta-btn:hover {
    background: var(--header-accent-hover);
    box-shadow: 0 6px 24px rgba(0, 229, 255, 0.35);
    transform: translateY(-1px);
}

/* Hide CTA text on very small screens */
@media (max-width: 767px) {
    .gdm-header__cta-btn {
        display: none;
    }
}

/* Hamburger */
.gdm-header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
}

@media (min-width: 1024px) {
    .gdm-header__hamburger {
        display: none;
    }
}

.gdm-hamburger__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--header-fg);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger active state */
.gdm-header__hamburger[aria-expanded="true"] .gdm-hamburger__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.gdm-header__hamburger[aria-expanded="true"] .gdm-hamburger__bar:nth-child(2) {
    opacity: 0;
}

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

/* ===== Scrolled / Sticky State ===== */
.gdm-header.is-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
}

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

.gdm-header.is-scrolled .gdm-topbar__container {
    padding-top: 0;
    padding-bottom: 0;
}

.gdm-header.is-scrolled .gdm-header-main {
    background: var(--header-bg-solid);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.gdm-header.is-scrolled .gdm-header-main__container {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.gdm-header.is-scrolled .gdm-logo {
    width: clamp(120px, 12vw, 170px);
}

/* Header Spacer */
.gdm-header-spacer {
    display: none;
}

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

/* ===== Mega Menu ===== */
.gdm-megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--megamenu-bg);
    border-top: 1px solid var(--megamenu-border);
    border-bottom: 1px solid var(--megamenu-border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    z-index: var(--z-megamenu);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

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

.gdm-megamenu__container {
    max-width: var(--header-container-max);
    margin: 0 auto;
    padding: 2rem var(--header-gutter);
}

.gdm-megamenu__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) minmax(200px, 0.85fr);
    gap: 1.5rem 2rem;
}

.gdm-megamenu__category {
    min-width: 0;
}

.gdm-megamenu__cat-title {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--header-fg);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.375rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid var(--megamenu-border);
    transition: color 0.2s ease;
}

.gdm-megamenu__cat-title:hover {
    color: var(--header-accent);
}

.gdm-megamenu__cat-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 0.6875rem;
    color: var(--header-fg-subdued);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

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

.gdm-megamenu__links li {
    margin-bottom: 0.25rem;
}

.gdm-megamenu__link {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    color: var(--header-fg-muted);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.gdm-megamenu__link:hover {
    color: var(--header-accent);
    padding-left: 0.25rem;
}

.gdm-megamenu__view-all {
    display: inline-flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--header-accent);
    text-decoration: none;
    margin-top: 0.375rem;
    transition: opacity 0.2s ease;
}

.gdm-megamenu__view-all:hover {
    opacity: 0.75;
}

/* Mega menu support card */
.gdm-megamenu__support-card {
    background: rgba(0, 229, 255, 0.04);
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.gdm-megamenu__support-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 229, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--header-accent);
}

.gdm-megamenu__support-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--header-fg);
    margin: 0;
    letter-spacing: 0.02em;
}

.gdm-megamenu__support-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: var(--header-fg-subdued);
    line-height: 1.5;
    margin: 0;
}

.gdm-megamenu__support-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--header-accent);
    text-decoration: none;
    margin-top: auto;
    transition: opacity 0.2s ease;
}

.gdm-megamenu__support-link:hover {
    opacity: 0.75;
}

/* Mega menu responsive: less columns on medium screens */
@media (max-width: 1280px) {
    .gdm-megamenu__grid {
        grid-template-columns: repeat(3, 1fr) minmax(180px, 0.8fr);
    }
}

@media (max-width: 1024px) {
    .gdm-megamenu {
        display: none;
    }
}

/* Mega menu scrollable at constrained viewport heights */
@media (max-height: 700px) {
    .gdm-megamenu__container {
        max-height: 60vh;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--header-border) transparent;
    }
}

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

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

.gdm-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gdm-drawer.is-open .gdm-drawer__backdrop {
    opacity: 1;
}

.gdm-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(85vw, 380px);
    background: var(--drawer-bg);
    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;
}

.gdm-drawer.is-open .gdm-drawer__panel {
    transform: translateX(0);
}

.gdm-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem var(--header-gutter);
    border-bottom: 1px solid var(--header-border);
    flex-shrink: 0;
}

.gdm-drawer__logo-link {
    display: inline-flex;
    align-items: center;
}

.gdm-drawer__logo {
    width: clamp(120px, 28vw, 176px);
    height: auto;
}

.gdm-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--header-border);
    border-radius: 8px;
    color: var(--header-fg);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.gdm-drawer__close:hover {
    border-color: var(--header-accent);
    color: var(--header-accent);
}

/* Drawer navigation */
.gdm-drawer__nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

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

.gdm-drawer__item {
    border-bottom: 1px solid rgba(45, 45, 53, 0.5);
}

.gdm-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--header-fg);
    text-decoration: none;
    padding: 1rem var(--header-gutter);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease, background 0.2s ease;
}

.gdm-drawer__link:hover {
    color: var(--header-accent);
    background: rgba(0, 229, 255, 0.03);
}

.gdm-drawer__item.is-active > .gdm-drawer__link {
    color: var(--header-accent);
}

.gdm-drawer__chevron {
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.gdm-drawer__item--expandable.is-expanded .gdm-drawer__chevron {
    transform: rotate(180deg);
}

/* Drawer submenu */
.gdm-drawer__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: rgba(0, 0, 0, 0.15);
}

.gdm-drawer__item--expandable.is-expanded .gdm-drawer__submenu {
    max-height: 800px;
}

.gdm-drawer__subitem {
    border-top: 1px solid rgba(45, 45, 53, 0.3);
}

.gdm-drawer__sublink {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    color: var(--header-fg-muted);
    text-decoration: none;
    padding: 0.75rem var(--header-gutter) 0.75rem calc(var(--header-gutter) + 1rem);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.gdm-drawer__sublink:hover {
    color: var(--header-accent);
    padding-left: calc(var(--header-gutter) + 1.25rem);
}

/* Drawer footer */
.gdm-drawer__footer {
    flex-shrink: 0;
    padding: 1.25rem var(--header-gutter);
    border-top: 1px solid var(--header-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gdm-drawer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    min-width: 0;
}

.gdm-drawer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    color: var(--header-fg-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-all;
}

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

.gdm-drawer__contact-link svg {
    flex-shrink: 0;
}

/* Drawer language switcher */
.gdm-drawer__lang {
    padding-top: 0.5rem;
}

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

.gdm-drawer__lang .jcm-language-switcher ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    color: var(--header-fg-muted);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--header-border);
    border-radius: 6px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.gdm-drawer__lang .jcm-language-switcher ul li a:hover,
.gdm-drawer__lang .jcm-language-switcher ul li.active a {
    color: var(--header-accent);
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.04);
}

/* Drawer language dropdown variant */
.gdm-drawer__lang .jcm-language-switcher-dropdown .jcm-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    color: var(--header-fg-muted);
    background: none;
    border: 1px solid var(--header-border);
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.gdm-drawer__lang .jcm-language-switcher-dropdown .jcm-dropdown-toggle:hover {
    color: var(--header-accent);
    border-color: rgba(0, 229, 255, 0.3);
}

.gdm-drawer__lang .jcm-language-switcher-dropdown .jcm-dropdown-menu {
    position: relative;
    top: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--header-border);
    border-radius: 8px;
    padding: 0.375rem 0;
    list-style: none;
    margin: 0;
}

.gdm-drawer__lang .jcm-language-switcher-dropdown .jcm-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    color: var(--header-fg-muted);
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.gdm-drawer__lang .jcm-language-switcher-dropdown .jcm-dropdown-menu li a:hover {
    background: rgba(0, 229, 255, 0.06);
    color: var(--header-accent);
}

/* ===== Mobile-specific responsive rules ===== */
@media (max-width: 767px) {
    .gdm-header-main__container {
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
        padding: 0.875rem var(--header-gutter);
    }

    .gdm-header__brand {
        grid-column: 1;
    }

    .gdm-header__nav {
        display: none;
    }

    .gdm-header__actions {
        grid-column: 2;
    }

    .gdm-logo {
        width: clamp(120px, 28vw, 176px);
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .gdm-header-main__container {
        grid-template-columns: 1fr auto;
    }

    .gdm-header__nav {
        display: none;
    }

    .gdm-header__actions {
        grid-column: 2;
    }

    .gdm-logo {
        width: clamp(140px, 18vw, 190px);
    }
}

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

/* ===== Accessibility: focus-visible ===== */
.gdm-nav-link:focus-visible,
.gdm-header__cta-btn:focus-visible,
.gdm-header__hamburger:focus-visible,
.gdm-drawer__link:focus-visible,
.gdm-drawer__close:focus-visible,
.gdm-topbar__contact-link:focus-visible,
.gdm-megamenu__link:focus-visible,
.gdm-megamenu__cat-title:focus-visible,
.gdm-megamenu__view-all:focus-visible,
.gdm-megamenu__support-link:focus-visible {
    outline: 2px solid var(--header-accent);
    outline-offset: 2px;
}

/* ===== Print: hide header ===== */
@media print {
    .gdm-header,
    .gdm-header-spacer,
    .gdm-drawer {
        display: none !important;
    }
}
