/* =========================================
   1. FUNDAMENTY, RESET I BLOKADA SCROLLA
   ========================================= */
:root {
  --drupal-displace-offset-top: 0px;
}

body.toolbar-loading { --drupal-displace-offset-top: 80px !important; }
body.toolbar-fixed.toolbar-horizontal { --drupal-displace-offset-top: 39px; }
body.toolbar-fixed.toolbar-horizontal.toolbar-tray-open { --drupal-displace-offset-top: 79px; }

*, *::before, *::after { 
  box-sizing: border-box; 
}

/* CAŁKOWITA BLOKADA SCROLLOWANIA */
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  overflow: hidden !important; /* Wyłącza scroll w pionie i poziomie */
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: #000;
  background-color: #fff;
}

/* Przesunięcie dla zalogowanych (Toolbar) */
body.toolbar-loading,
body.toolbar-fixed {
  padding-top: var(--drupal-displace-offset-top) !important;
}

/* =========================================
   2. SEKCJA HERO (GŁÓWNA) - IDEALNY ŚRODEK
   ========================================= */
#hero {
  z-index: 10;
  width: 100%;
  /* Obliczamy wysokość: pełny ekran minus wysokość paska admina */
  height: calc(100vh - var(--drupal-displace-offset-top)) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative;
  padding: 0 5% !important; /* Zero paddingu góra/dół, by nie wywalało scrolla */
  margin: 0 !important;
}

/* =========================================
   3. LOGO REVEAL - NUKLEARNE POWIĘKSZENIE
   ========================================= */
.fashion-logo-wrapper {
  display: flex !important;
  flex-direction: column !important; 
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  max-width: 1200px !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 100;
}

.logo-mask {
  overflow: hidden !important;
  height: 200px !important; /* Wysokość okna na logo */
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 20px;
}

/* Rozbicie divów Drupala */
.logo-mask div, 
.logo-mask .field, 
.logo-mask .field__items, 
.logo-mask .field__item,
.logo-mask .field-content {
  display: contents !important;
}

.logo-mask img, 
.logo-mask svg,
.logo-mask .hero-logo-svg {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 95% !important;
  max-height: 100% !important; /* Wypełnia całe 200px wysokości maski */
  object-fit: contain !important;
  
  /* Animacja startowa */
  transform: translateY(120%);
  will-change: transform;
  
  animation: logoReveal 1.4s cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
  animation-delay: 0.6s !important;
}

/* Podtytuł (Subtitle) */
.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
  
  animation: subtitleIn 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
  animation-delay: 1.6s !important;
  
  font-size: 26px;
  font-style: italic;
  letter-spacing: 8px;
  text-align: center;
  line-height: 1.5;
  width: 100%;
  max-width: 900px;
}

/* =========================================
   4. KEYFRAMES
   ========================================= */
@keyframes logoReveal {
  0% { transform: translateY(120%); }
  100% { transform: translateY(0%); }
}

@keyframes subtitleIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
   5. HEADER (MENU GÓRNE)
   ========================================= */
#site-header {
  position: fixed;
  top: var(--drupal-displace-offset-top) !important;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 2000;
  padding: 0 5%; 
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.4); 
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid #000 !important;
}

.logo-wrapper {
  overflow: hidden;
  width: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

#site-header.scrolled .logo-wrapper {
  width: 320px !important;
  opacity: 1 !important;
  margin-right: 2rem !important;
}

/* =========================================
   6. IMAGE TRAIL (PARALLAX)
   ========================================= */
#image-trial-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 5;
}

.parallax-fly-item {
  position: absolute;
  width: 250px;
  aspect-ratio: 3/4;
  transform: translate(-50%, -50%) scale(0.6) rotate(var(--rotation, 0deg));
  opacity: 0;
  animation: imgSpawn 0.4s cubic-bezier(0.84, 0, 0.24, 1) forwards;
}

.parallax-fly-item img { width: 100%; height: 100%; object-fit: cover; }

@keyframes imgSpawn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(var(--rotation, 0deg)); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(var(--rotation, 0deg)); }
}

/* =========================================
   7. FOOTER (STICKY)
   ========================================= */
.sticky-footer-line {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: #fff;
  border-top: 1px solid #000;
  z-index: 1500;
  display: flex;
  align-items: center;
  padding: 0 5%;
}

/* Fix dla pustego pola obrazka */
.logo-mask img:not([src]) { visibility: hidden !important; }