/* 1. GLOBALNE RESETOWANIE - Zapobiega rozjeżdżaniu się strony */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Kluczowe: padding nie dodaje się do szerokości */
}


html, body {
    width: 100%;
    background-color: #f9f9f7; /* Jasny kolor pod spodem, żeby było widać łuki Hero */
}

body {
    font-family: 'Inter', sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =========================================
   2. NAWIGACJA - PERFEKCYJNE WYŚRODKOWANIE
   ========================================= */
header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; 
    height: 100px; 
    z-index: 1000;
    display: flex;
    justify-content: center; 
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}

.header-hidden {
    transform: translateY(-100%); 
}

.header-sticky {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    height: 105px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.header-sticky nav ul li a {
    color: #1a1a1a; 
    text-shadow: none; 
}

.header-sticky .logo img {
    height: 100px; 
    filter: brightness(0.2); 
}

.header-sticky nav ul li a:hover {
    color: #436d58;
}

nav {
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 60px;
    padding: 0;
    margin: 0;
}

nav ul li a {
    color: #2c4033;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 800;
    opacity: 0.9;
    transition: all 0.3s ease;
    display: inline-block;
    text-shadow: none; 
}

nav ul li a:hover {
    color: #436d58;
    opacity: 1;
}

/* =========================================
   LOGO - PŁYNNE PRZEJŚCIE I STABILIZACJA
   ========================================= */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    position: relative;
    height: 100%;
}

.logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    opacity: 1 !important;
    text-shadow: none !important;
}

.logo a:hover {
    opacity: 1 !important;
}

.logo img {
    height: 90px; 
    width: auto;
    display: block;
    position: absolute;
    z-index: 101;
    transform: translateY(5px) scale(1);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.4s ease;
    will-change: height, transform; 
    filter: brightness(0.2); 
}

.header-sticky .logo img {
    height: 105px; 
    transform: translateY(0) scale(1);
    filter: brightness(0.2); 
}

/* =========================================
   3. SEKCJA KONTAKTOWA
   ========================================= */
#kontakt-sekcja {
    padding: 160px 0 100px 0; /* Zostawia miejsce pod pływającym menu */
    position: relative;
    z-index: 5;
}

.contact-box {
    display: flex;
    flex-wrap: wrap; /* Pozwala sekcjom zejść jedna pod drugą na małych ekranach */
    background-color: #ffffff;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    overflow: hidden; 
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid rgba(44, 64, 51, 0.08);
    margin-bottom: 80px;
}

/* --- LEWA STRONA (DANE) --- */
.contact-info {
    flex: 1;
    min-width: 320px; /* Minimalna szerokość przed załamaniem */
    background-color: #2c4033; /* Ciemnozielone tło dla danych */
    color: #ffffff;
    padding: 70px 60px;
}

.contact-info h2 {
    font-size: 38px;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-info .intro-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.85);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
}

.icon-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: #ffffff;
}

.info-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-text p, .info-text a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.info-text a:hover {
    color: #ffffff;
}

/* --- PRAWA STRONA (FORMULARZ I KOMUNIKAT) --- */
.contact-form-wrapper {
    flex: 1.2; 
    min-width: 320px; 
    padding: 70px 60px;
    background-color: #ffffff;
    
    /* DODANE: To sprawia, że wszystko wewnątrz białego pola (formularz i komunikat) jest idealnie wyśrodkowane w pionie */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2c4033;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 15px;
    border: 1px solid rgba(44, 64, 51, 0.2);
    background-color: #f9f9f7; /* Jasne kremowe tło dla pól */
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.input-group textarea {
    resize: vertical; 
}

/* Efekt kliknięcia w pole */
.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #436d58;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(67, 109, 88, 0.1);
}

/* Własny wygląd dla przycisku wyślij */
.btn-cta-premium-contact {
    background-color: #2c4033;
    color: #ffffff;
    margin-top: 10px;
    width: 100%; 
    padding: 20px 40px;
    border-radius: 50px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-cta-premium-contact:hover {
    background-color: #436d58;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* =========================================
   9. CIEMNA, ELEGANCKA STOPKA (FOOTER)
   ========================================= */
footer {
    background-color: #17211a; 
    color: rgba(255, 255, 255, 0.7); 
    
    /* ZMIENIONE: 60px -> 20px na dole */
    padding: 100px 10% 20px 10%; 
    
    border-top-left-radius: 80px;
    border-top-right-radius: 80px;
    margin-top: -60px; 
    position: relative;
    z-index: 6; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap; 
    gap: 40px;
}

/* --- TYPOGRAFIA W STOPCE --- */
.footer-contact p {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

/* --- LINKI TEKSTOWE (Telefon, Email) --- */
.footer-contact a {
    color: #ffffff; 
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: #436d58; 
    text-shadow: 0 0 10px rgba(67, 109, 88, 0.4);
}

/* --- UKŁAD IKON SOCIAL MEDIA (Okrągłe Przyciski) --- */
.footer-socials {
    display: flex;
    gap: 15px; /* Odstęp między kółeczkami */
    align-items: center;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.03); /* Delikatne szklane tło */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Subtelna ramka */
    border-radius: 50%; /* Koło */
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover dla ikon social media */
.footer-socials a:hover {
    background-color: #436d58; 
    border-color: #436d58;
    color: #ffffff;
    transform: translateY(-5px); /* Uniesienie kółka */
    box-shadow: 0 10px 20px rgba(67, 109, 88, 0.4); /* Zielona poświata */
}

/* --- LOGO W STOPCE --- */
.footer-logo {
    display: flex;
    justify-content: flex-end; 
    position: relative; 
    width: 150px;       
    height: 70px;      
}

.footer-logo img {
    position: absolute;
    bottom: -30px; 
    right: -110px;
    height: 150px; 
    width: auto;
    opacity: 0.4; 
    filter: grayscale(100%); 
    transition: all 0.4s ease;
    z-index: 10;   
}

.footer-logo img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* --- DOLNY PASEK COPYRIGHT --- */
.footer-bottom {
    width: 100%; 
    text-align: center;
    margin-top: 20px; /* Zmniejszony odstęp nad linią (było 40px) */
    padding-top: 20px; /* Zmniejszony odstęp pod linią (było 25px) */
    border-top: 1px solid rgba(255, 255, 255, 0.08); 
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5); 
    letter-spacing: 0.5px;
    margin: 0; /* Upewniamy się, że paragraf nie dodaje własnych, ukrytych marginesów */
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #436d58; 
}

/* =========================================
   10. MEDIA QUERIES (WERSJA MOBILNA)
   ========================================= */

@media (max-width: 768px) {

    /* --- ZACHOWANA NAWIGACJA (EKSTREMALNIE MIĘKKI GRADIENT) --- */
    header {
        background: linear-gradient(
            to bottom, 
            rgba(0, 0, 0, 0.5) 0%,     
            rgba(0, 0, 0, 0.15) 50%,   
            rgba(0, 0, 0, 0) 100%      
        ) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        height: auto !important;
        padding: 20px 0 40px 0 !important; 
        flex-direction: column;
        border: none !important;
        box-shadow: none !important; 
    }

    /* Wymuszamy biały kolor linków na starcie */
    nav ul li a {
        color: #ffffff !important;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5) !important;
    }

    /* Logo na starcie jest białe */
    .logo img {
        filter: brightness(0) invert(1) !important;
        height: 45px !important;
        position: relative;
        transform: none !important;
    }

    /* --- STICKY (PO SCROLLOWANIU) --- */
    .header-sticky {
        background: rgba(255, 255, 255, 0.98) !important; 
        padding: 12px 0 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }

    /* Przy sticky linki i logo stają się ciemne */
    .header-sticky nav ul li a {
        color: #1a1a1a !important; 
        text-shadow: none !important; 
    }
    
    .header-sticky .logo img {
        filter: brightness(0.2) !important; 
    }

    /* --- RESZTA NAV --- */
    .logo {
        margin-bottom: 12px;
        width: auto;
    }

    nav { width: 100%; }

    nav ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        gap: 12px;
        padding: 0 10px;
        overflow-x: auto;
    }


    nav ul li a {
        font-size: 10px;
        letter-spacing: 1px;
        white-space: nowrap;
        font-weight: 700;
    }

    /* --- SEKCJA KONTAKTOWA --- */
    #kontakt-sekcja {
        padding: 120px 0 60px 0; 
    }

    .contact-box {
        flex-direction: column; 
        border-radius: 30px;
        margin-bottom: 60px;
    }

    /* Bardziej kompaktowe marginesy wewnątrz */
    .contact-info {
        width: 100%;
        min-width: 100%; 
        padding: 40px 20px 20px 20px; /* Mniej luzu na dole, żeby formularz był bliżej */
    }
    
    .contact-form-wrapper {
        width: 100%;
        min-width: 100%;
        padding: 30px 20px 40px 20px;
    }

    /* Zgrabniejszy tekst wprowadzający */
    .contact-info h2 {
        font-size: 28px; /* Mniejszy nagłówek */
        text-align: center;
        margin-bottom: 15px;
    }

    .contact-info .intro-text {
        font-size: 14px;
        text-align: center;
        margin-bottom: 35px;
        line-height: 1.5;
    }

    /* --- KOMPAKTOWE DANE KONTAKTOWE (POZIOMO) --- */
    .info-item {
        flex-direction: row; /* Zmieniamy z column na row - ikona obok tekstu! */
        align-items: center; /* Wyśrodkowanie w pionie */
        justify-content: flex-start;
        gap: 15px;
        margin-bottom: 20px;
        text-align: left; /* Tekst wyrównany do lewej dla lepszej czytelności */
    }

    /* Odrobinę mniejsze kółka na ikony */
    .icon-wrapper {
        width: 45px;
        height: 45px;
        font-size: 16px;
        flex-shrink: 0; /* Zabezpiecza przed zgniataniem kółka */
    }

    .info-text h4 {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .info-text p, .info-text a {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Pola formularza */
    .contact-form {
        gap: 15px; /* Mniejsze odstępy między polami */
    }

    .input-group input,
    .input-group textarea {
        padding: 14px 18px;
        font-size: 14px; /* Odrobinę mniejszy font w polach */
        border-radius: 12px;
    }

    .btn-cta-premium-contact {
        padding: 18px 20px;
        font-size: 14px;
        margin-top: 10px;
    }

    /* --- ZACHOWANA STOPKA (KOMPAKTOWA) --- */
    footer {
        padding: 40px 5% 30px 5% !important;
        border-top-left-radius: 30px !important; 
        border-top-right-radius: 30px !important;
        margin-top: -20px !important; 
        flex-direction: column !important; 
        text-align: center !important; 
        gap: 15px !important; 
    }

    .footer-contact { width: 100%; }
    .footer-contact p { font-size: 14px !important; margin-bottom: 5px !important; line-height: 1.6 !important; }
    
    /* Poprawka trzymająca maila i telefon w jednej linii z tekstem */
    .footer-contact a { display: inline !important; color: #ffffff !important; }
    
    .footer-socials { width: 100%; justify-content: center !important; margin: 5px 0 !important; }
    .footer-socials a { width: 38px !important; height: 38px !important; font-size: 15px !important; }
    .footer-logo { width: 100% !important; height: auto !important; justify-content: center !important; margin-top: 5px !important; }
    .footer-logo img { position: static !important; height: 60px !important; opacity: 0.4 !important; filter: grayscale(100%) !important; }

    /* --- DOLNY PASEK COPYRIGHT (WERSJA MOBILNA) --- */
    .footer-bottom {
        margin-top: 20px !important;
        padding-top: 15px !important;
        padding-bottom: 5px !important;
        width: 100% !important;
    }

    .footer-bottom p {
        font-size: 11px !important; /* Zmniejszamy czcionkę na telefonie */
        line-height: 1.8 !important; /* Większy odstęp między linijkami, gdy tekst się złamie */
        padding: 0 15px !important; /* Zabezpiecza tekst przed dotykaniem bocznych krawędzi ekranu */
        color: rgba(255, 255, 255, 0.4) !important; /* Odrobinę bardziej przygaszony kolor */
    }
    
    .footer-bottom a {
        font-size: 11px !important;
    }
}

/* --- EKSTREMALNIE MAŁE EKRANY (poniżej 400px) --- */
@media (max-width: 400px) {
    nav ul {
        grid-template-columns: 1fr 1fr;
    }
    .logo {
        grid-column: 1 / span 2;
        margin-bottom: 5px;
    }
    nav ul li a {
        font-size: 9px;
    }
    .contact-info h2 {
        font-size: 28px;
    }
}

/* =========================================
   KOMUNIKAT O WYSŁANIU FORMULARZA
   ========================================= */
.success-message {
    text-align: center;
    padding: 60px 30px;
    background-color: #f9f9f7;
    border-radius: 20px;
    border: 1px dashed rgba(67, 109, 88, 0.3);
    animation: fadeIn 0.5s ease forwards;
    
    /* Uproszczone wyśrodkowanie wewnętrzne */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.success-message i {
    font-size: 60px;
    color: #436d58;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 26px;
    color: #2c4033;
    margin-bottom: 15px;
    font-weight: 700;
}

.success-message p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    /* DODANE: Zwęża tekst, dzięki czemu wygląda on zgrabniej i bardziej "na środku" */
    max-width: 85%; 
    margin: 0 auto;
}