:root {
    --ac-h-height-desktop: 72px;
    --ac-h-height-mobile: 60px;
    --ac-h-bg: #ffffff;
    --ac-h-fg: var(--ac-fg, #0f172a);
    --ac-h-accent: var(--ac-brand, #16a34a);
    --ac-h-border: color-mix(in srgb, var(--ac-h-fg) 10%, transparent);
    --ac-h-shadow: 0 2px 10px color-mix(in srgb, var(--ac-h-fg) 8%, transparent);
    --ac-h-radius: 10px;
    --ac-h-space-x: clamp(.75rem, 2vw, 1.5rem);
    --ac-h-height: var(--ac-h-height-desktop);
}
#pxl-header-elementor.ac-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ac-h-bg);
    color: var(--ac-h-fg);
    border-block-end: 1px solid var(--ac-h-border);
    transition: box-shadow .2s ease;
}
.ac-header *, .ac-header *::before, .ac-header *::after { box-sizing: border-box; }
.ac-header.is-sticky-active { box-shadow: var(--ac-h-shadow); }
/* Keep the legacy hook inert: only the outer landmark is sticky. */
#pxl-header-elementor .ac-header__inner {
    position: static;
    transform: none;
    visibility: visible;
    transition: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: var(--ac-h-height);
    max-width: 1560px;
    margin-inline: auto;
    padding-inline: var(--ac-h-space-x);
    gap: var(--ac-h-space-x);
}
.ac-header a { color: inherit; text-decoration: none; }
.ac-header button, .ac-header summary { font: inherit; color: inherit; cursor: pointer; }
.ac-header ul { list-style: none; margin: 0; padding: 0; }
.ac-header__brand { flex: 0 0 auto; }
.ac-header__brand img, .ac-drawer__brand img { display: block; width: auto; height: 36px; }
.ac-header__menu, .ac-header__actions { display: flex; align-items: center; gap: clamp(.5rem, 1.3vw, 1.25rem); }
.ac-header__menu a, .ac-header__login, .ac-header__language summary { display: flex; align-items: center; min-height: 44px; padding-inline: .5rem; white-space: nowrap; }
.ac-header a:hover, .ac-header a[aria-current="page"] { color: var(--ac-h-accent); }
.ac-header .ac-header__signup, .ac-header .aora-drawer-auth__sign-up {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
    padding: .5rem 1rem; border-radius: var(--ac-h-radius); background: var(--ac-h-accent); color: #fff; white-space: nowrap;
}
.ac-header__language { position: relative; }
.ac-header__language ul { position: absolute; inset-inline-end: 0; min-width: 140px; padding: .5rem; background: var(--ac-h-bg); border: 1px solid var(--ac-h-border); border-radius: var(--ac-h-radius); box-shadow: var(--ac-h-shadow); }
.ac-header__language a { display: block; padding: .5rem; }
.ac-header :focus-visible, .ac-skip-link:focus-visible { outline: 3px solid var(--ac-h-accent); outline-offset: 3px; }
.ac-skip-link { position: fixed; inset-block-start: 0; inset-inline-start: 1rem; transform: translateY(-150%); z-index: 60; padding: .75rem 1rem; background: var(--ac-h-bg); color: var(--ac-h-fg); }
.ac-skip-link:focus { transform: none; }
.ac-header .aora-drawer-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 44px; height: 44px; padding: 8px; border: 1px solid var(--ac-h-border); border-radius: var(--ac-h-radius); background: var(--ac-h-bg); }
.aora-drawer-toggle span { display: block; width: 20px; height: 2px; background: currentColor; }
#aora-mobile-drawer { position: fixed; inset-block: .5rem; inset-inline-end: .5rem; width: min(360px, calc(100vw - 1rem)); overflow-y: auto; overscroll-behavior: contain; z-index: 52; padding: 1.5rem; background: var(--ac-h-bg); border: 1px solid var(--ac-h-border); border-radius: 12px; box-shadow: var(--ac-h-shadow); }
.ac-header [hidden] { display: none !important; }
.ac-header .aora-drawer-close { display: block; margin-inline-start: auto; width: 44px; height: 44px; border: 0; border-radius: var(--ac-h-radius); background: transparent; font-size: 28px; }
.ac-drawer__brand { display: block; margin-block: 0 1.5rem; }
.aora-drawer-nav a, .aora-drawer-lang__option { display: block; padding: .75rem; border-radius: var(--ac-h-radius); }
.aora-drawer-auth { display: flex; flex-direction: column; gap: .5rem; margin-block: 1rem; padding-block: 1rem; border-block: 1px solid var(--ac-h-border); }
.aora-drawer-auth__sign-in { text-align: center; padding: .75rem; }
.aora-drawer-lang__toggle { display: flex; justify-content: space-between; gap: .5rem; width: 100%; min-height: 44px; padding: .75rem; background: transparent; border: 0; text-align: start; }
.aora-drawer-lang__option.is-active { color: var(--ac-h-accent); background: color-mix(in srgb, var(--ac-h-accent) 8%, transparent); }
.aora-drawer-backdrop { position: fixed; inset: 0; z-index: 51; background: rgb(15 23 42 / .35); }
@supports (backdrop-filter: blur(4px)) { .aora-drawer-backdrop { backdrop-filter: blur(4px); } }
/* Anchor clearance follows the in-flow header height, not a layout spacer. */
html { scroll-padding-block-start: var(--ac-h-height); }
@media (max-width: 1200px) {
    :root { --ac-h-height: var(--ac-h-height-mobile); }
    .ac-header__inner > nav, .ac-header__login, .ac-header__language { display: none; }
    .ac-header .aora-drawer-toggle { display: flex; }
    .ac-header__brand img { height: 28px; }
    .ac-header__actions { gap: .5rem; }
    .ac-header .ac-header__signup { font-size: .8rem; padding-inline: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ac-header, .ac-header *, .ac-drawer, .ac-drawer * { transition: none !important; animation: none !important; }
}
