/*
Theme Name: Astra Child
Template: astra
*/

                                          /*  HEADER */
                                         

/* Cały wrapper headera — przezroczystość i blur */
header.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100% !important;
  z-index: 9999 !important;

  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;

  box-shadow: none !important;
  margin-left: 0 !important;
  transform: none !important;
  transition: none !important;
}



                                              /*===== strona główna ===== */


                                                  /*===== SIDE BAR===== */
.dot-nav {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: gray;
  opacity: 0.5;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background: #fbb400;
  transform: scale(1.6);
  opacity: 1;
}

                                                  /* ===== UKRYTY H1 ===== */
.visually-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

                                                  /* ===== KONTENER HERO ===== */
body,
.page,
.site,
.ast-site-header,
.ast-plain-container.ast-no-sidebar .site-content,
.hero {
  position: relative;
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin-top: 0;
    overflow: visible;
    display: block;
    align-items: center;
}


                    /* == kontenery które zawierają film i nagłówek == */
.film-column {             
  position: relative;
  
}

.film-hover {
  position: relative;
  overflow: hidden;
  height: 100vh;
  z-index: 1;
  
}


.film-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05); /* opcjonalnie dla widoczności */
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px); /* Safari */
  z-index: 2;
  pointer-events: none;
  transition: backdrop-filter 0.4s ease, opacity 0.4s ease;
}


.film-column:hover .film-hover::before {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0; /* smooth znika */
}


.film-hover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1; /* pod pseudo-elementem ::before */
}


.overlay-title {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  transform: translate(-50%, -50%);
  z-index: 3;
  color: white;
  font-size: 2.5rem;
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0);
  border-radius: 0.5rem;
  font-weight: bold;
  transition: transform 0.4s ease, background 0.4s ease;
}

.film-column:hover .overlay-title {
  transform: translate(-50%, -50%) scale(1.2);
  background: rgba(0, 0, 0, 0);
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}


/* Usń biały pasek nad główną treścią */
.content-area,
.site-main,
.ast-container {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}



                                                            /* ===== SLAJDY ===== */

                                                              /* === STORY CONTAINER === */
.story-container {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

                                                      /* === WSPÓLNE DLA WSZYSTKICH SCEN === */
.scene {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.scene.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

                                                          /* === SCENA 1: FADE + SCALE === */
.scene-1 {
  transform: scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 80;
}

.scene-1.active {
  transform: scale(1);
}

                                                      /* === SCENA 2: SLIDE-IN Z LEWEJ === */
.scene-2 {
  transform: translateX(-100vw);
  transition: all 0.8s ease;
  z-index: 70;
}

.scene-2.active {
  transform: translateX(0);
}

                                                    /* === SCENA 3: ZOOM-IN === */
.scene-3 {
  transform: scale(0.6);
  transition: all 0.6s ease;
  z-index: 60;
}

.scene-3.active {
  transform: scale(1);
}

                                                      /* === SCENA 4: PARALLAX === */
.scene-4 {
  position: absolute;
  z-index: 50; /* Ustawienie z-index niżej niż scena 5, aby scena 5 mogła być widoczna */
}

.scene-4-container {
  position: relative; /* Zapewnia kontekst dla absolutnie pozycjonowanych dzieci */
  width: 100%;        /* Powinien wypełniać .scene-4 */
  height: 100vh; /* musi być większa niż ekran dla płynnego scrolla */
  overflow: hidden;
  /* z-index: 50; */ /* z-index na .scene-4 (rodzicu) jest kluczowy dla kolejności scen */
}

.scene-4-video-wrapper {
  position: absolute; /* GSAP będzie kontrolować jego pozycję przez transformacje */
  top: 0;             /* Początkowe top, yPercent przesunie go w dół */
  left: 0;            /* Początkowe left */
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transform-origin: center center;
}

.scene-4-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; /* To jest resetowane przez GSAP, więc może być tu lub nie */
  object-position: center center; /* Ujednolicone do standardowego wyśrodkowania */
}
.scene-4-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
                            /* naglowki */
.scene-4-headings {
  position: absolute;
  top: 50%;
  left: 50vw;                /* Przylega do prawej krawędzi */    
  width: 35vw !important;         /* Nie przekracza połowy ekranu */
  transform: translateY(-50%);
  opacity: 0;
  z-index: 40;
  text-align: right;       /* Wyrównanie tekstu do prawej */
  color: white;
 
  pointer-events: none;
  transition: opacity 0.5s ease;
  /* Dodaj break-word żeby długie słowa się nie rozjeżdżały */
  word-break: break-word;
}


.scene-4-headings h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  
}

.scene-4-headings p {
  font-size: 1.2rem;
  
}


                                                                                  
                                                                
                                                                                  /* Scena 5 */
                                                                                           



.scene-5 {
 height: 100vh; /* Wysokość na pełen ekran */
  z-index: 40; 
}

.scene-5-container {
  position: absolute; /* Kontekst pozycjonowania dla dzieci */
  width: 100%;
  height: 100vh;
  overflow: hidden; /* Ukrywa elementy wychodzące poza kontener */
}

.scene-5-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Pod nagłówkami */
  display: flex; /* Dodane dla spójności z .scene-4-video-wrapper */
  justify-content: center; /* Dodane dla spójności */
  align-items: center; /* Dodane dla spójności */
  overflow: hidden; /* Dodane dla spójności i poprawnego border-radius */
  transform-origin: center center; /* Dodane dla spójności z .scene-4-video-wrapper */
  box-sizing: border-box; /* Dobra praktyka */
}

.scene-5-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Pokrywa cały wrapper, może przyciąć wideo */
  object-position: center center; /* Dodane dla spójności, standardowe wyśrodkowanie */
  box-sizing: border-box; /* Dobra praktyka */
}

.scene-5-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene-5-headings {
  position: absolute;
  top: 50%;
  right: 50vw;                /* Przylega do prawej krawędzi */
  width: 40vw !important;             /* Maksymalnie 50% szerokości ekranu */
  min-width: 280px;        /* Minimalna szerokość, żeby tekst się nie łamał za mocno na mobilu */
  max-width: 50vw;         /* Nie przekracza połowy ekranu */
  transform: translateY(-50%);
  opacity: 0;
  z-index: 2;
  text-align: left;       /* Wyrównanie tekstu do prawej */
  color: white;  
  padding-left: 0;      /* Opcjonalnie, żeby tekst nie kleił się do krawędzi */
  pointer-events: none;
  transition: opacity 0.5s ease;
  /* Dodaj break-word żeby długie słowa się nie rozjeżdżały */
  word-break: break-word;
}

/* Dodane dla indywidualnych nagłówków w scenie 5 */
.scene-5-headings .scene5-naglowek1,
.scene-5-headings .scene5-naglowek2,
.scene-5-headings .scene5-naglowek3 {
  opacity: 0; /* Początkowo niewidoczne */
}

.scene-5-headings h2 {
  font-size: 2.5rem;        /* Tak jak w scenie 4 */
  margin-bottom: 1rem;      /* Tak jak w scenie 4 */
}

.scene-5-headings p {
  font-size: 1.2rem;        /* Tak jak w scenie 4 */
}                           


                                  /* === DODATKI === */
.fade-in {
  opacity: 0;
}

.fade-in.active {
  opacity: 1;
}

.centered-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
}

.wp-block-code code {
  visibility: hidden;
}


                                                              /* ===== kontener 8  ===== */
.kontener8 {
  position: relative;
  width: 100%;
  height: 100vh;
  
                                                               /* ===== SKLEP ===== */
}


footer{
  position: relative;
  width: 100%;
  height: auto;
  padding: 20px;
  background-color: #f8f9fa; /* Jasne tło dla stopki */
  text-align: center;
  color: #343a40; /* Ciemny tekst */
}