/* Glass navigation and the original Asquare brand artwork. */
header.main-header.glass-header {
    top: 24px;
    left: 24px;
    right: 24px;
}

.glass-header .header-sticky {
    background: rgba(18, 18, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 32px rgba(0, 0, 0, 0.12);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

header.glass-header .header-sticky {
    background-color: rgba(18, 18, 18, 0.55);
    border-radius: 24px;
}

.glass-header .navbar {
    padding: 0 22px 0 28px;
    min-height: 104px;
}

.glass-header .navbar > .container {
    max-width: none;
    padding: 0;
    flex-wrap: nowrap;
}

.glass-header .navbar-brand {
    position: relative;
    flex-shrink: 0;
    padding-right: 48px;
    margin-right: 26px;
}

.glass-header .navbar-brand::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    height: 60px;
    width: 1px;
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%);
}

.glass-header .brand-logo {
    display: block;
    position: relative;
    width: 106px;
    height: 102px;
}

.glass-header .brand-logo img {
    position: absolute;
    width: 106px;
    height: 106px;
    max-width: none;
    left: 0;
    top: -2px;
    object-fit: contain;
}

.glass-header .brand-original {
    clip-path: inset(0 0 25% 0);
}

/* Keep the orange emblem intact while making its script readable on glass. */
.glass-header .brand-wordmark {
    filter: brightness(0) invert(1);
    clip-path: inset(75% 0 0 0);
}

.glass-header .main-menu {
    min-width: 0;
}

.glass-header .nav-menu-wrapper {
    margin: 0 24px 0 0;
}

.glass-header .nav-menu-wrapper > ul {
    display: flex;
    justify-content: space-evenly;
    gap: 12px;
}

.glass-header .main-menu ul li {
    margin: 0;
}

.glass-header .main-menu ul li a {
    color: #fff;
    font-size: 15px;
    white-space: nowrap;
    padding: 15px 6px !important;
}

.glass-header .main-menu a.active,
.glass-header .main-menu a:hover,
.glass-header .main-menu a:focus-visible {
    color: #ff570b;
}

.glass-header .nav-menu-wrapper > ul > li > a.active::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 6px;
    right: 6px;
    height: 2px;
    background: #ff570b;
}

.glass-header .header-btn {
    flex-shrink: 0;
}

.glass-header .header-btn .btn-default {
    min-width: 166px;
    background: #ff5315;
    border-radius: 13px;
    padding: 22px 52px 22px 25px;
    font-size: 15px;
    line-height: 18px;
    white-space: nowrap;
}

.glass-header .header-btn .btn-default::before {
    right: 24px;
}

.glass-header .main-menu ul li.submenu > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    margin-left: 9px;
}

.glass-header .main-menu ul ul {
    background: #252525;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.glass-header .main-menu ul ul li a {
    padding: 10px 20px !important;
}

.glass-header .main-menu li:focus-within > ul {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    padding: 5px 0;
}

.glass-header a:focus-visible {
    outline: 2px solid #ff7a40;
    outline-offset: 4px;
}

/* Fix: when scrolled, .header-sticky gets "active" and its background turns
   solid white (see custom.css), but the glass-header nav links/logo were
   styled white-on-transparent for the hero — making everything but the
   orange active link invisible. Switch them to dark once the bar is solid. */
.glass-header .header-sticky.active .main-menu ul li a {
    color: #1b1b1b;
}

.glass-header .header-sticky.active .main-menu a.active,
.glass-header .header-sticky.active .main-menu a:hover,
.glass-header .header-sticky.active .main-menu a:focus-visible {
    color: #ff570b;
}

.glass-header .header-sticky.active .navbar-brand::after {
    background: rgba(0, 0, 0, 0.15);
}

.glass-header .header-sticky.active .brand-wordmark {
    filter: none;
}

/* Fix: dropdown links were dark-on-dark once the bar turned solid white,
   because the rule above also matched links inside the (dark) dropdown. */
.glass-header .header-sticky.active .main-menu ul ul li a {
    color: #fff;
}

.glass-header .header-sticky.active .main-menu ul ul li a:hover,
.glass-header .header-sticky.active .main-menu ul ul li a:focus-visible,
.glass-header .header-sticky.active .main-menu ul ul li a.active {
    color: #ff7a40;
}

/* Vertically centre logo, menu and button on the same line */
.glass-header .navbar > .container,
.glass-header .main-menu,
.glass-header .nav-menu-wrapper > ul {
    align-items: center;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .glass-header .navbar { padding: 0 18px; }
    .glass-header .navbar-brand { padding-right: 24px; margin-right: 18px; }
    .glass-header .nav-menu-wrapper { margin-right: 18px; }
    .glass-header .nav-menu-wrapper > ul { gap: 4px; }
    .glass-header .main-menu ul li a { font-size: 14px; }
    .glass-header .header-btn .btn-default { padding-left: 18px; padding-right: 43px; }
}

@media (max-width: 1199px) {
    header.main-header.glass-header { position: absolute; top: 16px; left: 16px; right: 16px; }
    header.glass-header .header-sticky { border-radius: 20px; }
    .glass-header .navbar { min-height: 86px; padding: 0 20px; }
    .glass-header .navbar-brand { margin: 0; padding-right: 24px; }
    .glass-header .navbar-brand::after { height: 46px; }
    .glass-header .brand-logo { width: 88px; height: 84px; }
    .glass-header .brand-logo img { width: 88px; height: 88px; }
    .glass-header .slicknav_btn { background: #ff5315; width: 42px; height: 42px; border-radius: 10px; }
    .glass-header .slicknav_menu { background: transparent; border-radius: 0 0 20px 20px; }
    .glass-header .slicknav_nav { background: #252525; border-radius: 0 0 20px 20px; max-height: 70vh; overflow-y: auto; padding: 8px 0; }
    .glass-header .slicknav_nav a.active { color: #ff7a40; }
    .glass-header + .hero { padding-top: 155px; }
}
