/* Style CSS */
/* import fontu z google */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


/* SELEKTORY GLOBALNE */
*{
    box-sizing: border-box;
    transition: 300ms;
}
html{
    scroll-behavior: smooth;
    font-family: "Montserrat", sans-serif;
}
body{
    margin: 0; /* usuwa domyślny biały margines przeglądarki */
    line-height: 1.4;
}

p{
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6{
    font-family: "Montserrat", sans-serif;
}

h1{
    font-size: 64px;
    font-weight: 700;
}

h2{
    font-size: 40px;
    font-weight: 600;
}

h3{
    font-size: 28px;
    font-weight: 600;
}

h4{
    font-size: 20px;
    font-weight: 500;
}

h5{
    font-size: 32px;
    font-weight: 900;
}

a{
    text-decoration: none;
}

img{
    max-width: 100%;
}


/* NAWIGACJA */
nav{
    /* background-color: azure; */
    display: flex;
    justify-content: center;
    position: fixed;
    width: 100%;/*bo fixed niweluje domyślne 100%*/
    z-index: 1;/*zmiana kolejności warstw*/

    background-image: radial-gradient(circle at left top, rgba(70,104,141,0.4) 0%, rgba(70,104,141,0) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    /* From https://css.glass */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(10, 41, 55, 0.5);
}
nav ol{
    /* background-color: chartreuse; */
    max-width: 1400px;
    margin: 0;
    /* padding: 10px; */
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
nav ol li{
    flex: 1;
}
nav ol li a{
    /* background-color: aqua; */
    padding: 10px 1vw;
    display: inline;/*domyślne dla hiperłączy*/
    display: block;
    color: #fff;

    text-align: center;
    font-weight: 500;
    white-space: nowrap;
}
nav ol li a h4:hover{
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 10%;
}

/* WSZYSTKIE SEKCJE */
section{
    min-height: 30vh;
    /* vh = viewport height = % wysokości okna przeglądarki */
    /* uruchamiamy FLEXBOX */
    /* CONTAINER */
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    
    /* margines górny w trakcie przewijania - zeby nawigacja nie najezdzala na tresci */
    scroll-margin-top: 56px;
}
/* CLASS ma prefix . */
.zawartosc{
    /* background-color: red; */
    max-width: 1400px;
    width: 100%;
}

/* POSZCZEGÓLNE SEKCJE */
/* ID ma prefix # */
#pierwsza{
    position: relative;
    padding: 0;
    overflow: hidden;
}

#pierwsza .hero-img{
    display: block;
    width: 100%;   /* pełna szerokość kontenera (bez 100vw, żeby nie wywoływać poziomego scrolla) */
    height: auto;
    object-fit: cover;
}

#pierwsza .zawartosc{
    position: absolute;
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    margin-top: 25%;
}

#pierwsza .zawartosc *{
    pointer-events: auto; /* przywraca klikalność elementów wewnątrz zawartosc */
}

#pierwsza h1{
    color: #fff;
}

#pierwsza a{
    color: #fff;
    font-size: 18px;
    border: 2px solid #fff;
    padding: 15px 40px;
    border-radius: 40px;
}
#pierwsza a:hover{
    background-image: radial-gradient(circle at left top, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    /* From https://css.glass */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#druga{
    background-color: #08140A;
}
#druga .zawartosc{
    /* background-color: yellow; */
    /* CONTAINER */
    margin: 5% 0;
    display: flex;
    gap: 40px;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}
#druga .zawartosc article{
    /* background-color: red; */
    /* ITEMS */
    flex: 0 1 300px;/*elementy są max 300px*/
    flex: 1 1 300px;/*elementy się skalują bo flex-grow=1*/
    color: #fff;
    gap: 1vh;
}
#druga .zawartosc article:nth-of-type(2){
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    /* background-color: blue; */
}

/* obrazy w komórkach siatki */
/* obrazy w komórkach siatki - każdy obraz owinięty jest w .img-card */
#druga .zawartosc article:nth-of-type(2) .img-card{
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative; /* potrzebne do absolutnie pozycjonowanego overlaya i podpisu */
    display: block;
}

#druga .zawartosc article:nth-of-type(2) .img-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms ease; /* delikatne powiększenie przy hoverze */
}

/* trzeci obraz (trzeci element .img-card) zajmuje obie kolumny */
#druga .zawartosc article:nth-of-type(2) .img-card:nth-child(3){
    grid-column: 1 / -1;
}

/* OVERLAY GRADIENT + CAPTION */
#druga .zawartosc article:nth-of-type(2) .img-card::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4,12,6,0.6) 60%, rgba(4,12,6,0.9) 100%);
    opacity: 0;
    transition: opacity 260ms ease;
    pointer-events: none;
}

#druga .zawartosc article:nth-of-type(2) .img-card figcaption{
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    margin: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 260ms ease, transform 260ms ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    pointer-events: none;
}

/* Hover efekt: pokaż overlay i podpis; delikatne powiększenie obrazu */
#druga .zawartosc article:nth-of-type(2) .img-card:hover::before{
    opacity: 1;
}
#druga .zawartosc article:nth-of-type(2) .img-card:hover figcaption{
    opacity: 1;
    transform: translateY(0);
}
#druga .zawartosc article:nth-of-type(2) .img-card:hover img{
    transform: scale(1.06);
}
#druga p{
    /* background-color: greenyellow; */
}
#druga a{
    margin-top: 30px;
    display: inline-block;
    color: #fff;
    font-size: 18px;
    border: 2px solid #fff;
    padding: 15px 40px;
    border-radius: 40px;
}
#druga a:hover{
    /* From https://css.glass */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#trzecia{
    background-color: #0C351A;
}

#trzecia .zawartosc{
    margin: 5% 0;
    /* background-color: antiquewhite; */
}

#trzecia h2{
    color: #fff;
    text-align: center;
    margin-bottom: 32px;
}

#trzecia .zawartosc article{
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

#trzecia .zawartosc article .img-card{
    width: calc((100% - 60px) / 4); /* 3 * gap = 60px (adjusted) */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    display: block;
}

#trzecia .zawartosc article .img-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms ease, box-shadow 300ms ease;
    transform-origin: center center;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* overlay dla obrazów w sekcji 3 - pojawia się przy hoverze */
#trzecia .zawartosc article .img-card::before{
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(12,53,26,0.75); /* wymagany kolor overlay */
    opacity: 0;
    transition: opacity 260ms ease;
    pointer-events: none;
    z-index: 1;
}

#trzecia .zawartosc article .img-card figcaption{
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    color: #fff;
    z-index: 2; /* nad overlay */
    margin: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 260ms ease, transform 260ms ease;
    pointer-events: none;
}

#trzecia .zawartosc article .img-card figcaption h3{
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
}
#trzecia .zawartosc article .img-card figcaption p{
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

/* hover */
#trzecia .zawartosc article .img-card:hover::before{
    opacity: 1;
}
#trzecia .zawartosc article .img-card:hover figcaption{
    opacity: 1;
    transform: translateY(0);
}
#trzecia .zawartosc article .img-card:hover img{
    transform: scale(1.12) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

#trzecia a{
    color: #fff;
    text-decoration: underline;
}

#czwarta{
    background-color: #08140A;
}

#czwarta .zawartosc{
    margin: 5% 0;
    display: flex;
    gap: 40px;
    /* dodajemy zawijanie */
    flex-wrap: wrap;
}
#czwarta article{
    /* background-color: pink; */
    color: #fff;
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 1vh;
}
#czwarta article img{}
#czwarta article p{}
#czwarta article ul{
    color: #B7E733;
    list-style-type: disc;
    margin-left: 20px;
}
#czwarta article ul li{}
#czwarta article a{
    color: var(--kolor-uzupelniajacy);
    font-size: 18px;
    border: 2px solid var(--kolor-uzupelniajacy);
    padding: 10px 20px;
    border-radius: 40px;
    max-width: fit-content;
}
#czwarta article a:hover{
    background-color: var(--kolor-uzupelniajacy);
    color: var(--kolor-glowny);
}

#piata{
    position: relative; /* added so pseudo-element overlays background-image */
    background: url(../img/newsletter_bg.jpeg) no-repeat center center;
    background-size: cover;
}
/* overlay: ciemny kolor 0C351A na 75% krycia nad obrazem tła */
#piata::before{
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(12,53,26,0.75); /* #0C351A @ 75% */
    pointer-events: none;
    z-index: 0;
}

/* upewnij się, że zawartość jest ponad overlayem */
#piata .zawartosc{
    position: relative;
    z-index: 1;
    /* background-color: aqua; */
    margin: 5% 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#piata h2{
    color: #fff;
}

#piata p{
    color: #fff;
}

#piata p span{
    color: #B7E733;
}

#piata form{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* background-color: red; */
}

#piata form input[type=name]{
    width: 30%;
    padding: 15px 20px;
    border-radius: 40px;
    border: none;
    background: #fff;
    font-size: 18px;
}

#piata form input[type=email]{
    width: 30%;
    padding: 15px 20px;
    border-radius: 40px;
    border: none;
    background: #fff;
    font-size: 18px;
}

#piata form input[type=checkbox]{
    /* border-radius: 5px; */
    /* border: none; */
    transform: scale(1.5);
    display: inline-block;
    transform: translateY(-35px);
}
#piata footer{
    text-align: center;
    /* background-color: yellow; */
    max-width: 50%;
    margin-bottom: 50px;
}
#piata form label{
    text-align: left;
    max-width: 50%;
    color: #fff;
    font-size: 14px;
    display: inline-block;
    /* background-color: blue; */
}

#piata form input[type=submit]{
    color: #fff;
    font-size: 18px;
    border: 2px solid #fff;
    padding: 15px 40px;
    border-radius: 40px;
    cursor: pointer;
    background: transparent;
}

#piata form input[type=submit]:hover{
    background-image: radial-gradient(circle at left top, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    /* From https://css.glass */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* STOPKA */
#stopka{
    background-color: #08140A;
    color: #fff;

    min-height: 20vh;

    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
#stopka .zawartosc{
    display: flex;
    gap: 20px;
    align-items: stretch;
    justify-content: space-evenly;
    flex-wrap: wrap;
}
#stopka .zawartosc article{
    gap: 20px;
    flex:0 1 300px;
    flex-direction: column;
    text-align: center;
    display: flex;
}

#stopka h4{
    color: #B7E733;
}



#stopka .zawartosc article.kontakt{
    align-items: left;
    text-align: left;
}

#stopka .zawartosc article.social {
}
#stopka .zawartosc article.social a{
    padding-left: 50px;
    color: #B7E733;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}
#stopka .zawartosc article.social a img{
    border: 1px solid white;
    height: 50px;
    width: 50px;
    padding: 10px;
    border-radius: 50%;
    /* background-color: #B7E733; */
}

#stopka .zawartosc article.legal h4:hover{
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 10%;
}

#stopka .zawartosc article.social h4:hover{
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 10%;
}


#stopka .zawartosc article.kontakt a{
    color: #fff;
    font-size: 18px;
    border: 2px solid #fff;
    padding: 15px 40px;
    border-radius: 40px;
    text-align: center;
    width: 50%;
}
#stopka .zawartosc article.kontakt a:hover{
    background-image: radial-gradient(circle at left top, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    /* From https://css.glass */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#stopka .zawartosc article.social a img:hover{
    background-image: radial-gradient(circle at left top, rgba(255,255,255,0.4) 0%, rgba(183,231,51,0) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    /* From https://css.glass */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);

}
