/* --- RESET I ZMIENNE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-dark: #0c0c0c;
    --text-light: #d4d4d4;
    --font-main: 'Montserrat', Verdana, Arial, sans-serif;
    --sidebar-width: 360px; /* Gwarancja idealnego spójnego ułożenia logo na każdej podstronie */
    --accent: #ffcc00;
}

body {
    background-color: #000000;
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- PRZYCISK WYSUWAJĄCY MENU PO LEWEJ STRONIE --- */
#menu-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999;
    background-color: var(--accent);
    color: #000000;
    border: none;
    padding: 10px 18px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#menu-toggle-btn:hover {
    background-color: #ffd633;
    transform: scale(1.05);
}

/* --- CIEMNE TŁO PO OTWARCIU MENU --- */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

#menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- WYSUWANY PANEL BOCZNY (DRAWER) --- */
#drawer-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background-color: #141414;
    z-index: 1001;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.9);
    transition: left 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    display: flex;
    flex-direction: column;
    padding: 25px 20px;
    overflow-y: auto;
    border-right: 1px solid #333;
}

#drawer-menu.open {
    left: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.drawer-header h3 {
    color: var(--accent);
    font-size: 1.3rem;
}

#menu-close-btn {
    background: none;
    border: none;
    color: #d4d4d4;
    font-size: 1.5rem;
    cursor: pointer;
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-links li a {
    display: block;
    padding: 10px 15px;
    color: #d4d4d4;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.drawer-links li a:hover,
.drawer-links li a.active {
    background-color: #262626;
    color: var(--accent);
    padding-left: 20px;
}

.drawer-home-link {
    font-size: 1.05rem;
    color: #ffffff !important;
}

.drawer-divider {
    height: 1px;
    background-color: #333;
    margin: 10px 0;
}

.drawer-subtitle {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 5px 0 0 10px;
}

/* --- PASEK INFORMACYJNY Z LOGO (TOP-BAR) --- */
.top-bar {
    background-color: #000000;
    border-bottom: 2px solid gray;
    display: flex;
    flex-direction: column;
}

.brand-title {
    width: 100%;
    min-height: 12vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-dark);
    background-image: url("images/stars.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: hard-light;
    padding: 15px 0;
    border-bottom: 2px solid gray;
}

.brand-logo {
    width: auto;
    height: 75px;
    max-width: 80%;
    object-fit: contain;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    font-size: 1.15rem; 
    font-weight: 600;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.icon-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.icon-text svg {
    margin: 0;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.icon-text:hover svg,
.fb-icon a:hover svg {
    transform: scale(1.15);
}

/* ==========================================================================
   RESPONSYWNA GALERIA (ZACHOWANY TWOJ UKŁAD ZDJĘĆ)
   ========================================================================== */

#main {
    width: 100%;
    padding: 40px 0;
    box-sizing: border-box;
}

.gallery {
    display: flex;
    flex-wrap: wrap; /* Pozwala zdjęciom przechodzić do nowego wiersza */
    gap: 15px;       /* Odstęp między zdjęciami */
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    height: 280px;   /* Stała, rzeźbiarska wysokość każdego zdjęcia w wierszu */
    flex-grow: 1;    /* Pozwala kafelkowi rozciągnąć się, by wiersz był idealny do krawędzi */
    flex-shrink: 1;
    border: 2px solid gray;
    background-color: #0c0c0c;
    overflow: hidden;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
    position: relative;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Wypełnia kafel idealnie bez zniekształcania proporcji */
    display: block;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* ==========================================================================
   MEDIA QUERIES DLA NAGŁÓWKA I GALERII
   ========================================================================== */

@media (min-width: 600px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .top-bar {
        flex-direction: row;
        align-items: stretch;
    }

    .brand-title {
        width: var(--sidebar-width);
        min-width: var(--sidebar-width);
        max-width: var(--sidebar-width);
        padding: 15px 20px;
        border-bottom: none;
        border-right: 2px solid gray; /* Zachowuje spójność z liniami na innych stronach */
    }

    .contact-info {
        grid-template-columns: repeat(4, 1fr);
        flex-grow: 1;
        align-items: center;
        padding: 15px 10px;
    }
}

@media screen and (max-width: 900px) {
    .gallery-item {
        height: 220px; /* Zmniejszona wysokość rzędu na tabletach */
    }
}

@media screen and (max-width: 550px) {
    #main {
        padding: 20px 0;
    }

    .gallery {
        gap: 12px;
        padding: 0 4%;
    }
    
    .gallery-item {
        height: 200px; /* Optymalna wysokość na smartfonie */
        flex-basis: 100%; /* Na małym ekranie każde zdjęcie zajmuje całą szerokość */
    }
}