
/* 1. Główne elementy nawigacyjne (Logo, Menu, Dots) */
#site-header,
.site-logo,
.nav-menu,
/* #navDots, */
.brand-logo {
  position: fixed !important; /* lub absolute w zależności od struktury */
  z-index: 99999 !important;   /* ZAWSZE na samej górze nad wszystkimi sekcjami */
  pointer-events: auto !important; /* KLUCZOWE: Przywraca klikalność */
}

/* 2. Jeśli logo znajduje się wewnątrz linku <a> */
.site-logo a,
a.logo-link {
  display: inline-block;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* 2. Stan otwartego menu (przykład wjeżdżającego panelu) */
.main-navigation.is-open,
#main-nav.is-open,
.nav-overlay.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0%) !important; /* Lub translateX(0%) w zależności od stylu */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
}

/* Scrollytelling Engine & Full-Background Layout Styles */
#viewport-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#scrolly-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.fp-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-beige);
}

/* Vertical Section Full Background & Overlay Container */
.vertical-section {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}

.content-overlay-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: clamp(20px, 4vw, 50px);
  display: flex;
  box-sizing: border-box;
}

/* Position Options */
.pos-center {
  align-items: center;
  justify-content: center;
}
.pos-bottom-center {
  align-items: flex-end;
  justify-content: center;
}
.pos-bottom-left {
  align-items: flex-end;
  justify-content: flex-start;
}
.pos-bottom-right {
  align-items: flex-end;
  justify-content: flex-end;
}
.pos-top-left {
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 90px;
}
.pos-top-right {
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 90px;
}

/* Card Content Container & Styles */
.content-card {
  padding: 30px;
  border-radius: 12px;
  box-sizing: border-box;
  max-height: 75vh;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .content-card {
    padding: 40px;
    max-height: 80vh;
  }
}

/* Width Options */
.card-w-small { width: 100%; max-width: 420px; }
.card-w-medium { width: 100%; max-width: 650px; }
.card-w-large { width: 100%; max-width: 900px; }
.card-w-full { width: 100%; max-width: 95vw; }

/* Background Style Options */
.card-style-blur-white {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  color: var(--text-dark);
}
.card-style-solid-white {
  background: #ffffff;
  color: var(--text-dark);
}
.card-style-blur-dark {
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(12px);
  color: #ffffff;
}
.card-style-blur-dark h2,
.card-style-blur-dark h3 {
  color: var(--ikea-yellow) !important;
}
.card-style-transparent {
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.card-style-transparent h2,
.card-style-transparent h3 {
  color: #ffffff !important;
}

.content-card h2,
.content-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 20px;
  line-height: 1.25;
}

.content-card .tag {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
}

.content-card .text-body {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.6;
}

/* Header & Fixes for Logo & Dots Visibility */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.f5-logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.18);
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 10000;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
}

.f5-logo-circle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(0,0,0,0.25);
}

.f5-logo-circle.inline {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px auto;
  box-shadow: none;
  border: 2px solid #111;
}

.f5-text {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  color: #111111;
  line-height: 1;
}

.f5-logo-circle.inline .f5-text {
  font-size: 1.5rem;
}

/* Nav Dots */
.nav-dots {
  display: none;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
  position: relative;
  z-index: 10000;
}

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

.nav-dot.active {
  background: var(--ikea-blue);
  border-color: #ffffff;
  transform: scale(1.4);
}

/* Desktop Lock Overlay Screen */
.desktop-lock-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #111111;
  color: #ffffff;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

@media (min-width: 1200px) {
  .desktop-lock-screen {
    display: flex;
  }
}

.desktop-lock-card {
  max-width: 480px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.desktop-lock-card h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--ikea-yellow);
}

.desktop-lock-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 25px;
}

.qr-placeholder {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  /* max-width: 900px; */
  padding: 40px;
  text-align: left;
  max-height: 100vh;
}

.hero-content h1 {
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-content h2 {
  font-size: clamp(1.05rem, 2.5vw, 1.6rem);
  font-weight: 400;
  opacity: 0.9;
  max-width: 700px;
}

.badge {
  display: inline-block;
  background: var(--ikea-yellow);
  color: #000;
  font-weight: 700;
  padding: 6px 14px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border-radius: 2px;
}

/* Scrollable Container Classes */
.fp-scrollable-content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.fp-scrollable-content::-webkit-scrollbar {
  width: 5px;
}
.fp-scrollable-content::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

/* Horizontal Track */
.fp-horizontal {
  padding: 0;
}

.horizontal-track {
  display: flex;
  height: 100%;
  width: 100%;
  will-change: transform;
}

.horiz-slide {
  flex: 0 0 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eae5dc;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.quote-section {
  background: var(--ikea-blue);
  color: #fff;
  text-align: center;
  padding: 40px;
}

.quote-box {
  max-height: 100vh;
}

.quote-box blockquote {
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 900px;
  margin-bottom: 20px;
}

.quote-box cite {
  font-size: 1.2rem;
  color: var(--ikea-yellow);
  font-style: normal;
}

/* Fullscreen Menu Drawer Modal */
.menu-modal-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99990 !important; /* Tuż pod przyciskiem logo */
  background-color: rgba(0, 0, 0, 0.85); /* Przyciemnienie tła */
  
  /* Stan Domyślny: Ukryty i przesunięty w górę */
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  transform: translateY(-100%);
  
  /* Płynna animacja wjeżdżania */
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.35s ease, 
              visibility 0.35s ease;
}

.menu-modal-overlay.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0%) !important;
}

.menu-modal-content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
  background: #fff;
}

.menu-modal-overlay.is-open .menu-modal-content {
  /* transform: translateX(0); */
}

.menu-close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: #111;
  cursor: pointer;
}

.menu-modal-header {
  text-align: center;
  margin-top: 20px;
}

.menu-modal-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ikea-blue);
  letter-spacing: 1px;
}

.menu-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.modal-nav {
  margin: 40px 0;
}

.modal-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-menu-list li a {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-menu-list li a:hover {
  color: var(--ikea-blue);
}

.menu-modal-footer {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
}



/* ======================================================== */

/* Reset i blokada domyślnego scrolla okna */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  background-color: #000; /* lub kolor tła strony */
}

#viewport-wrapper {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Niewidoczne sekcje są całkowicie przepuszczalne dla dotyku */
.fp-section {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  box-sizing: border-box;
  will-change: transform, visibility;
  visibility: visible !important; /* Wymagane dla wideo na iOS */
  opacity: 0;
  pointer-events: none !important;
  transition: opacity 0.3s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

/* TYLKO sekcja aktywna przechwytuje gesty */
.fp-section.active-section {
  opacity: 1;
  pointer-events: auto !important;
  z-index: 10 !important;
}

/* Sekcje biorące udział w animacji/przeciąganiu */
.fp-section.animating-section {
  opacity: 1;
  pointer-events: auto !important;
  z-index: 20 !important; /* Wyższy z-index podczas gestu drag/snap */
}

/* Sekcja Horyzontalna */
.fp-horizontal {
  padding: 0;
}

.horizontal-track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.horiz-slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  position: relative;
  box-sizing: border-box;
}