/*
Theme Name: The Invest Club
*/

/* RESET & GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #161d39;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden; /* Ukrywa domyślny pasek przeglądarki, scrollujemy kontener */
    position:relative
}

body::after {
    content: "";
    position: fixed; /* Sprawia, że ramka "pływa" nad stroną i nie przewija się */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Tworzy ramkę 20px dookoła. Zmień kolor (black) na dowolny */
    border: 14px solid #f8f5f0; 
    
    /* Ważne: aby ramka nie zmieniała rozmiaru strony (scrollbary) */
    box-sizing: border-box; 
    
    /* Ustawia ramkę na samej górze wszystkich elementów */
    z-index: 9999; 
    
    /* NAJWAŻNIEJSZE: Sprawia, że ramka jest "przezroczysta" dla myszki.
       Dzięki temu możesz klikać w elementy pod nią i w środku niej. */
    pointer-events: none; 
}

/* GŁÓWNY KONTENER SCROLLOWANIA */
.main-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    
    /* UKRYWANIE SCROLLBARA */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Ukrywanie scrollbara dla Chrome/Safari/Opera */
.main-container::-webkit-scrollbar {
    display: none;
}

section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always; /* Zmusza do zatrzymania na sekcji */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0px;
    text-align: center;
}

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    animation: bgToDark 5s ease-in-out forwards;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.preloader-logo {
    font-family: "athena", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2rem;
    letter-spacing: 5px;
    position: relative;
    width: 350px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo img {
    max-width: 324px;
    position: absolute;
}

.logo-dark {
    opacity: 1;
    animation: fadeOutLogo 5s ease-in-out forwards;
}

.logo-white {
    opacity: 0;
    animation: fadeInLogo 5s ease-in-out forwards;
}

@keyframes bgToDark {
    0% { background-color: #ffffff; }
    100% { background-color: #161d39; }
}

@keyframes fadeOutLogo {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fadeInLogo {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.slogan-mobile {
    display:none
}


@keyframes pulseFade {
    0%, 100% { opacity: 0.1; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

/* NAWIGACJA (KROPKI) PO PRAWEJ */
.nav-dots {
    position: fixed;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.dot:hover, .dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.3);
}

/* LOGO STYLES */
.logo-container {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1s ease, transform 1s ease;
}

section.visible .logo-container {
    opacity: 1;
    transform: translateY(0);
}

.logo-text {
    font-family: "athena", sans-serif;
font-weight: 400;
font-style: normal;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.2rem;
    display: block;
}

.logo-img img{
    max-width:150px
}

.logo-sub {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    margin-top: 5px;
    display: block;
    color: #ccc;
}

/* MASKOWANIE I ANIMACJA TEKSTU */
.slogan-wrapper {
    overflow: hidden;
    margin-bottom: 60px;
}

.slogan {
  font-family: "athena", sans-serif;
font-weight: 400;
font-style: normal;
    font-size: 25px;
    text-transform: uppercase;
    letter-spacing: 11px;
    line-height: 1.4;
}

/* Pojedyncza litera w wrapperze */
.char-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.char {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.char.animated {
    transform: translateY(0);
}

/* OPISY (FADE UP) */
.description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
    letter-spacing:.5px
}

section.visible .description {
    opacity: 1;
    transform: translateY(0);
}

.cta {
    margin-top: 20px;
    font-weight: 400;
}

/* SEKCJA 3 - ZDJĘCIE */
.section-three {
    justify-content: space-between;
    padding-top: 35px;
    padding-bottom: 0;
}

.full-width-image {
    width: 100%;
    flex-grow: 1;
    background-image: url('bg.jpg'); 
    background-size: cover;
    background-position: center;
    margin: 20px 0;
    position: relative;
    opacity: 0;
    transition: opacity 1.5s ease;
    margin-top:15px
}

section.visible .full-width-image {
    opacity: 1;
}

.full-width-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(22, 29, 57, 0.3);
}

.footer {
    width: 100%;
    padding: 20px;
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom:35px
}

/* CONTACT ROW */
.contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px; /* Zwiększony odstęp między grupą tel a grupą email */
    flex-wrap: wrap; /* Pozwala spaść elementom niżej na mniejszych ekranach */
    margin-top: 45px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}
section.visible .contact-row {
    opacity: 1;
    transform: translateY(0);
}

.phone-link {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #ccc;
}

/* Styl dla pojedynczej grupy (ikona + tekst) */
.contact-block {
    display: flex;
    align-items: center;
    gap: 10px; /* Odstęp między ikoną a tekstem */
}

.form-row {
    margin-top:40px
}

.form-row-title h2.slogan {
    font-size: 19px;
}

.form-row-box {
    margin-top:10px;
    width:100%;
    max-width:900px
}

.form-box {
        transform: translateY(20px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
    opacity:0
}

section.visible .form-box {
        transform: translateY(0px);
        opacity:1
}

.form-box-row {
display: flex;          /* Ustawia dzieci w wierszu */
    gap: 10px;              /* Opcjonalnie: odstęp między kolumnami */
    justify-content: space-between; /* Opcjonalnie: rozmieszczenie elementów */
}

.form-col-3 {
flex: 1;           
}

.form-box-second-row {
    margin-top:10px;
}

.checkbox-box {
    font-size:13px;
    line-height:17px;
    margin-top:15px
}

.submit-box {
    margin-top:15px
}

input {
 width: 100%;
    border: 1px solid #424655;
    background: none;
    padding: 12px 17px;
    font-family:'Montserrat', sans-serif
}

textarea {
    width: 100%;
        border: 1px solid #424655;
    background: none;
    padding: 12px 17px;
    font-family:'Montserrat', sans-serif
}

.wpcf7-list-item input {
    width:auto;
    margin-right:5px;
    color:#aeaeae;
    font-family:'Montserrat', sans-serif
}

.wpcf7-list-item-label {
color:#a3a3a3
}

.wpcf7-submit {
    width: auto;
    display: inline-block;
    background-color: #161d39;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
        font-family:'Montserrat', sans-serif;
        border:1px solid #424655;
        transition:.3s;
        letter-spacing:1px
}

.wpcf7-submit:hover {
       background-color: #fff;
    color: #161d39;
        font-family:'Montserrat', sans-serif;
        border:1px solid #424655; 
}

.wpcf7-not-valid-tip {
    color: #ececec;
    font-size: 13px;
}

/* --- STYLE SLIDERA (DODAJ NA KOŃCU PLIKU) --- */

.full-width-slider {
    width: 100%;
    flex-grow: 1; /* Ważne: wypełnia przestrzeń jak stare zdjęcie */
    margin: 20px 0;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    
    /* Zachowanie efektu pojawiania się całej sekcji */
    opacity: 0;
    transition: opacity 1.5s ease;
}

/* Kiedy sekcja staje się widoczna (skrypt scrollowania dodaje klasę .visible na section) */
section.visible .full-width-slider {
    opacity: 1;
}

/* Styl pojedynczego slajdu */
.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    
    /* Domyślnie niewidoczny */
    opacity: 0;
    z-index: 1;
    
    /* Płynne przejście (crossfade) */
    transition: opacity 1.5s ease-in-out;
}

/* Klasa aktywna - pokazuje zdjęcie */
.slide-img.active {
    opacity: 1;
    z-index: 2;
}

/* Ciemna nakładka (taka sama jak była w oryginale) */
.full-width-slider::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(22, 29, 57, 0.3);
    z-index: 3; /* Musi być nad zdjęciami */
    pointer-events: none;
}


@media (max-width: 768px) {
    .nav-dots { right: 25px; }
    .slogan { font-size: 16px; letter-spacing: 5px; }


.slogan.slogan-mobile { font-size: 18px; letter-spacing: 6px;line-height:32px }

.preloader-logo img {
    max-width:250px
}

.description {
    font-size:15px;
    padding-left:10px;
    padding-right:20px
}

    #sec1, #sec2 {
        padding-left: 20px;
        padding-right: 20px;
    }

.slogan-wrapper {
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 25px;
}

.phone-link {
    font-size: 17px;
    letter-spacing: 1px;
}

.slogan-mobile {
    display:block
}

.slogan-desktop {
    display:none
}

.footer {
    font-size: 12px;
    letter-spacing: .4px;
    padding-left:0px;
    padding-right:0px
}

.logo-img img {
    max-width: 140px;
}



.wpcf7-spinner {
    display:none
}

body::after {
    border: 10px solid #f8f5f0; 
}

.contact-row {
        flex-direction: column; /* Ustawia elementy w pionie na telefonie */
        gap: 20px;
    }

input {
    padding: 9px 10px;
}

textarea {
    padding: 9px 10px;
}

.contact-row {
    margin-top:25px
}

    .phone-link {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .contact-row {
        gap: 10px;
    }

.form-row {
    margin-top: 25px;
}

.wpcf7-submit {
    font-weight: 500;
    font-size: 13px;
}

.wpcf7-not-valid-tip {
    font-size: 10px;
}

}
