/* ==========================================================================
   1. RESET I USTAWIENIA BAZOWE
   ========================================================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

:root { 
    --gold: #b29469; 
    --max-width: 1440px; /* Blokada szerokości na ekranach typu 1920px (tworzy marginesy po bokach) */
}

body {
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   2. DYNAMICZNE PRZEŁĄCZANIE SEKCJI
   ========================================================================== */
.page-section { 
    display: none; 
}

.page-section.active { 
    display: block; 
    animation: fadeIn 0.5s ease forwards; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* ==========================================================================
   3. NAWIGACJA (NAVBAR)
   ========================================================================== */
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 4%; 
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.logo { 
    font-family: 'Playfair Display', serif; 
    font-size: 24px; 
    color: var(--gold); 
    letter-spacing: 2px; 
    font-weight: 700;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
}

.nav-links a { 
    text-decoration: none; 
    color: #fff; 
    font-size: 14px; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease; 
}

.nav-links a:hover { 
    color: var(--gold); 
}

.lang-switch { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.lang-btn { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--gold); 
    border-radius: 4px; 
    padding: 5px 8px; 
    cursor: pointer; 
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.lang-btn:hover, .lang-btn.active { 
    background: rgba(178, 148, 105, 0.2); 
    box-shadow: 0 0 10px var(--gold);
}

.profile-mini { 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    border: 1px solid var(--gold); 
    margin-left: 10px; 
    object-fit: cover; 
}

/* ==========================================================================
   4. SEKCJA GŁÓWNA (HERO)
   ========================================================================== */
.hero { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 60px 4%; 
    min-height: 75vh; 
    gap: 5%; 
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    flex: 1.2;
}

.main-title { 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(32px, 4vw, 58px); 
    color: #bfa15f; 
    letter-spacing: 0px; 
    line-height: 1.2;
    margin: 0;
}

.main-title-sub {
    display: block; 
    font-size: clamp(14px, 1.5vw, 18px); 
    color: #ffffff; 
    font-family: 'Montserrat', sans-serif; 
    letter-spacing: 2px; 
    margin-top: 15px; 
    margin-bottom: 40px; 
    font-weight: normal;
}

.cta-button { 
    display: inline-block; 
    background: var(--gold); 
    color: #000 !important; 
    padding: 18px 35px; 
    text-decoration: none !important; 
    font-weight: bold; 
    border-radius: 4px; 
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s; 
    box-shadow: 0 4px 15px rgba(178, 148, 105, 0.3);
}

.cta-button:hover {
    background: #c2a882;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 148, 105, 0.5);
}

.hero-image-container { 
    flex: 0.8;
    text-align: right; 
}

.main-photo { 
    width: 100%;
    max-width: 450px; 
    height: auto;
    border-radius: 8px;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.8)); 
}

/* ==========================================================================
   5. BLOK USŁUG
   ========================================================================== */
.info-section { 
    padding: 80px 4%; 
    background: #0a0a0a; 
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.column-full h3 { 
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #fff; 
    border-bottom: 1px solid #222; 
    padding-bottom: 12px; 
    margin-bottom: 30px; 
    letter-spacing: 1px;
    text-align: center;
}

.moje-uslugi {
    display: flex; 
    justify-content: center; 
    gap: 60px; 
    flex-wrap: wrap; 
    max-width: 900px; 
    margin: 0 auto;
}

.moje-uslugi .service-item {
    flex: 1; 
    min-width: 280px; 
    max-width: 400px; 
    text-align: left;
}

.service-item strong { 
    color: var(--gold); 
    display: block; 
    font-size: 18px;
    margin-bottom: 8px;
}

.service-item p { 
    font-size: 14px; 
    color: #999; 
}

/* ==========================================================================
   6. LINKI KONTAKTOWE
   ========================================================================== */
.whatsapp-link, .phone-link, .email-link, .linkedin-link { 
    text-decoration: none; 
    color: #aaa; 
    display: inline-flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 15px; 
    transition: color 0.3s, transform 0.2s; 
    font-size: 15px;
    font-weight: 500;
}

.whatsapp-link i { color: #25D366; }
.linkedin-link i { color: #0077b5; }
.email-link i { color: var(--gold); }
.phone-link i { color: var(--gold); }

.whatsapp-link:hover, .phone-link:hover, .email-link:hover, .linkedin-link:hover { 
    color: #fff; 
    transform: translateX(5px);
}

.location-text {
    font-size: 15px;
    color: #aaa;
    margin-top: 5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   7. SEKCJA PORTFOLIO (ZABLOKOWANE: 2 rzędy po 3 pudła na dużym ekranie)
   ========================================================================== */
.portfolio-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 4%;
    text-align: center;
}

.portfolio-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.portfolio-intro {
    font-size: 16px;
    color: #bbb;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sztywny, symetryczny podział na 3 kolumny */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-bottom: 50px;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(178, 148, 105, 0.1);
    padding: 35px 25px;
    border-radius: 6px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 25px rgba(178, 148, 105, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.portfolio-icon {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 20px;
}

.portfolio-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.portfolio-item p {
    font-size: 13px;
    color: #999;
    line-height: 1.7;
}

.back-btn {
    margin-top: 20px;
}

/* ==========================================================================
   8. SEKCJA O MNIE
   ========================================================================== */
.about-full { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 120px 4%; 
    min-height: 85vh; 
    text-align: center; 
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-full h3 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.about-full p { 
    font-size: 18px; 
    line-height: 2; 
    color: #bbb; 
    max-width: 800px; 
}

/* ==========================================================================
   9. SEKCJA KONTAKTU Z MAPĄ GOOGLE
   ========================================================================== */
.contact-page-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 4%;
    text-align: center;
}

.contact-page-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.contact-intro {
    font-size: 16px;
    color: #bbb;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-container-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    text-align: left;
    margin-bottom: 50px;
}

.contact-form-box, .contact-details-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(178, 148, 105, 0.1);
    padding: 40px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.contact-form-box h4, .contact-details-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #fff;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(178, 148, 105, 0.2);
    padding-bottom: 10px;
}

.contact-form-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form-box input, 
.contact-form-box select, 
.contact-form-box textarea {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form-box input:focus, 
.contact-form-box select:focus, 
.contact-form-box textarea:focus {
    border-color: var(--gold);
}

.contact-form-box select option {
    background: #1a1a1a;
    color: #fff;
}

.form-submit-btn {
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 16px;
    text-align: center;
}

.contact-details-box .details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.map-container {
    width: 100%;
    margin-top: auto;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(178, 148, 105, 0.2);
    filter: grayscale(100%) invert(90%) contrast(95%);
    transition: filter 0.3s ease;
}

.map-container:hover {
    filter: grayscale(30%) invert(0%) contrast(100%);
}

/* ==========================================================================
   10. PEŁNA RESPONSYWNOŚĆ (EKRANY MOBILNE)
   ========================================================================== */
@media (max-width: 992px) {
    .portfolio-section, .contact-page-section { padding: 80px 5%; }
}

@media (max-width: 768px) {
    nav { 
        padding: 20px 5%; 
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links { 
        gap: 15px; 
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero { 
        flex-direction: column-reverse; 
        text-align: center; 
        padding: 20px 5%;   
        gap: 15px;          
    }
    
    .hero-image-container { 
        width: 100%; 
        text-align: center; 
    }
    
    /* ==================================================================
       ZMIANA ROZMIARU DLA TELEFONU
       ================================================================== */
    .main-photo { 
        width: 75% !important;        /* Zdjęcie zajmie 75% szerokości ekranu telefonu */
        max-width: 350px !important;  /* Maksymalnie urośnie do 350px (wcześniej było 180px/280px) */
        height: auto !important;
        margin: 0 auto !important;
    }
    /* ================================================================== */

    .main-title-sub {
        margin-bottom: 25px;
    }
    
    .moje-uslugi {
        gap: 30px; 
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr !important; 
        gap: 30px;
    }

    .contact-container-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-box, .contact-details-box {
        padding: 25px;
    }
    
    .map-container {
        margin-top: 15px;
        height: 250px;
    }
    
    .about-full { padding: 80px 5%; }
    .about-full h3 { font-size: 28px; }
    .about-full p { font-size: 16px; }
}