/* ============================================================
   EGER — Header & Navigation
   ============================================================ */

:root {
    --nav-h: 92px;
    --nav-h-solid: 72px;
}

/* ---- Nav shell ---- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
}

.nav {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0 48px;
    color: var(--eger-cream);
    transition: background 0.45s ease, box-shadow 0.45s ease, height 0.35s ease;
    background: linear-gradient(180deg, rgba(20,16,14,0.6) 0%, rgba(20,16,14,0) 100%);
    position: relative;
    z-index: 10;
}

.nav.solid {
    background: var(--eger-espresso);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
    height: var(--nav-h-solid);
}

/* ---- Nav inner grid ---- */
.nav-inner {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

/* ---- Nav links ---- */
.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links li a {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -3px;
    height: 1px;
    background: var(--eger-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after { transform: scaleX(1); }
.nav-links li a:hover { color: var(--eger-gold); }

.mega-caret {
    margin-left: 6px;
    opacity: 0.5;
    font-size: 13px;
    font-style: normal;
}

/* ---- Logo ---- */
.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.nav-logo img {
    height: 168px;
    width: auto;
    display: block;
    transition: opacity 0.3s, transform 0.3s, height 0.3s;
}

.nav.solid .nav-logo img { height: 56px; }
.nav-logo:hover img { transform: scale(1.03); opacity: 0.88; }

@media (min-width: 901px) {
    .nav-logo { transform: translateY(40px); }
    .nav.solid .nav-logo { transform: translateY(0); }
}

/* ---- Right cluster ---- */
.nav-cta {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

/* ---- Language toggle ---- */
.lang-toggle {
    display: flex;
    align-items: center;
    background: rgba(245,240,235,0.1);
    border: 1px solid rgba(245,240,235,0.18);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    height: 32px;
    flex-shrink: 0;
}

.lang-toggle .lang-slider {
    position: absolute;
    top: 0; left: 0;
    height: 100%; width: 50%;
    background: var(--eger-cream);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.lang-toggle .lang-slider.lang-slider--en { transform: translateX(100%); }

.lang-toggle .lang-opt {
    position: relative;
    z-index: 1;
    padding: 0 13px;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(245,240,235,0.5);
    transition: color 0.2s;
    line-height: 32px;
    font-family: var(--eger-sans);
}

.lang-toggle .lang-opt.active { color: var(--eger-espresso); }
.lang-toggle .lang-opt:hover:not(.active) { color: rgba(245,240,235,0.85); }

/* ---- Reserve CTA ---- */
.nav-reserve {
    border: 1px solid rgba(245,240,235,0.5);
    padding: 10px 22px;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--eger-cream);
    text-decoration: none;
    transition: background 0.28s, border-color 0.28s, color 0.28s;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--eger-sans);
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    line-height: normal;
    display: inline-block;
}

.nav-reserve:hover {
    background: var(--eger-gold);
    border-color: var(--eger-gold);
    color: var(--eger-ink);
}

/* ============================================================
   Megamenu
   ============================================================ */

.megamenu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--eger-espresso);
    color: var(--eger-cream);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 20;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.nav.transparent + .megamenu,
.megamenu {
    background: rgba(22,17,14,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.mega-panel { display: none; }
.mega-panel.active { display: block; }

.megamenu-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 48px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 56px;
}

/* ---- Mega columns ---- */
.mega-col-title {
    display: block;
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--eger-gold);
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201,168,76,0.25);
    font-family: var(--eger-sans);
}

.mega-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-col li a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    font-size: 15px;
    font-family: var(--eger-serif);
    color: var(--eger-cream);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s, transform 0.18s;
    letter-spacing: 0.01em;
}

.mega-col li a::after { display: none; }
.mega-col li a:hover { color: var(--eger-gold); transform: translateX(5px); }

.mega-meta {
    font-family: var(--eger-sans);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245,240,235,0.45);
    font-weight: 400;
}

/* ---- Mega feature card ---- */
.mega-feature {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 24px;
    padding: 16px;
    border: 1px solid rgba(245,240,235,0.1);
    text-decoration: none;
    color: var(--eger-cream);
    transition: background 0.2s, border-color 0.2s;
    align-items: center;
    align-self: start;
}

.mega-feature::after { display: none; }
.mega-feature:hover { background: rgba(245,240,235,0.06); border-color: rgba(201,168,76,0.3); }

.mega-feature-img {
    width: 130px;
    height: 130px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.mega-feature-title {
    display: block;
    font-family: var(--eger-serif);
    font-size: 20px;
    color: var(--eger-cream);
    margin-bottom: 8px;
    font-weight: 500;
}

.mega-feature-body p {
    font-size: 13px;
    color: rgba(245,240,235,0.65);
    line-height: 1.5;
    margin-bottom: 14px;
}

.mega-feature-cta {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--eger-gold);
    font-family: var(--eger-sans);
    font-weight: 600;
}

/* ============================================================
   Hamburger
   ============================================================ */

.nav-burger {
    display: none;
    position: fixed;
    top: 20px; right: 24px;
    z-index: 300;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
    transition: opacity 0.2s;
}

.nav-burger.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.nav-burger span {
    display: block;
    height: 1.5px;
    background: var(--eger-cream);
    border-radius: 1px;
    transition: width 0.25s;
}

.nav-burger span:nth-child(1) { width: 28px; }
.nav-burger span:nth-child(2) { width: 20px; }
.nav-burger span:nth-child(3) { width: 24px; }

/* ============================================================
   Mobile Drawer
   ============================================================ */

.nav-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(380px, 100vw);
    height: 100dvh;
    background: var(--eger-espresso);
    color: var(--eger-cream);
    z-index: 250;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    visibility: hidden;
}

.nav-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.nav-drawer__inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px 32px 48px;
}

.nav-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

.nav-drawer__head img {
    height: 44px;
    width: auto;
}

.nav-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(245,240,235,0.6);
    padding: 6px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.nav-drawer__close:hover { color: var(--eger-cream); }

.nav-drawer__nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.nav-drawer__nav li a {
    display: block;
    font-family: var(--eger-serif);
    font-size: 26px;
    font-weight: 400;
    color: var(--eger-cream);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(245,240,235,0.08);
    transition: color 0.2s, transform 0.2s;
    letter-spacing: 0.02em;
}

.nav-drawer__nav li a:hover {
    color: var(--eger-gold);
    transform: translateX(6px);
}

.nav-drawer__foot {
    margin-top: auto;
    padding-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20,16,14,0.6);
    z-index: 240;
    backdrop-filter: blur(2px);
}

.nav-overlay.active { display: block; }

/* ============================================================
   RWD
   ============================================================ */

@media (max-width: 1200px) {
    .nav { padding: 0 32px; }
    .nav-links { gap: 20px; }
    .nav-cta { gap: 14px; }
    .nav-reserve { padding: 10px 16px; }
}

@media (max-width: 1024px) {
    .nav-links { gap: 16px; }
    .nav-links li a { font-size: 10.5px; letter-spacing: 0.14em; }
}

@media (max-width: 900px) {
    .nav-links,
    .nav-cta,
    .megamenu { display: none; }

    .nav-burger { display: flex; }

    .nav { padding: 0 24px; }
    .nav-inner {
        display: flex;
        justify-content: center;
    }

    .nav-logo { transform: translateY(38px); }
    .nav.solid .nav-logo { transform: translateY(0); }
    .nav.solid .nav-logo img { height: 48px; }
}

@media (max-width: 480px) {
    .nav-logo img { height: 132px; }
    .nav-logo { transform: translateY(28px); }
    .nav.solid .nav-logo { transform: translateY(0); }
    .nav.solid .nav-logo img { height: 44px; }
    .nav-drawer { width: 100vw; }
    .nav-drawer__nav li a { font-size: 22px; padding: 12px 0; }
}

/* ---- GTranslate widget inside lang-toggle ---- */
.lang-toggle .gtranslate_wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 0; /* ukrywa spacje między linkami */
}

.lang-toggle .gtranslate_wrapper a.glink {
    position: relative;
    z-index: 1;
    padding: 0 13px;
    font-size: 10px !important;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600 !important;
    color: rgba(245,240,235,0.5) !important;
    transition: color 0.2s;
    line-height: 32px;
    font-family: var(--eger-sans);
    text-decoration: none !important;
    display: block;
    background: none !important;
}

.lang-toggle .gtranslate_wrapper a.glink.gt-current-lang {
    color: var(--eger-espresso) !important;
    font-weight: 600 !important;
}

.lang-toggle .gtranslate_wrapper a.glink:hover:not(.gt-current-lang) {
    color: rgba(245,240,235,0.85) !important;
}

.lang-toggle .gtranslate_wrapper a.glink[data-gt-lang="pl"] { order: 1; }
.lang-toggle .gtranslate_wrapper a.glink[data-gt-lang="en"] { order: 2; }
