/* =========================
   STATIC BLOK
   Obrázek + přilétající text
========================= */

/* --- kontejner static --- */
.static {
  position: relative;       
  width: 100%;
  height: 300px;            
  overflow: hidden;         
  display: flex;            
  justify-content: center;  
  align-items: center;      
  background-color: #000;   
}

/* --- obrázek na pozadí --- */
.static-img {
  position: absolute;       
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        
  z-index: 0;               
  transform: scale(1.2);  /* startovací velikost  */ 
  transition: transform 1.2s ease; /* plynulý přechod */
}

/* jemný zoom při načtení */
.static.animate .static-img {
  transform: scale(1);  /* cílová velikost  */
}

/* --- tmavý overlay --- */
.static-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* --- textový kontejner --- */
.static-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 90%;
}

/* --- hlavní nadpis --- */
.static-title {
  font-size: 4.5rem;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 0.5rem;
  opacity: 0;               
  transform: translateY(-40px); 
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* --- podnadpis --- */
.static-text {
  font-size: 1rem;
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

/* --- aktivní třídy pro animaci --- */
.static.animate .static-title,
.static.animate .static-text {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .static-title {
    font-size: 1.6rem;
  }
  .static-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 700px) {
  .static {
    height: 250px;
  }
  .static-title {
    font-size: 3rem;
    text-transform: uppercase;
  }
  .static-text {
    font-size: 0.8rem;
  }
}
