/* === TRANSPARENT HEADER OVERLAY === */
.header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  background: transparent !important;
  box-shadow: none !important;
}

.header .topbar {
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(8px);
}

.header .branding {
  background: transparent !important;
  transition: background 0.4s ease;
}

.scrolled .header {
  background: var(--background-color) !important;
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1) !important;
}

.scrolled .header .topbar {
  background: var(--background-color) !important;
  backdrop-filter: none;
}

.scrolled .header .branding {
  background: var(--background-color) !important;
}

/* === HERO SLIDER === */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: 0;
}

.hero-slider .swiper {
  width: 100%;
  height: 100%;
}

.hero-slider .swiper-slide {
  position: relative;
  overflow: hidden;
}

.hero-slider .slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s ease-out;
}

.hero-slider .swiper-slide-active .slide-bg {
  transform: scale(1);
}

/* Video slides */
.hero-slider .slide-video {
  transform: none !important;
  transition: none;
}

.hero-slider .slide-youtube {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 100vw !important;
  height: 56.25vw !important;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%) !important;
  pointer-events: none;
  object-fit: cover;
}

/* Mobile video horizontal offset */
@media (max-width: 768px) {
  .hero-slider .slide-video[style*="--mobile-video-offset"] {
    object-position: calc(50% + var(--mobile-video-offset, 0px)) center;
  }
  .hero-slider .slide-youtube[style*="--mobile-video-offset"] {
    transform: translate(calc(-50% + var(--mobile-video-offset, 0px)), -50%) !important;
  }
}

.hero-slider .slide-yt-poster {
  z-index: 2;
  transition: opacity 0.3s;
}

.hero-slider .slide-yt-poster.yt-playing {
  opacity: 0;
  pointer-events: none;
}

/* Transparent overlay to block YouTube native controls (play button, end screen) */
.hero-slider .yt-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  background: transparent;
}

/* Mute/unmute button */
.slide-mute-btn {
  position: absolute;
  bottom: 140px;
  right: 30px;
  z-index: 5;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  animation: muteBtnPulse 2s ease-in-out infinite, muteBtnBounce 1s ease-in-out 0.5s;
  box-shadow: 0 0 20px rgba(200, 169, 126, 0.4), 0 0 0 0 rgba(255, 255, 255, 0.3);
}

.slide-mute-btn::after {
  content: 'Kliknij aby włączyć dźwięk';
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
}

.slide-mute-btn.label-hidden::after {
  opacity: 0;
}

@keyframes muteBtnPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(200, 169, 126, 0.4), 0 0 0 0 rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 0 24px rgba(200, 169, 126, 0.6), 0 0 0 12px rgba(255, 255, 255, 0); }
}

@keyframes muteBtnBounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.2); }
  60% { transform: scale(0.95); }
}

.slide-mute-btn:hover {
  background: rgba(200, 169, 126, 0.5);
  border-color: #fff;
  transform: scale(1.15);
  animation: none;
}

.slide-mute-btn:hover::after {
  display: none;
}

.slide-mute-btn.unmuted {
  border-color: var(--accent-color, #c8a97e);
  background: rgba(200, 169, 126, 0.4);
  animation: none;
}

@media (max-width: 767.98px) {
  .slide-mute-btn {
    bottom: 100px;
    right: 16px;
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }

  /* Na mobile sam przycisk, bez etykiety „Kliknij aby włączyć dźwięk” */
  .slide-mute-btn::after {
    display: none;
  }
}

.hero-slider .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}

.hero-slider .slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 5%;
}

.hero-slider .slide-content .container {
  max-width: 960px;
}

/* === SLIDE TEXT - BOLD & VISIBLE === */
.hero-slider .slide-subtitle {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c8a97e;
  margin-bottom: 1.5rem;
  padding: 8px 20px;
  border: 2px solid rgba(200, 169, 126, 0.5);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.3);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  transition-delay: 0.3s;
}

.hero-slider .swiper-slide-active .slide-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.hero-slider .slide-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 3px 15px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
  transition-delay: 0.5s;
}

.hero-slider .swiper-slide-active .slide-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-slider .slide-title span {
  color: #c8a97e;
  text-shadow: 0 3px 15px rgba(0,0,0,0.6), 0 0 30px rgba(200,169,126,0.3);
}

.hero-slider .slide-desc {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 650px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
  transition-delay: 0.7s;
}

.hero-slider .swiper-slide-active .slide-desc {
  opacity: 1;
  transform: translateY(0);
}

.hero-slider .slide-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
  transition-delay: 0.9s;
}

.hero-slider .swiper-slide-active .slide-buttons {
  opacity: 1;
  transform: translateY(0);
}

.hero-slider .btn-slider-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: #c8a97e;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-shadow: none;
  transition: all 0.3s ease;
}

.hero-slider .btn-slider-primary:hover {
  background: #b8955e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 169, 126, 0.4);
}

.hero-slider .btn-slider-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-shadow: none;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.hero-slider .btn-slider-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Video play button */
.hero-slider .btn-slider-video {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: rgba(255, 0, 0, 0.7);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  text-decoration: none;
  text-shadow: none;
  transition: all 0.3s ease;
}

.hero-slider .btn-slider-video:hover {
  background: rgba(255, 0, 0, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

/* Navigation arrows */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
  background: rgba(200, 169, 126, 0.6);
  border-color: #c8a97e;
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
  font-size: 18px;
  color: #fff;
  font-weight: bold;
}

/* Pagination */
.hero-slider .swiper-pagination {
  bottom: 40px !important;
}

.hero-slider .swiper-pagination-bullet {
  width: 30px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transition: all 0.4s ease;
}

.hero-slider .swiper-pagination-bullet-active {
  width: 50px;
  background: #c8a97e;
}

/* Bottom feature bar */
.hero-slider .slide-features-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.hero-slider .feature-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.hero-slider .feature-bar-item:hover {
  color: #c8a97e;
}

.hero-slider .feature-bar-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 169, 126, 0.4);
  border-radius: 50%;
  font-size: 1.1rem;
  color: #c8a97e;
  flex-shrink: 0;
}

.hero-slider .feature-bar-text h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.hero-slider .feature-bar-text span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Scroll indicator - centered bottom */
.hero-slider .scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.4s ease;
}

/* Hidden when the active slide's content reaches it (see index.html.twig) */
.hero-slider .scroll-indicator.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-slider .scroll-indicator span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-slider .scroll-indicator .scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 13px;
  position: relative;
  background: var(--scroll-mouse-bg, transparent);
}

.hero-slider .scroll-indicator .scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 12px;
  background: var(--scroll-color, #c8a97e);
  border-radius: 3px;
  box-shadow: 0 0 8px var(--scroll-color, #c8a97e), 0 0 16px rgba(200, 169, 126, 0.4);
  animation: scrollWheel 1.8s ease-in-out infinite;
}

.hero-slider .scroll-indicator .scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scrollArrowBounce 1.8s ease-in-out infinite;
}

.hero-slider .scroll-indicator .scroll-arrow i {
  font-size: 1.5rem;
  color: var(--scroll-color, #c8a97e);
  line-height: 0.5;
  filter: drop-shadow(0 0 6px rgba(200, 169, 126, 0.6));
  -webkit-text-stroke: 0.5px var(--scroll-color, #c8a97e);
}

@keyframes scrollWheel {
  0%   { opacity: 1; top: 6px; }
  50%  { opacity: 0.6; top: 22px; }
  100% { opacity: 1; top: 6px; }
}

@keyframes scrollArrowBounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-slider .slide-title {
    font-size: 3rem;
  }
  .hero-slider .slide-desc {
    font-size: 1.1rem;
  }
  .hero-slider .swiper-button-next,
  .hero-slider .swiper-button-prev {
    display: none;
  }
  .hero-slider .scroll-indicator {
    bottom: 62px;
  }
}

@media (max-width: 768px) and (min-width: 577px) {
  .hero-slider .slide-title {
    font-size: 2rem;
  }
  .hero-slider .slide-desc {
    font-size: 0.95rem;
  }
  .hero-slider .btn-slider-primary,
  .hero-slider .btn-slider-outline {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
  .hero-slider .scroll-indicator {
    bottom: 62px;
  }
}

@media (max-width: 576px) {
  .hero-slider {
    height: 100vh;
    min-height: 480px;
  }
  .hero-slider .slide-title {
    font-size: 1.75rem;
    line-height: 1.15;
  }
  .hero-slider .slide-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  .hero-slider .slide-subtitle {
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding: 5px 14px;
    margin-bottom: 1rem;
  }
  .hero-slider .slide-content {
    padding: 0 16px;
  }

  /* Mniejsze buttony */
  .hero-slider .btn-slider-primary,
  .hero-slider .btn-slider-outline,
  .hero-slider .btn-slider-video {
    padding: 10px 22px;
    font-size: 0.85rem;
  }
  .hero-slider .slide-buttons {
    gap: 10px;
  }

  /* Scroll indicator na mobile — mniejszy, nad paginacją */
  .hero-slider .scroll-indicator {
    bottom: 44px;
    gap: 6px;
  }
  .hero-slider .scroll-indicator span {
    font-size: 0.62rem;
    letter-spacing: 2px;
  }
  .hero-slider .scroll-indicator .scroll-mouse {
    width: 20px;
    height: 32px;
    border-radius: 10px;
  }
  .hero-slider .scroll-indicator .scroll-mouse::before {
    width: 4px;
    height: 8px;
    top: 5px;
  }
  .hero-slider .scroll-indicator .scroll-arrow i {
    font-size: 1.1rem;
  }

  /* Paginacja blizej dolu */
  .hero-slider .swiper-pagination {
    bottom: 16px !important;
  }
}

/* Mobile feature bar - 2x2 grid under slider */
.mobile-feature-bar {
  background: var(--heading-color, #2a2a2a);
}

.mobile-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.mobile-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 20px 12px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.mobile-feature-item:nth-child(2n) {
  border-right: none;
}

.mobile-feature-item:nth-child(n+3) {
  border-bottom: none;
}

.mobile-feature-item:hover,
.mobile-feature-item:active {
  background: rgba(200, 169, 126, 0.12);
}

.mobile-feature-item i {
  font-size: 1.8rem;
  color: #c8a97e;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 169, 126, 0.35);
  border-radius: 50%;
  flex-shrink: 0;
}

.mobile-feature-item span {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}
