/**
 * Navbar
 *
 * Pôvodne WPCode snippet #39 (STYLE).
 */

.as-nav-wrap,
.as-nav-wrap * {
    box-sizing: border-box;
}

.as-nav-wrap {
    position: relative;
    z-index: 50;
    width: 100%;
    --as-nav-border: rgba(255,255,255,.10);
    --as-nav-border-strong: rgba(255,255,255,.18);
}

.as-nav {
    width: 100%;
    padding: 25px 28px;
    position: relative;
    z-index: 60;
}

.as-nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.as-nav__left,
.as-nav__center,
.as-nav__right {
    display: flex;
    align-items: center;
    min-width: 0;
}

.as-nav__left {
    justify-content: flex-start;
}

.as-nav__center {
    justify-content: center;
}

.as-nav__right {
    justify-content: flex-end;
}

.as-nav__logo,
.as-nav-panel__logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .45s cubic-bezier(.22,1,.36,1), filter .35s ease;
    z-index: 2;
}

.as-nav__logo img,
.as-nav-panel__logo img {
    display: block;
    width: auto;
    max-height: 75px;
    max-width: 260px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.as-nav__logo:hover {
    transform: translateY(-1px) scale(1.03);
    filter: brightness(1.08);
}

.as-nav__logo-glow {
    position: absolute;
    inset: -8px;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.18), transparent 60%);
    opacity: 0;
    filter: blur(14px);
    transition: opacity .35s ease, transform .45s cubic-bezier(.22,1,.36,1);
    z-index: 1;
    pointer-events: none;
}

.as-nav__logo:hover .as-nav__logo-glow {
    opacity: 1;
    transform: scale(1.08);
}

.as-nav__logo-fallback {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.02em;
}

.as-nav__menu-trigger,
.as-nav__cta {
    appearance: none;
    border: 1px solid var(--as-nav-border);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 32px rgba(0,0,0,.24);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: #fff !important;
    height: 74px;
    padding: 0 10px 0 26px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition:
        transform .35s cubic-bezier(.22,1,.36,1),
        border-color .25s ease,
        box-shadow .25s ease;
    text-decoration: none !important;
    width: max-content;
    min-width: 0;
    max-width: none;
    flex: 0 0 auto;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.as-nav__menu-trigger {
    min-width: 188px;
}

.as-nav__menu-trigger,
.as-nav__menu-trigger:hover,
.as-nav__menu-trigger:focus,
.as-nav__menu-trigger:active,
.as-nav__cta,
.as-nav__cta:hover,
.as-nav__cta:focus,
.as-nav__cta:active,
.as-nav__cta:visited {
    color: #fff !important;
    text-decoration: none !important;
}

.as-nav__menu-trigger:hover,
.as-nav__cta:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: var(--as-nav-border-strong);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 40px rgba(0,0,0,.28);
}

.as-nav__menu-trigger-text {
    position: relative;
    display: block;
    height: 1.1em;
    line-height: 1.1;
    overflow: hidden;
    width: max-content;
    min-width: max-content;
    flex: 0 0 auto;
    text-align: left;
}

.as-nav__menu-trigger-word {
    display: block;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.05em;
    font-weight: 600;
    color: #fff !important;
    transform: translate3d(0,0,0);
    transition: transform .42s cubic-bezier(.22,1,.36,1);
    white-space: nowrap;
    text-transform: lowercase;
}

.as-nav__menu-trigger-word--top {
    transform: translateY(0%);
}

.as-nav__menu-trigger-word--bottom {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(0%);
}

.as-nav__menu-trigger:hover .as-nav__menu-trigger-word--top {
    transform: translateY(-110%);
}

.as-nav__menu-trigger:hover .as-nav__menu-trigger-word--bottom {
    transform: translateY(-110%);
}

.as-nav__cta-label {
    display: block;
    white-space: nowrap;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 600;
    color: #fff !important;
    flex: 0 0 auto;
}

.as-nav__menu-trigger-icon,
.as-nav__cta-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition:
        transform .42s cubic-bezier(.22,1,.36,1),
        box-shadow .28s ease,
        background .28s ease;
    flex: 0 0 auto;
}

.as-nav__menu-trigger-icon {
    background: #ff3600;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 10px 22px rgba(255,54,0,.28);
}

.as-nav__cta-icon {
    background: #177a43;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 10px 22px rgba(23,122,67,.32);
}

.as-nav__menu-trigger-icon svg,
.as-nav__cta-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    transform: translateX(0) translateY(0);
    transition: transform .42s cubic-bezier(.22,1,.36,1);
}

.as-nav__menu-trigger:hover .as-nav__menu-trigger-icon,
.as-nav__cta:hover .as-nav__cta-icon {
    transform: scale(1.08) rotate(8deg);
}

.as-nav__menu-trigger:hover .as-nav__menu-trigger-icon {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        0 16px 30px rgba(255,54,0,.34);
}

.as-nav__cta:hover .as-nav__cta-icon {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        0 16px 30px rgba(23,122,67,.38);
}

.as-nav__menu-trigger:hover .as-nav__menu-trigger-icon svg,
.as-nav__cta:hover .as-nav__cta-icon svg {
    transform: translateX(2px) translateY(-1px);
}

.as-nav-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
}

.as-nav-panel.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.as-nav-panel__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,.045), transparent 35%),
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.025), transparent 25%),
        linear-gradient(180deg, rgba(5,5,8,.98), rgba(2,2,3,.995));
    backdrop-filter: blur(20px) saturate(118%);
    -webkit-backdrop-filter: blur(20px) saturate(118%);
}

.as-nav-panel__noise {
    position: absolute;
    inset: 0;
    opacity: .04;
    background-image: radial-gradient(rgba(255,255,255,.7) 0.55px, transparent 0.55px);
    background-size: 10px 10px;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.as-nav-panel__topbar {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
}

.as-nav-panel__brand {
    pointer-events: none;
    display: flex;
    justify-content: center;
    width: 100%;
}

.as-nav-panel__logo--gravity {
    pointer-events: auto;
}

.as-nav-panel__logo--gravity img {
    max-height: 62px;
    max-width: 200px;
}

.as-nav-panel__close {
    position: relative;
}

.as-nav-panel__close--gravity {
    pointer-events: auto;
    position: absolute;
    top: 0;
    right: 16px;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 30px rgba(0,0,0,.22);
    cursor: pointer;
    transition: transform .25s ease, border-color .25s ease;
}

.as-nav-panel__close--gravity:hover {
    transform: rotate(90deg) scale(1.03);
    border-color: rgba(255,255,255,.18);
}

.as-nav-panel__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 1.8px;
    border-radius: 10px;
    background: rgba(255,255,255,.92);
}

.as-nav-panel__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.as-nav-panel__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.as-nav-panel__world {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.as-nav-panel__pill {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    color: #000 !important;
    text-decoration: none;
    user-select: none;
    will-change: transform;
    transform-origin: center center;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        0 18px 40px rgba(0,0,0,.25);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.as-nav-panel__pill,
.as-nav-panel__pill:hover,
.as-nav-panel__pill:focus,
.as-nav-panel__pill:active,
.as-nav-panel__pill:visited,
.as-nav-panel__pill span,
.as-nav-panel__pill:hover span,
.as-nav-panel__pill:focus span,
.as-nav-panel__pill:active span,
.as-nav-panel__pill:visited span {
    color: #000 !important;
    text-decoration: none !important;
}

.as-nav-panel__pill span {
    display: block;
    line-height: 1.02;
    letter-spacing: -0.075em;
    font-weight: 400;
    text-transform: none;
    padding-top: 30px;
    padding-bottom: 30px;
}

.as-nav-panel__pill--orange {
    background: #ff8a00;
}

.as-nav-panel__pill--green {
    background: #177a43;
}

.as-nav-panel__pill--pink {
    background: #f6bfd1;
}

.as-nav-panel__pill--red {
    background: #ff4b08;
}

body.as-nav-lock {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 1024px) {
    .as-nav {
        padding: 23px 18px;
    }

    .as-nav__logo img {
        max-height: 40px;
        max-width: 140px;
    }

    .as-nav__menu-trigger,
    .as-nav__cta {
        height: 68px;
        padding-left: 22px;
    }

    .as-nav__menu-trigger {
        min-width: 176px;
    }
}

@media (max-width: 767px) {
    .as-nav-wrap,
    .as-nav,
    .as-nav__inner,
    .as-nav__left,
    .as-nav__center,
    .as-nav__menu-trigger {
        position: relative;
        z-index: 9999;
    }

    .as-nav {
        padding: 19px 14px;
    }

    .as-nav__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .as-nav__left {
        grid-column: 1;
        justify-content: flex-start;
        overflow: hidden;
    }

    .as-nav__center {
        grid-column: 2;
        justify-content: flex-end;
        display: flex !important;
    }

    .as-nav__right {
        display: none !important;
    }

    .as-nav__logo {
        max-width: 100%;
    }

    .as-nav__logo img {
        max-height: 36px;
        max-width: 130px;
    }

    .as-nav__menu-trigger {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        min-width: 152px;
        height: 62px;
        padding: 0 8px 0 18px;
        gap: 12px;
        flex-shrink: 0;
    }

    .as-nav__menu-trigger-text {
        display: block !important;
    }

    .as-nav__menu-trigger-word {
        font-size: 17px;
    }

    .as-nav__menu-trigger-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .as-nav__menu-trigger-icon svg {
        width: 21px;
        height: 21px;
    }

    .as-nav-panel__topbar {
        top: 22px;
    }

    .as-nav-panel__logo--gravity img {
        max-height: 46px;
        max-width: 150px;
    }

    .as-nav-panel__close--gravity {
        width: 56px;
        height: 56px;
        right: 12px;
    }

    .as-nav-panel__pill span {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .as-nav-wrap *,
    .as-nav-panel {
        transition: none !important;
    }
}
