@charset "UTF-8";
/* CSS Document */

/* ============================
   BASE / SCROLL SETUP
   ============================ */

/* ROOT: ramka, nie scrolluje */
html, body {
  height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;     /* płynne przewijanie do #anchorów */
  overflow: hidden;            /* żeby scroll był tylko na body */
}

/* BODY: właściwy scroller z magnesem */
body {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory; /* magnes w osi Y */
  scroll-padding-top: 100px;     /* wysokość top bara przy anchorach */

  /* Stałe tło */
  background-image: url("../assets/img/bg-site-main.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-color: #242424;

  color: #f8f9fa;
}

/* KEYNOTE overlay background (nad stałym tłem, pod treścią) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 0;                 /* ważne: pod treścią */
  pointer-events: none;
  opacity: 0;                 /* domyślnie niewidoczne */
  transition: opacity .35s ease, background-image .2s ease;

  background-repeat: no-repeat;
  background-position: right top;
  background-size: min(520px, 46vw);
  background-image: var(--keynote-overlay, none);
}

/* gdy jesteśmy w keynote – pokazujemy overlay */
body.is-keynote::before{
  opacity: 1;
}

/* upewnij się, że sekcje są NAD overlay */
main, header, section, footer{
  position: relative;
  z-index: 1;
}

/* mobile: mniejszy i bardziej "poza ekran" */
@media (max-width: 991.98px){
    body {
        background-position: 70% center;
    }    
    
  body::before{
    background-size: min(360px, 72vw);
    background-position: right -30vw top 20px;
  }
}


/* Typography helpers */
p.lead {
  color: #ffffff;
  font-size: 18px;
}

body h2 {
  color: #707070;
}

/* ============================
   TOP BAR
   ============================ */

top.top-bar { display: block; }

.top-bar {
  height: 100px;
  background: rgba(36, 36, 36, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 70px;
  width: auto;
  display: block;
}

.btn-hello {
  background: #EF0257;
  color: #242424;
  padding: 7px 45px;
  border-radius: 7px;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  transition: all 0.25s ease;
}

.btn-hello:hover {
  background: #59397b;
  color: #eeeeee;
  transform: translateY(-1px);
}

/* OFFSET POD FIXED HEADER */
#hero { padding-top: 120px; }

/* ============================
   GLOBAL SECTIONS / SNAP
   ============================ */

section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Full-screen sections */
.screen-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* (Zostawiamy dla zgodności, ale bez duplikowania właściwości) */
#clients,
#contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

#clients > .container,
#contact > .container {
  width: 100%;
}

/* ============================
   HERO – overlay text + video
   ============================ */

#hero .container { position: relative; }
.hero-stack { position: relative; }


/* video styling – jedna definicja (usunęliśmy duplikat) */
.hero-video {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,0.18);
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
  position: relative;
  z-index: 1;
}

.hero-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Gradient w H1 */
.gradient-text {
  background: linear-gradient(
    115deg,
    #F8BA0E 0%,
    #F8BA0E 10%,
    #28BD1A 40%,
    #6235D3 90%,
    #6235D3 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Desktop overlay */
@media (min-width: 992px) {
  .hero-copy {
    position: relative;
    left: 0;
    top: 50%;
    z-index: 3;
    pointer-events: none;
  }

  /* video przyklejone do prawej */
  #hero .hero-video {
    position: relative;
    right: 0;
    top: 50%;
    z-index: 1;
  }

}

@media (min-width: 1600px) {
  #hero .hero-video { right: 40px; }
}

/* ============================
   SMALL UI ELEMENTS (zostają)
   ============================ */

.hero-badge {
  font-size: 0.75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scroll-indicator {
  margin-top: 40px;
  font-size: 0.75rem;
  opacity: 0.7;
}

.scroll-indicator span {
  display: inline-block;
  animation: bounce 1.4s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.feature-box {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 20px 18px;
  height: 100%;
}

.logo-strip img {
  max-height: 32px;
  margin: 0 18px 12px 0;
  opacity: 0.85;
}

.form-status { color: #28BD1A; }

/* ============================
   KEYNOTE SECTION
   ============================ */

/* teksty */
#keynote .keynote-title { color: #707070; }

#keynote .keynote-body {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 44rem;
  margin-bottom: 40px;
}

#keynote .keynote-split {
  margin-top: 60px;
  margin-bottom: 40px;
}

#keynote .keynote-accent-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-size: 56px;
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
}

.keynote-title-yellow { color: #F8BA0E; }
.keynote-title-green  { color: #28BD1A; }
.keynote-title-berry  { color: #E60D4C; }
.keynote-title-violet { color: #6235D3; }

#keynote .keynote-right-text {
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 42rem;
  margin: auto auto;
}

#keynote .keynote-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
}

/* warstwy */
#keynote .keynote-section { position: relative; }
#keynote .keynote-title,
#keynote .keynote-body,
#keynote .keynote-slides,
#keynote .keynote-split,
#keynote .keynote-divider {
  position: relative;
  z-index: 2;
}

/* scroll-track + sticky (mechanika) */
#keynote .keynote-track{
  height: auto;           /* reguluj wg potrzeb */
  position: relative;
}

#keynote .keynote-sticky{
  position: static;
  top: 100px;
  height: calc(100vh - 100px);

  display: flex;
  flex-direction: column;   /* <<< KLUCZ */
  align-items: flex-start;  /* zostaje */
}

#keynote .keynote-intro {
    padding-top: 100px;
}

#keynote .keynote-slides{
  width: 100%;
  margin-top: 60px;         /* żeby blok “Corporate…” wrócił pod intro */
}


#keynote .keynote-float{
  position: absolute;
  top: 40px;
  right: 0;

  width: clamp(260px, 26vw, 420px); /* responsywnie, ale pod kontrolą */
  height: auto;

  z-index: 1;
  pointer-events: none;
  opacity: 1;
}

#keynote .keynote-float { opacity: 0; transition: opacity 200ms ease; }
#keynote.is-visible .keynote-float { opacity: 1; }


/* na razie NIE używamy #keynote.is-visible */
#keynote.is-visible .keynote-float{
  opacity: 1;
  transform: translateX(-30%) translateY(0);
}

/* kontener slajdów jako kontekst */
#keynote .keynote-slides {
  position: relative;
  min-height: 260px; /* ← dopasuj do wysokości największego slajdu */
}

/* WSZYSTKIE slajdy nakładamy na siebie */
#keynote .keynote-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: block;        /* ← UWAGA: nie none */
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

#keynoteFloat {
  opacity: 0;
    pointer-events: none;
  display: block !important;
  visibility: visible !important;
  outline: 2px dashed red;   /* tylko do debugowania */
}


/* tylko aktywny jest widoczny */
#keynote .keynote-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

#keynoteTitle,
#keynoteText,
#keynoteFloat {
  transition: opacity 260ms ease;
}

.is-fading {
  opacity: 0;
}

#keynote .keynote-carousel{
  width: 100%;
  overflow: hidden;
    padding-top: 30px;
}

#keynote .keynote-rail{
  display: flex;
  gap: 0px;
}

#keynote .keynote-card{
  flex: 0 0 100%;
}

#keynote .keynote-grid{
  display: grid;
  grid-template-columns: 5fr 3fr 3fr; /* HEAD / TEXT / NEXT */
  column-gap: 25px;
  align-items: start;
}

#keynote .keynote-divider{
  grid-column: 1 / span 2;
  margin-top: 50px;
  height: 1px;
  background: rgba(255,255,255,0.9);
}

#keynote .keynote-right-text{
  max-width: 42ch;
}

#keynote .keynote-next{
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  align-self: flex-start;
  margin: auto auto;
}

#keynote .keynote-next img {
    width: 60%;
}

@media (max-width: 991.98px){
  #keynote .keynote-grid{
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  #keynote .keynote-next{
    align-self: flex-start;
  }
}

@media (max-width: 767.98px) {
  #keynote .keynote-title {
    margin-bottom: 16px;
  }

  #keynote .keynote-body {
    margin-top: 0;
    margin-bottom: 32px;
    max-width: 100%;
  }
    
    #keynote .keynote-grid {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
    
  #keynote .keynote-right-text {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.4;

}

  #keynote .keynote-next {
    justify-self: end;
    margin-top: 12px;
  }
    
  #keynote .keynote-accent-title {
    font-size: 44px;
  }
}



/* Twoje “przyklejenie do prawej” na desktop – zostaje */
@media (min-width: 992px) {
  #keynote .keynote-float {
    --float-overlap: 30%;
    right: calc(100vw - (100% + var(--float-overlap)));
  }
}



/* --- KEYNOTE GRID: jawne ułożenie elementów --- */
#keynote .keynote-grid{
  display: grid;
  grid-template-columns: 5fr 3fr 3fr; /* HEAD / TEXT / NEXT */
  column-gap: 25px;
  align-items: start;
}

/* HEAD w kolumnie 1 */
#keynote .keynote-grid > h3{
  grid-column: 1;
}

/* tekst w kolumnie 2 */
#keynote .keynote-grid > p{
  grid-column: 2;
}

/* przycisk w kolumnie 3 */
#keynote .keynote-grid > .keynote-next{
  grid-column: 3;
  justify-self: end;
  align-self: start;
}

/* divider ma być POD head+tekst, NIE pod przyciskiem */
#keynote .keynote-grid > .keynote-divider{
  grid-column: 1 / 3;     /* tylko kolumny 1-2 */
  margin-top: 50px;
  width: 100%;
}

@media (max-width: 991.98px){
  #keynote .keynote-grid{
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  #keynote .keynote-grid > h3{ grid-column: 1; }
  #keynote .keynote-grid > p{ grid-column: 1; }

  #keynote .keynote-grid > .keynote-next{
    grid-column: 1;
    justify-self: end;
    margin-top: 6px;
  }

  #keynote .keynote-grid > .keynote-divider{
    grid-column: 1;
    margin-top: 24px;
  }
    
    #keynote .keynote-intro {
        padding-top: 10px;
    }
}


@media (max-width: 991.98px){
  #keynote .keynote-grid > .keynote-next{
    justify-self: end;
    margin-right: 6px; /* delikatne dociśnięcie */
  }
}




/* ============================
   CLIENTS / LOGO SECTION
   ============================ */

/* jedno źródło prawdy (usunęliśmy duplikaty #clients i .clients-title) */
#clients {
  padding-top: 0px;
  min-height: calc(100vh - 50px);
}

#clients > .container.clients-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.clients-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  color: #707070;
  margin-bottom: 32px;
}

.clients-body {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  max-width: 36rem;
}

.clients-section {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* logos */
.clients-logos {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 150px;
  margin-bottom: -20px;
}

.client-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 60px;
}

.client-logo:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.16);
}

.client-logo img {
  display: block;
  opacity: 0.9;
  max-height: 28px;
  width: auto;
  transition: opacity .25s ease;
}

.client-logo:hover img { opacity: 1; }

.logo-allegro img   { max-width: 100px; }
.logo-zabka img     { max-width: 180px; }
.logo-shell img     { max-width: 80px; }
.logo-stock img     { max-width: 110px; }
.logo-biedronka img { max-width: 110px; max-height: 40px; margin-top: -20px; }

/* mobile tweaks */
@media (max-width: 767.98px) {
  .clients-logos {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 26px;
    padding-top: 40px;
    padding-bottom: 20px;
    margin-bottom: 0;
  }

  .client-logo:not(:first-child)::before { display: none; }
}

/* ============================
   CONTACT SECTION
   ============================ */

#contact.contact-section {
  min-height: calc(100vh - 200px);
  position: relative;
  display: flex;
  align-items: flex-start;
}

#contact.section-divider {
  padding-top: 100px;
  padding-bottom: 60px;
}

.contact-main-row { margin-top: 60px; }

.contact-right { text-align: left; }

.contact-heading-right {
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 24px;
}

.contact-line-right {
  font-size: 1rem;
  color: #f0f0f0;
  margin: 4px 0;
}

.contact-gradient-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, #6235D3, #E60D4C);
}


/* ============================
   FOOTER BAR (20px)
   ============================ */

footer {
  height: 20px;
  padding: 0;
  border-top: none;
}

footer,
footer * {
  color: transparent;
  font-size: 0;
}

.logo-bottom-svg {
    height: 200px;
}

body.is-keynote {
  scroll-snap-type: none;
}

