/* ==========================================================================
   PanoLive Template – style.css
   Minimalistyczny, lekki design
   ========================================================================== */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue:       #4466ae;
    --blue-dark:  #35528a;
    --blue-light: #5a7ec4;
    --red:        #c0392b;
    --red-dark:   #a93226;
    --dark:       #2c2c2c;
    --gray:       #666;
    --gray-light: #f5f6f8;
    --white:      #fff;
    --font:       'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-w:      1200px;
    --radius:     4px;
    --transition: .25s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TOP BAR --- */
.topbar {
    background: var(--blue);
    color: rgba(255,255,255,.85);
    font-size: .8125rem;
    line-height: 1;
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.topbar__social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.topbar__social-link {
    color: rgba(255,255,255,.7);
    transition: color var(--transition);
    display: flex;
    align-items: center;
}
.topbar__social-link:hover { color: var(--white); }

.topbar__contact a {
    color: var(--white);
}
.topbar__contact a:hover {
    text-decoration: underline;
}

.topbar__phone { letter-spacing: .02em; }
.topbar__phone strong { font-weight: 700; }

/* --- HEADER --- */
.header {
    background: var(--white);
    border-bottom: 1px solid #e8eaed;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.header__logo-img {
    height: 40px;
    width: auto;
}

/* hamburger */
.header__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
}
.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    position: absolute;
    left: 0;
    transition: var(--transition);
}
.header__hamburger span:nth-child(1) { top: 0; }
.header__hamburger span:nth-child(2) { top: 9px; }
.header__hamburger span:nth-child(3) { top: 18px; }

.header__hamburger.is-active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.header__hamburger.is-active span:nth-child(2) { opacity: 0; }
.header__hamburger.is-active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* --- NAVIGATION (show_menu2 output) --- */
.header__nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.header__nav li {
    position: relative;
}

.header__nav li a {
    display: block;
    padding: 0 16px;
    line-height: 70px;
    color: var(--dark);
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.header__nav li a:hover,
.header__nav li.menu-current > a {
    color: var(--blue);
}

/* Submenu (level 2+) */
.header__nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 110;
    flex-direction: column;
}

.header__nav li:hover > ul {
    display: flex;
}

.header__nav ul ul li a {
    line-height: 1.4;
    padding: 10px 20px;
    font-weight: 400;
    font-size: .875rem;
    border-bottom: 1px solid var(--gray-light);
}

.header__nav ul ul li a:hover {
    background: var(--gray-light);
    color: var(--blue);
}

.header__nav ul ul li:last-child a {
    border-bottom: none;
}

/* 3rd level submenu */
.header__nav ul ul ul {
    top: 0;
    left: 100%;
}

/* --- LOGOUT LINK (styl identyczny z menu, kolor czerwony) --- */
.header__nav {
    display: flex;
    align-items: center;
}
 
.nav__list--logout {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}
 
.header__nav-logout {
    display: block;
    padding: 0 16px;
    line-height: 70px;
    color: var(--red) !important;
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    text-decoration: none !important;
    transition: color var(--transition);
}
 
.header__nav-logout:hover {
    color: var(--red-dark) !important;
}

/* --- MAIN --- */
.main {
    min-height: 50vh;
    padding: 48px 0;
}

/* --- FOOTER --- */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,.75);
    padding: 48px 0 0;
    font-size: .875rem;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer__brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.footer__heading {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.footer__address { line-height: 1.7; }

.footer a {
    color: rgba(255,255,255,.75);
}
.footer a:hover {
    color: var(--white);
}

.footer__social {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__bottom {
    margin-top: 40px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .8125rem;
    color: rgba(255,255,255,.5);
    text-align: center;
}
.footer__bottom a {
    color: rgba(255,255,255,.5);
}
.footer__bottom a:hover {
    color: var(--white);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .topbar__inner {
        flex-direction: column;
        height: auto;
        padding: 8px 20px;
        gap: 4px;
    }

    .topbar__contact { display: none; }

    .header__hamburger { display: block; }

    .header__nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid #e8eaed;
        box-shadow: 0 4px 16px rgba(0,0,0,.08);
    }
    .header__nav.is-open { display: block; }

    .header__nav ul {
        flex-direction: column;
    }

    .header__nav li a {
        line-height: 1.4;
        padding: 14px 20px;
        border-bottom: 1px solid var(--gray-light);
    }

    .header__nav ul ul {
        position: static;
        box-shadow: none;
        background: var(--gray-light);
        display: flex;
        flex-direction: column;
    }

    /* Logout link – mobile: jak zwykły element menu */
    .header__nav-logout {
        display: block;
        line-height: 1.4;
        padding: 14px 20px;
        border-bottom: 1px solid var(--gray-light);
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    html, body {
    overflow-x: hidden;
    max-width: 100%;
    }
    
    * {
    box-sizing: border-box;
}
}