/* ═══════════════════════════════════════════════════════════════
   HEADER.CSS — Butcher's Burger & Steak House
   DynaWasp © 2026
═══════════════════════════════════════════════════════════════ */

/* ── Site Header ────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    height: 100px;
}

/* Inner wrapper — max 1280px, centered, same padding as .container */
.site-header__inner {
    max-width: var(--container-max);
    margin: 20px auto 0;
    padding: 0 var(--container-pad);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ── Hamburger ──────────────────────────────────────────────── */

.menu-toggle-container {
	position: absolute;
    left: var(--container-pad);
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
	z-index: var(--z-toggle);
    padding: 12px;
    background: var(--color-white);
    border-radius: 100%;
}

.menu-toggle {
    width: 100%;
    height: 20px;
    cursor: pointer;
	display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle__line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background-color: var(--color-secondary);
    transition: background 150ms ease, transform 220ms ease, opacity 220ms ease;
}

/* Λευκές γραμμές σε dark/hero background */
.menu-toggle--light .menu-toggle__line,
body.header-light .menu-toggle .menu-toggle__line {
    background-color: var(--color-secondary);
}

/* X όταν ανοιχτό */
.menu-toggle.is-open .menu-toggle__line {
    background-color: var(--color-white);
}
.menu-toggle.is-open .menu-toggle__line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle.is-open .menu-toggle__line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ── Logo (center) ──────────────────────────────────────────── */

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    z-index: var(--z-toggle);
    background-color: var(--color-white);
    border-radius: 50%;
    padding: 7px;
    transition: opacity 150ms ease;
}

.site-logo:hover { opacity: .85; }

.site-logo__img {
    width: 84px;
    height: 84px;
    object-fit: contain;
}

.site-logo__img--dark  { display: block; }
.site-logo__img--white { display: none; }

body.menu-open .site-logo__img--dark  { display: none; }
body.menu-open .site-logo__img--white { display: block; }

/* ── Language Switcher ──────────────────────────────────────── */

.lang-switch {
    position: absolute;
    right: var(--container-pad);
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-toggle);

    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;

    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--color-secondary);
    text-decoration: none;

    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.lang-switch:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* Λευκό variant */
.lang-switch--light,
body.header-light .lang-switch {
    background-color: var(--color-white);
    color: var(--color-secondary);
}

body.header-light .lang-switch:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* ── Nav Panel ──────────────────────────────────────────────── */

.nav-overlay {
    position: fixed;
    top: 112px;
    left: 44px;
    z-index: var(--z-overlay);
    background-color: var(--color-secondary);
    padding: 32px 48px 40px 40px;

    transform: translateX(calc(-100% - 44px));
    opacity: 0;
    pointer-events: none;
    transition: transform 300ms ease-in, opacity 300ms ease-in;
}

.nav-overlay.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-overlay__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.nav-overlay__link {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.25;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: -.03em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 150ms ease;
}

.nav-overlay__link:hover,
.nav-overlay__link.is-active {
    color: var(--color-primary);
}

/* ── Responsive ─────────────────────────────────────────────── */

@media(max-width:1024px){
    .site-header{
        height:80px;
    }

    .site-header__inner{
        max-width:100%;
        margin:10px auto 0;
        justify-content:space-between;
    }

    .site-logo{
        order:1;
        margin-right:auto;
    }

    .site-logo__img{
        width:60px;
        height:60px;
    }

    .menu-toggle-container{
        order:2;
        position:relative;
        left:auto;
        top:auto;
        transform:none;
        width:44px;
        height:44px;
        padding:10px;
        margin-left:auto;
        margin-right:10px;
    }

    .lang-switch{
        order:3;
        position:relative;
        right:auto;
        top:auto;
        transform:none;
        width:44px;
        height:44px;
        font-size:11px;
    }

    .nav-overlay{
        top:90px;
        left:var(--container-pad);
        right:var(--container-pad);
        padding:24px;
        transform:translateY(-20px);
    }

    .nav-overlay.is-open{
        transform:translateY(0);
    }
}

@media (max-width: 768px) {
    .site-header         { height: 80px; }
    .site-logo__img      { width: 60px; height: 60px; }
    .lang-switch         { width: 44px; height: 44px; font-size: 10px; }

    .nav-overlay {
        top: 112px;
        left: 0;
        right: 0;
        padding: 24px var(--container-pad) 32px;
        transform: translateY(-20px);
        opacity: 0;
    }

    .nav-overlay.is-open {
        transform: translateY(0);
    }

    .nav-overlay__link { font-size: clamp(24px, 7vw, 38px); }
}