/* =========================================
   1. FUNDAMENTY I RESET
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
}

/* =========================================
   2. NAWIGACJA GÓRNA (CIENKIE LITERY)
   ========================================= */
.top-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    padding: 15px 40px;
    z-index: 2000;
    border-bottom: 1px solid #f8f8f8;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo {
    height: 75px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Cienkie litery w menu - 400 jak na index.html */
.nav-links li a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 400; 
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #888;
}

/* Rozwijane menu Portfolio */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    list-style: none;
    padding: 15px 0;
}

.dropdown-content li a {
    padding: 10px 20px;
    display: block;
    font-size: 11px;
    text-align: left;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.menu-toggle {
    display: none;
}

/* Wyrównanie stylu nieaktywnego napisu Portfolio z resztą menu */
.nav-links li.dropdown {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 400; 
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: default; /* Pokazuje, że element nie jest klikalny */
}

/* Dodatkowa poprawka dla ikony strzałki, jeśli jest w środku */
.nav-links li.dropdown i {
    margin-left: 5px;
    font-size: 12px;
} 

/* Ujednolicenie wielkości strzałki w menu (dropdown icon) */
.nav-links li i.fa-angle-down {
    font-size: 10px !important; /* Wymusza mały rozmiar jak na index.html */
    margin-left: 5px;
    vertical-align: middle;
    color: inherit; /* Przyjmuje kolor tekstu obok */
}

/* Zapewnienie, że strzałka w nieaktywnym "PORTFOLIO" też jest mała */
.dropdown i {
    font-size: 10px !important;
}

/* =========================================
   3. PŁYWAJĄCE IKONY SOCIAL MEDIA
   ========================================= */
.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 3000;
}

.social-sidebar a {
    background: #000;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-sidebar a:hover {
    background: #888;
}

/* =========================================
   4. SLIDER (HERO SECTION)
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider-container { width: 100%; height: 100%; }
.slider { display: flex; height: 100%; width: 600vw; }
.slide { width: 100vw; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.hero-logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 6vw, 80px);
    letter-spacing: 12px;
}

/* =========================================
   5. SEKCJA O MNIE (NA INDEX.HTML)
   ========================================= */
.about-section {
    background-color: #faf3f2;
    width: 100%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.about-image { width: 100%; height: 100%; }
.about-portrait { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-text {
    padding: 80px clamp(40px, 8vw, 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h3 {
    font-size: 11px;
    letter-spacing: 4px;
    color: #999;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 25px;
    font-weight: 400;
}

.about-divider {
    width: 40px;
    height: 1px;
    background: #1a1a1a;
    margin-bottom: 35px;
}

.about-text p {
    font-size: 15px;
    color: #444;
    margin-bottom: 25px;
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    padding: 16px 45px;
    border: 1px solid #1a1a1a;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: fit-content;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #1a1a1a; 
    color: #fff;
}

/* =========================================
   SEKCJA BIZNES - POPRAWKA LINII I ODSTĘPU
   ========================================= */

.biznes-intro {
    text-align: left !important;
}

.biznes-intro .about-divider {
    margin-left: 0 !important;
    margin-right: auto !important;
    display: block !important;
}

.portfolio-detail-section {
    padding: 100px 0 120px 0 !important;
    background-color: #faf3f2 !important;
}

.biznes-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    text-align: left !important;
}

.biznes-intro .about-divider {
    width: 40px;
    height: 1px;
    background: #1a1a1a;
    margin-left: 0 !important;
    margin-right: auto !important;
    margin-top: 0;
    margin-bottom: 35px !important;
    display: block;
}

.biznes-text-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 4px;
    color: #999;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 400;
}

.biznes-text-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 25px;
    font-weight: 400;
    line-height: 1.2;
}

.biznes-text-content p {
    font-size: 15px;
    color: #444;
    margin-bottom: 25px;
    max-width: 800px;
    line-height: 1.8;
}

.highlight-text {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.biznes-intro .btn-primary {
    display: inline-block;
    margin-bottom: 120px !important;
    padding: 16px 45px;
    border: 1px solid #1a1a1a;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
}

.biznes-intro .btn-primary:hover {
    background: #1a1a1a;
    color: #fff;
}

.cta-button-business {
    display: inline-block;
    margin-bottom: 80px; /* To stworzy potrzebny odstęp od galerii */
    padding: 15px 40px;
    border: 1px solid #000;
    background-color: transparent;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button-business:hover {
    background-color: #000;
    color: #fff;
}

/* =========================================
   7. GALERIA BIZNES - FULL WIDTH
   ========================================= */
/* Kontener galerii - dzielimy go na 6 niewidzialnych kolumn */

/* Nowy układ galerii: 4 piony lub 2 poziomy */

.lookbook-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* Zmieniamy bazę na 12 kolumn */
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

/* Zdjęcie pionowe: zajmuje 3 z 12 kolumn (12 / 3 = 4 zdjęcia w rzędzie) */
.gallery-item.portrait {
    grid-column: span 3;
}

/* Zdjęcie poziome: zajmuje 6 z 12 kolumn (12 / 6 = 2 zdjęcia w rzędzie) */
.gallery-item.landscape {
    grid-column: span 6;
}

/* Reszta stylów pozostaje bez zmian dla zachowania efektu stykania się zdjęć */
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Na telefonach (poniżej 768px) zdjęcia nadal jedno pod drugim */
@media (max-width: 768px) {
    .lookbook-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item.portrait, 
    .gallery-item.landscape {
        grid-column: span 1;
    } 
}

/* Usunięcie odstępu między menu a zdjęciem na stronie warsztatów */
.portfolio-detail-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.workshop-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Opcjonalnie: jeśli chcesz, aby tylko zdjęcie było wyżej, a tekst obok miał margines */
.workshop-image {
    margin-top: 0 !important;
}

/* =========================================
   8. RESPONSYWNOŚĆ OGÓLNA
   ========================================= */
@media (max-width: 1024px) {
    .menu-toggle { 
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    .menu-toggle .bar { width: 25px; height: 2px; background: #1a1a1a; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: #fff; flex-direction: column;
        padding: 30px 0;
    }
    .nav-links.active { display: flex; }

    .about-grid { grid-template-columns: 1fr; }
    .about-image { height: 500px; }
    .about-text, .biznes-intro { text-align: center; align-items: center; }
    .about-divider { margin: 0 auto 35px auto; }
    
    .lookbook-grid { grid-template-columns: repeat(2, 1fr); }
    .social-sidebar { left: 10px; }
}

@media (max-width: 768px) {
    .lookbook-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    /* Ustawienie przewinięcia tak, aby pomijało zdjęcie i trafiało w formularz */
    #kontakt {
        scroll-margin-top: -340px; 
    }
}

/* =========================================
   SEKCJA KONTAKT I STOPKA
   ========================================= */

html {
    scroll-behavior: smooth;
}

.contact-section {
    background-color: #fff;
    padding: 0 !important; 
    width: 100%;
    overflow: hidden;
}

.contact-container {
    display: flex;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.contact-content-left {
    flex: 1;
    padding-left: 10%;
    padding-right: 5%;
    padding-top: 100px;
    padding-bottom: 40px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.contact-divider-small {
    width: 40px;
    height: 1px;
    background: #000;
    margin-bottom: 40px;
}

.contact-info-text {
    margin-bottom: 40px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    font-size: 14px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group label {
    font-size: 12px;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, 
.form-group textarea {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    background: transparent;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-bottom: 1px solid #000;
}

.btn-send {
    background: #444;
    color: #fff;
    border: none;
    padding: 15px 40px;
    margin-top: 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    align-self: flex-start;
}

.btn-send:hover {
    background: #000;
}

.contact-image-right {
    flex: 1;
    min-height: 100%;
}

.contact-image-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-footer {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 40px 0 20px 0 !important;
}

.back-to-top a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.back-to-top p {
    font-size: 11px;
    margin-top: 10px;
    text-transform: uppercase; 
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
}

.footer-copyright {
    margin-top: 40px;
    font-size: 12px;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-family: 'Montserrat', sans-serif;
    opacity: 0.7;
}

/* =========================================
   9. SPECYFICZNA RESPONSYWNOŚĆ MOBILNA KONTAKTU
   ========================================= */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        padding: 0 !important; /* Usunięto marginesy kontenera dla zdjęcia edge-to-edge */
    }
    
    .contact-content-left {
        padding: 60px 10% !important; /* Przywrócenie marginesów wewnętrznych tylko dla tekstu */
        order: 2;
    }
    
    .contact-image-right {
        height: 450px;
        width: 100%;
        order: 1; /* Zdjęcie na samej górze sekcji */
    }

    .contact-image-right img {
        width: 100%;
        height: 100%;
    }

    .form-row {
        flex-direction: column;
    }
}

/* Usuwamy odstęp pod galerią biznesową, aby stopka stykała się ze zdjęciami */
.portfolio-detail-section {
    padding-bottom: 0 !important;
}

.lookbook-grid {
    margin-bottom: 0 !important;
    line-height: 0; /* Usuwa minimalną białą szczelinę pod zdjęciami w niektórych przeglądarkach */
}

.gallery-item img {
    display: block; /* Eliminuje domyślny odstęp pod obrazkiem */
}

/* Ujednolicenie tekstów w sekcji biznesowej */
.biznes-text-content p, 
.process-list li {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #444 !important;
    font-family: 'Montserrat', sans-serif;
}

/* Dodatkowy lifting listy, aby punkty nie były zbyt blisko siebie */
.process-list li {
    margin-bottom: 12px;
}

/* Zapewnia odstęp przy przewijaniu do sekcji "O MNIE" */
#about {
    scroll-margin-top: 120px; /* Dostosuj tę wartość (np. od 100 do 140), aby idealnie wykadrować zdjęcie */
}

/* Wyrównanie listy procesowej do lewej krawędzi tekstu */
.process-list {
    list-style-position: inside; /* Punktory znajdą się wewnątrz bloku tekstu */
    padding-left: 0;
    margin-left: 0;
}

/* Opcjonalnie, jeśli chcesz zachować punktory na zewnątrz, ale wyrównane: */
@media (max-width: 1024px) {
    .process-list {
        padding-left: 20px; /* Dodaje bezpieczny margines na urządzeniach mobilnych */
        text-align: left;
    }
}

/* --- SEKCJA GALERII: 4 PIONY / 2 POZIOMY --- */

/* 1. Usunięcie marginesów z kontenera sekcji dla efektu edge-to-edge */
.portfolio-detail-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 2. Ustawienie siatki 12-kolumnowej */
.lookbook-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    line-height: 0; /* Usuwa szczeliny pod zdjęciami */
}

/* 3. Definicja rozmiarów: 4 piony (span 3) i 2 poziomy (span 6) */
.gallery-item.portrait {
    grid-column: span 3;
}

.gallery-item.landscape {
    grid-column: span 6;
}

/* 4. Zapewnienie, że zdjęcia wypełniają ramki i nie mają odstępów */
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 5. Responsywność dla telefonów - zdjęcia jedno pod drugim */
@media (max-width: 768px) {
    .lookbook-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item.portrait, 
    .gallery-item.landscape {
        grid-column: span 1;
    }
}

/* Fix dla strony warsztatów - zdjęcie styka się z menu */
.portfolio-detail-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.workshop-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.workshop-image {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Dodajemy odstęp tylko dla tekstu, aby nie był przyklejony do menu */
.workshop-content {
    padding-top: 60px !important;
}

/* Jeśli nagłówek H1 na innych stronach (np. Ślub) ucieka za wysoko, 
   możesz go odsunąć tym kodem nie ruszając zdjęcia: */
.biznes-text-content {
    padding-top: 60px !important;
}

/* Wyzerowanie marginesów samego tytułu, które mogą dodawać pustki */
.portfolio-detail-section h1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 20px !important; /* Odstęp między tytułem a tekstem poniżej */
}

/* Jeśli użyłaś wcześniej marginesu dla 'main', wyzeruj go tutaj */
main {
    padding-top: 0 !important;
}

/* --- FIX DLA STRONY WARSZTATÓW: PROPORCJE 1/3 : 2/3 --- */

/* Tworzymy specyficzną zasadę dla siatki na stronie Warsztatów */
#workshops .about-grid {
    grid-template-columns: 1fr 2fr; /* 1/3 dla zdjęcia, 2/3 dla tekstu */
}

/* Zabezpieczenie na mobile - powrót do jednej kolumny */
@media (max-width: 1024px) {
    #workshops .about-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FIX DLA STRONY WEBDESIGN: TEKST 2/3 (LEWO) : ZDJĘCIE 1/3 (PRAWO) --- */

#webdesign .about-grid {
    grid-template-columns: 2fr 1fr; /* 2/3 dla tekstu, 1/3 dla zdjęcia */
}

/* Na tabletach i telefonach zdjęcie wraca nad tekst dla czytelności */
@media (max-width: 1024px) {
    #webdesign .about-grid {
        grid-template-columns: 1fr;
    }
    #webdesign .about-image {
        order: 1; /* Zdjęcie na górze */
    }
    #webdesign .about-text {
        order: 2; /* Tekst pod zdjęciem */
    }
}

