﻿/* ==========================================================================
   wOsiedle – nagłówek, menu mobilne i stopka (Pages/_Layout.cshtml)
   Ładowane na wszystkich podstronach. Nie zależy od Bootstrapa 4/5 –
   wszystkie odstępy i układy są zdefiniowane tutaj.
   ========================================================================== */

:root {
    --site-indigo: #2e3191;
    --site-indigo-deep: #1b1d5c;
    --site-indigo-soft: #eceefb;
    --site-green: #1eab4b;
    --site-green-hover: #178f3e;
    --site-ink: #1a1b33;
    --site-muted: #5d6080;
    --site-line: #e2e4f0;
    --site-paper: #f5f6fb;
    --site-display: "Bricolage Grotesque", "Open Sans", system-ui, sans-serif;
    --site-header-h: 76px;   /* = body padding-top 56px + main margin-top 20px (desktop) */
}

@media (max-width: 992px) {
    :root {
        --site-header-h: 56px;
    }
}

/* ---------- Pasek nagłówka ---------- */

.site-header > .navbar::after {
    display: none !important;   /* gradient motywu WinDOORS */
}

.navbar.fixed-top.site-nav {
    height: var(--site-header-h);
    padding: 0;
    background: rgba(255, 255, 255, .92) !important;
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--site-line);
    box-shadow: none;
    transition: box-shadow .25s ease, background-color .25s ease;
}

.site-header.active .navbar.fixed-top.site-nav {
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 10px 30px -18px rgba(27, 29, 92, .35);
}

.site-nav__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* logo */
.site-header a.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    margin: 0;
    padding: 0;
    text-decoration: none;
    color: var(--site-ink);
}

.site-brand__logo {
    display: block;
    width: auto;
    height: 40px;
    max-height: none;
}

.site-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-header .site-brand__name {
    font-size: 17px;
    font-weight: 700;
    color: var(--site-ink);
    letter-spacing: -0.01em;
}

.site-header .site-brand__tag {
    font-size: 12px;
    color: var(--site-muted);
}

/* menu desktop */
.site-header .menu-box-sk.site-menu {
    display: none;
}

.site-menu__list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-menu__list .nav-item-sk {
    margin: 0;
}

.site-header .site-menu__list .nav-item-sk a {
    display: block;
    padding: 9px 14px;
    border-radius: 10px;
    font-family: "Open Sans", sans-serif !important;
    font-size: 15px;
    font-weight: 600 !important;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--site-ink) !important;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.site-header .site-menu__list .nav-item-sk a:hover {
    background: var(--site-paper);
    color: var(--site-indigo) !important;
}

.site-header .site-menu__list .nav-item-sk.active-sk a {
    background: var(--site-indigo-soft);
    color: var(--site-indigo) !important;
}

/* prawa strona: kontakt + CTA */
.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.site-header a.site-contact__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    background: #fff;
    color: var(--site-ink);
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease;
}

.site-header a.site-contact__toggle:hover,
.site-header a.site-contact__toggle[aria-expanded="true"] {
    border-color: #c9cce3;
    background: var(--site-paper);
}

.site-contact__toggle::after {
    display: none !important;   /* strzałka Bootstrapa – mamy własną */
}

.site-contact__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}

.site-contact__label {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.site-header .site-contact__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--site-ink);
    line-height: 1.15 !important;
}

.site-header .site-contact__sub {
    font-size: 12px;
    color: var(--site-muted);
}

.site-contact__chevron {
    color: var(--site-muted);
    transition: transform .2s ease;
}

.site-contact__toggle[aria-expanded="true"] .site-contact__chevron {
    transform: rotate(180deg);
}

/* rozwijana karta kontaktu */
.site-header .dropdown-menu.site-contact__menu {
    width: 320px;
    margin-top: 10px !important;
    padding: 8px;
    border: 1px solid var(--site-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 48px -20px rgba(27, 29, 92, .35);
}

.site-person {
    padding: 12px;
}

.site-person + .site-person {
    border-top: 1px solid var(--site-line);
}

.site-person__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.site-person__head img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.site-header .site-person__name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--site-ink);
}

.site-header .site-person__name span {
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--site-indigo-soft);
    color: var(--site-indigo);
    font-size: 11px;
    font-weight: 700;
    vertical-align: 1px;
}

.site-header .site-person__hours {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--site-muted);
}

.site-header a.site-person__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--site-ink);
    text-decoration: none;
}

.site-header a.site-person__link:hover {
    background: var(--site-paper);
    color: var(--site-indigo);
}

.site-person__link img {
    width: 18px;
    height: 18px;
}

/* przycisk CTA */
a.site-cta,
a.site-cta:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--site-green);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700 !important;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .2s ease;
}

a.site-cta:hover {
    background: var(--site-green-hover);
    color: #fff !important;
}

a.site-cta--block {
    display: flex;
    width: 100%;
    min-height: 48px;
    font-size: 15px;
}

.site-header .site-cta {
    display: none;
}

/* hamburger */
.site-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    flex: none;
}

.site-burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--site-ink);
    transition: transform .25s ease, opacity .2s ease;
}

.site-burger:hover {
    background: var(--site-paper);
}

body:not(.menu-close) .site-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body:not(.menu-close) .site-burger span:nth-child(2) { opacity: 0; }
body:not(.menu-close) .site-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header a:focus-visible,
.site-header button:focus-visible,
.site-drawer a:focus-visible,
.site-footer a:focus-visible {
    outline: 3px solid #8f93ff;
    outline-offset: 2px;
}

/* ---------- Desktop (≥ 993 px – zgodnie z main.js) ---------- */

@media (min-width: 993px) {
    .site-burger {
        display: none;
    }

    .site-header .menu-box-sk.site-menu {
        display: block;
        margin-left: 8px;
    }

    .sidebar-wrap.site-drawer {
        display: none !important;
    }

    /* motyw spycha treść o szerokość sidebaru – na desktopie sidebaru nie ma */
    body.sidebar-pushcontent .sidebar-wrap + main.main,
    body.sidebar-pushcontent.menu-close .sidebar-wrap + main.main {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (min-width: 1200px) {
    .site-header .site-cta {
        display: inline-flex;
    }
}

@media (max-width: 1100px) and (min-width: 993px) {
    .site-contact__label,
    .site-contact__chevron {
        display: none;
    }

    .site-header a.site-contact__toggle {
        padding: 3px;
    }

    .site-nav__inner {
        gap: 12px;
    }
}

/* ---------- Mobile / tablet (≤ 992 px) ---------- */

@media (max-width: 992px) {
    .site-nav__inner {
        gap: 8px;
        padding: 0 12px;
    }

    .site-brand__logo {
        height: 32px;
    }

    .site-brand__tag {
        display: none;
    }

    .site-contact__label,
    .site-contact__chevron {
        display: none;
    }

    .site-header a.site-contact__toggle {
        padding: 3px;
    }

    .site-header .dropdown-menu.site-contact__menu {
        width: min(320px, calc(100vw - 24px));
    }

    /* treść nie jest spychana – menu wysuwa się nad nią */
    body.sidebar-pushcontent .sidebar-wrap + main.main,
    body.sidebar-pushcontent.menu-close .sidebar-wrap + main.main {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.sidebar-pushcontent .sidebar-wrap.site-drawer {
        top: var(--site-header-h);
        left: 0;
        width: min(320px, 86vw);
        height: calc(100% - var(--site-header-h));
        padding: 0 !important;   /* main.js ustawia inline padding-top */
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        background: #fff;
        box-shadow: 24px 0 48px -24px rgba(27, 29, 92, .35);
        transition: transform .28s cubic-bezier(.2, .7, .2, 1), visibility 0s linear 0s;
        z-index: 8 !important;
    }

    body.sidebar-pushcontent.menu-close .sidebar-wrap.site-drawer {
        left: 0;
        opacity: 1;
        visibility: hidden;
        transform: translateX(-105%);
        transition: transform .28s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .28s;
    }

    /* przyciemnienie treści pod otwartym menu */
    body.sidebar-pushcontent:not(.menu-close)::after {
        content: "";
        position: fixed;
        inset: var(--site-header-h) 0 0 0;
        z-index: 7;
        background: rgba(27, 29, 92, .45);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.sidebar-pushcontent .sidebar-wrap.site-drawer,
    body.sidebar-pushcontent.menu-close .sidebar-wrap.site-drawer,
    .site-burger span {
        transition: none;
    }
}

/* zawartość menu mobilnego */
.site-drawer .sidebar {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 20px 16px 24px;
}

.site-drawer .site-drawer__title {
    margin: 0 0 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--site-muted);
}

.site-drawer .nav.site-drawer__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.site-drawer .nav.site-drawer__list .nav-item {
    margin: 0;
}

.sidebar-wrap.site-drawer .sidebar .nav .nav-item .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    line-height: 1.3;
    font-size: 16px;
    font-weight: 600;
    color: var(--site-ink);
    background: transparent;
}

.sidebar-wrap.site-drawer .sidebar .nav .nav-item .nav-link::before {
    display: none;
}

.sidebar-wrap.site-drawer .sidebar .nav .nav-item .nav-link > * {
    line-height: 1.3;
}

.sidebar-wrap.site-drawer .sidebar .nav .nav-item .nav-link:hover {
    background: var(--site-paper);
    color: var(--site-indigo);
}

.sidebar-wrap.site-drawer .sidebar .nav .nav-item .nav-link.active {
    background: var(--site-indigo-soft);
    color: var(--site-indigo);
}

.site-drawer__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--site-paper);
    flex: none;
}

.site-drawer__icon img,
.site-drawer__icon .menu-icon-sk {
    width: 20px;
    height: 20px;
}

.site-drawer__icon .bi {
    font-size: 18px;
    line-height: 1;
    color: var(--site-indigo);
}

.site-drawer__footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
}

.site-drawer a.site-drawer__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--site-ink);
    text-decoration: none;
}

.site-drawer__phone img {
    width: 18px;
    height: 18px;
}

/* ---------- Stopka ---------- */

.site-footer {
    background: #fff;
    border-top: 1px solid var(--site-line);
    color: var(--site-ink);
    font-size: 15px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.3fr 1.2fr 1fr 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 24px 56px;
}

.site-footer__logo {
    display: block;
    width: 150px;
    height: auto;
}

.site-footer .site-footer__claim {
    max-width: 26ch;
    margin: 18px 0 20px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--site-muted);
}

.site-footer a.site-footer__social {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--site-line);
    border-radius: 12px;
    transition: border-color .2s ease, background-color .2s ease;
}

.site-footer a.site-footer__social:hover {
    border-color: #c9cce3;
    background: var(--site-paper);
}

.site-footer__social img {
    width: 20px;
    height: 20px;
}

.site-footer .site-footer__title {
    margin: 0 0 16px;
    font-family: var(--site-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--site-indigo-deep);
}

.site-footer__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .site-footer__list li {
    font-size: 15px;
    line-height: 1.5;
    color: var(--site-ink);
}

.site-footer .site-footer__list--data li span {
    display: inline-block;
    min-width: 58px;
    font-weight: 600;
    color: var(--site-muted);
}

.site-footer .site-footer__list a,
.site-footer .site-footer__list a:visited {
    color: var(--site-ink);
    font-weight: 400;
    text-decoration: none;
    transition: color .2s ease;
}

.site-footer .site-footer__list a:hover {
    color: var(--site-indigo);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer .site-footer__list a.site-footer__contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.site-footer__contact img {
    width: 18px;
    height: 18px;
}

.site-footer__apps {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.site-footer__apps img {
    display: block;
    width: 135px;
    max-width: 135px !important;
    height: auto;
}

.site-footer__bottom {
    background: var(--site-indigo-deep);
    color: rgba(255, 255, 255, .78);
}

.site-footer__inner--bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}

.site-footer .site-footer__bottom p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .78);
}

@media (max-width: 1024px) {
    .site-footer__inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px 24px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px 20px;
        padding: 48px 16px 40px;
    }

    .site-footer__inner--bottom {
        justify-content: center;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .site-footer__apps img {
        width: 128px;
    }
}

/* 993–1023 px: ten sam odstęp pod nagłówkiem co od 1024 px (style-gw.css) */
@media (min-width: 993px) and (max-width: 1023px) {
    main {
        margin-top: 20px;
    }
}

.sidebar-wrap.site-drawer .sidebar .nav .nav-item .nav-link.active .site-drawer__icon {
    background: #fff;
}
