/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Przezroczysty header tylko na stronie głównej */
body.home-page header {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

body.home-page header.headroom--not-top {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.home-page header.headroom--top {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    transition: padding 0.3s ease;
}

.headroom--not-top .header-inner {
    padding: 14px 0;
}

/* LOGO */
.logo img {
    height: 56px;
    transition: height 0.3s ease;
}

.headroom--not-top .logo img {
    height: 34px;
}

/* ================= DESKTOP NAV ================= */
nav ul {
    list-style: none;
    display: flex;
    gap: 36px;
    margin: 0;
    padding: 0;
}

nav a {
    position: relative;
    color: black;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 6px 0;
    transition: color 0.25s ease;
}

body.home-page header.headroom--top nav a {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

body.home-page header.headroom--not-top nav a {
    color: black;
    text-shadow: none;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--red);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--red);
}

nav a:hover::after {
    width: 100%;
}

/* ================= BURGER ================= */
.burger {
    width: 32px;
    height: 22px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger span {
    height: 3px;
    width: 100%;
    background: black;
    border-radius: 2px;
    transition: all 0.35s ease;
    transform-origin: center;
}

body.home-page header.headroom--top .burger span {
    background: white;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

body.home-page header.headroom--not-top .burger span {
    background: black;
    box-shadow: none;
}

.burger.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
    background: var(--red) !important;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
    background: var(--red) !important;
}

/* ================= MOBILE NAV ================= */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
    z-index: 999;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    margin-top: 10px;
    list-style: none;
    text-align: center;
    padding: 0;
}

.mobile-nav li {
    margin: 24px 0;
}

.mobile-nav a {
    color: black;
    font-size: 1.6rem;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

.mobile-nav a:hover {
    color: var(--red);
}

/* ================= RESPONSYWNOŚĆ ================= */
@media (max-width: 992px) {
    nav {
        display: none;
    }

    .burger {
        display: flex;
    }
}

.spacer {
    height: 110px;
}

/* ================= DROPDOWN MENU ================= */
.dropdown {
    position: relative;
}

.dropdown-toggle1 {
    align-items: center;
    gap: 5px;
}

.dropdown .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 180px;
    padding: 12px 0;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    list-style: none;
    display: block !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-menu li {
    margin: 0;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333 !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    text-shadow: none !important;
}

.dropdown-menu a:hover {
    background: #f8f8f8;
    color: var(--red) !important;
    padding-left: 25px;
}

.dropdown-toggle1::after{
    display: none;
}

/* Dostosowanie dla przezroczystego headera */
body.home-page header.headroom--top .dropdown-menu {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.home-page header.headroom--top .dropdown-menu a {
    color: #333 !important;
    text-shadow: none;
}

body.home-page header.headroom--top .dropdown-menu a:hover {
    color: var(--red) !important;
}